Access thru computer (mac os) - Hero CDMA Q&A, Help & Troubleshooting

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

Related

[Q] How do you take a screen shot?

As per title...
If your rooted, use an app like 'ShootMe' that you can get from the market for free, and then you can take screenshots on the move.
otherwise install the android SDK and use DDMS which can be sound under 'tools'
connect your device and choose 'Screen Capture'
Could yo advise where I find the android SDK?
you can also use these easy tools here
http://forum.xda-developers.com/showthread.php?goto=newpost&t=765081
AllGamer said:
you can also use these easy tools here
http://forum.xda-developers.com/showthread.php?goto=newpost&t=765081
Click to expand...
Click to collapse
The manager tool does not take screen shots and the ADB one requires Root.
otherwise install the android SDK and use DDMS which can be sound under 'tools'
Click to expand...
Click to collapse
So where do I get this ?
a simple google of what you want
android sdk
returns this as first result.. http://developer.android.com/sdk/index.html
if ur not comfortable with this, or rooting your device, then your out of luck
note: adb doesnt require root, im not sure what your on about
the ADB for non Geek doesn't require root
ShootMe needs root, but is easier to use
sensi_ said:
a simple google of what you want
android sdk
returns this as first result.. http://developer.android.com/sdk/index.html
if ur not comfortable with this, or rooting your device, then your out of luck
note: adb doesnt require root, im not sure what your on about
Click to expand...
Click to collapse
From the ADB link page
it requires installed AndroidSDK and busybox on phone (so and root)
Click to expand...
Click to collapse
Got the SDK and running now though it was a little in depth to install for a noob. Posted some desktop pics as well so thanks to all who helped.
Sorry folks, this just doesn't cut it.
I am not a newbie to computers. I've been using them for about 25 years now.
Someone's got to come along soon and write a simple app that anyone can download and run AS IS. No special Android development software required or rooting etc.
A simple app that takes screen shots, period.
One that won't void your Samsung warranty.

OTA Benefits? Unrevoked4Eva?

"EXCUSE ME" If Someone Else Has Something Similar Posted, But I Got Tired Of Reading A Thousand Posts Just To "ALMOST" Get My Question Answered!!
Anyway I Know The Last "OTA" Sent Out From Sprint or HTC (Whoever- Sent It Out) *BROKE* My Ability To Access The "Clockwork Recovery" Menu-Screen!
Since Then I Turned Security From "On to Off" With "Unrevoked-4ever" But I've Read That Even After Flashing "Unrevoked-4ever" It's Possible For Them To Send Me Another "OTA" & Re-break My Root Access!!
Does Anyone Know If What I Read Is "TRUE or Bull-Sh#%".... Am I Really "Unrevoked-4ever"???
1 More Thing What's The Benefits Of A OTA???
Sent from my HERO200 using XDA App
DISABLE OTA UPDATES!!!!
To disable OTA updates that will patch this exploit, (after rooting and booted after creating a nandroid backup) run the following commands from Command Prompt.
Code:
cd C:\android-sdk-windows\tools
Code:
adb remount
Code:
adb shell
Code:
mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.bak
After doing this, the OTA updates WILL still download, BUT they will not pass signature checks to flash because of the code you just entered.
Did you do this when you rooted your phone? ^^
Pulled this from [Guide] How to Root Sprint 2.1 CDMA Hero
Twolazyg said:
DISABLE OTA UPDATES!!!!
To disable OTA updates that will patch this exploit, (after rooting and booted after creating a nandroid backup) run the following commands from Command Prompt.
Code:
cd C:\android-sdk-windows\tools
Code:
adb remount
Code:
adb shell
Code:
mv /system/etc/security/otacerts.zip /system/etc/security/otacerts.zip.bak
After doing this, the OTA updates WILL still download, BUT they will not pass signature checks to flash because of the code you just entered.
Did you do this when you rooted your phone? ^^
Pulled this from [Guide] How to Root Sprint 2.1 CDMA Hero
Click to expand...
Click to collapse
No... To Tell You The Truth I Rooted With "Universal Androot" Because I Was Somewhat *NEW* To The Whole "ADB/SDK/ROOT" Thing, But Since I've Probably Learned 20X More Then I Did! But As Far As "ADB" Goes I'm Still Kind Of Scared To Try Out!! Although I Have A Wireless ADB App Installed On My Phone, Does That Work, Or I Should Say Will That Work For The Command You Suggested? Also Thanx For Your Help!!
Sent from my HERO200 using XDA App
PMGRANDS said:
No... To Tell You The Truth I Rooted With "Universal Androot" Because I Was Somewhat *NEW* To The Whole "ADB/SDK/ROOT" Thing, But Since I've Probably Learned 20X More Then I Did! But As Far As "ADB" Goes I'm Still Kind Of Scared To Try Out!! Although I Have A Wireless ADB App Installed On My Phone, Does That Work, Or I Should Say Will That Work For The Command You Suggested? Also Thanx For Your Help!!
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
I've never used an app to root my phone, I followed a guide and did it right the first time. Here is the guide thread. What is the wireless ADB app you're using? Try terminal emulator with the commands, or take 15 min and un-root your phone, then re-root using this guide, that may solve the other issue you're having with the wigets and icons being odd. Let me know how this works for you.
PMGRANDS said:
No... To Tell You The Truth I Rooted With "Universal Androot" Because I Was Somewhat *NEW* To The Whole "ADB/SDK/ROOT" Thing, But Since I've Probably Learned 20X More Then I Did! But As Far As "ADB" Goes I'm Still Kind Of Scared To Try Out!! Although I Have A Wireless ADB App Installed On My Phone, Does That Work, Or I Should Say Will That Work For The Command You Suggested? Also Thanx For Your Help!!
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
If you search android Dev section I've posted how to install adb in like 15 min also in the same thread its another guide as well either way you can have adb in 15 or 20 min tops real simple and the commands he posted will work fine I'm mobile @ work so I can't link but good luck
Root-Hack-Mod-Always™
Twolazyg said:
I've never used an app to root my phone, I followed a guide and did it right the first time. Here is the guide thread. What is the wireless ADB app you're using? Try terminal emulator with the commands, or take 15 min and un-root your phone, then re-root using this guide, that may solve the other issue you're having with the wigets and icons being odd. Let me know how this works for you.
Click to expand...
Click to collapse
Okay, I Think I Just Might Do That... Also As Far As The App I Have, It's Called "ADB Wireless", But I Also Have "Terminal Emulator"!! Which One Would You Use?? "Terminal Emulator" Guess That's Why You Posted It Obviously??.... Lol!! 1 More Thing What's The Benefits Of The OTA's?? Seems Like They Only Eff-Up Root Access!! And Thanx Once Again 4 Your Help!!
Sent from my HERO200 using XDA App
laie1472 said:
If you search android Dev section I've posted how to install adb in like 15 min also in the same thread its another guide as well either way you can have adb in 15 or 20 min tops real simple and the commands he posted will work fine I'm mobile @ work so I can't link but good luck
Root-Hack-Mod-Always™
Click to expand...
Click to collapse
Thank You!!
Sent from my HERO200 using XDA App

Commands for Captivate

Okay, so what program can I use to type commands into my captivate?
Or can I type commands directly into my captivate.
Someone posted that If I don't know then I shoudnt bother but if I never learn I will never become the genius dev I know I can be.
Sent from my SAMSUNG-SGH-I897 using XDA App
http://developer.android.com/sdk/index.html
Okay I've had the android sdk for a while but I can't figure out how to get to that part. I can't even get my phone screen to show up on my computer screen.
Thanks for the fast response.
Sent from my SAMSUNG-SGH-I897 using XDA App
logicrulez said:
Okay I've had the android sdk for a while but I can't figure out how to get to that part. I can't even get my phone screen to show up on my computer screen.
Thanks for the fast response.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
Just use the adb tools.. Should be a folder called Tools containing adb.exe
Once you have it,
from command prompt go to the folder and then start typing commands to the phone, with the phone connected to PC using debug mode.
For instance > adb devices
It should show the device connected to the PC

[HACK] Superboot Method for 2.3.2 (GRH78C)

The Superboot root method boot.img for 2.3.2 is now live thanks to Paul over at Android @ MoDaCo.
"Superboot is a boot.img that when flashed, will root your device the first time you boot (installing su and the superuser APK). No need to flash the system partition, no need to use ADB, no messing with the contents of your data partition, no overwriting the shipped ROM on your device, just flash the boot image using the instructions below and you're done!"
Using Superboot
- Download the zip file and extract
- Connect Nexus S via USB cable (with debugging enabled - Settings->Applications->Development->Check "USB Debuggging")
- Boot into bootloader mode - (Turn on while holding 'volume up')
- WINDOWS - double click 'install-superboot-windows.bat'
- MAC - Open a terminal window to the directory containing the files, and type 'chmod +x install-superboot-mac.sh' followed by './install-superboot-mac.sh'
- LINUX - Open a terminal window to the directory containing the files, and type 'chmod +x install-superboot-linux.sh' followed by './install-superboot-linux.sh'
*Again, All credit goes to Paul at Android @ MoDaCo*
Cool I'm rooted already but nice to see easier ways of doing it for the noobs. Appreciate the work.
Sent from my Nexus S using Tapatalk
Updated today to 2.3.2 and lost root. Used this and I'm back up and running ! Thank you!!!
Sent from my Nexus S using XDA App
2.3.2
can u do this being rooted or do you have to revert to stock
For some reason this didn't work for me. I tried it twice but each time the phone rebooted I still didn't have root. Do I have to unlock fastboot?
qreffie said:
For some reason this didn't work for me. I tried it twice but each time the phone rebooted I still didn't have root. Do I have to unlock fastboot?
Click to expand...
Click to collapse
i think you would
fastboot
fastboot satus failinvalid command
finally regain root, thank you!!!
qreffie said:
For some reason this didn't work for me. I tried it twice but each time the phone rebooted I still didn't have root. Do I have to unlock fastboot?
Click to expand...
Click to collapse
Yes. These instructions assume you have already unlocked your bootloader.
Sent from my Nexus S using Tapatalk
maybe a noob question: if I just root my Nexus S using this method (no custom rom installation), will I still be able to get OTA updates from google?
dakiz71 said:
maybe a noob question: if I just root my Nexus S using this method (no custom rom installation), will I still be able to get OTA updates from google?
Click to expand...
Click to collapse
Yes. You may have to re-root after updates but your phone will prompt you when OTA updates are available just like normal.
Sent from my Nexus S using Tapatalk
annndrewww said:
Yes. These instructions assume you have already unlocked your bootloader.
Sent from my Nexus S using Tapatalk
Click to expand...
Click to collapse
Figures. The answer was staring me in the face the whole time. I think I even remember unlocking it last time I rooted this way. I guess I should just leave it permanently unlocked then so it doesn't keep wiping every time I go to root after an update.
Hi,
I can't get it to work on my mac.
When I put the renamed as "superboot" folder on the desktop, I open the terminal and type in:
~/Desktop/superboot/chmod +x install-superboot-mac.sh./install-superboot-mac.sh
it doesn't find that path.
Could somebody help me as a noob?
Thank you!
Am I the only one that did not lose root after the latest 2.3.2 update?
DarkAgent said:
Am I the only one that did not lose root after the latest 2.3.2 update?
Click to expand...
Click to collapse
I used the superboot method for 2.3.1 and also did not lose root in with the 2.3.2 update.
Sent from my Nexus S using Tapatalk
You shouldn't.
P
Windows 7
For me install-superboot-windows is waiting for device long without success :\
No matter ... i had to force my pc recognize Nexus once more
Thank you. This seems simple. I'm stuck with my XP recognizing my Nexus S USB Driver after installing SDK and Google USB Driver even after trying to "update" driver under Device Manager and redirect the directory to Google USB Driver? I'm very confused.
philbs17 said:
Hi,
I can't get it to work on my mac.
When I put the renamed as "superboot" folder on the desktop, I open the terminal and type in:
~/Desktop/superboot/chmod +x install-superboot-mac.sh./install-superboot-mac.sh
it doesn't find that path.
Could somebody help me as a noob?
Thank you!
Click to expand...
Click to collapse
Ok buddy heres what you need to do, on the MAC, this is how i do it.:
DL the .zip in the OP.
Extract it on you're desktop
Rename the Extracted file to Nexus (thats what I name it)
youre device needs to have the bootlader Unlocked.
Open Terminal and type
cd desktop
cd nexus
chmod +x install-superboot-mac.sh (press enter)
./install-superboot-mac.sh (press enter)
then you're done. hope this helps.
Let me know.
Simply amazing! Thanks for the breakdown.

