Friday, December 20, 2013

Android: ADB Command Lists

1. Getting Root Permission
    adb root

2. Reboot Hanset
    adb shell reboot

3. Extract APK file
    adb wait-for-device remount
    adb pull /system/app/APK_NAME.apk "<Extracted_Path>/."
    OR
    adb pull /data/app/APK_NAME.apk "Extracted_Path/."

4. Show Connected Devices Lists
    adb devices

        List of devices attached
            emulator-5554  device
            emulator-5556  device
            emulator-5558  device


5. Issuing Shell Commands / Select One Devices
    adb -s <Serial Number> shell
        For example, adb -s emulator-5556 shell

6. Install APK
    adb install <path_to_apk>

7. Uninstall APK
    adb shell pm uninstall com.example.MyApp

8. Get System Property

    adb shell getprop
    adb shell getprop <systemproperty_name>

9. Set System Property
    adb shell setprop <systemproperty_name> <value>

10. Search File List 
     adb shell ls /system/bin


11. View LOG
     adb logcat

12. Change MODEM (Baseband) Image
    adb wait-for-device remount
    adb push /modem_image_name_in_local/ /modem_image_path_in_ME/
        For example, LENOVO Handset.
            adb push modem.img /system/etc/firmware
    adb shell sync
    adb shell reboot


No comments:

Post a Comment