GSM Shop GSM Shop
GSM-Forum  

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.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > GSM & CDMA Phones / Tablets Software & Hardware Area > Android based Phones / Tablets > Android Development and Modding


Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2013, 11:50   #1 (permalink)
Insane Poster
 
Join Date: Dec 2001
Location: USA
Posts: 76
Member: 7805
Status: Offline
Thanks Meter: 184
[GUIDE] Basic adb/shell commands for noobs


Basic adb/shell commands for noobs

Here is a list of some of the adb and terminal command I have used it Android frequently. I found that I was always having to look up these commands so I figured I would start keeping track of the common ones in case they can help anyone else. If any of these needs corrections or if you have a good one to add please post it.

Note, I type "cd C:\Android" to get to my Android folder before doing these commands in the command prompt in windows. That way when I do things like pull apps they end up in "C:\Android\apps", same thing if I want to send I file to my phone I throw it in my Android folder and send it to the phone from there.

Through ADB

Pull apps off phone onto computer

Code:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
Push apps back to phone from the computer

Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Delete existing apps on SD

Code:
adb shell rm -r /system/sd/app
adb 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 /sdcard
adb shell rm /sdcard/update.zip
adb 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 boot
fastboot erase recovery
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash userdata data.img
fastboot flash recovery recovery.img
fastboot reboot
  Reply With Quote
The Following 18 Users Say Thank You to drozd For This Useful Post:
Show/Hide list of the thanked
Old 08-31-2013, 19:24   #2 (permalink)
Junior Member
 
Join Date: Aug 2013
Posts: 14
Member: 2011296
Status: Offline
Thanks Meter: 13
Good work, but add other commands too like for fastboot and mmpeg

Sent from my Nexus S using Tapatalk 2
  Reply With Quote
The Following User Says Thank You to protox 109 For This Useful Post:
Old 09-24-2013, 15:49   #3 (permalink)
Junior Member
 
Join Date: Jun 2013
Location: india
Posts: 37
Member: 1966092
Status: Offline
Sonork: 100.1647263
Thanks Meter: 6
bro help me ... i connect my android mobile and command in command prompt but it says that the given syntax is invalid and could not find the prompt ... thanks before ... explain me from first and gave me drivers for android ..thanks
  Reply With Quote
The Following User Says Thank You to praveen26 For This Useful Post:
Old 10-01-2013, 17:21   #4 (permalink)
Junior Member
 
Join Date: Aug 2013
Posts: 14
Member: 2011296
Status: Offline
Thanks Meter: 13
Quote:
Originally Posted by praveen26 View Post
bro help me ... i connect my android mobile and command in command prompt but it says that the given syntax is invalid and could not find the prompt ... thanks before ... explain me from first and gave me drivers for android ..thanks
Firstly u need drivers for your device (google it)
Now download the latest adb version
And in the folder where you downloaded the adb and the other two files, shift+right click and select open command window
Now you can use the adb commands once you connected your device

You can find all the adb files in my devhost :
http://d-h.st/vhZ

Now it will be done

DONT FORGET TO THANK ME MAN ?!!!

Sent from my Nexus S using Tapatalk 2
  Reply With Quote
The Following 6 Users Say Thank You to protox 109 For This Useful Post:
Show/Hide list of the thanked
Old 02-06-2014, 17:56   #5 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 21
Member: 711770
Status: Offline
Thanks Meter: 2
is there any way to put in donwload mode using adb commands? thanks
  Reply With Quote
Old 05-04-2014, 19:20   #6 (permalink)
Junior Member
 
Join Date: May 2014
Posts: 22
Member: 2179598
Status: Offline
Thanks Meter: 0
I can get the command prompt but my phone is dead so I need to find a way to get my PC to 'talk' to it somehow.
  Reply With Quote
Old 05-19-2014, 13:33   #7 (permalink)
No Life Poster
 
allumts's Avatar
 
Join Date: Apr 2011
Age: 58
Posts: 16,408
Member: 1564612
Status: Offline
Thanks Meter: 12,343
Donate money to this user
Quote:
Originally Posted by Smae64 View Post
I can get the command prompt but my phone is dead so I need to find a way to get my PC to 'talk' to it somehow.
For "to talk" in you Samsung Dead, (not write model), cannot via adb command but only via Jtag or Boot Card if you are lucky and is Sw problem...
  Reply With Quote
The Following User Says Thank You to allumts For This Useful Post:
Old 01-16-2018, 10:28   #8 (permalink)
Insane Poster
 
Join Date: Jul 2017
Location: Unknown
Posts: 77
Member: 2741086
Status: Offline
Thanks Meter: 19
it's important comands for adb Thanks you.
  Reply With Quote
Old 01-20-2018, 07:01   #9 (permalink)
Insane Poster
 
Join Date: May 2002
Location: INDIA-KARNATAKA
Age: 48
Posts: 61
Member: 12302
Status: Offline
Thanks Meter: 22
Quote:
is there any way to put in donwload mode using adb commands? thanks
adb reboot download
use this command to put samsung handset normal to download mode.
  Reply With Quote
The Following User Says Thank You to gopidas For This Useful Post:
Old 02-03-2018, 11:46   #10 (permalink)
Junior Member
 
Join Date: Jul 2017
Posts: 11
Member: 2741405
Status: Offline
Thanks Meter: 1
nice Guide. Bro try to add more
  Reply With Quote
The Following User Says Thank You to rajpatel26 For This Useful Post:
Old 05-09-2018, 14:24   #11 (permalink)
Junior Member
 
Join Date: Jan 2015
Posts: 32
Member: 2334147
Status: Offline
Sonork: 100.1680702
Thanks Meter: 2
i want to flash ny nokia 3 (TA-1032) with adb commands but its not getting recovery and fastboot mode plz help me seniors
  Reply With Quote
The Following User Says Thank You to Muhammad43 For This Useful Post:
Old 11-06-2018, 18:34   #12 (permalink)
No Life Poster
 
Join Date: May 2015
Location: mumbai
Age: 27
Posts: 1,066
Member: 2401939
Status: Offline
Thanks Meter: 682
need qualcomm 9008 mode commands and mtk metamode commands
  Reply With Quote
The Following User Says Thank You to owais a For This Useful Post:
Old 01-08-2019, 11:58   #13 (permalink)
Junior Member
 
Join Date: Jan 2019
Location: India
Posts: 3
Member: 2886968
Status: Offline
Thanks Meter: 1
Great work. You should add some more stuff about it!
  Reply With Quote
The Following User Says Thank You to KP@2016 For This Useful Post:
Old 02-13-2019, 19:54   #14 (permalink)
Junior Member
 
Join Date: Feb 2019
Posts: 1
Member: 2894881
Status: Offline
Thanks Meter: 0
may paraan ba para maformat yung android gamit ang adb command?
  Reply With Quote
Old 07-14-2019, 17:14   #15 (permalink)
Junior Member
 
Join Date: May 2013
Location: SriLanka
Posts: 25
Member: 1945974
Status: Offline
Thanks Meter: 12
Donate money to this user
PLEASE POST Some Fastboot cmds with oem functions
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 



All times are GMT +1. The time now is 16:18.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.22210 seconds with 8 queries

SEO by vBSEO