Basic Commands :
++++++++++++++++++++++++++++
Following are the basic commands which we usually use :
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
ADB Shell command -
In command prompt, just type
list of all commands will show up.
Examples :
++++++++++++++++++++++++++++
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:
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:
Delete :
The following command removes file avi.apk
Code:
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:
By above command it will install to internal storage.
*You can also install to SD card by -s switch. (example below)
Code:
Reboot :
The following command will reboot your (device)
Code:
Quick tips :
++++++++++++++++++++++++++++
1. The commands are case sensitive.
2. Using adb you will be accessing system files, play commands safely or else you might end up making your device unusable.
RENAME : File or APK -
++++++++++++++++++++++++++++
Linux commands. You 'move' the file from the old name to the new one.
Make sure your phone or Tab has enabled USB debugging, connect it to your computer, on your computer type: adb shell
The command you can use is mv (move a file or rename a file)
mv - renames files, apk ...
Code:
(If it's a system file, you'll will have to have superuser permission and have to make the file system read-write.)
Stubborn Folder Removal -
Intro:
++++++++++++++++++++++++++++
rm - remove files or directories
rm Does not work on directories (unless you use -r, but CAREFUL of this command)
rm -rf /foldername
(This is an example)
This will remove 'stubborn folder' and everything inside that bad boy)
-r = recursive -f = force
if rm -rf complains about the -rf part,
(Try to run):
IMPORTANT: there is no warning to remove the entire folder, once you hit enter it's gone.
-f can also be used as an alternative
Manual RM: http://unixhelp.ed.ac.uk/CGI/man-cgi?rm
How To:
ADB Shell Removal - (we will use BT5 as an example)
++++++++++++++++++++++++++++
1. Connect Xoom
2. Boot into recovery
3. Toggle to internal storage as /sdcard
mount /data
Enter adb shell via pc
(cd to file location) in this case BT5, is in the sdcard directory
(once typed, you will be at.... /data/media prompt)
*Side note ... This works for any other stubborn folder that you want to delete as well...
USE AT YOU OWN RISK - MAKE SURE YOU DO A BACKUP FIRST
If this was helpful Hit The thanks!
++++++++++++++++++++++++++++
Following are the basic commands which we usually use :
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
ADB Shell command -
Code:
adb shell
Code:
adb
Examples :
++++++++++++++++++++++++++++
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
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
The following command removes file avi.apk
Code:
Code:
adb shell rm /system/app/avi.apk
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
*You can also install to SD card by -s switch. (example below)
Code:
Code:
adb install -s angrybirds.apk
The following command will reboot your (device)
Code:
Code:
adb shell su reboot
++++++++++++++++++++++++++++
1. The commands are case sensitive.
2. Using adb you will be accessing system files, play commands safely or else you might end up making your device unusable.
RENAME : File or APK -
++++++++++++++++++++++++++++
Linux commands. You 'move' the file from the old name to the new one.
Make sure your phone or Tab has enabled USB debugging, connect it to your computer, on your computer type: adb shell
The command you can use is mv (move a file or rename a file)
mv - renames files, apk ...
Code:
Code:
[COLOR=Red]mv[/COLOR] filename[COLOR=Red].[/COLOR]old filename[COLOR=Red].[/COLOR]new
Stubborn Folder Removal -
Intro:
++++++++++++++++++++++++++++
rm - remove files or directories
rm Does not work on directories (unless you use -r, but CAREFUL of this command)
rm -rf /foldername
(This is an example)
Code:
[COLOR=Red]rm[/COLOR] [COLOR=Red]-rf[/COLOR] /system/your stubborn folder
-r = recursive -f = force
if rm -rf complains about the -rf part,
(Try to run):
Code:
busybox [COLOR=Red]rm -rf[/COLOR] /foldername
-f can also be used as an alternative
Manual RM: http://unixhelp.ed.ac.uk/CGI/man-cgi?rm
How To:
ADB Shell Removal - (we will use BT5 as an example)
++++++++++++++++++++++++++++
1. Connect Xoom
2. Boot into recovery
3. Toggle to internal storage as /sdcard
mount /data
Enter adb shell via pc
(cd to file location) in this case BT5, is in the sdcard directory
Code:
cd /sdcard #
Code:
rm -r stubborn Folder
*Side note ... This works for any other stubborn folder that you want to delete as well...
USE AT YOU OWN RISK - MAKE SURE YOU DO A BACKUP FIRST
If this was helpful Hit The thanks!
Last edited: