How to authorize and accept ADB RSA key with broken touch screen on Android
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.
you can add the RSA key copying it from computer and adding the line to /data/misc/adb/adb_keys, but only with rooted device
Using OTG and teamviewer help me control a broken touch screen android.
This is actually very simple (although a little bit late..). You can download the teamviewer host from the playstore and teamviewer into your phone from your computer. Once the adb authorization prompt appears just accept it through teamviewer and you are set. Remember to check "Remember this computer" so you don't have to do this every time. Keep in mind that to control your device through teamviewer you need to add it to an account.