LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-30-2022, 11:26 PM   #1
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Rep: Reputation: 9
Android adb via usb


Hi all,

I am trying to connect an unlocked Pixel 3 running lineageos 18.1 to my Slackware machine via usb/adb. The device previously connected (prior to upgrading to slackware 15.0), usb debugging is enabled, but I can't get the device to show up in any form. I have tried troubleshooting via adb, lsusb, and dmesg - the computer simply doesn't seem to notice the device being plugged in.
I have also tried multiple new cables (since faulty cables seem to be the #1 cause), I have tried usb-A/B vs usb-c cables, and since I also saw that sometimes usb 3.0 seems to be an issue I purchased a new usb-2 hub and tried connecting via that, but nothing. I have tried disabling xhci via kernel parameters at boot but then my keyboard stops working, so that's a non-starter also.

I realize this is unlikely to be slackware-specific, but if anyone has any thoughts/experiences, your help would be greatly appreciated! :-)
 
Old 05-31-2022, 05:02 AM   #2
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
I think up to date systems need android-tools version at least v31 and the android udev rules. Check that these have updated with your slackware.
 
2 members found this post helpful.
Old 05-31-2022, 10:24 PM   #3
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 9
Thanks so much petelq! I have android-tools v31 installed, and I tried adding in the relevant udev rules also, with no luck. I think the issue is deeper because there is no dmesg output on connecting the device, hence there is nothing to even trigger udev. Thank you though - I really appreciate your suggestions!
 
Old 05-31-2022, 11:50 PM   #4
svim
Member
 
Registered: Feb 2015
Distribution: Slackware 14.2-64bit
Posts: 62

Rep: Reputation: Disabled
Since you made a reference to a USB hub, have you been trying to connect your Pixel through a hub? If so try plugging your cable directly into a USB port on your PC instead.
 
1 members found this post helpful.
Old 06-01-2022, 09:38 PM   #5
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 9
Hi svim, and thank you for your idea! I indeed first tried plugging it directly into the USB ports, both A/B and C. The purchase of the usb-2.0 hub was an attempt to force a connection over usb-2.0, based on some posts that seemed to suggest this might fix the problem. Alas, none of the options work. Thank you though! :-)
 
Old 06-01-2022, 10:06 PM   #6
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,143
Blog Entries: 21

Rep: Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481Reputation: 3481
Maybe try a new cable? Since dmesg does not see anything.
 
1 members found this post helpful.
Old 06-05-2022, 02:35 PM   #7
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 9
Thanks so much, rokytnji. I have tried a number of USB A/B and C cables, including a number of high-quality brand-new ones, but no luck. Thank you for the suggestion, though. I've now also tried using other distros and other machines, and the same problem persists, so it's clearly not just Slackware. Thanks anyway! :-)
 
Old 06-05-2022, 04:22 PM   #8
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 210

Rep: Reputation: 76
Thinking back there might be a USB option in the Android OS? Sorry I can't be more helpful, try toggling the different modes that the phone can emulate. I think there is mass storage, adb mode and some others... I have had problems in the past too, trying to remember what I did. Could be your phone is trying to be the host to a mass storage (ie plugging additional storage into the phone)

Last edited by ricky_cardo; 06-05-2022 at 04:25 PM. Reason: spelling/grammer
 
1 members found this post helpful.
Old 06-06-2022, 03:57 AM   #9
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Hi
Did you enabled "developper options" ?
You get it by selecting 7 or so times the "version number" in some submenu.

IIRC you'll find then the option to allow adb over usb.
 
1 members found this post helpful.
Old 06-06-2022, 10:30 AM   #10
furrymonster
LQ Newbie
 
Registered: Jan 2012
Location: London
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 9
Thank you both, ricky_cardo and Tonus!

