Difference between revisions of "ROM Android: Penggunaan adb"

From OnnoWiki
Jump to navigation Jump to search
Line 61: Line 61:
  
  
fastboot flash recovery recovery.img
+
fastboot flash recovery recovery.img
 +
 
 
Here's a quick explanation of the above command:
 
Here's a quick explanation of the above command:
  

Revision as of 08:36, 23 December 2014

Instalasi

sudo apt-get install android-tools-adb

devices

adb devices -l
List of devices attached 
5H9TFYCYSGQ8Y9MZ       device usb:2-5 product:a80a model:A80A device:a80a


shell

adb shell

Ini akan masuk ke shell

shell@a80a:/ $

Untuk menjadi superuser ketik

su

Perlu di allow oleh kingroot yang sudah di instalasi sebelumnya

shell@a80a:/ #


mount -o remount, rw /system


install dan uninstall

The most commonly used "adb" command is the "adb install" command that allows you to install an application stored in the specified APK file to the connect Android emulator or device:

adb install <path_to_apk>

You can also uninstall a package from the connected emulator or device by using the "adb uninstall" command:

adb uninstall <apk_name>


Push dan Pull

he "adb" tool also offers you commands to copy files into and from the connected Android emulator or devices.

The "adb push <local> <remote>" copies a file or folder from the local system to the remote emulator or device.

The "adb pull <remote> <local>" copies a file or folder from the remote emulator or device to the local system.



Instalasi fastboot

apt-get install android-tools-fastboot


fastboot flash recovery recovery.img

Here's a quick explanation of the above command:

fastboot: that's the executable tool
flash: that's the function we want the fastboot tool to perform
recovery: this is the name of the partition we want to flash into. since we are flashing  a recovery image, it needs to go to the recovery partition.
recovery.img: this is the name of the actual file to flash. Your filename may be different. Just make sure it matches the actual filename.

Referensi