Android basic adb/shell cmd

Through ADB

Pull apps off phone onto computer

Code:
adb pull /system/sd/app appadb pull /system/sd/app-private app-private

Push apps back to phone from the computer

Code:
adb push app /system/sd/appadb push app-private /system/sd/app-private

Delete existing apps on SD

Code:
adb shell rm -r /system/sd/appadb shell rm -r /system/sd/app-private


Through Terminal

Partition SD card - This erases everything on your SD card (*size* being the size of the FAT32 partition)

Code:
$  su# cd /data# wget http://64.105.21.209/bin/lib/droid/sdsplit# chmod 555 sdsplit# /data/sdsplit -fs *size* (add -nc to the end for JFv1.5ADP)


From the Recovery Screen

Sending an update file to your SD card:

Code:
adb shell mount /sdcardadb shell rm /sdcard/update.zipadb push *filename* /sdcard/update.zip


From Fastboot

Restoring a nandroid backup - Start command-prompt/terminal cd to the nandroid folder and enter following commands

Code:
fastboot erase bootfastboot erase recoveryfastboot flash system system.imgfastboot flash boot boot.imgfastboot flash userdata data.imgfastboot flash recovery recovery.imgfastboot reboot

posted on 2010-12-31 13:31  光与影的交替  阅读(499)  评论(0编辑  收藏  举报

导航