I want to read the fingerprint of the computer. That fingerprint is shown when you connect it for the first time with your computer.
I googled a lot but I found nothing related. Do you have an idea or a helpful resource?
Enter this in your terminal:
awk '{print $1}' < ~/.android/adbkey.pub | openssl base64 -A -d -a | openssl md5 -c
Works just as it should for me. =)
which references the original source: http://nelenkov.blogspot.de/2013/02/secure-usb-debugging-in-android-422.html
awk '{print $1}' < ~/.android/adbkey.pub | openssl base64 -A -d -a | openssl sha256 -c
On Android 5 and up as far as I know hash-function md5
is replaced with sha256
, try:
awk '{print $1}' < ~/.android/adbkey.pub | openssl base64 -A -d -a | openssl sha256 -c | awk '{print $2}'|tr '[:lower:]' '[:upper:]'
/data/misc/adb/adb_keys
.~/.android/adbkey.pub
inbase64
encoding.abd shell run-as
. That idea was also restricted to debug builds.