GSM-Forum

GSM-Forum (https://forum.gsmhosting.com/vbb/)
-   Android Development and Modding (https://forum.gsmhosting.com/vbb/f831/)
-   -   [GUIDE] Basic adb/shell commands for noobs (https://forum.gsmhosting.com/vbb/f831/guide-basic-adb-shell-commands-noobs-1682965/)

drozd 07-05-2013 11:50

[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


protox 109 08-31-2013 19:24

Good work, but add other commands too like for fastboot and mmpeg

Sent from my Nexus S using Tapatalk 2

praveen26 09-24-2013 15:49

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

protox 109 10-01-2013 17:21

Quote:

Originally Posted by praveen26 (Post 9755581)
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

NOVUSORDO 02-06-2014 17:56

is there any way to put in donwload mode using adb commands? thanks

Smae64 05-04-2014 19:20

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.

allumts 05-19-2014 13:33

Quote:

Originally Posted by Smae64 (Post 10285875)
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...

mribraqdbra 01-16-2018 10:28

it's important comands for adb Thanks you.

gopidas 01-20-2018 07:01

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.

rajpatel26 02-03-2018 11:46

nice Guide. Bro try to add more

Muhammad43 05-09-2018 14:24

i want to flash ny nokia 3 (TA-1032) with adb commands but its not getting recovery and fastboot mode plz help me seniors

owais a 11-06-2018 18:34

need qualcomm 9008 mode commands and mtk metamode commands

KP@2016 01-08-2019 11:58

Great work. You should add some more stuff about it!

lexar21 02-13-2019 19:54

may paraan ba para maformat yung android gamit ang adb command?

Ericknoz 07-14-2019 17:14

PLEASE POST Some Fastboot cmds with oem functions


All times are GMT +1. The time now is 09:46.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -

Page generated in 0.15507 seconds with 7 queries

SEO by vBSEO