Debuggen auf Android 16 (ADB)
-
//Einstellungen/Sicherheit und Datenschutz/Automatische Sperre abdrehen
-
Entwickleroptionen aktivieren, indem man 7x auf //Einstellungen/Telefoninfo/Statusinformation/Seriennummer klickt
-
//Einstellungen/Entwickleroptionen/USB-Debugging aktivieren, das USB Kabel abziehen und wieder anstecken und Usb-Übertragung auf Übertragung von Dateien/Android Auto stellen
App neu compilieren
Im Projektverzeichnis ./build-apk.sh
App installieren
adb install -r SSHCopy.apk
Handy jetzt für USB-Debugging autorisiert?
-
adb devices -l
Dateien auf dem Handy
Find the installed APK:
adb shell pm path local.sshcopy
List the app’s private files (debug build only)
adb shell run-as local.sshcopy ls -la .
List the storage you can see as a normal Android user
adb shell ls -la /storage/emulated/0/source
Copy known_hosts to the „files“ Folder given in setup of the app
adb shell run-as local.sshcopy sh -c '"cat > files/known_hosts"' < "/home/roland/.ssh/known_hosts"







