I'm going nuts here. I am trying to debug my app on a Samsung Galaxy Tab S5e.
My application runs a VPNService and I am reasonably sure this is the root cause of the following issue:
When debugging via USB, everything works fine. However, when I debug over WIFI, it keeps prompting me to "Allow USB debugging", saying something about the computers RSA key fingerprint and whether I want to "always allow from this computer", which I obviously select and then click "allow".
If I try debug my app again, it will again prompt me...
I've tried:
- restarting the device.
- killing adb and starting it again
- restarting my machine (Macbook Pro)
- revoking all USB debugging authorisations
- deleting the
adbkey.pub
andadbkey
files - FACTORY RESET OF DEVICE
Nothing works.
Does anyone know how I can solve this? I have to go via wireless because I need to measure energy consumption... which I cannot do if the device is being charged.
I was also facing the same problem. I haven't found the root cause of this issue. But the workaround that worked for me is:
Connect your device ( mobile phone ) and your computer to the same WiFi network