[SOLVED] Enabled USB debugging on Android phone, but can't connect
Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Enabled USB debugging on Android phone, but can't connect
On Manjaro, I'm trying to add my physical Android device, a Samsung Galaxy J7 (SM-J727U, Android v8.1) to the android studio device list, but whenever I plug my phone in via USB, it doesn't see it at all.
I've installed the following packages trying to get it to work (they are all still installed)
I've enabled developer options and USB debugging on my phone. In settings->USB configuration, MTP is checked.
Whenever I plug my phone in via USB, it just goes into charging mode. There's no notification that I see where I can change it to MTP after I plug it in.
I've added myself to the adbusers group, logged out of XFCE, and logged back in again. I've restarted my phone.
The output of `mtp-detect` shows that "no raw devices found."
You need to remove any device information ADB has stored, and then, when you next plug it in, the phone will ask if you want to allow the computer to connect to it, and you have to agree, then it is authorised and ADB and Fastboot will work
I had to revoke the USB Debugging Authorizations in the phone's developer options, then re-enable debugging. Then I got prompted to allow my PC. And all is well.
I also removed 2 of the packages I had installed: android-file-transfer and gvfs-mtp. Seems they weren't needed in this case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.