USB Functionalities Not working, USB Debugging, Wireless Debugging not working, No ADB operations possible
Expected Behavior
Whenever the phone is connected to a pc (I tried Linux Fedora 38 and Windows 11 as well) via a USB cable, a notification should pop-up showing something like 'Android charging via USB - Tap for more options'. Also when we tap for more options, we can select among many options like file transfer, USB Tethering, PTP, etc, and all these options should work. Also, when USB Debugging is enabled, the phone should show up in adb devices, provided adb is properly installed. And even if Wireless Debugging is enabled, we should be able to perform adb operations on the phone provided the phone and PC are on the same network, by using command adb pair : and then using the pair code.
Current Behavior
When I connect my phone to my PC (Linux Fedora 38) or my laptop (windows 11), no pop-up notification appears (something like 'Android charging via USB - Tap for more options' is expected). When I manually go to USB options, all the USB functionalities are greyed, so all are disabled. Only the phone keeps charging without any notifications. On the PC no notification pops up too. However on my laptop (windows 11), a notification pops up saying Unrecognized USB device found. In this case also, all options in USB settings are greyed. I also enabled USB Debugging. But even then nothing happens, only charging. When I tried to perform adb operations so that I can upgrade to the latest Lineage OS build, it also did't work. When I type 'adb devices' on the terminal (Both Linux and Windows), it doesn't show any devices even though USB Debugging is enabled and the phone is connected via USB. I even tried different USB cables and different ports. This adb devices however detected my other phone which runs on Evolution X android 14 version. So certainly some problem with my device. And also I would like to mention that my device was working fine with the previous Lineage OS version I was using. Problem came up when I updated to 'lineage-20.0-20240201-nightly-sunfish'. Lastly, I would also mention that even Wireless Debugging didn't work. The phone does get connected and even shows my pc/laptop in connected devices under Wireless Debugging, and also in the PC/laptop it says 'successfully connected to ...'. But immediately after when I try running any adb command, it says no adb devices found, and no devices show up when I type adb devices. Very strange.
Steps to Reproduce
- Connect the phone to any PC/laptop.
- Go to USB options
- All USB functionalities like file transfer, USB tethering, PTP, etc. are greyed, i.e. disabled.
- Enable USB Debugging
- Still no USB functionalities work
- In command prompt type : adb devices It doesn't show any device under 'List of devices attached'
- Type : adb shell Output : 'adb: no devices/emulators found'
- Enable Wireless Debugging as alternative
- Go to wireless debugging on your phone. Enable it. Then tap 'Pair Device with pairing code'.
- IP address and port number of the phone is displayed along with a 6-digit code.
- On a PC/laptop connected on the same Wifi network, type in terminal : adb pair : Output : 'Pairing Code :' Enter it and then it says successfully connected to <ip...>
- In wireless debugging on phone under connected devices one can see the name of our pc/laptop meaning connection is successful
- Now, run any adb command. Nothing works!
- For e.g. : adb shell will show no devices/emulators found.
- In summary, No USB functionalities, USB debugging, Wireless debugging, and ADB not working on the phone.
Device information
/device sunfish /version lineage-20 /date 2024-02-01 /kernel 4.14.336-gfe61ffb52659 #1 Thu Feb 1 08:25:43 UTC 2024 /baseband g7150-00112-230505-B-10075601 /mods Google Appls
I have read the directions.