• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root How-to Thread For ADB SHELL

Is the Thread Helpful enough to sticky it?

  • Yes

    Votes: 48 96.0%
  • No

    Votes: 2 4.0%

  • Total voters
    50

BH_MAN

Android Expert
Feb 17, 2010
1,381
1,667
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....

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.
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..
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...
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
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
Push apps back to phone from the computer
adb push app /system/sd/app
adb push app-private /system/sd/app-private
Delete existing apps on SD
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 :D
HAHA LMAO we posted the same video, I'll delete mine!
 
I have tryed to get this going for a few days now with no luck. I have tryed different drivers all ran with signed drivers disabled. I've tryed a few cables and 3 different machines. Everytime i type in adb shell it says device is offline. I type in adb devices and it shows t939 device offline. I have usb debugging on and it set to samsung pc studio mode. i want bhmans rom badly... im not even gonna get this fabled update anyways. any help would be very much appreciated.

P.S. i use win7 64bit ultimate, My other 2 machines are running winxp pro and win 2000.
 
Upvote 0
Assuming you are running Windows...

You must download the Android-SDK (Android SDK | Android Developers) Extract to the C:\.

Then you must install the drivers for the Behold 2. Drivers can be found in the following file http://shrunk.me/uvij6.zip
That file also include the ODIN files which allow you to flash back to completely stock (out of factory) for your phone. For ODIN instructions please reference this post: http://androidforums.com/377007-post8.html

Now when you plug-in the phone via the USB, it will ask to install drivers and point them to the Behold 2 drivers.

Assuming that you are running the stock Touchwiz you must put your phone into a mode that adb will work. On Touchwiz you go to Settings>>Application Settings>>Development>>USB Debugging (put a check mark). Then go to Settings>>Phone Settings>>USB Settings>>Samsung PC Studio, click SAVE. It should then install the ADB drivers. If not toggle between Mass Storage, click Save then click Samsung PC Studio and click save.

Open a command prompt windows (Start>>Run>>CMD) then
Code:
cd c:\android-sdk-windows\tools
adb shell

This will get you the adb shell onto the device, allowing you to enter the commands to install the MOD.

Make sure to extract the files from BH_Man onto the root of your SDCARD and make sure its then mounted on the phone. Good Luck.
 
  • Like
Reactions: ltlrags
Upvote 0
I see it in device manager. I have not seen anything about usb debugging. I toggled it in the phone and nothing showed up...

Hit Menu on the Phone ( Not settings in the Launcher ).

Menu > Settings > Applications > Development > USB debugging

After a Phone reboot, be sure to toggle off, then back on.

If you're running a Full stock Rom....
Pull down the Menu bar ( Notification bar )... and

Notification Bar > Phone Tab > USB settings > Samsung PC Studio
( Then follow the USB Debugging how-to ).
 
Upvote 0
After SDK is setup & Driver's are installed...

Hit Menu on the Phone ( Not settings in the Launcher ).

Menu > Settings > Applications > Development > USB debugging

After a Phone reboot, be sure to toggle off, then back on.

If you're running a Full stock Rom....
Pull down the Menu bar ( Notification bar )... and

Notification Bar > Phone Tab > USB settings > Samsung PC Studio
( Then follow the USB Debugging how-to ).
 
Upvote 0
ok so its probably been posted many many times and i know this because i have read 2 post on here and many other post from different web sites and i have read and tried so many times im fed up and really want this to work.

I have done everything to a T to try and get this working with a no working status happing.

SO IF THERE IS ANY ONE OUT THERE HAVING THIS SAME PROBLEM AND FIXED IT please please email me or post reply.

i have tried uninstalling drivers reinstalling. i have reset phone. i have done every thing possible in my right mind from reading to try and get it recognized by adb but still cannot
 
Upvote 0
Do not have any of those things like I said I did a factory reset on it just to make sure. Yes I can mount as removable drive. I'm also using windows xp 32bit.

I mean I just don't freakin understand why its not working.

I sat there for 4 hours yesterday trying to get recognized by adb....

I am savy with these things computers phones blah but I just can't figure this one out
 
Upvote 0
I am no tech guy thats for sure, but when you plug your phone to your cpu dont mount it set the phone settings to studio then start up cmd and make sure you got debugging on that did it for me. Since I got this thing rooted it has been great, so push on man it is really worth it

I donot mount the question asked before was does it mount as in are the usb drivers working.. I said yes. And i know its worth it just cant get the behold to be recognized which is making me mad.

I have downloaded the manual drivers still nothing. is there any information for any of the tech guys here that they need to see what the problem is.. DXdiag? phone version firmware version so on?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones