Related
What is the simplest way to send commands to my phone (HTC Hero CDMA Sprint) through my computer (Mac OS)?
I haven't explored Android SDK yet. I rooted my phone through Terminal and bash_profile file. I'm interested in:
- how to push .apk's to the device
- how to install a recovery image if my phone can't reboot and there is not a recovery image present
Thanks!
Android sdk is the easiest
-------------------------------------
Sent via the XDA Tapatalk App
What I do is use terminal and cd to the Android sdk/tools folder. After that use the ./adb commands, which there are several tutorials for and own your phone. Hope this is clear, doing it on my phone
-------------------------------------
Sent via the XDA Tapatalk App
What I do is use terminal and cd to the Android sdk/tools folder. After that use the ./adb commands, which there are several tutorials for and own your phone. Hope this is clear, doing it on my phone
Click to expand...
Click to collapse
Sweet. Thanks. I've searched the Android SDK site and it seems that I need other software or plunging such as Eclipse and Java. I'm not ruling these out eventually but know I'm not ready to get in this deep yet to start developing apps or customizing roms. Also, after a Google search all the queries came back with options for rooting your device which I've already done. If there's a good easy tutorial, would you mind posting a link?
-------------------------------------
Sent via the XDA Tapatalk App
When I get home from work I'll find something for you.
-------------------------------------
Sent via the XDA Tapatalk App
joshuaharp said:
Sweet. Thanks. I've searched the Android SDK site and it seems that I need other software or plunging such as Eclipse and Java. I'm not ruling these out eventually but know I'm not ready to get in this deep yet to start developing apps or customizing roms. Also, after a Google search all the queries came back with options for rooting your device which I've already done. If there's a good easy tutorial, would you mind posting a link?
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
Just download the 2.1 SDK, cd to Android/SDK/tools, and use ./adb, I think it can tell you some commands too.
I made an app to put my phone in recovery using ./adb so I wouldn't need to go through the trouble everytime, I just go to spotlight, type "recovery", and it puts it into recovery.
I might make an app/interface for Mac OS later for ADB commands (recovery, push files, etc)
derekwilkinson said:
Just download the 2.1 SDK, cd to Android/SDK/tools, and use ./adb, I think it can tell you some commands too.
I made an app to put my phone in recovery using ./adb so I wouldn't need to go through the trouble everytime, I just go to spotlight, type "recovery", and it puts it into recovery.
I might make an app/interface for Mac OS later for ADB commands (recovery, push files, etc)
Click to expand...
Click to collapse
That would be awesome dude...
joshuaharp said:
That would be awesome dude...
Click to expand...
Click to collapse
Don't hold your breath though, I have been working a lot, but I might make it in the next few weeks.
The only main problem is that I'm having trouble getting variables to run in the shell script. I think it might be possible with Automator (or AppleScript), but I will keep trying
Well, even though it may not be useful anymore, here are the links, as promised
Rooting guide for mac (What I used and a great way to get familiar with adb on the mac ) http://forum.xda-developers.com/showthread.php?t=581686
And here's an adb tutorial that was put together at the request of toast on the EVO 4G forum. http://forum.xda-developers.com/showthread.php?t=694250
What is it ? ADB Shell . is it CMD command on Windows or what ?
muslimbaha said:
What is it ? ADB Shell . is it CMD command on Windows or what ?
Click to expand...
Click to collapse
https://developer.android.com/tools/help/adb.html
It's Android Debug Bridge. Basically, it's a command line interface from your PC to your phone. Think of a terminal emulator that you run on the phone itself. ADB is pretty much the same, but from a PC. It is part of Android SDK. You can also find it included in many installation packages posted here on XDA, e.g. CWM recovery. There is an executable and a couple of DLLs.
P.S.: TrymHansen beat me to it...
kt-Froggy said:
It's Android Debug Bridge. Basically, it's a command line interface from your PC to your phone. Think of a terminal emulator that you run on the phone itself. ADB is pretty much the same, but from a PC. It is part of Android SDK. You can also find it included in many installation packages posted here on XDA, e.g. CWM recovery. There is an executable and a couple of DLLs.
P.S.: TrymHansen beat me to it...
Click to expand...
Click to collapse
Sorry, but i know what it is now, how do i run it though? im trying to follow the htc desire hd guide to root my phone, which everything is done up until the point i have to test that i have root in debug mode. Not sure how to do this? run abd.exe? it just showed me a cmd window which runs and then dissapears.
If you got your phone rooted or want to test it run adb.exe shell the type su and hit enter. If the prompt change from $ to # you have root access
Sent from my LG-P990 using xda app-developers app
bitdomo said:
If you got your phone rooted or want to test it run adb.exe shell the type su and hit enter. If the prompt change from $ to # you have root access
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
What is likely to be the problem if it says SU permission denied?
If you are on stock, that means that you have no root access. If you have cm10 or cm10.1 you have to enable adb root access somewhere in the settings. I am sorry but I can not tell you at the moment where to enable it because I am on stock right now.
Sent from my LG-P990 using xda app-developers app
kt-Froggy said:
It's Android Debug Bridge. Basically, it's a command line interface from your PC to your phone. Think of a terminal emulator that you run on the phone itself. ADB is pretty much the same, but from a PC. It is part of Android SDK. You can also find it included in many installation packages posted here on XDA, e.g. CWM recovery. There is an executable and a couple of DLLs.
P.S.: TrymHansen beat me to it...
Click to expand...
Click to collapse
Thanks Bro for this information
Hi everyone, unfortunatly i broke my screen, my phone was rooted and i was using CM7
i would like to recover my files, but due to the my broken screen i can't see anything so i can't mount usb storage,
I also heard that if i activate usb debugging mode i can acces my files easily.. but debugging mode wasn't activated..
and finally I heard that through Recovery Mode, i can mount usb storage, but once again i cannot see or do anything ..
so can you help me please ?
thanks a lot for your help, and thanks to everyone on this forum for their help and their roms etc !
AW: [Q] Broken Screen..
Search on google for a pic from the the right recovery version then you navigate blind witch the picture.
If this dont work you can force the into recovery mode and plug it to the PC. You can save your data using adb without enabling usb debugging
Sent from my GT-I9300 using xda app-developers app
i think that differ on alternate versions of CWM
on my phone:
6x volume down, power, 2x volume up, power. but i'm running cwm6x so don't know if it works
KUN1 said:
Search on google for a pic from the the right recovery version then you navigate blind witch the picture.
If this dont work you can force the into recovery mode and plug it to the PC. You can save your data using adb without enabling usb debugging
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
kronos111 said:
i think that differ on alternate versions of CWM
on my phone:
6x volume down, power, 2x volume up, power. but i'm running cwm6x so don't know if it works
Click to expand...
Click to collapse
Hi thanks a lot for your answers, i think i was on cwm 3.0, i found some screenshot, and yes it's the same, thanks i will try it !
how can i save my data with adb without enabling usb debugging ?
thanks a lot !
AW: [Q] Broken Screen..
Go into recovery and plug it to the pc. Open cmd and navigate to your adb folder. Then type "adb devices" you should now see your phone listed as some random numbers. If not you did something wrong.
If you see your device type this "adb pull /sdcard C:\…" and the whole sd should be copied to the directory.
Sent from my GT-I9300 using xda app-developers app
KUN1 said:
Go into recovery and plug it to the pc. Open cmd and navigate to your adb folder. Then type "adb devices" you should now see your phone listed as some random numbers. If not you did something wrong.
If you see your device type this "adb pull /sdcard C:\…" and the whole sd should be copied to the directory.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
thanks a lot !! with this method can i also save my contacts, notes etc ? thank you so much !!
AW: [Q] Broken Screen..
The contacts are normally saved with your gmail account.
With this command you push your whole sd to the pc but i think if you want also the app data you have to use another command and you need root.
Sent from my GT-I9300 using xda app-developers app
KUN1 said:
The contacts are normally saved with your gmail account.
With this command you push your whole sd to the pc but i think if you want also the app data you have to use another command and you need root.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
thanks a lot, i dont think my contacted were synced.. i will check that too
i'm root so i'll search for that feature,
i dont have my phone untill a week, so i'll test and i'll tell you !
thanks a lot for all your helps !
thanks a lot, i finally could save all my files and reset my phone
i started the phone in recovery mode, i connected it to pc with adb drivers, but i wasn't able to copy or mount anything, i installed android commander software, so i was able to have screenshot from my phone while browsing the recovery, i mounted usb storage, i copied all my files
then i wiped the phone
and i checked if everything was deleted with androidscreencast, i was able to see my phone's screen live, and with the mouse i could browse my phone ( the touchscreen didn't work too )
thanks a lot for your help !
Hello,
I've been unlocked and rooted for a few weeks and all has been good. Not sure how I did this but I seem to have now bricked my phone though. I can only get my phone to boot to CWM recovery, not to boot properly. Also - while in CWM I get an error E: Can't mount /sdcard/ .
This means I can't copy a ROM to the phone to flash.
Any other way I can get around this? My phone is an unbranded HTC One on T Mobile in the UK. Any help would ne majorly appreciated!!
Did you find a way around as i m stuck too in recovery cant mount external sd card...
Sent from my HTC One x using xda app-developers app
Try with the command:
Code:
adb push name_of_rom.zip /sdcard
^^if that doesn't work I would try going into recovery and trying to install from sideload
adb sideload name_of_your_rom.zip command on your PC.
Make sure name_of_your_rom.zip is in your folder with your adb files.
Sent from my HTC One using xda premium
redbull123 said:
^^if that doesn't work I would try going into recovery and trying to install from sideload
adb sideload name_of_your_rom.zip command on your PC.
Make sure name_of_your_rom.zip is in your folder with your adb files.
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Cheers for the help guys - I'll give it a go
Sooooo, possibly getting somewhere.
Basically I can now see the sdcard from within CWM. However - I can't push anything to it via adb.
If I go into fastboot and type 'adb devices' I get no devices found. However - typing 'fastboot devices' does see the device.
??
You have to use adb command in recovery..
Hmmmm, still the same.
I'm beginning to think I've bricked it. Fastboot commands from Fastboot work, but can't get adb commands from recovery to work.
Wonder if I use a different laptop...?
thenoble06 said:
Hmmmm, still the same.
I'm beginning to think I've bricked it. Fastboot commands from Fastboot work, but can't get adb commands from recovery to work.
Wonder if I use a different laptop...?
Click to expand...
Click to collapse
Reflash the recovery and upgrade your adb with the latest...
Or try the sideload method.
Don't mean to offend, but are you running the commands from within the folder in cmd?
ie. My adb folder is called android and it's on my desktop on my mac so I would type:
cd /users/my_name/desktop/android
before I would write any commands.
Try clearing your cache in recovery also
Sent from my HTC One using xda premium
redbull123 said:
Don't mean to offend, but are you running the commands from within the folder in cmd?
ie. My adb folder is called android and it's on my desktop on my mac so I would type:
cd /users/my_name/desktop/android
before I would write any commands.
Try clearing your cache in recovery also
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Your not offending me! I do work in IT but readily admit I'm a NOOB when it comes to Android and ADB.
When I try to sideload I get the same error: device not found error.
I'll give clearing cache and reinstalling the Recovery a bash
No offense taken RedBull, I'll gladly admit I'm a newbie when it comes to ADB (but I am in the right directory).
I'm so close to fixing this, if I could just, somehow, get a rom onto the phone I could flash it and away I go. How I wish the One had a removable card since I can't get the phone to be recognised (error: no device found) when using ADB and Recovery. However, weirdly, I can push different recoveries using AIO kit (but can't use it for anything else). Also weird how FASTBOOT recognises the phone, but Recovery/ADB doesn't
Would a USB OTG cable help? I'm guessing not.
thenoble06 said:
No offense taken RedBull, I'll gladly admit I'm a newbie when it comes to ADB (but I am in the right directory).
I'm so close to fixing this, if I could just, somehow, get a rom onto the phone I could flash it and away I go. How I wish the One had a removable card since I can't get the phone to be recognised (error: no device found) when using ADB and Recovery. However, weirdly, I can push different recoveries using AIO kit (but can't use it for anything else). Also weird how FASTBOOT recognises the phone, but Recovery/ADB doesn't
Would a USB OTG cable help? I'm guessing not.
Click to expand...
Click to collapse
I haven't tried this myself, but ClockworkMod Touch is supposed to support USB OTG:
http://forum.xda-developers.com/showthread.php?t=2173863
As is TWRP:
http://forum.xda-developers.com/showthread.php?t=2173870&highlight=usb+otg
Just remember to plug everything in before you enter recovery
'fastboot erase cache' before flashing a new recovery
And if USB OTG works i could use it to copy a file from a USB drive to my phone?
Sent from my GT-N7000 using Tapatalk 2
thenoble06 said:
And if USB OTG works i could use it to copy a file from a USB drive to my phone?
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Like i said - i haven't tried it, but there is an option to install a zip from external sdcard in recovery, so it may be that.
Sent from my HTC One using xda premium
Use hasoons toolkit, it has option to sideload. Just make sure you select sideload in recovery. I had the same issue but I was on twrp . Hopefully cwm has side load option
Sent from my HTC One using xda app-developers app
Yeah i tried, for some reason i cant get my laptop to see my phone via ADB
Sent from my GT-N7000 using Tapatalk 2
Make backup pf your sd card then munt usb storage voa cwm format the int and ext sd card then it will be mounted cause i faced this proplem tpday on my tablet and i solved it like that it's simple
Sent from my GT-S6500 using Tapatalk 2
thenoble06 said:
Your not offending me! I do work in IT but readily admit I'm a NOOB when it comes to Android and ADB.
When I try to sideload I get the same error: device not found error.
I'll give clearing cache and reinstalling the Recovery a bash
Click to expand...
Click to collapse
regarding the device not found error, check if the adb interface is installed in the device manager. may be you have to install it manually .
Also i had the same issue with the sdcard (not able to access), i have wiped the Data partition because sdcard is included inside (in /data/media) of course you will lose all the files in sdcard.
NiceIceDice96 said:
Make backup pf your sd card then munt usb storage voa cwm format the int and ext sd card then it will be mounted cause i faced this proplem tpday on my tablet and i solved it like that it's simple
Sent from my GT-S6500 using Tapatalk 2
Click to expand...
Click to collapse
This device it is not able to mount sdcard via recovery yet, but if you use an off cable it will work I have done it
Sent from my HTC One using Tapatalk 2
Hello there,
Right now I'm stuck with an HTC one with its complete system wiped out i.e format cache/system/sdcard/media etc via CWM recovery throught the option in mounts and storage (I did that by mistake on CWM, forgetting about how the phone does not have an external sd card which I'm used to...) I don't think its USB debugging option was enabled either because I had fresh unlocked the bootloader so the phone was reset to factory settings, so I don't know if adb sideload is an option. (I don't know how this works either, at least not entirely... only what I learnt over the past 4-5 hours through the web) I feel like i have the adb path set up right, all I need to do is be able to access the device through my computer so I can somehow transfer the ROM zip onto the sdcard so I can install it. Can I just flash the ROM zip through fastboot? I already read around that prolly not but someone mentioned that I can flash the factory stock update... Where can I get that. Help pls! 2 months salary down the drain... replacement is not an option here... there is no customer service where I come from..
crazhy said:
Hello there,
Right now I'm stuck with an HTC one with its complete system wiped out i.e format cache/system/sdcard/media etc via CWM recovery throught the option in mounts and storage (I did that by mistake on CWM, forgetting about how the phone does not have an external sd card which I'm used to...) I don't think its USB debugging option was enabled either because I had fresh unlocked the bootloader so the phone was reset to factory settings, so I don't know if adb sideload is an option. (I don't know how this works either, at least not entirely... only what I learnt over the past 4-5 hours through the web) I feel like i have the adb path set up right, all I need to do is be able to access the device through my computer so I can somehow transfer the ROM zip onto the sdcard so I can install it. Can I just flash the ROM zip through fastboot? I already read around that prolly not but someone mentioned that I can flash the factory stock update... Where can I get that. Help pls! 2 months salary down the drain... replacement is not an option here... there is no customer service where I come from..
Click to expand...
Click to collapse
Check my guide
If u still have cwm recovery u can plug ur phone to pc via USB and select mount USB storage and drop the Rom zip onto internal sd and flash it through recovery.. if not u can download a cwm recovery that u can flash thru adb via command prompt on pc then u can do what I sed earlier
Sent from my HTC Sensation Z710e using xda premium
sibozzy1811 said:
If u still have cwm recovery u can plug ur phone to pc via USB and select mount USB storage and drop the Rom zip onto internal sd and flash it through recovery.. if not u can download a cwm recovery that u can flash thru adb via command prompt on pc then u can do what I sed earlier
Sent from my HTC Sensation Z710e using xda premium
Click to expand...
Click to collapse
No you can't
Thank you for the quick response! This is the message I get after typing "adb devices" in the command prompt from the platform tools folder
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
I'd already tried this before but this time I extracted the sdk in C:\ just to see if it made any difference... I even used the command "adb remount" it still says "error device not found". Could this be because of the USB debugging option from the developers menu in settings? I can't make that change right now because i can't boot into the phone! What can i do to correct this?
"C:\adt-bundle-windows-x86-20130522\sdk\platform-tools>adb devices
List of devices attached
C:\adt-bundle-windows-x86-20130522\sdk\platform-tools>adb remount
error: device not found"
This is what i get in the cmd script
My laptop that i connect to the phone is on a 64 bit operating system does it matter if the sdk i downloaded is for 32 bit?
crazhy said:
Thank you for the quick response! This is the message I get after typing "adb devices" in the command prompt from the platform tools folder
adb server is out of date. killing...
* daemon started successfully *
List of devices attached
I'd already tried this before but this time I extracted the sdk in C:\ just to see if it made any difference... I even used the command "adb remount" it still says "error device not found". Could this be because of the USB debugging option from the developers menu in settings? I can't make that change right now because i can't boot into the phone! What can i do to correct this?
"C:\adt-bundle-windows-x86-20130522\sdk\platform-tools>adb devices
List of devices attached
C:\adt-bundle-windows-x86-20130522\sdk\platform-tools>adb remount
error: device not found"
This is what i get in the cmd script
My laptop that i connect to the phone is on a 64 bit operating system does it matter if the sdk i downloaded is for 32 bit?
Click to expand...
Click to collapse
did you give up or is this resolved ?
clsA said:
did you give up or is this resolved ?
Click to expand...
Click to collapse
Still looking for a solution!
crazhy said:
Still looking for a solution!
Click to expand...
Click to collapse
are you using MacHackz guide here ? >> http://forum.xda-developers.com/showthread.php?t=2325853
Also do you still have the fastboot folder in c:\fastboot you used to unlock the bootloader ?
crazhy said:
Still looking for a solution!
Click to expand...
Click to collapse
Hop on TeamViewer, think I have the solution
clsA said:
are you using MacHackz guide here ? >> http://forum.xda-developers.com/showthread.php?t=2325853
Also do you still have the fastboot folder in c:\fastboot you used to unlock the bootloader ?
Click to expand...
Click to collapse
Yes I do
MacHackz said:
Hop on TeamViewer, think I have the solution
Click to expand...
Click to collapse
Downloading right now... my internet is really bad today itll be 10 mins to doenload that 5 mb file
crazhy said:
Downloading right now... my internet is really bad today itll be 10 mins to doenload that 5 mb file
Click to expand...
Click to collapse
Will it sustain a connection then ;D
MacHackz said:
Hop on TeamViewer, think I have the solution
Click to expand...
Click to collapse
MacHackz I just had a couple suggestions and I'll step aside
I use the same fastboot folder I used to unlock the bootloader for all adb stuff it contains a working copy of adb
and makes sure the path is easy and correct. (no spaces)
2. I see he mentions using a laptop ..be sure your using a usb 2 port .. not the blue usb 3.0 ports their know to cause issues with adb.
MacHackz said:
Will it sustain a connection then ;D
Click to expand...
Click to collapse
Ill restart it, it reverts to high speeds its just being super spiky right now
MacHackz said:
Will it sustain a connection then ;D
Click to expand...
Click to collapse
Ok lets go! remote control or meeting?
@ clsa, its most deifinitely a usb 2.0 port
crazhy said:
Ok lets go! remote control or meeting?
@ clsa, its most deifinitely a usb 2.0 port
Click to expand...
Click to collapse
Remote just post your id and pass, I will get there first
MacHackz said:
Remote just post your id and pass, I will get there first
Click to expand...
Click to collapse
186 608 490
z57pf4
crazhy said:
186 608 490
z57pf4
Click to expand...
Click to collapse
Black screen ;D
dammit again... i dunno which button to press lol
crazhy said:
dammit again... i dunno which button to press lol
Click to expand...
Click to collapse
Just had the same problem but i got my rom on with usb otg can you try that?
mount usb otg and load zip