Monday, October 27, 2014

adb command list

1. connect with wifi
    adb connect address
    - connect with usb
2. enter adb shell
    adb shell
3. find out apps package name
    pm list packages | grep "app name"
4. adb uninstall or pm uninstall

Rooting a Nook Simple Touch 1.2.1 and Power Optimization

http://blog.shanock.com/rooting-a-nook/

Guide/HowTo/Tips'nTricks - The perfect Nook Simple Touch Setup
Nook Simple Touch (N2E) power management / battery optimization
http://forum.xda-developers.com/showthread.php?t=1933615


 nice tutorial about getting information 
http://www.androidsnippets.com/get-installed-applications-with-name-package-name-version-and-icon 

Android Debug Bridge
http://developer.android.com/tools/help/adb.html


Following are the basic commands which we usually use :
http://forum.xda-developers.com/showthread.php?t=1521097

pull - to copy file/dir from Xoom to computer
push - to copy file/dir from computer to Xoom , we will call it "X"
delete - delete file/dir from X
install – install apps on X [either on SD Card or internal storage]
reboot - reboot your X

The following command, (pull) takes the file avi.apk from the device and saves it as file.apk to the Android Tools directory of computer. 

Pull 
Code:
Code:
 adb pull /system/app/avi.apk file.apk
Push
The following command will copy avi.apk file as happy.apk, from the computer Android tools folder to /system/app of the device
Code:
Code:
  adb push avi.apk /system/app/happy.apk
Delete :
The following command removes file avi.apk
Code:
Code:
  adb shell rm /system/app/avi.apk
Install :
adb can also be used to install apks. Place the downloaded apks in C:/ drive. for eg, I have placed angrybirds.apk in C:/ drive of my computer. To install it, just run the following command.


Code:
Code:
 adb install angrybirds.apk
By above command it will install to internal storage. 
*You can also install to SD card by -s switch. (example below)

Code:
Code:
adb install -s angrybirds.apk
Reboot :
The following command will reboot your (device)
Code:


Code:
 adb shell su reboot