I've searched so many forums to answer this, but I found this under another website
This is only my case though, but trying everything else, this was the most simplest (i think)
When you get "error: more than one device and emulator" even though you know there is only one device that is connected to the PC
what you put in cmd is quite simple.
1. adb kill-server
2. adb start-server
3. adb "whatever you were trying to do"
That fixed my problem for good!
Doesn't matter if it's rooted or not!
Don't think this is the problem since my phone was NOT rooted, but adb push and pull all worked without rooting!
Just wanted to help those who might need this.
I apologize in advance if this is a re-post
==============
Raisona
ps this is my first forum
Related
I posted this in another thread but got no response, this thread (http://forum.xda-developers.com/showthread.php?t=502010&page=35)
maybe a new thread will help.
So this is my first venture into the whole ABD thing. I am trying to install the framework mod from Tazz for the HTC music player (as listed here: http://forum.xda-developers.com/show...5594&page=1277 post 12768).
Tazz mentions to “push this http://www.multiupload.com/1WWHXAUN6W
to system/ect/permissions then download and install htc music”
So, running my trusty Win7 machine I downloaded the SDK from the android development site, inserted the correct line in the path and viola, I can enter the CMD prompt and run the adb command successfully. Adb and adb shell both seem to work.
I followed the instructions from here: http://androidforums.com/developer-1...-commands.html and here: http://forum.xda-developers.com/showthread.php?t=502010 for the install.
My problem comes in when I try to push the file to the phone.
Fisrt dumb question is: what phone mode should I be in when running the adb? Standard running mode or booted to recovery? (I thought I read something about being in recovery but at that point it was all a blur).
I have the USB Debugging turned on so I think I am ok there.
I installed the SDK to my C:\Android directory.
I saved Tazz’s file to my C:\Android\Tools directory.
Here is my cmd text (maybe this is where I went wrong):
In the cmd window I CD’d to the C:\Android\Tools directory
adb push com.framework.htc.xml system/ect/permissions
After making sure that I was in the correct dir and all files were also located in the correct dir I am still getting an error, file or directory not found, or something like that.
Sorry for the long post. I figured this would be a good first step (my first adb experience) as it seems pretty benign in terms of me bricking anything but offering a good learning opportunity.
I am running a rooted Eris (KaosFroyo v36).
In looking things thru maybe I need a USB driver for the Eris?
any help is appreciated,
oh, my cmd prompt looks like sh-2# (or something like that)
Thanks
While it may be that you still need to download the appropriate drivers, it seems you are able to get root access so, this is likely not the case.
There are two things which stand out as potential issues in the steps you described. Fortunately, both are super easy.
First and foremost, make sure you have mounted the phone as "read-write."After you have cd'd to the tools folder type "adb remount" (without the quotes) and press enter. If successful, it should respond with "remount succeeded." Congrats, you have now mounted the phone as read-write.
Next, I see errors with your command. There should be a "/" before "system" and it should be "etc" not "ect." Specifically, your command should be:
adb push com.framework.htc.xml /system/etc/permissions/
[The above command of course, assumes that the name of the file you are pushing is indeed named "com.framework.htc.xml" and is in your tools folder.] You'll know it worked if the response in your command prompt indicates the speed and time it took for the push to take. For example, "1234kbps in 3.4 seconds". If you see something resembling that you should be all set. At this point you can reboot your phone and your changes should be in effect. Either unplug and reboot manually or just type "adb reboot" (without the quotes) and press enter.
In regard to your question about whether the phone can be in standard running mode or recovery... It depends on the level of root of the phone but, fully rooted and nand unlocked phones can be adb'd while in standard running mode. My EVO can and it is very likely your Eris can too.
I see
thanks OK.
typo's aside in the thread, my command was missing the / as you have described it. I also did not know about the remount thing. In my reading I thought that was just for the sd card. I will try and put all the pieces together when I get home tonight.
You are correct in that is the name of the file and I do have it in the /tools directory.
Thanks for the help, baby steps (I am learning)
No problem. We are/were all noobs at one point in our lives.
The term "mounting" has slightly different contextual meanings which can be confusing. First off, the /system/ folder is already "mounted" while using adb, however, it is mounted as read-only. So, if you are ever trying to push something to the phone and get an error back that says "mounted as read-only" you'll now know what went wrong. Simply type "adb remount"
and it puts the /system/ folder into read-write mode.
Bear in mind that upon phone reboot the /system/ folder automatically remounts into read-only mode so if you reboot and try to push another file you'll need to remember to "adb remount" again.
With regard to the sdcard "mounting" refers to whether the phone (sdcard) is mounted as a disk drive on your computer. You'll find that if this is the case many adb commands won't work because the sdcard can't be accessed by the phone while mounted on the computer. Therefore, always remember to connect your phone as "Charge Only" when adb'ing.
got it
That did the trick, worked like a charm. Thanks for the help and pointers. I have now pushed my first file...yeah for me!!
Thanks for your help and time.
glad your push worked
I am still trying to get SDK/ADB to connect to my Milestone XT720 phone. Have no idea of why they won't. Have tried all the usual suspects but nothing as of yet. NEED HELP!
So I am currently in the cmd for windows and when I type the "adb push exploid /sqlite_stmt_journals" I get this message:
"Failed to copy exploid to /sqlite_stmt_journals" Read only file system.
What I am doing wrong? Bt the way I am following the post911 guide for the rogers HTC dream and currently in this directory for cmd "C:\adb\platform-tools\" (renamed the folder to adb as I thought I was supposed to do).
All help appreciated!
Update: So my phone wasn't being detected on the computer and I believe that's the reason why. I disconnected and plugged it back in, and did the sync with windows pushed the command and it went through. Followed the rest of the guide and when i typed adb shell i got a dollar sign only. Continued following the guide and I still have the dollar sign instead of "C:\adb|etc.." and the adb shell command wont work.
1. No idea what you're talking about or relating to.
2. Try using "adb remount" then try again.
Scorpia said:
1. No idea what you're talking about or relating to.
2. Try using "adb remount" then try again.
Click to expand...
Click to collapse
Title says Rogers HTC Dream. According to this guide I am trying to follow the command "adb push exploid /sqlite_stmt_journals" and i get the error message stated above.
What can i do to get past this? Adb remount didn't do anything.
Update: So my phone wasn't being detected on the computer and I believe that's the reason why. I disconnected and plugged it back in, and did the sync with windows pushed the command and it went through. Followed the rest of the guide and when i typed adb shell i got a dollar sign only. Continued following the guide and I still have the dollar sign instead of "C:\adb|etc.." and the adb shell command wont work.
Hey
First of all, I'm trying to install an application through adb on my comp, and i was wondering how i could install the apk file on a selected device
like
adb install -s [SERIAL GOES HERE]
but i end up with an error saying "Failure [INSTALL_FAILED_CONTAINER_ERROR]
so, how can i send it to a specific serial? How does it handle the process if there are two devices connected?
Lastly i wanted to know, will adb work without the usb drivers?
Kinds Regards
-Jazerix
Push...
Need some help please!
I recently rooted my Xoom using the one click method and wanted to put a new kernel on but in order to do that I need ADB to work which it doesn't seem to be
I've installed the motorola drivers and my computer can see my Xoom and I can do stuff to it. But when I open a command window and enter and ADB shell, when I type 'adb devices' nothing comes up! and I can't do anything! eventhough the adb will only work when the thing is plugged in!
I've re-installed the drivers and SDK and adb stuff many times and still nothing. Also tried a few things I found on other boards but again nothing. This is reallly starting to get my nerves, please help!
In device manager what does it show? I have:
Android Phone
Android ADB Interface
its just "ADB Devices" not ADB Shell Devices
in device manager my one comes under
portable devices
MZ604
higher up there is also
ADB interface
MOT composite ADB interface
and yeah I type adb shell then adb devices and nothing comes up
ulicquel said:
in device manager my one comes under
portable devices
MZ604
higher up there is also
ADB interface
MOT composite ADB interface
and yeah I type adb shell then adb devices and nothing comes up
Click to expand...
Click to collapse
Well as you can see your device manager and mine say two different things. Mine works. Again its just "ADB devices" I do not type adb shell then devices that works for me yours doesn't seem to. So you might want to try changing to what I have posted and see if it works for you like it works on mine.
right! now I see! and it works lol Thanks alot!!!
don't know why I had to go into adb shell first, anyway one more question for you if you wouldn't mind
I want to put the recovery thing on there so where do I put the recovery.img to push it onto the xoom?
thanks again!
I put it directly in the SDK/Tools folder in other words the same folder as adb.exe
okay cool, thanks again! you're a life saver!!!
ulicquel said:
okay cool, thanks again! you're a life saver!!!
Click to expand...
Click to collapse
No problem man enjoy the rest of your Sunday. Take care..
This was answered a little bit in the S-Off thread and I would like to post it for everyone that has the PJ8310000 device and they are running into device "offline" when using adb devices. This is for Windows 8 only. I had the same problem in OSX, but I believe the solution is the same. I cannot post in the thread in the developer section yet, that is why this is here.
First, if you can't see your device in your device manager, make sure you have the latest HTC Device drivers installed or install the latest version of HTC Sync. This is very important for Windows 8.
Second, you will need to download and install the latest Android SDK. Just "Download From Other Platforms" and choose the appropriate SDK installation. You will need to run the SDK Manager.exe to install the latest tools. Note: ADB and Fastboot have been moved from the "tools" folder to "platform-tools".
Make sure your phone is in debugging mode by going into the Developer Options and choosing "Android debugging."
Find your SDK installation and make sure you are under "platform-tools" folder. You can ctrl-shift-right click on that folder to open a command prompt at that folder location. Saves you time.
Type in the command prompt:
Code:
adb devices
Your device should be listed and probably says Offline. This is normal. Take a look at your phone, you should get a prompt on your phone asking you if you trust the device that is trying to connect to it (this should be your computer). Allow it.
Type in the command prompt:
Code:
adb devices
This time, your device should be listed with the word "device" instead of offline.
To restart the daemon, type the following separately:
Code:
adb kill-server
adb start-server
This is the best I can do for everyone and it solved my problems with no further issues. I am not an expert and this is the only solution that has worked for me.
Thanks, this worked for me.
I did this in Windows 7 SP1 no problem. All I had to so was get the latest Android SDK and replace all the adb/fastboot files I already had and it worked no problems.
If you get permission denied when doing the last "adb shell" command, get adbd insecure from the forums here and run debugging mode insecurely from there.
Sent from my One X using xda app-developers app
Desertman123 said:
If you get permission denied when doing the last "adb shell" command, get adbd insecure from the forums here and run debugging mode insecurely from there.
Click to expand...
Click to collapse
I had this problem because SU was only allowing apps in CM10.1 (4.2.1). I found the solution by enabling the Dev Options via multiple clicks on the Build number until dev options was enabled, then changed Root access to Apps adn ADB.
FYI for anyone else that gets lost like I was.
ok so i can s-off now?
yes get some, 9 steps to s0ff
Ponarona said:
ok so i can s-off now?
Click to expand...
Click to collapse
Yes, you can use the HTC One XL link in the S-Off thread with no issues. I made this to help people with Win8 and trying to get their phones to appear properly in their device manager and to list it under adb devices.
If you get device offline, my issue, I was running android 4.2.2 but had an outdated adb. Just update adb if you still have problems
I know this is exceedingly random, but if you run a mac and can't see your device in adb, and in the past you tried sharing your phone internet with your mac via usb try running this:
sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext
./adb kill-server
I need to do that before every adb session.
I'd be amazed someone actually has those conditions, but hey, it might help someone.
Sent from my HTC One X using xda app-developers app