adb#
Either install Android Studio, or platform-tools to get a standalone adb
executable.
Enable USB debugging on your mobile phone:
settings > info > version > tap build 7x
settings > dev > enable USB debug
Verify adb key:
adb pubkey ~/.android/adbkey | awk '{print $1}' | openssl base64 -A -a -d | openssl md5 -c | awk '{ print $2 }' | tr a-z A-Z
adb wifi#
WiFi (mobile phone’s host name is sx
)
adb tcpip 5555
adb connect sx:5555
adb devices
adb cheatsheet#
List devices, set device to act on:
adb devices
export ANDROID_SERIAL=R3CMB01P2HD
export ANDROID_SERIAL=sx:5555
Asset links (deep links, open in app):
curl https://einkaufszettel.hukudo.de/.well-known/assetlinks.json
adb shell pm verify-app-links --re-verify de.hukudo.einkaufszettel
adb shell pm get-app-links de.hukudo.einkaufszettel
See also https://developer.android.com/training/app-links/verify-android-applinks
More stuff at https://gist.github.com/ernestkamara/d0a11cc36f331ebb8a41aa36991eee9a