Difference between revisions of "OS: Android ADB"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 22: | Line 22: | ||
+ | |||
+ | ==Wipe Data== | ||
+ | |||
+ | For my Motorola Nexus 6 running Android Marshmallow 6.0.1 I did: | ||
+ | |||
+ | adb devices # Check the phone is running | ||
+ | adb reboot bootloader | ||
+ | # Wait a few seconds | ||
+ | fastboot devices # Check the phone is in bootloader | ||
+ | fastboot -w | ||
+ | |||
+ | |||
+ | ==Wipe Data== | ||
+ | |||
+ | Tidak semua handphone bisa root | ||
+ | |||
+ | adb root | ||
+ | adb shell am broadcast -a android.intent.action.MASTER_CLEAR | ||
==Referensi== | ==Referensi== | ||
* https://developer.android.com/studio/command-line/adb.html | * https://developer.android.com/studio/command-line/adb.html |
Revision as of 07:03, 24 June 2017
Android Debug Bridge (adb) adalah tool command line serbaguna yang memungkinkan anda berkomunikasi dengan perangkat (emulator atau perangkat Android yang terhubung). Perintah adb memfasilitasi berbagai tindakan perangkat, seperti memasang dan debugging aplikasi, dan ini menyediakan akses ke shell Unix yang dapat anda gunakan untuk menjalankan berbagai perintah pada perangkat.
Cek Sambungan
Konfirmasi bahwa host komputer kita tersambunge ke target device:
$ adb devices List of devices attached
atau
$ adb devices -l
Bootloader
Ubah device agar berada di fastboot mode baik secara manual dengan menekan kombinasi tombol yang tepat saat booting, atau dari shell menggunakan perintah,
$ adb reboot bootloader
Wipe Data
For my Motorola Nexus 6 running Android Marshmallow 6.0.1 I did:
adb devices # Check the phone is running adb reboot bootloader # Wait a few seconds fastboot devices # Check the phone is in bootloader fastboot -w
Wipe Data
Tidak semua handphone bisa root
adb root adb shell am broadcast -a android.intent.action.MASTER_CLEAR