[Q] what is adb shell? - Galaxy Tab General

Please let me know about adb shell, how to transfer files from pc to GT, i am totally new on this. Please me how to use adb shell?

adb.exe is a program that runs on your windows pc, and is a part of the android software developer kit, sdk, distributed for free. adb, android data bridge, lets us transfer files and execute commands between your phone and pc.

thank you rangercaptain for the clear answer.
also I was lacking this piece of info.
now it seems I have new hurdle to overcome, I'm based in Shanghai and it seems that I cannot download SDK. I get the typical 'time out' error when I try to go to both: code.google.com/android/download.htm and developer.android.com/sdk in 99.9% of the time you get these errors, it means the site is blocked.
any suggestions for mirror sites....I haven't been able to find one.
thanks!

thanks rangercaptain i was trying sim unlock as rotohammer says in his post put adb shell code and do big copy paste, will running adb.exe allows me to copy paste code as rotohammer says? thanks

tabing said:
. . . i was trying sim unlock as rotohammer says in his post put adb shell code and do big copy paste, will running adb.exe allows me to copy paste code as rotohammer says?
Click to expand...
Click to collapse
Yes, that is exactly correct. It is a very cool, very smart method for us non-coders to unlock our tabs.
Make sure the first command you execute is "adb devices" to verify your connection and drivers. Copy everything from Roto's post. then right click in the command window, and select Paste from the pop up menu. Wait a minute ... done!

wjv144 said:
I'm based in Shanghai and it seems that I cannot download SDK. I get the typical 'time out' error when I try to go to both: code.google.com/android/download.htm and developer.android.com/sdk in 99.9% of the time you get these errors, it means the site is blocked.
any suggestions for mirror sites....I haven't been able to find one.
Click to expand...
Click to collapse
I googled "android sdk" and came up with a few links. Here is a promising one:
http://developer.android.com/sdk/index.html
Choose the most recent. Also you will need drivers for your pc if you don't use windows 7. Again, google or search this galaxy tab forum.

tabing said:
Please let me know about adb shell, how to transfer files from pc to GT, i am totally new on this. Please me how to use adb shell?
Click to expand...
Click to collapse
Here is a website that I used to set up adb in general &
which also has a list of commands
http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/
Once you have followed all the steps explained in here to set it up,
whenever you want to "send a command" over to your GT, you ...
1) first run "cmd" on your Windows device
2) and when the cmd windows pops up enter:
cd\
cd AndroidSDK\tools\
adb devices
(to check if your device really is listed)
.. and then, run the actual command

developer.android.....is blocked. I googled untill 2 in the night and found a few local stored outdated version of SDK. One of them actually wanted to update itself, so I think I'm ok now
thanks again

Drivers for pc, and putting adb.exe and any file you want to send to the tab in tools directory are the two keys for success

Thanks to all, worked. I give you guys kudos via thank meter.

That was a good exchange of thought! XDA rocks!

Related

Google Maps Update Fail

I got a Market notification that the new Google Maps was avail, with the GPS turn-by-turn navigation. After downloading I get the message "Install Unsuccessful." I'm assuming this is because I am running Cyanogen's mod. Any workround? A straight APK hosted somewhere? Sorry to be a nub, do apps need to be ported/resigned to modded ROM's?
Have you got Android SDK installed? If so, you can use the famous "adb" tool to solve the problem. If your phone is rooted - and I assume it is, it takes only three commands. Connect your phone to your PC and from the command line interface issue the following commands:
adb remount
adb shell rm /system/app/Maps.apk
adb uninstall com.google.android.apps.maps
And then on your phone go to the Android market and install Google Maps again.
HTH,
@Pijar - Thanks for this quick and painless solution. Found it within seconds of starting my search and your answer was concise and accurate.
great, thanks
worked for me too!
Pijar said:
Have you got Android SDK installed? If so, you can use the famous "adb" tool to solve the problem. If your phone is rooted - and I assume it is, it takes only three commands. Connect your phone to your PC and from the command line interface issue the following commands:
adb remount
adb shell rm /system/app/Maps.apk
adb uninstall com.google.android.apps.maps
And then on your phone go to the Android market and install Google Maps again.
HTH,
Click to expand...
Click to collapse
NOTE: This will only work inside the United States. If you live outside of the US, or even live inside and want Google Nav to work for you outside of the US, you need to install the tweaked version that works everywhere Google Maps works.
how the hell do I get this to work???
Am I supposed to use the windows command line? OR... is there a specific command line interface buried within the Android SDK tools?
Sorry if this sounds like a completely retarded question, but I have yet to really use the Android SDK and have no idea as to WTF i'm doing!! LOL!
rbrainard said:
how the hell do I get this to work???
Am I supposed to use the windows command line? OR... is there a specific command line interface buried within the Android SDK tools?
Sorry if this sounds like a completely retarded question, but I have yet to really use the Android SDK and have no idea as to WTF i'm doing!! LOL!
Click to expand...
Click to collapse
rbrainard, yes, you should use your command line (cmd.exe) utility, if you are using Windows. I have not specified it, because I wanted the instruction to be universal (I personally work on Linux). So, after installing Android SDK, you should enter the command line, change directory to the directory where you installed the SDK, there you should enter the "tools" subdirectory, and there you will find the "adb" tool, which should let you execute the commands I specified in my post.
I do not think your remark to be "retarded" , just the opposite, sometimes "simple" answers are not that obvious to people who start to deal with some solutions - what I really find annoying are "use google" answers when sometimes it is not such a big deal to post the answer and it is not always so easy to find the correct solution while searching the net.
Thanks, just what I was looking for.
Pijar said:
Have you got Android SDK installed? If so, you can use the famous "adb" tool to solve the problem. If your phone is rooted - and I assume it is, it takes only three commands. Connect your phone to your PC and from the command line interface issue the following commands:
adb remount
adb shell rm /system/app/Maps.apk
adb uninstall com.google.android.apps.maps
And then on your phone go to the Android market and install Google Maps again.
HTH,
Click to expand...
Click to collapse
thanks this worked.
Pijar said:
rbrainard, yes, you should use your command line (cmd.exe) utility, if you are using Windows. I have not specified it, because I wanted the instruction to be universal (I personally work on Linux). So, after installing Android SDK, you should enter the command line, change directory to the directory where you installed the SDK, there you should enter the "tools" subdirectory, and there you will find the "adb" tool, which should let you execute the commands I specified in my post.
I do not think your remark to be "retarded" , just the opposite, sometimes "simple" answers are not that obvious to people who start to deal with some solutions - what I really find annoying are "use google" answers when sometimes it is not such a big deal to post the answer and it is not always so easy to find the correct solution while searching the net.
Click to expand...
Click to collapse
Makes absolutely perfect sense now. I followed your instructions to the "T" and after reboot, Google Maps was no longer in my list of programs.
I then went to the Market and proceeded to try and install the latest version and received the same error: "Installation Unsuccessful"...
UPDATE:
Today I get a different error: "Incompatible Upgrade".
Does anyone have a copy of the APK file for Google Maps?
Okay, nevermind... I have it fixed now.
Placed the Maps.APK in my C:\ directory
ADB Remount
ADB Push C:\Maps.apk /System/app
Viola!
Credit goes to MRAndroid
http://forum.xda-developers.com/showpost.php?p=5033339&postcount=50

How to push files through ADB