I have tried those things (all available USB options as well as enabling developer options). Specifically, I have tried:
- Two different computers
- Two different linux distros (Slackware, Ubuntu)
- Many, many (new, high-quality) USB cables, both USB-C and USB-A/B
- Developer mode enabled
- USB debugging enabled, authorizations revoked and re-enabled
- Setting default USB configuration to File Transfer/USB tethering/MIDI/PTP/No data transfer
- Airplane mode
- Connecting over a USB-2.0 hub
- Booting the device to recovery mode, enabling adb

Regardless, I have the same outcome. The phone charges but no other recognition of being plugged in is made. That is, the computer cannot see the phone in 'adb devices', 'lsusb' or 'dmesg'. The phone doesn't see the computer either, in that it doesn't bring up the USB notification.

Thank you all for your suggestions! :-)
 
Old 06-06-2022, 10:45 AM   #11
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 332

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
At this point, either the USB connector is faulty or the software is buggy.
You can reboot the phone in recovery mode and see if enabling adb sideload makes the phone visible via adb to the pc.
If you are brave enough, you can boot a custom recovery (TWRP or similar) and use MTP/adb from there.
If that doesn't work, it's probably a physical problem.

EDIT: sorry, i saw you already tried recovery mode, i guess LOS recovery.
EDIT2: you could use adb wifi, but iirc you first need to authorize the pc using adb via cable.

Last edited by ctrlaltca; 06-06-2022 at 10:50 AM.
 
Old 06-06-2022, 03:33 PM   #12
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Use an android device to download Remote ADB shell, and see if you can connect wirelessly, without usb.

At the very least it should help you determine whether ADB debugging is actually working
 
Old 06-06-2022, 09:41 PM   #13
svim
Member
 
Registered: Feb 2015
Distribution: Slackware 14.2-64bit
Posts: 62

Rep: Reputation: Disabled
I wouldn't spend too much time messing with different cables or your anything with your Pixel 3. Given that you things were apparently working out OK before and the problem only started occurring when you upgraded to Slack 15, that's an indicator you need to focus on something that changed with the newer OS. It just isn't likely that upgrading to 15 would cause a USB cable to fail nor would it reset any options in your phone.
Are you having any issues with any other external devices connecting to your PC via USB?
This is a long-shot but did you alter anything in your PC's BIOS/UEFI to do the upgrade?
It's odd that there's not even a failure notation in dmesg.
 
Old 06-07-2022, 05:05 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Have you checked the USB port of the Pixel 3? On my older Pixel 2 XL (that I have since replaced with the P5 and now P6), I would get pocket lint in the port and after enough build-up, the plug wouldn't seat all the way and charging/data connections would be intermittent. I would clear it with a needle. Some of it would be quite compacted.
 
Old 06-08-2022, 12:33 PM   #15
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 210

Rep: Reputation: 76
I tested a pixel4 on slackware current:


dmesg on connection:
Code:
[123574.101304] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[123574.235042] usb 1-2: New USB device found, idVendor=18d1, idProduct=4ee1, bcdDevice= 4.40
[123574.235047] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[123574.235048] usb 1-2: Product: Pixel 4 XL
[123574.235049] usb 1-2: Manufacturer: Google
[123574.235050] usb 1-2: SerialNumber: xxxxxxxxxxx


So I definitely see when connected in dmesg I would T/S that first.
( I have developer mode enabled but did not change any usb options yet)

Last edited by ricky_cardo; 06-08-2022 at 12:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Use ADB Android Debug Bridge to Manage Your Android Mobile Phone LXer Syndicated Linux News 0 01-30-2021 02:50 PM
Potential Exploit? Potential Backdoor? Strange code in '/usr/android/adb' Package: android-tools-adb slicktrail Linux - Security 1 12-05-2016 05:05 AM
LXer: Install ADB And Fastboot Android Tools In Ubuntu Via PPA LXer Syndicated Linux News 0 09-01-2012 03:10 PM
[SOLVED] Android - USB drivers on linux (adb device missing) Taylrl Linux - Mobile 1 06-03-2012 10:36 PM
Device unable to connect to adb; LG LU2300 (Optimus Q) Android tensionwind Linux - Mobile 3 11-26-2011 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration