View Single Post
Old February 13th, 2010, 06:24 PM   #1 (permalink)
BH_MAN
Senior Member
 
BH_MAN's Avatar
 
Join Date: Feb 2010
Posts: 1,382
 
Device(s): Behold 2 w/ BH_MAN Galaxy 1.6 / R7 Do Not PM me With Problem's Post in Thread!
Thanks: 156
Thanked 1,673 Times in 433 Posts
Question How-to Thread For ADB SHELL

Due to the Over whelming Question Regarding how-to do things in Android system regarding ADB, I've Decided to make a thread regarding this Issue..

If you Have to ask a Question, be very clear so we can Keep this thread Clean.. Wiki Located here > ADB - Android Wiki

To Fix ADB in Linux, Visit this Thread > http://androidforums.com/all-things-root-behold-2/60949-adb-linux-replacement-fix-file.html

To start us Off.....

If you would Like to Pull a File / App. First we would do this....

Quote:
adb shell
cd /system/app
ls -l
Now we should have a Huge amount of App's in front of us, now we locate the name of the App we wish to pull Once we Find it, we do the Following.. ( In this example I'll be Pulling the alarmclock.apk )

Next, If still in Command Prompt.
Quote:
exit
running exit will drop you back into Command prompt shell, From there we Running the Following Commands in Blue...
adb pull /system/app/AlarmClock.apk C:\AlarmClock.apk

Now we should have the alram clock app in our Root Directory in C:\

Now to Push the alarm clock app after we made changes to it...

adb push C:\AlarmClock.apk /system/app/AlarmClock.apk


Now we have Pull & Push a File into the system/app Directory.

Now.... Lets say we want to remove an App from the /system/app Directory ( Be careful when doing this, Can cause phone Not to Boot... )

In this example I'll be Removing the AlarmClock.apk from adb shell..
Quote:
adb shell
cd /system/app
rm -r AlarmClock.apk
Now, if the System uses .odex file, do the same regarding those file's as well.... The Command would look like this for .odex removal...
Quote:
rm -r AlarmClock.odex
More Example..

Through ADB
A2SD Commands
If using any A2SD you would run these Commands as well to locate, Remove, Pull or Push.

Pull apps off phone onto computer
Quote:
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
Push apps back to phone from the computer
Quote:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Delete existing apps on SD
Quote:
adb shell rm -r /system/sd/app
adb shell rm -r /system/sd/app-private
Please Post your How-to,

Thanks,
~BH_MAN



Thanks Paul
HAHA LMAO we posted the same video, I'll delete mine!
BH_MAN is offline  
Reply With Quote
The Following 5 Users Say Thank You to BH_MAN For This Useful Post:
bearsfan85 (July 27th, 2010), behold_guy (May 29th, 2010), crump (October 20th, 2011), ltlrags (May 22nd, 2010), mistere372002 (May 7th, 2010)