My Nexus 7 2012 has a broken touch screen so I use an OTG mouse with it. I recently had to do a factory reinstall so am running v5.1 lollipop. The problem is I now have to re authorize adb with my computer so I can do work on it but cannot accept the RSA key when the dialog pops up because my touch screen is broken.
I cannot use my otg mouse because the Nexus 7 is connected to the computer, I have tried a bluetooth remote android device app which fails to work when the dialog shows, I have tried using another remote android app over wifi, I have tried using my computer keyboard via telnet but fails to work when the dialog appears. I don't have a bluetooth mouse but don't even know if that would work.
Does anyone have any suggestions how I can accept the ADB RSA key dialogue to authorize adb with my computer without the use of a touch screen. Thanks?
Connect the device to Mac or PC in recovery mode. Now open terminal/CMD in computer and go to platform-tools/. type and enter adb devices to check if the device is connected in recovery mode. Now type adb shell mount data and adb shell mount system to mount the respective directories.
wait-for-device can be specified after adb to ensure that the command will run once the device is connected. -s can be used to send the commands to a specific device when multiple are connected.
If you are using macOS (or any Linux distro):
Reboot your phone into recovery mode.
Connect it to your computer.
Open the terminal and type:
cd ~/.android
adb push adbkey.pub /data/misc/adb/adb_keys
All done! Just adb shell reboot
and feel the power!
*For Windows 10, .android directory is located in your the base of your C:\User\user_name directory.
Using OTG and teamviewer help me control a broken touch screen android.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With