Problem with adb on Nexus S 4G - Nexus S 4G Android Development

I searched and could not find a definitive answer. I have a fresh out of the box Nexus S 4G. adb installed on my pc and it works fine with my Thunderbolt. I keep getting "operation not permitted". What is the fix for this? Debugging checked.

Didja download the binaries for ur OS?
It should come in with the sdk
Wouldja mind posting a scrnshot of ur terminal/command line?
Thanks!
Sent from my HTC Sensation 4G using XDA App

mathkid95 said:
Didja download the binaries for ur OS?
It should come in with the sdk
Wouldja mind posting a scrnshot of ur terminal/command line?
Thanks!
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
I have the sdk installed and the usb drivers:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Damian>cd c:\android\tools
c:\Android\tools>adb remount
adb server is out of date. killing...
* daemon started successfully *
remount failed: Operation not permitted
c:\Android\tools>
---------- Post added at 11:04 PM ---------- Previous post was at 11:03 PM ----------
mathkid95 said:
Didja download the binaries for ur OS?
It should come in with the sdk
Wouldja mind posting a scrnshot of ur terminal/command line?
Thanks!
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
And this is from my Thunderbolt
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Damian>cd c:\android\tools
c:\Android\tools>adb remount
adb server is out of date. killing...
* daemon started successfully *
remount failed: Operation not permitted
c:\Android\tools>adb remount
adb server is out of date. killing...
* daemon started successfully *
remount succeeded
c:\Android\tools>

Not development. Thread closed. There is a q&a section for a reason.

Related

Newbie to Android...ABD?

So I'm completely new to Android and ADB, I'm usually very good with computers, but I'm having trouble understanding this, LOL. So I'm trying to use the how to's fund on this site...
But when in the command promp I get this:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Ray>cd C:\Android_stuff\android-sdk-windows\tools
C:\Android_stuff\android-sdk-windows\tools>adb devices
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
HT05PHL06074 device
C:\Android_stuff\android-sdk-windows\tools>adb shell
$
Click to expand...
Click to collapse
Says I should get a #
My goal is to removing sprint bloatware as posted in another how to... Sorry for being a noob.
I don't have exact links to hand but goto the Development section and your questions can be answered trough reading the threads.
Don't post a thread asking tho. at least not in that section.
Exactly why I posted in here. I looked in that section and the Hero section. Doesn't say anything about getting a $ instead of #
I try to rm an apk and it says:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Ray>cd C:\Android_stuff\android-sdk-windows\tools
C:\Android_stuff\android-sdk-windows\tools>adb devices
List of devices attached
HT05PHL06074 device
C:\Android_stuff\android-sdk-windows\tools>adb shell
$
Click to expand...
Click to collapse
Trying to remove the Sprint apk's...
But first I want to figure out how to Nandroid back up...
I think you can type "su" and it brings up the $
-------------------------------------
Sent via the XDA Tapatalk App
How do i get the adb shell? Where is it coming from, is it a windows installation? Sorry, cant seem to find much info on obtaining the adb.
Download the Google sdk and put it somewhere and then cd to it in cmd.
-------------------------------------
Sent via the XDA Tapatalk App
xbox4414 said:
So I'm completely new to Android and ADB, I'm usually very good with computers, but I'm having trouble understanding this, LOL. So I'm trying to use the how to's fund on this site...
But when in the command promp I get this:
Says I should get a #
My goal is to removing sprint bloatware as posted in another how to... Sorry for being a noob.
Click to expand...
Click to collapse
ah, you're in a shell. the # indicates root permissions, and the $ indicates that you are a user, with a prompt, but not root permissions
questions: are you doing this while android is running? or are you doing in recovery? and, have you rooted your phone?
ADB for Newbies.
Ok so, im going to use adb push as an example for this.
On a mac, to push adb i would use this:
cd /android-sdk-mac_86/tools (of course the android sdk depends on where you have your sdk saved)
./adb devices (to make sure your adb is running)
./adb push (your file) /data/local/
On windows, you would navigate to your android sdk, then do:
adb devices (to make sure your adb is running)
adb push (your file) /data/local/
I used the data/local/ for an example because that is how you adb a custom boot logo.
su brings up the superuser shell
Titanium Backup
What I used to remove Sprint Junk Apps
I use Titanium Backup, easiest way to get rid of it. Gives you an option to remove it. Must be rooted to use this app. Just a thought, in case adb is not your cup of tea. Though ADB isn't really hard to use either.

[Q] [Problem] bootanimation

I a newbie and I am trying to change my bootanimation.
I have
HTC Desire
OS: Android 2.2 (froyo) I updated it though OTA
HBoot: 0.93.0001
Radio: 5.09.05.30_2
Actually my device was unlocked but branded with UK O2 and loaded with Android 2.1 (Eclair). I used GOLDCARD procedure to make the device unbranded and then updated the OS. I also rooted the device using unrevoked 3.21 and it was successful.
Now the last thing I want to do is to change the bootanimation and I cant make it work. I am using rootexplorer to copy the bootanimation.zip file to
/system/customize/resources
/data/local
But no luck .. the bootanimation screen remains the same “HTC quietly brilliant”
I am also trying to copy bootanimation.zip file in
/system/media
But after copying the file use to disappear. I cant see you though root explorer. I never checked by using "ls" command. Can you please help me guys
Moved to Q&A as not development
I think i dont have completely rooted device
here is the thing i am doing using "abd"
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\android-sdk_r07-windows\android-sdk-windows\tools>adb shell
adb server is out of date. killing...
* daemon started successfully *
$ su
su
Permission denied
$
Click to expand...
Click to collapse
Ok,
Super user permission issue is solved
just have to keep the screen active to see the authentication messages from "Super user permissions" and then it works like a charm.
See the uploaded snapshots as a reference
C:\android-sdk_r07-windows\android-sdk-windows\tools>adb shell
adb server is out of date. killing...
* daemon started successfully *
$ su
su
#
Click to expand...
Click to collapse
ok now i also managed to put bootanimation.zip in /system/media path and its still not working
... really i am out of ideas ... need some help
DO I NEED TO PLAY WITH THE PERMISSIONS OF THE bootanimation.zip FILE.... I am still seeing htc quietly brilliant at start up
helscream said:
ok now i also managed to put bootanimation.zip in /system/media path and its still not working
... really i am out of ideas ... need some help
DO I NEED TO PLAY WITH THE PERMISSIONS OF THE bootanimation.zip FILE.... I am still seeing htc quietly brilliant at start up
Click to expand...
Click to collapse
you cant write to /system/ when the device is booted even if your rooted, because we dont have an unlocked spl yet the nand protection prevents it, you need to put your device into recovery, and use adb to push the bootanimation.zip to /system/customise/resource/ and if that dosent work try pushing it to /system/media/
AndroHero said:
you cant write to /system/ when the device is booted even if your rooted, because we dont have an unlocked spl yet the nand protection prevents it, you need to put your device into recovery, and use adb to push the bootanimation.zip to /system/customise/resource/ and if that dosent work try pushing it to /system/media/
Click to expand...
Click to collapse
hmmm .. ok now i am going to ask you a very stupid question
how i can use adb in recovery mode
my device is turned off
Then I pressed "power + volume down" and I entered HBOOT menu
my device is connected to the PC though a USB
so i have options
FASTBOOT
RECOVERY
CLEAR STORAGE
SIMLOCK
i chose RECOVERY and then i had an other menu
ClockworkedMod Recovery v2.5.0.7
what to do now
helscream said:
hmmm .. ok now i am going to ask you a very stupid question
how i can use adb in recovery mode
my device is turned off
Then I pressed "power + volume down" and I entered HBOOT menu
my device is connected to the PC though a USB
so i have options
FASTBOOT
RECOVERY
CLEAR STORAGE
SIMLOCK
i chose RECOVERY and then i had an other menu
ClockworkedMod Recovery v2.5.0.7
what to do now
Click to expand...
Click to collapse
Thats it your in recovery, you can now issue commands to your device using adb just make sure the usb cable is connected,
AndroHero said:
Thats it your in recovery, you can now issue commands to your device using adb just make sure the usb cable is connected,
Click to expand...
Click to collapse
ok now
when I try its saying some thing like this
Code:
C:\android-sdk_r07-windows\android-sdk-windows\tools>adb push bootanimation.zip /system/customise/resource/
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error:
C:\android-sdk_r07-windows\android-sdk-windows\tools>
sorry ... i cant understand
AndroHero said:
Thats it your in recovery, you can now issue commands to your device using adb just make sure the usb cable is connected,
Click to expand...
Click to collapse
Ok i tried the same command several times without making any change on the device and suddenly it worked. BUT THIS DIDNT SOLVE THE PROBLEM OF CHANGING THE BOOT ANIMATION. ITS STILL THE SAME
Code:
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>adb sh
ell
adb server is out of date. killing...
* daemon started successfully *
** daemon still not runningerror: cannot connect to daemon
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>abd pu
sh bootanimation.zip /system/customise/resource/
'abd' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>adb pu
sh bootanimation.zip /system/customise/resource/
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error:
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>adb pu
sh bootanimation.zip /system/customise/resource/
adb server is out of date. killing...
* daemon started successfully *
error: device not found
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>adb pu
sh bootanimation.zip /system/customise/resource/
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
failed to copy 'bootanimation.zip' to '/system/customise/resource/': Is a direct
ory
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>adb pu
sh bootanimation.zip /system/customise/resource/
adb server is out of date. killing...
* daemon started successfully *
1941 KB/s (4509259 bytes in 2.268s)
C:\Users\omer\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>
helscream said:
ok now
when I try its saying some thing like this
Code:
C:\android-sdk_r07-windows\android-sdk-windows\tools>adb push bootanimation.zip /system/customise/resource/
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
error:
C:\android-sdk_r07-windows\android-sdk-windows\tools>
sorry ... i cant understand
Click to expand...
Click to collapse
ive never come across this error before i found a thread in the hero section about it tho, maybe you should take a look
http://forum.xda-developers.com/showthread.php?t=582378
this seems to be the remedy to your problem acording to that thread
simplyphp said:
The ADB server binds and listen to port 5037. If that port is taken and/or if the daemon is already running, you'll see that error message.
Start task manager and kill adb.exe (all the instances of it).
If that don't work, try rebooting your computer and your phone, and trying again.
If it still don't work, try this:
http://groups.google.com/group/android-developers/msg/dfae5da4a3c80aa8
Click to expand...
Click to collapse
AndroHero said:
ive never come across this error before i found a thread in the hero section about it tho, maybe you should take a look
http://forum.xda-developers.com/showthread.php?t=582378
Click to expand...
Click to collapse
Thankx AndroHero
I think, I found out the problem but I am not sure its the actually reason or not. If it worked I will come back to post my results.
helscream said:
Thankx AndroHero
I think, I found out the problem but I am not sure its the actually reason or not. If it worked I will come back to post my results.
Click to expand...
Click to collapse
i hope you can sort it out

[Q] [Root] Help running Bin4ry script on Ubuntu 13.04

hi there,
After some hours reading and trying to fix it myself, I have to admin that I need help with rooting my new KFHD8,9 Firmware 8.4.1:
I would rather post in the referring development threads, but I am not allowed to yet. So i am asking here for help
The thing is that all my devices at home are running Linux (Ubuntu 13.04) and I am not trusting the "use-Windows-in-a-VM-and-use-USB-to-root" method
Now I was following the Tutorial from seokhun and decided to use the Bin4ry method to root, because it is delivered with the RunMe-script as a windows-batch and a shell-script.
The android-tools (android-tools-adb, android-tools-fastboot and android-tools-fsutils) have been successfully installed via apt-get and are working (I can use adb and fastboot to get device information).
When I try to execute the RunMe.sh (have made it executable via chmod +x before) and choose the option 1 it is stuck:
Code:
Make a choice:
Please enter a valid number(1 to x):
1
Checking if I should run in Normal Mode or special Sony Mode
Please connect your device with USB-Debugging enabled now
Waiting for device to shop up, if nothing happens please check if Windows ADB-drivers are installed correctly!
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
The script hangs at the line with the first use of the delivered adb with the wait-for-device parameter (inside the stuff folder).
Code:
mytest() {
echo "Checking if I should run in Normal Mode or special Sony Mode"
echo "Please connect your device with USB-Debugging enabled now"
echo "Waiting for device to shop up, if nothing happens please check if Windows ADB-drivers are installed correctly!"
./stuff/adb wait-for-device
./stuff/adb pull /system/app/Backup-Restore.apk . > NUL
./stuff/adb pull /system/bin/ric . > NUL
If I run my installed version of adb it terminates successfully with
Code:
adb wait-for-device
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[email protected]: ...
But when I call the delivered adb inside the stuff folder it never terminates:
Code:
../Root_with_Restore_by_Bin4ry_v30/stuff$ ./adb wait-for-device
adb server is out of date. killing...
* daemon started successfully *
has anybody a clue?
Its me again
I am wondering if i can exchange the delivered ADB with my installed and Working ADB.
If it can be replaced, why is it delivered for Windows and Linux and why most tutorials set them AS requirement proceeding :what:
Sent from my Incredible S using xda app-developers app
Create a live usb with persistent must be an 8 gig usb flash drive for maximum persistent. Use this creator http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ . Use linux mint maya the mate one with codecs 32bit http://www.linuxmint.com/edition.php?id=105. Boot it and use this script http://forum.xda-developers.com/showthread.php?t=2162973 . That is all you will need good luck. You can use 32bit ubuntu12.04 as well the reason to use these distros is that the newer ones don`t run soupkit installer properly in a terminal it makes the installation much cleaner I have been able to force install on some of the later distros but it`s a serious pain in the rear.
thanks for your reply!
I will try it with Ubuntu 12.04 the next days!
worked fine with Ubuntu 12.04. Thank you very much for the hint!
badbutz said:
worked fine with Ubuntu 12.04. Thank you very much for the hint!
Click to expand...
Click to collapse
Your welcome anytime.:highfive:
Glad i checked forums first
Was going to help a friend root, twrp and cm 10.1 his KF 8.9 after work today. his laptop is running 13.04 ubuntu. glad i ran across this post before wasting significant time. 1'll bring a 12.04 laptop with me. Thanks to Thepooch for sharing this info and have a great week!

[Q] htc one drivers?

just installed adb on my pc, having trouble locating my device though, just keep getting "error:device not found" i tried installing some windows 7 htc drivers but with no luck and got windows was unable to install your android phone.
Try these http://vzw1files.dyndns.org/ADB/ADB_Drivers.zip
cmlusco said:
Try these http://vzw1files.dyndns.org/ADB/ADB_Drivers.zip
Click to expand...
Click to collapse
im new to using the commands on pc, im pretty sure i have firewater located in the wrong folder because i just guessed where to put them.
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\David>adb devices
List of devices attached
FA39DS901955 device
never mind went back to mac and it worked first try, not sure why
C:\Users\David>adb reboot
C:\Users\David>adb wait-for-device push firewater /data/local/tmp
cannot stat 'firewater': No such file or directory
C:\Users\David>
can you please tell me where to place the downloaded fire water file for adb to recognize it?
Needs to be in the same folder where the adb and fastboot files are located.
cmlusco said:
Needs to be in the same folder where the adb and fastboot files are located.
Click to expand...
Click to collapse
Not at all necessary, but just easier. If you place both the binaries and the image in the same folder, and you cd into that folder to run one of the binaries, then you have no problem. Otherwise you have to type the complete pathname of the binary and/or the image.

bricked fire phone need help sideloading by adb

some how i bricked my fire phone i still can get into stock recovery tryed side loading the update with adb but my computer keeps freezing the version im trying to flash is the 4.6.3 the same one my phone had, should i try updating using a 4.6.4 version or why does me computer keep freezing need help thx
C:\Program Files\Minimal ADB and Fastboot>adb sideload update-kindle-juniper-35.
4.6.3_user_463001420.bin
loading: 'update-kindle-juniper-35.4.6.3_user_463001420.bin'
* cannot read 'update-kindle-juniper-35.4.6.3_user_463001420.bin' *
C:\Program Files\Minimal ADB and Fastboot>adb sideload update.bin
loading: 'update.bin'
* cannot read 'update.bin' *
aamszia said:
C:\Program Files\Minimal ADB and Fastboot>adb sideload update-kindle-juniper-35.
4.6.3_user_463001420.bin
loading: 'update-kindle-juniper-35.4.6.3_user_463001420.bin'
* cannot read 'update-kindle-juniper-35.4.6.3_user_463001420.bin' *
C:\Program Files\Minimal ADB and Fastboot>adb sideload update.bin
loading: 'update.bin'
* cannot read 'update.bin' *
Click to expand...
Click to collapse
1. Try to run from folder without spaces (rename "Minimal ADB and Fastboot" to adb and move to C
2. After this, run cmd as administrator, and run command "adb devices". Do You see your device?
aamszia said:
[...] * cannot read 'update.bin' *
Click to expand...
Click to collapse
Are you using a PC with Windows OS (is it Windows 10, specifically)?
If so, please make sure that your device is listed as MahmudS already mentioned.
Take a look at this guide, if you need help with ADB related problems, drivers, etc...
Fire Phone ADB setup - an illustrated guide
Bingo Bronson said:
Are you using a PC with Windows OS (is it Windows 10, specifically)?
If so, please make sure that your device is listed as MahmudS already mentioned.
Take a look at this guide, if you need help with ADB related problems, drivers, etc...
Fire Phone ADB setup - an illustrated guide
Click to expand...
Click to collapse
i am using WIN XP and 7 .. same error ...
let me look at your link ..
---------- Post added at 03:00 PM ---------- Previous post was at 02:53 PM ----------
C:\Program Files\Minimal ADB and Fastboot>adb devices
List of devices attached
B0F10701425404HT sideload
C:\Program Files\Minimal ADB and Fastboot>adb sideload update-fire-phone-33.4.6.
1_user_461013320.bin
loading: 'update-fire-phone-33.4.6.1_user_461013320.bin'
* cannot read 'update-fire-phone-33.4.6.1_user_461013320.bin' *
C:\Program Files\Minimal ADB and Fastboot>
---------- Post added at 03:01 PM ---------- Previous post was at 03:00 PM ----------
my phone is connecting perfectly via ADB .. but the BIN is not reading by CMD ..
aamszia said:
my phone is connecting perfectly via ADB .. but the BIN is not reading by CMD
Click to expand...
Click to collapse
If you have the BIN files in the "Minimal ADB and Fastboot" folder, try renaming them to something simple like "update.bin".
Maybe check the MD5 sum of the downloaded files, but I doubt that ALL 5 (or more) of the downloaded files are corrupted...
Bingo Bronson said:
If you have the BIN files in the "Minimal ADB and Fastboot" folder, try renaming them to something simple like "update.bin".
Maybe check the MD5 sum of the downloaded files, but I doubt that ALL 5 (or more) of the downloaded files are corrupted...
Click to expand...
Click to collapse
renamed many times .. same error ...
anything to do with SDK FILES ?
SDK is not needed for this to work, drivers alone are sufficient but it's also not a problem if you have an Android SDK installed.
I assume both operating systems are "clean" enough, so nothing else could interfere with the process. Use USB 2.0 ports for connecting, USB 3.0 is problematic sometimes with these things...
If you have a bootable windows live for a USB drive, you could try it from there...
@aamszia
aamszia said:
* cannot read 'update-fire-phone-33.4.6.1_user_461013320.bin' *
Click to expand...
Click to collapse
you just need more free Ram on computer than file size

Categories

Resources