Android Developer Bridge - adb
Das Schweizer Taschenmesser des Android Entwicklers
Ist in Android Studio enthalten, aber für viele Dinge reichen die kleinen Tools alleine aus.
Die wichtigsten Werkzeuge für den Einstieg sind in den Google Platform Tools enthalten: Platform-Tools is a component of the Android SDK and it includes different tools, such as ADB, fastboot, and systrace.
Basics
Links
https://developer.android.com/studio/releases/platform-tools.html
Download
Windows https://dl.google.com/android/repository/platform-tools-latest-windows.zip Mac https://dl.google.com/android/repository/platform-tools-latest-darwin.zip Linux https://dl.google.com/android/repository/platform-tools-latest-linux.zip
Die wichtigsten Befehle für adb und fastboot
APK installieren
Boot und Unlock
adb reboot
This command reboots your device in normal mode. You can use it when you’ve flashed something on your device and wish to reboot
adb reboot recovery
restart device in recovery mode (wenn recovery installiert ist).
adb reboot bootloader
Bootloader is crucial when unlocking & other tasks. This command restarts your device in bootloader mode.
adb reboot fastboot
Instead of going to bootloader mode and then choosing fastboot, this command takes you directly to fastboot mode that helps you flash custom recoveries & ROMs on your device.
fastboot oem unlock
When in fastboot , this command unlocks your device (unlocking bootloader is necessary for custom recoveries & ROMs on a stock device)
fastboot reboot bootloader
Rebooting your device from fastboot mode to fastboot mode again in a fresh session (recommended as a fresh when flashing multiple items)
fastboot flash recovery recovery.img
Command to flash a custom recovery on your device (make sure the img file of the recovery is renamed ‘recovery.img’ and is present in platform tools folder)
OEM Software
VORSICHT ! Anzeigen
adb shell cmd pm list packages | grep '<OEM/Carrier/App Name>'
Entfernen
pm uninstall -k --user 0 <name of package>