[Q] Half bricked my Htc Hero.

Has anyone not been able to boot into recovery mode on their phone. When I go into ROM manager and try to change ROMS or something it just turns off?
Probably the obvious answer, but have you tried reflashing a recovery?
Yeah If that's when you press the home button, down on the volume and on button at the same time.
HTC_HERO!!! said:
Yeah If that's when you press the home button, down on the volume and on button at the same time.
Click to expand...
Click to collapse
no, reflashing, throught Rom Manager or ADB.
I personally think RM is the devil, it does all the stuff for you so when you run into this problem you crap your pants. Do you have adb and sdk goodies?
I am downloading them right now.
HTC_HERO!!! said:
I am downloading them right now.
Click to expand...
Click to collapse
cool, then once you get it all set up and made sure, it recognizes it, place the recovery.img of your choice to the root of your sd card,
then type in a command prompt
adb shell
# <--- (should get that)
flash_image recovery /sdcard/(file name).img
Ok I have downloaded and Installed Android SDK , Java RE, Java RE JDK. Is there anything else I would need to access the device through SDK?
HTC_HERO!!! said:
Ok I have downloaded and Installed Android SDK , Java RE, Java RE JDK. Is there anything else I would need to access the device through SDK?
Click to expand...
Click to collapse
lol well you only needed the sdk, those other javas are for developing and other such things. but no problem with being overly prepared. but thats all you need.
just follow these steps, http://wiki.cyanogenmod.com/index.php?title=Howto:_Install_the_Android_SDK
Hey coffehandle Thanks for the tips.
I read up on that link you posted, and entered some commands that were posted to and it said, that there's not enough space on the phone. Then after doing som3 research I found out that somehow I had deleted the recovery image binary . Installed that fixed all the issues.
Flashed RockSteady ROM its pretty good. Over clocked to 700mhz. ADW launcher. Right now I'm playing Angry Birds Rio. Thanks to all the people at Xda.
Sent from my HERO200 using XDA Premium App

Categories

Resources