Showing posts with label reboot. Show all posts
Showing posts with label reboot. Show all posts

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


Android: ADB - Recovery (Factory Rest)

You can use the below ADB command to do recovery your phone (Do factory reset).

adb shell recovery --wipe_data   
   * The arguments which may be supplied in the recovery.command file:
      *   --send_intent=anystring - write the text out to recovery.intent
      *   --update_package=path - verify install an OTA package file
      *   --wipe_data - erase user data (and cache), then reboot
      *   --wipe_cache - wipe cache (but not user data), then reboot
      *   --set_encrypted_filesystem=on|off - enables / diasables encrypted fs

adb shell reboot recovery