Welcome to the GSM-Forum forums. |
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|Android based Phones / Tablets For all of your questions relating to the android mobile phones.|
| ||LinkBack||Thread Tools||Display Modes|
|06-09-2012, 20:02||#1 (permalink)|
Join Date: Apr 2011
Thanked 26 Times in 12 Posts
[HOW TO] Basic ADB Commands
If you find this helpful or think it would be helpful to others, tip it for a sticky!
Here's a little guide I put together for you to learn basic adb commands.
I'm posting this thread assuming you already have your SDK set up
^ I believe there is a sticky right below/above this thread on how to do so ^
With that said, let's dive right in!
1. Turn on ADB
Go to Menu > Settings > Applications > Development > USB Debugging
2. Running ADB
Open up command prompt and type your way to the directory you have your SDK in.
Mine is in C:\
So for example, mine would be: cd c:\AndroidSDK/tools
You are now in
3. Basic ADB commands
ADB push (sends files to your phone) -- adb push c:\example.apk /sdcard/example.apk
ADB pull (Receives files from your phone) -- adb pull /system/app/example.apk c:\example.apk
ADB install (installs application) -- adb install c:\example.apk
adb shell (Begins shell connection with phone)
adb reboot (reboots phone)
adb reboot recovery (reboots phone into recovery)
adb reboot bootloader (reboots the phone into bootloader/the white screen)
adb remount (remounts the system)
4. Commands to run while in ADB Shell
cd (changes directories) -- cd /system/app
ls (lists all files in the directory) -- cd /system/app
rm (removes files) -- rm /system/app/example.apk
cp (copies files) similar to cat -- cp /system/app/example.apk /sdcard/example.apk
cat (copies files) -- cat /system/app/example.apk > /sdcard/example.apk
exit (exits shell) -- exit
Might add a little more later if requested.
Hope you learned something!
|06-25-2012, 16:29||#3 (permalink)|
Join Date: Oct 2011
Thanked 125 Times in 64 Posts
|The Following User Says Thank You to ...:::SHAMIM:::... For This Useful Post:|
|06-25-2012, 18:11||#4 (permalink)|
No Life Poster
Join Date: Feb 2006
Location: Rep. Moldova=Romania
Thanked 467 Times in 297 Posts
Better is to type in cmd the comand adb help
and there will be all available comands;
better is to proceed like this instead to search and waste time.
|thread||Thread Starter||Forum||Replies||Last Post|
|How to add a language in 51xx/61xx||tati||Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L )||8||05-21-2013 19:20|
|How to upload a new firmware...||Brand||Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L )||28||08-30-2012 03:40|
|How can I do a Welcome note for my 6110 a dosn't have any one ?||Viper||Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L )||7||07-18-2012 07:57|
|news headlines to gsm phone||mos||Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L )||6||12-18-2011 11:00|
|Copy from one 6110 to another||Leif Nielsen||Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L )||1||06-10-1999 22:36|