Difference between revisions of "OS: Android ADB"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Android Debug Bridge (adb) adalah tool command line serbaguna yang memungkinkan anda berkomunikasi dengan perangkat (emulator atau perangkat Android yang terhubung). Perintah...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
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.
 
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==
 
==Bootloader==
Line 8: Line 21:
  
  
 +
==Wipe Data==
 +
 +
Dengan fastboot
 +
 +
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
 +
 +
 +
==Wipe Data==
 +
 +
adb shell
 +
recovery --wipe_data
 +
 +
 +
==Copy File==
 +
 +
Dari smartphone ke komputer
 +
 +
adb pull remote local
 +
 +
Dari computer ke smartphone
 +
 +
adb push local remote
  
 
==Referensi==
 
==Referensi==
  
 
* https://developer.android.com/studio/command-line/adb.html
 
* https://developer.android.com/studio/command-line/adb.html

Latest revision as of 10:47, 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

Dengan fastboot

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


Wipe Data

adb shell
recovery --wipe_data


Copy File

Dari smartphone ke komputer

adb pull remote local

Dari computer ke smartphone

adb push local remote

Referensi