Adb via network without previous USB connection

I have android 4.2.2 which requires the ADB connection to match an approved fingerprint.

The problem is that the device must be paired using a USB cable for the first time, which in my situation will be a problem.

My development environment runs on VirtualBox, and I previously gave up trying to get USB to work, and instead used ADB over the network.

The Android SDK is the latest version of 1601.

Is there a way to manually add a key from a virtual machine to my device?

I have a working Android SDK for my host and root access to my device, if this can be fixed.

+4
source share
1 answer

This solution requires root on the device.

On the development machine, copy one line from $HOME/.android/adbkey.pub .

 QAAAAJk..................QA= @myhost 

And add it to /data/misc/adb/adb_keys on your Android device. adb_keys contain one key per line, so if you have already paired any other machines, they will be displayed here.

Reboot the device.

+12
source

All Articles