OnePlus 5T - can't connect to adb on Linux - Android Q&A, Help & Troubleshooting

Hi! This is my first post
I'm working on a game in Godot engine and for one-click-deploy I need my device to be accessible via adb.
I have already managed to use this with a different device and an older version of the engine, but my OnePlus 5T will not show up.
I've tried finding some drivers for it, but no go.
Everything works over USB: tethering, media transfer, but not debugging.
I have the developer mode enabled on my device, and when I connect it, I get a notification that USB debugging is on. However my Linux machine doesn't recognize that.
Have anyone had similar issues? I couldn't find any information about this yet.

I think I've accidentally solved it.
Once I have run `adb devices` as root - the phone was listed and I got a notification on the phone asking if I want to pair USB debugging with the PC. I yet have to test if the one-click -deploy works now, but I gues it will.

Related

[Q] USB Driver Installation Problems

I have tried multiple times to install the USB drivers for my Optimus T (LGP509TN) running CyanogenMod 7.1 (6.5.8). I've tried installing, uninstalling - tried using the LGmobile agent to install... 5 of the 7 install fine but the LGE Android Platform USB modem and the USB Mass Storage Device fail. (see attached image called "usb installation")
When I turn on USB tethering, another USB installation routine runs and fails. (see attached image called "after turning on USB tethering". In Device Manager, I get a bunch of exclamation marks. (see attached image called "Device Manager".
USB storage actually will work - but takes a long time to kick in - and often crashes. Same with USB tethering. I've tried numerous different USB cables so that's not an issue.
Although I have an LGP509TN, I'm not sure if I should be installing LG509 drivers or LGP500 (as I'm running CyanogenMod 7.1 for LGP500). I'm not sure if there actually is a difference between the two. I've tried both and get the same issue.
Any direction would be sincerely appreciated.
Thanks,
Dave
Hi ,
I am also finding same problem. installed cyanogenmod
I took back up in ROm manager but not in recovery mod.
LGE android USB Modem fails to install.
Rest things are installing and working fine.
Help me out if you have found the soultion.
For you what i suggest is.
1. uninstall LG united drivers through control panel.
2. Re install it and turn on USB Debugging mode in your phone and connect it.
Everything will get installed. But not sure of LGE Android USB MOdem. IF you get soultion let me know even
I've tried everything that's been suggested. I've tried many different versions of drivers. Uninstalled, reinstalled.... Sometimes I'm even getting the Blue Screen of Death on my laptop when trying to connect the phone using USB. Wireless tether continues to work flawlessly. It's simply the USB connection that doesn't seem to want to cooperate.
I'm starting to think it might be a hardware issue - except that everything else with the phone works perfectly. I'm also going to buy a couple of new USB cables to try to determine if it might be a faulty cable.
1. Turn on USB Debugging mode
2. Connect USB
3. Then drivers stopped installing, turn off USB Debugging mode, but do not disconnect usb cable.
4. It will install some drivers and says all OK
5. Turn on USB Debugging mode (do not disconnect usb cable), and all drivers will be installed.
This is my method, and it worked for me.
Thanks for the instructions. The challenge I face is that the 2 devices never complete. (See screenshot.) If I close the dialogue, it tells me of the failure. When I switch on USB Debugging, it doesn't connect.
snsd said:
Thanks for the instructions. The challenge I face is that the 2 devices never complete. (See screenshot.) If I close the dialogue, it tells me of the failure. When I switch on USB Debugging, it doesn't connect.
Click to expand...
Click to collapse
Experiencing similar problems with getting the USB drivers required for native tethering installed successfully. Running Windows 7. A walkthrough of clearing any existing drivers then reinstalling the proper ones might help. I've tried uninstalling via the control panel, system, devices area, but a complete purge/deletion of the drivers might be needed. Any pointers to a proven way to do so would be appreciated.
dude this happens to me week ago
first tell me are you running .32 kernals ??
if yes then flash it once aganin
or use .35 kernals it's best for cm7 series

LineageOS 14.1 - How to activate USB massstorage access?

Hi!
I have searched XDA forum and other forum concerning LineageOS. But I have not found a solution.
My latest experiments were with installation of the adb interface on windows. At first, this worked well and I got full massstorage access. The Galaxy and its both memories did show up in Windows Explorer (like in old ages).
At the next restart of Windows (Win 7 64-bit Pro) when I connected my phone, Windows immediately did install the samsung drivers again. And since that things got even worse: No even the MTP and PTP Mode did not work, so that the Smartphone does not show up at all in the Windows Explorer!
At F-Droid, I have found an app, called USB Mountr. I tried this, but without any effort.
In the device manager of Windows I can see an „Android Composite ADB Interface”. It tells, that the device would work OK.
Now I am stuck with this and I hope, someone will help me, to activate usb massstorage access.
BTW: I have flashed my Galaxy S2 with Heimdall, running on Ubuntu. Heimdall on Windows 7 did not work, because of libusb error -12.
Latest status:
I have uninstalled the app USB mountr and did reboot the phone. Now the USBconnector is only active for charging the battery. I even get no connection in PTP or MTP mode.
Then I have deactivated USB debug mode and ADB. did a reboot, reactivated ADB and USB debug etc. and did further reboot the phone but with no success.
USB connection is nearly dead and cannot have connect with LUBUNTU Laptop. On Win 7, I get the signal tone, which is typical for connecting an USB device. The GT.i9100 shows up in Explorer but cannot be connected. Device manager tells me, that it is an Android device and all would be OK.
As a work around I am using MyPhoneExplorer on Win-7 and KDEconnect for Ubuntu.
Please can anybody tell me, what I should do, to get back at least USB connection in MTP or PTP mode???
I have the exact same problem.
I did notice, that after first boot, there was a message (several times) the MTP daemon/service stopped working (Crashed ?)
Does anyone else encounter this ?
Did anyone else resolve this ?
(Currently I was only able to get/send files to the device via BT, which is slow, annoying,
and a lot of work moving files to their required places after transmitting over BT)
Quick Fix for stuck on boot
This probably isn't the right place but you said there weren't many solutions. If your phone randomly gets stuck on boot you need to Delete Everything including system, factory data reset, flash ROM again with ADB, go through setup. The reason it probably hanged is because you installed an old version of SuperSU Binary or because you flash OpenGapps before setting up phone.
Hope this works
P.S Sorry for the late reply

USB Connection does not work - can I still unlock and flash?

Hello there!
I own a Xiaomi Redmi Note 4. It works quite well but I want to flash a custom ROM. Before I can do that I have to unlock my phone. To do this I must connect my phone to the computer. This is where the trouble begins.
A few weeks ago, I replaced the display because it was broken. I really really took care to avoid doing any harm to the phone - and I think I did a pretty good job. The new display works flawless, like if there was never an issue with it.
BUT: Today I connected the phone via USB - and my computer won't recognize it anymore. I get a message from Windows, telling me that the USB device was not recognized and I should connect the device again. My phone also doesn't show me the USB options like before (charging, data transer). To solve this problem i already tried:
- another USB port
- another USB cable
- another PC
- phone reset
- uninstall and reinstall driver in the device manager
The device manager of Windows gives me the following output at the USB device properties:
"Windows has stopped this device because it has reported problems. (Code 43)
An error occurred while requesting the USB device descriptor."
I don't know whats wrong, but I can live with it. The question is: can I still unlock and flash my phone without USB?
I have the same issue and my phone charges only in TWRP
me too, i have the same problem, i change the usb hub, flat,...bat still not working!
I have same problem. Did anyone found solution?
for enabling OTG, root needed
run adb shell, use any terminal app,
Code:
su
setprop persist.sys.oem.otg_support true
this only enables OTG support.
USB MTP, ADB support not working. (phone usb to computer connecting issue)
I think switching to stock rom will solve this.

Remove lock or enable usb debugging on non-rooted phone (Read data inside a locked phone)?

So i forgot the PIN number on my old phone which was not rooted, had no recovery software (Cwm, Xrec, etc.) installed on it, and has usb debugging and auto-mount disabled. We don't know the google account associated with the phone. Basically all I have is the phone and a usb cable. Is there a way to get the user data out of it? Adb won't recognise the device btw. I do apologise if it's a stupid question. The phone automatically connected to the wifi, and I'm on Linux, if that helps. But I managed to get into recovery but adb only recognises the device in sideload mode. The files inside the phone is extremely important to me because it contain photo of my family member that were passed away.
Phone: Vivo V7 Plus
I wanted to try brute-force the PIN with program but unfortuntely the phone will cool down for 7000 second (3hours+)
A phone typically knows of 2 USB modes: ADB & MTP. If MTP mode was enabled and phone supports a USB-C connection then it should be possible to fetch the user-data you're interested in.
jwoegerbauer said:
A phone typically knows of 2 USB modes: ADB & MTP. If MTP mode was enabled and phone supports a USB-C connection then it should be possible to fetch the user-data you're interested in.
Click to expand...
Click to collapse
Hi, first of all thanks for your respond. In order to enable MTP i need to have the phone unlock right? how can i enable MTP if the phone is locked ?
All I know is that ADB is the door to any Android device and nothing than that.

Rooting the G8 Power via OTG (without app, or PC)

Hi,
I'm currently interested in the question, if I can root my device without any PC or an app, because I momentarily don't own an PC, apps are mostly not able to root the device and interrupt in the middle of the process.
So shortly said, I have an Lenovo Tab M10 FHD+ and want to connect it to my Motorola, to enable root permissions on the Motorola phone with the app linked down below.
The only problem is, that I already connected it via OTG, but commands like reboot work, I was actually surprised, but as soon as I start going into fastboot mode, the device detects the phone, but not the app and no data transfer between the devices is being enabled.
- USB Debugging option in the developer options was enabled during the process
- OEM Bootloader Unlock option was also enabled
I even tried wireless debugging over WLAN, but problems like an endless loop while connecting, occured.
Can anyone help me getting the right commands for the app?
Link of the ADB OTG shell app, I'm using:
ADB⚡OTG - Android Debug Bridge - Apps on Google Play
⚡ Run ADB commands without a computer [No Need ROOT] ⚡
play.google.com
Have you fully unlocked the bootloader?

Categories

Resources