Android Developer Bridge - adb: Unterschied zwischen den Versionen

Aus Wikizone
Wechseln zu: Navigation, Suche
Zeile 14: Zeile 14:
 
Linux https://dl.google.com/android/repository/platform-tools-latest-linux.zip
 
Linux https://dl.google.com/android/repository/platform-tools-latest-linux.zip
  
== Die wichtigsten Befehle ==
+
== Die wichtigsten Befehle für adb und fastboot ==
 +
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
 +
If a recovery is already installed on your device, this command will restart device in recovery mode.
 +
 
 +
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)

Version vom 11. November 2017, 08:41 Uhr

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

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

If a recovery is already installed on your device, this command will restart device in recovery mode.

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)