Prerequisites have...
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
usadevil7193 said:
hi mate...i m new to android..i own a nexus1..hav rooted without unlockin d bootloader..i am tryin to push d track ball to wake mod...evry time i type adb remount it says permission denied..any ideas to get things workin...???????
Click to expand...
Click to collapse
Welcome to XDA and Android! Are you trying to get help for your Nexus One? This forum here is specifically for the HTC Hero CDMA.
You will probably find better and more specific help in the Nexus One forums which are here: http://forum.xda-developers.com/forumdisplay.php?f=556
Great post, very easy to follow, thank you.
yea I'm trying to do this, over and over, but with not luck. i have sdk on my pc and im running the cmd prompt to run adb remount & devices and its not picking up the phone, wth is going on, plz help
this also works for the samsung Galaxy S in recovery mode.
mikeybonez28 said:
yea I'm trying to do this, over and over, but with not luck. i have sdk on my pc and im running the cmd prompt to run adb remount & devices and its not picking up the phone, wth is going on, plz help
Click to expand...
Click to collapse
mine shows up but then says error, device offline
hi, i have adb recognizing my phone, but i still can't seem to push the files over.... every time i try, i get 'cannot stat 'su' : No such file or directory'. i have made sure over and over to put the files in the same folder where adb is.... actually i have tried placing the files in the tools folder, as well as the platform-tools folder, and i keep getting that error when i try to push anything.
any suggestions? thx
yogi2010 said:
hi, i have adb recognizing my phone, but i still can't seem to push the files over.... every time i try, i get 'cannot stat 'su' : No such file or directory'. i have made sure over and over to put the files in the same folder where adb is.... actually i have tried placing the files in the tools folder, as well as the platform-tools folder, and i keep getting that error when i try to push anything.
any suggestions? thx
Click to expand...
Click to collapse
i had the same issue with something i was trying to push. I think you need to make sure you have exactly the same file name like caps and all. i was trying to push rootexplorer.apk and i got the same message but i then changed it to RootExplorer.apk and it work.(notice the difference in caps)
just watch this and it'll explain everything.
http://www.youtube.com/xdadevelopers
Does it matter where sdk is installed my file path is
C:\Program Files\Android\android-sdk\tools
instead of
C:\android-sdk-windows\tools.
I just installed it in the default location.
I type adb remount and get the not recognised command.....
Thanks.
I don't think my phone is being picked up?
{LCD}Stelios said:
Does it matter where sdk is installed my file path is
C:\Program Files\Android\android-sdk\tools
instead of
C:\android-sdk-windows\tools.
I just installed it in the default location.
I type adb remount and get the not recognised command.....
Thanks.
I don't think my phone is being picked up?
Click to expand...
Click to collapse
Make sure your have the drivers for your phone installed first of all.....Then, in your command prompt you have to change directories to the sdk (which you made harder by not installing to C:\
Try: cd Program Files\Android\android-sdk\tools
Then type: adb devices
That should return "xxxxxxdevice" connected....Then you know you have it set up.
Look in kyouko sig he has all the commands for adb
Sent from my HERO200 using XDA App
Bierce22 said:
just watch this and it'll explain everything.
http://www.youtube.com/xdadevelopers
Click to expand...
Click to collapse
great video arse....thanks for the help donkey
Flashing fresh ROM via ADB in Linux
Hello there.
M volumeUp and VolumeDown buttons are broken on my rooted Desire HD, so I cannot go through CWM any longer.
With regard to this post, I would ask the followings:
1) can this method be used to flash a new ROM (i.e. Coredroid, Leedroid..) without the need of those 2 buttons ?
2) My PC runs Linux. How does it work with this O.S. ?
Thanks
paolo
pacut said:
Hello there.
M volumeUp and VolumeDown buttons are broken on my rooted Desire HD, so I cannot go through CWM any longer.
With regard to this post, I would ask the followings:
1) can this method be used to flash a new ROM (i.e. Coredroid, Leedroid..) without the need of those 2 buttons ?
2) My PC runs Linux. How does it work with this O.S. ?
Thanks
paolo
Click to expand...
Click to collapse
There is a thread somewhere on how to flash without a SD card and flashed using adb I believe, but don't take my word for it. Adb works fine with Linux, just have to set it up differently. Look in my sig and select the compile aosp on Ubuntu one and follow instructions on getting the USB set up.
Sent from Dorian's HTC Hero CDMA
Yes, I saw it. It's http://forum.xda-developers.com/showthread.php?t=911228
The fact is...still have to navigate through menu via VolumeUp/volumeDown buttons
Maybe through ROM manager, premium, I can install ROM direclty.
I am gonna trying
YES ! It works !
Hi I need help. I accidentally wipped my phone in CWM and now I'm trying to use adb push to push the update.zip into my phone sd everything seems to work but then in CMW it says there are no files..
any suggestions?
[Edit]
nevermind
I kept trying different locations
not sure which one did the trick but I'll list the one's I tried
so \update.zip /sdcard/
.... /sdcard/update.zip
(note I put "/update.zip" thinking maybe it needed to be reallocated to the same file/destination
Can i use adb push *.apk /system/app to push several files at once, and then repeat but using *.odex instead of *.apk? I keep ending up getting the same error, and i want to find out which app is messing with me...
rulermon said:
Prerequisites have...
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
Click to expand...
Click to collapse
Hey guys ...
I have also rooted my phone , everything was OK until one day i tried to write something to /system/app and i recieve this error:
in Addition , i am writing "adb shell" and it shows me $
if i am doing adb shell --> $ --> su --> it shows #
Can some1 knows what is the problem?

[Q] assiatance with adb please any one

hi guys im getting anoyed with my pc and phone now ive followed so meany tutorial etc on how to install adb but still not getting any where so far i have done
1. downloaded sdk from code.google.com
2. extracted to c:/android-sdk-windows
3.installed htc wildfire drivers
4.created a path on enviromentable variuble
5.ive loaded the skd.exe
6. ran cmd and ran adb and adb devices but my pc will not reconise this command any adice please thanks
ps ive also tryed using qtaADB it connect to the phone but dnt show any thing frustrated now lol thanks daddyspud
First download adb for windows from " http://developer.android.com/sdk/ ".
then u will get a file named " android-sdk_r08-windows ".rename it as "Android SDK" after extracting.
download proper driver for your phone and install them .now move "Android SDK" to root of hard drive that is to c\Android SDK...
now update the adb using SDK manager that is inside Android SDK.all packeges even usb drivers.
connect the phone via usb and windows should recognize it as android phone .
now take "cmd".command prompt and type the following code .
cd\
cd Android SDK\tools\
adb devices
Now Adb is set if it shows your phone code ..
Sorry about my english .
I had a hardtime making my computer recognize my wildfire, I had to manipulate the driver to make it find it. just google it and you shall find .. if thats the problem ..
thanks worked a dream cheers buddie
They changed the location of the adb.exe file with the new SDK release using the example given would be :-
cd\
cd Android SDK\platform-tools\
easier in my opinion to add to path in windows
c:\android sdk\platform-tools\adb.exe
make sure u add java.exe to path aswell
Hope this helps
ok i got that and it worked, ie picked up my device, then what do i do?
magpie22 said:
ok i got that and it worked, ie picked up my device, then what do i do?
Click to expand...
Click to collapse
Well what do you want to do with adb?
run the sdk but i get errors when i start it "error 2" cant find file.
Failed to get the adb version.
Edit - Never mind i have sorted it.

ADBWireless

I've seen a few posts mentioned how easy using adbWireless app, instead of using USB. However, I've tried and never work. I don't now why people saying it's easy or simple to use, based on different of definition of "easy"
On the NC side, it asked to "adb connect 192.168.xx.yyyy:5555"
I typed that on the Command Prompt on PC running W7, always get "adb is not recognized as an internal or external command, operable program or patch file."
Am I missing something here?
Thought I must need to get the SDK installed, I follow this link:
http://www.androidcentral.com/sdk-driver-root-oh-my
In that instructions of Step 1, the author said "Unzip the download with your favorite archiving tool and drag the folder you extracted into your Workspace. Don't open the folder, just drag the whole thing over. That's it. The Android SDK is now installed."
Is that true? That's it? no need to run any executable file? just drag the folder over and SDK suddenly get installed somehow? Really?
Any input is welcomed.
Ended up installing both SDK and usb driver.
Using adbWireless, cannot connect to it then suddenly it does, don't even know why or what I have done.
I'm start thinking the culprit is my laptop.
"adb devices" always returns with no devices regardless using adbWireless or USB cable.
Gotta tried on different computer.
Sounds like you need to CD to your tools folder in the sdk.
Sent from my LG Optimus V using Tapatalk
You bet.
I CD'ed to the "platform-tools" directory where the adb.exe resided.
Still nothing, even though trying on a different PC.
I guess I've followed the incorrect instructions or at least, an out-dated one.
votinh said:
You bet.
I CD'ed to the "platform-tools" directory where the adb.exe resided.
Still nothing, even though trying on a different PC.
I guess I've followed the incorrect instructions or at least, an out-dated one.
Click to expand...
Click to collapse
If you use adb connect ###.###.###.### (you only need ": port" if you change from default of 5555) then issue adb devices it should list the nook with its ip address as the device id after it is connected.
One thing to be aware of with adb wireless... if the nook is rebooted with it enabled... you will have to cycle adb wireless for it to work.
I actually tried to connect both with and without xx:5555

Trying to root but can't get ADB working

I've finally decided to try to root my G2 but can't get past the ADB setup. I downloaded the SDK, but when I open the manager and try to install platform tools it goes through the motions and then tells me nothing was installed. When I open a command prompt and type "ADB devices" it doesn't recognize anything. What am I doing wrong??
EDIT: specifically, when I try to install platform-tools it tells me it couldn't create a directory and nothing was installed.
66 people have read this and nobody has any suggestions to help?
i think you miss the 1st procedure....
you must have the unknown resources and the usb debbuging enabled.....
then you can proceed to your super one click rooting.....
I have a problem after rebooting my PC: <Java not found...> Reinstalling doesn't help, adding environment variables too. Any idea?
Just root using the rage/visionary method. No adb needed and very easy to do. Here is the linkhttp://forum.xda-developers.com/showthread.php?t=834228
Sent from my SilverBullet 'HTCDesireZ running CM7'
juvanni said:
i think you miss the 1st procedure....
you must have the unknown resources and the usb debbuging enabled.....
then you can proceed to your super one click rooting.....
Click to expand...
Click to collapse
I don't understand? I'm trying to root following the recommended wiki instructions, and I haven't been able to get adb to work so I haven't gotten past that step.
Are you running windows x64? Cause the android installer has issues detecting java on x64 systems.
When it says 'Can't find java' or whatever the error is, click back, then next again, it should find it the second time around. Well thats what happened for me anyway.
-Nipqer
If you're on froyo just use the app z4 root or universal androot
You can also use superoneclick root 2.11
Its very easy and it only take about 3 minutes
Stewie just said that!
I appreciate the help so far, but my problem is I have gingerbread and everything I've read requires froyo for root, and the only way I've read to downgrade uses ADB, so any non-ADB rooting method still won't work for me. I've followed the "ADB for dummies" thread and the other instruction thread and everything seems fine, but when I type in the first command for the downgrading it says adb isn't a recognized command. Am I in the wrong command prompt? I feel like its probably something really dumb I'm doing or not doing but for the life of me I can't figure it out.
Navigate to the folder adb is in.
Hold shift, right click in the folder (make sure nothing is selected)
select 'Open command window here' (or something along those lines)
Adb should work.
-Nipqer
OK, so I'm definitely in the right folder, I read and followed ADB for Dummies thread. Trying to follow this direction:
"Run the following command to verify the exploit has access to what it needs. (Only the first line is the command. The second line should be the result returned if all goes well.)
Code:
$ adb shell cat /dev/msm_rotator
/dev/msm_rotator: invalid length"
When I type that in, should there be spaces between the "adb" and "shell"? Should there be a space after the command prompt and before "adb"? I've tried several variations of it and it keeps telling me "adb is not recognized as an internal or external operable program or batch file."
ok you need to run the command from the folder with adb.exe in it, type it as adb<space>shell<space>cat<space>/dev/msm_rotator
If you are getting an error search for adb.exe and once found try the command again from this folder,if as you say you are in the right folder then I think you will have to reinstall adb as I just ran the command in the form above and it works so if you still get an error then something has gone wrong with the install
P.S Another way to make sure that adb is working and recognises your phone is to type adb devices, if your phone is attached and recognised then it will return a number
Thank you! I had to uninstall and reinstall the package, I don't know what was wrong but it seems to be working now. Also, I knew I was probably doing something stupid, and I was. I wasn't in the platform-tools directory for my command prompt, I was in the TOOLs directory. Just so I'm clear, every command I type into the terminal should be in the Platform-tools directory, correct?
Now, assuming I can follow all the other directions with no problems, once I get to the downgrade pushing steps, I will lose all my current settings, right? It will be a fresh froyo 2.2 like it came to me originally? Other than using Appbrain to back up my current apps, how else should I make a backup?
Final question, do I need to follow the temp root directions and push the downgrade all at one time? Or can I do the temp root and come back at a later time to push the downgrade?
First problem solved then!
Yes but follow this Step 4
Now we need to update your Path variable. This lets you run adb on your PC from a command window no matter which directory you are in (which makes things a lot easier). If you don't setup your Path, then every time you want to run adb, you will either have to type the whole long pathname where you put adb, or cd to where you've put adb and run it from there (which could be inconvenient if you are transferring files to/from your phone).
On your PC, right-click on "My Computer" and select "Properties". (on Vista, click on "Change Settings"). Go to the "Advanced" tab, then select "Environment Variables". Find the "Path" variable in the list of variables that it shows (you might need to scroll), and then double-click on that entry to edit it. Add the full path of the "tools" and "platform-tools" folders of the SDK to your path. e.g. if the SDK has been installed in "c:\Program Files\android-sdk-windows", then add to your Path "c:\Program Files\android-sdk-windows\tools;c:\Program Files\android-sdk-windows\platform-tools" (Please Note - don't put any spaces between the semi-colon and pathname, otherwise it won't work !)if you want to.
Once done you can use ADB from the command prompt in ANY folder,very handy IMO.
If I was you I would set aside enough time and see it through,no point to temp rooting alone.
Get Titanium backup from the market an absolute essential app with this you can backup,upload to dropbox(Another essential app) uninstall apps and a host of other useful tools.
Read the guide first as well,good luck.

Categories

Resources