yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] Andyt95:
I extracted to C:\PossibleRoot

Code:

C:\possibleroot>runindos.bat
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
"Files copied and permissions set, rebooting HTC Android 2.1"
"Your phone will now reboot into normal mode, then reboot into recovery mode. I
f It does not reboot the second time, wait 10 minutes and manually reboot into recovery mode and be
gin again."
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
"Your phone is now rebooting in Rooted Recovery mode, do a backup and load your ROMs"
'adb' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.

During this, even though it said "your phone is now..." nothing happened

Thanks, I will look over again, and try indefinitely to make this work :)
[Hero, G2 Touch Android Development] pulser_g2:
Put all the adb files into C:\possibleroot then. So that instead of typing "runindos.bat", you can just type adb devices and see a list. Then you know adb is visible to the script.
[Hero, G2 Touch Android Development] Hacre:
Wow. Just, wow.

Extract the zip into your SDK's tools folder. Or add your SDK's tools folder to your path environment variable. This is user error. PEBKAC. Don't make me earn another vacation from the forums for calling you names. How are you an "XDA Dev" when you don't even know how to use a shell environment?
[Hero, G2 Touch Android Development] Lennyuk:
In otherwords probably

C:\Android-Windows-SDK\tools

or whatever you called it.......
[Hero, G2 Touch Android Development] Andyt95:
Guys, thanks so much. I have just looked over the path again, and realised I am a monumental failure. I'll let you know how it goes :)

EDIT: I'm in with the care bear!!!!!!!!!!!!!

How to flash a custom ROM now?

EDIT: Flashing a ROM now, thanks so much. This thread is getting 5 stars... :) :D :)

Thanks, Andy
[Hero, G2 Touch Android Development] ebbhead:
Works fine!
[Hero, G2 Touch Android Development] btdag:
I recommend editing your first post which says not working and putting a line through that text
[Hero, G2 Touch Android Development] k0rner:
To protect the script from such user errors, you can modify .bat file as follows:

@echo off

adb help >NUL
if %ERRORLEVEL% NEQ 0 GOTO noadb

REM .... Original script content here ....

:noadb
echo.
echo ====== WARNING! =======
echo ADB not found in %%PATH%% - do something!
echo Exiting.
[Hero, G2 Touch Android Development] Lennyuk:
well suggested.

NOW ALL YOU NEWLY ROOTED PEOPLE REJOICE AND ENJOY A PROPER 2.1 ROM
[Hero, G2 Touch Android Development] pulser_g2:
Good call. I will look at doing that when I get home :) I will also pop up linux scripts etc.
[Hero, G2 Touch Android Development] Wiley87:
What are the benefits of flashing the RUU? Sorry for being slow, I just get confused with releases saying 'Based On'.

Side note, great job with this. People were saying it would take a LONG time for this to happen.
[Hero, G2 Touch Android Development] Lennyuk:
There are 0 benefits of using the RUU
[Hero, G2 Touch Android Development] idroid84:
confirmed tmobile 2.1 ruu
[Hero, G2 Touch Android Development] Wiley87:
Why would one want to flash the RUU?
[Hero, G2 Touch Android Development] pulser_g2:
You wouldn't by choice, but if you didn't know about rooting, here is an easy method.

Personally I find it is easier for people to follow than the gold card method, as there is no ruu phase or downgrade - essentially this just gives you recovery and lets you flash.

But yer main use for this is if you have to return your hero for a warranty repair. Until yesterday, you wouldn't have been able to get root, as htc always flash devices in for repair to the latest firmware :(

And htc use an ruu for that, the latest of which stops the gold card from working. This just lets such people root :)
[Hero, G2 Touch Android Development] Ganii:
Not all people want to root,and prefer the official update.

Maybe later decide to root to.

Not everyone knows about the new security restriction at 2.1 Update!

So,with this method,it`s easy for them to Root their phone however,

without downgrade and goldcard!

P.S.Thank you for this possibility,

very nicely!

Regards
[Hero, G2 Touch Android Development] Berfurd:
Factory loaded 2.1

I am assuming I can do this to my factory loaded 2.1 Hero and have root but not necessarily flash a new ROM right away? I will in time but for now, I just want root.
[Hero, G2 Touch Android Development] pulser_g2:
You can do it, but it just gives you patched recovery.

To get the 2.1 rom rooted go to http://www.villainrom.co.uk/viewtopic.php?f=100&p=20592#p20592 and take the second update.zip.

Put it on the root of the sd card before you do the rooting process, and then flash it. You will have stock rooted update :)

Btw, do a nandroid backup immediately after you get the recovery image opened. Scroll to backup and restore, then nandroid backup, then make a new nandroid backup.

Then flash the rom zip I mentioned. This will give you a restore point if you mess something up.
[Hero, G2 Touch Android Development] deadwilder:
big thanks!

worked for me :)
[Hero, G2 Touch Android Development] felikz:
okay it worked, at least it seems so (everything like described by you), it also booted into the custom recovery mode. however, when now typing adb shell su or trying to use an app which requires root that fails.

i also noticed that there is not that su app from 1.5 which popped up whenever an app required root.

what to do now?
[Hero, G2 Touch Android Development] pulser_g2:
You now need to install either a custom ROM from recovery, or install something that will give you root.

You could use adb to push the superuser files, when in recovery mode (which gives you root), or you could flash the second ROM at http://www.villainrom.co.uk/viewtopic.php?f=100&t=1973#p20592 if you just want a rooted version.

Or go the whole way and install custom ROM like Villain12 or whatever.

But this is only a method to get recovery. Once you are in recovery, rooting is easy :)
[Hero, G2 Touch Android Development] idroid84:
just to confirm something, once I go to flash back to the 1.5 ROM I can't it tells me about ID missmatch (something like that) so I can't use any downgraded RUUs. However, I can flash using update.zip roms via recovery. :D
[Hero, G2 Touch Android Development] pulser_g2:
Yeah. But you could also flash the SPL with an unlocked one using root and recovery, then use a goldcard to downgrade using an RUU if needed :)

Or just use update.zips. :)
[Hero, G2 Touch Android Development] idroid84:
Ah, is it the SPL that locks you from downgrading using RUU? I will downgrade SPL and do a check. Cheers mr.

EDIT: Unlocked SPL worked a treat! full RUU downgrade 1.5 :) yeeeeeh!
[Hero, G2 Touch Android Development] Iluvia:
Works good, but market does not display top paid apps (only top free), am I the only one ?
[Hero, G2 Touch Android Development] gpo2307:
Good but not perfect

Hi,

first of all, big thank to you.

It works like a charm. But when i use adfree, it says me that my phone isn't rooted.

Any idea?
[Hero, G2 Touch Android Development] pulser_g2:
Did you actually install a custom rom? This gets recovery back, then you should flash a zip.

At villainrom site kendon posted a stock rooted update.zip. flash it.

Root package to follow today for those who want it.
[Hero, G2 Touch Android Development] Uniyah:
Works great :D

It saved my Hero :D
[Hero, G2 Touch Android Development] felikz:
sry, where to get superuser files from? :)
[Hero, G2 Touch Android Development] -rev-:
Woop, wrong thread apologies.
[Hero, G2 Touch Android Development] andre.mud:
Hello,

Just got my Hero with 2.1 installed on it. What are the changes of bricking my device. I've had a Touch Pro which i flashed regulary and never had any problems with, but Android flashing is new to me.

When something goes wrong can I go back to factory defaults?

Andre

HTC Hero 2.1
[Hero, G2 Touch Android Development] pulser_g2:
You should always just be able to flash the RUU to get back to where you are. This method here is proven safe now, and isn't really flashing anything risky.

As for android in general, just be careful flashing radios. Don't pull the battery out when flashing a radio. That's about it.
[Hero, G2 Touch Android Development] andre.mud:
been trying to follow the steps:

when doing a adb reboot is says:

error: closed.

The previous steps seem to work.
[Hero, G2 Touch Android Development] Swannyno1:
Works fine on my RUU 2.1 thanks
[Hero, G2 Touch Android Development] yohny:
I cannot do the first step

Hey, I am newbie here.

Can you teach me how to do this in a slower way?

I have changed the path in the environment. However, when I try to run the runindos.bat it says adb is not recognized bla bla bla.

Same thing with what happen to the guy from Wales.

Could you help me :(

Yohny
[Hero, G2 Touch Android Development] pulser_g2:
I don't know how I can make it simpler. Use the guide here > http://www.villainrom.co.uk/viewtopic.php?f=46&t=1735 to get going with adb.

It even has pictures. :) If adb isn't found, then you didn't do the path part right.

If you 'cd' into the folder that the sdk is in, it will find adb for you. But just add it to the path and it saves the hassle.
[Hero, G2 Touch Android Development] Iluvia:
Are there downsides, once intalled VR12, to use flash rec to flash RA, just a little bit annoying to have to use a PC to come back in recovery (HOME+POWER stucks with red alert icon and have to pull battery otherwise ...)

Thanks
[Hero, G2 Touch Android Development] pulser_g2:
eh? If done correctly, this fully flashes the recovery into the partition. But you can just do

flash_image recovery AmonRA......zip if you want.

There's a 1.6.2a mod inside the VillainROM 12 package, so I have no idea how you get the red icon if you installed VR12 via update.zip as normal
[Hero, G2 Touch Android Development] yohny:
I am confused on what to put on the path:

Click on the button named "Environment Variables".

Now, doubleclick on the text entry named "Path" in the lower list box.

at the end of it, enter "might\have\other\entries\before\;C:\Path\To\SDK\Tools".

In my "path" it looks like this ";C:\android-sdk-windows\tools\".

(";" is required at the start so windows knows it's a new entry.)

My sdk file is the same with this guy which is: android-sdk-windows.

So, what am i supposed to put in the pat? Do i have to out the " " sign also?

or just simply might\have\other\entries\before\;C:\Path\To\SDK\Tools

please clarify for me :) I am a confused boy.
[Hero, G2 Touch Android Development] pulser_g2:
1) Unless otherwise stated, you never put the quotes into something you enter. This is basically a rule throughout the internet as well. Don't enter quotes unless otherwise stated. But anyway, if you look at some of the other path entries and you will see that they don't have quotes, you wouldn't put quotes round this one.

2) I would paste my path output, but it's incredibly long, and it's a waste of space. So here's an excert.

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;I:\android-sdk-windows-1.5_r3\tools

Do it like that. Use your path instead of mine, else it obviously won't work.

And you could just cd into the directory in command prompt and run the commands from the present folder there.

But get the path sorted :)
[Hero, G2 Touch Android Development] yohny:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Teleca Shared\might\have\other\entries\before\;C:\android-sdk-windows\tools\

Dear, above is my path. But still i have no luck. Can you spot anything wrong with my path? actually the last word from the original path would be the word

Shared

So I put the sigh \ and the rest of the words and changed the ;C:\android-sdk-windows\tools\

But still no luck :"( I have tried gold card method for 3 days now and failed.

Just Now I spot the new thread saying we have a new method to root without gold card I was so happy. But still it fails me again :( It's 3.23am here in Singapore. i need a bit of sleep. I appreciate your help. If possible please put in more details. Thank you!
[Hero, G2 Touch Android Development] Hacre:
Download zip file.

Put files in zip file in your sdk tools folder. This usually c:\android-sdk-windows\tools.

Run runindos.bat

Follow instructions

Phone rooted.

And seriously, if you don't manage this part, just don't bother. If you can't grasp the basic workings of your own operating system you shouldn't be trying to root your phone as the chances are high that you'll brick it.
[Hero, G2 Touch Android Development] pulser_g2:
Ummm. I think you've just screwed up your path. There is no need for trailing slashes in it.

Anyway, I give up with this method of explaining. Do this. Don't miss any steps. Don't change anything.

copy the entire contents of the sdk tools folder to C:\adb . Copy the zip file i posted in that guide into the same folder. Now open the command prompt. Click start. Press run if on XP. type "cmd" into the search box, or run box (remember, what's the rule about quotes?).

Now in that box, type (With an enter after each line)

C:
cd \
cd adb
adb devices
<If you don't see your hero's serial number here, give up, as I can't make this any easier for you at all. It's not physically possible>
runindos.bat
<now look at the screen and watch as it roots and puts recovery onto phone.

Try that. Otherwise, rooting isn't for you. Try learning more about windows paths etc if you want to try this kind of thing in future. And command prompt stuff etc. Otherwise you'll just get this kind of problem all the time.
[Hero, G2 Touch Android Development] yohny:
Dear Pulser,

I think I am almost there. I can see my HTC serial number by running adb devices all the while when i type adb devices.

I am not quite clear on the folder C:\adb which I don't have, the adb file is inside Android-sdk-windows-tools.

One last time I would ask you, have I put my path correctly? I think I am wrong on the path. Is this the right way I put my path? after the word shared then there is not space at all and put might\have\other\entries\bla bla bla? as shown below?

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program Files\Common Files\Teleca Sharedmight\have\other\entries\before\;C:\android-sdk-windows\tools\

-copy the entire contents of the sdk tools folder to C:\adb .

-Copy the zip file i posted in that guide into the same folder.

-Now open the command prompt. Click start. Press run if on XP. type "cmd" into the search box, or run box (remember, what's the rule about quotes?).

I am familiar with typing command prompt, it's just that still couldn't work.

If you still want to advice me, I will be glad. If you give up it's okay. I will keep trying on my own, because I wouldn't give up after I have tried 5 days, tyring another 5days will just fine for me :)

I know some of you who are experts can get very impatient when comes to newbie, LOL.
[Hero, G2 Touch Android Development] Ninkul:
Excellent. I thought i'd be waiting much longer for a 2.1 root :)
[Hero, G2 Touch Android Development] pulser_g2:
If you can type adb devices and see serial number, you are ready. Ignore the whole C:\adb thing. That was for if you couldn't get it working otherwise. Just extract my zip file and run "runindos.bat" from command prompt to root the phone. To test, before doing that command, type adb devices again and be sure that the serial number appears.

That should be you
[Hero, G2 Touch Android Development] yohny:
Still Pulser, I have tried to run adb devices, I can still see my Hero serial number. But when I run runindos.bat still the same problem appeared. This is what I did:

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Akuang>cd\

C:\>cd androidsdk/android-sdk-windows/tools

C:\AndroidSDK\android-sdk-windows\tools>adb devices

List of devices attached

HT991L902842 device

C:\AndroidSDK\android-sdk-windows\tools>cd..

C:\AndroidSDK\android-sdk-windows>cd..

C:\AndroidSDK>cd possiblegsmroot

C:\AndroidSDK\PossibleGSMRoot>runindos.bat

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

"Files copied and permissions set, rebooting HTC Andriod 2.1"

"Your phone will now reboot into normal mode, then reboot into recovery mode.

If it does not reboot the second time, wait 10 minutes and manually reboot and begin again."

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

"Your phone is now rebooting in Rooted Recovery mode, do a backup and load your

ROMs"

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

C:\AndroidSDK\PossibleGSMRoot>

Nothing happen to my phone at all. Do I have to copy any file to my sdcard?

FYI, Im using HTC Hero SEA bought in Singapore. I just updated to Android 2.1 from OTA 5 days ago. Any clue? have you tested this root to HTC SEA version?

I have tried numerous times with Goldcard route and with different RUU before this :( With no success. I don't know if I'm a moron or my Hero version just don't work at all for ROOT!

Yohny
[Hero, G2 Touch Android Development] excession3105:
First post on XDA, and first off I'd just like to say keep up all the good work guys, this site is the mutts.

Next up, like the happy drunk, I love you guys, this post is a life saver. I made the mistake of flashing the official upgrade, and my phone's performance has been getting steadily worse. This lifeline now allows me to try loads more ROMS.:D
[Hero, G2 Touch Android Development] pulser_g2:
Put the files from PossibleGSMRoot.zip into the SAME FOLDER as adb executable is in. Then cd into that folder, and run the runindos.bat file. You MUST NOT cd between the adb devices command or the runindos.bat command, as your path variable isn't set up right

ie.

dir
<then you will see a list of files, including adb AND runindos.bat>
adb devices

List of devices attached
HT991L902842 device

runindos.bat
<and then it installs recovery on phone>
[Hero, G2 Touch Android Development] Hacre:
Oh my god. Are you some kind of trollbait trying to get people banned? Because if I took this post completely seriously, all the names I really want to call you would get me banned.

C:\AndroidSDK\android-sdk-windows\tools>

The contents of the zip file need to be in that directory. runindos.bat needs to be in that directory. The files with it need to be in that directory.

Not C:\AndroidSDK\android-sdk-windows\tools\PossibleGSMRoot>, not C:\AndroidSDK\android-sdk-windows\PossibleGSMRoot>. not c:\windows\possiblegsmroot> not on the desktop, not on the moon, nowhere but in that directory, C:\AndroidSDK\android-sdk-windows\tools>.

C:\AndroidSDK\android-sdk-windows\tools>.

So when you type your command, it will look like this:

C:\AndroidSDK\android-sdk-windows\tools> runindos.bat

Are we clear yet? Because I can't be bothered drawing pictures...
[Hero, G2 Touch Android Development] yohny:
Oh my god I am a complete moron after all!!! :(

Now it's working!! The blue carebear is there now. I am doing nandroid backup!

Now do i flash the villain ROM 12 after this??? :)

Thank you so much for your patience! Please dont call names..haha..

I believe your patience level is better now.

Yohny
[Hero, G2 Touch Android Development] yohny:
Pulser,

I was on my bed and I read your reply. I got up and turn on my computer again. I just did Nandroid backup! Now I will flash VillainRom 12! Oh I am so happy. I thank you for your patience :) :) :)

Yohny
[Hero, G2 Touch Android Development] Hacre:
Haha finally. Yes now you can flash VillainROM 12.

However, if you have never flashed a custom ROM before, you need to:

Partition the SD card in recovery.

Set the values as follows:

0 swap

512 ext

and the rest will be allocated as regular SD card storage.

Then back in the main recovery menu, enable USB-MS. Copy Villain 12 to the SD card on your computer, then disable USB-MS again on the phone by pressing the home key.

Then you can flash Villain 12.
[Hero, G2 Touch Android Development] yohny:
Lucky I read your feedback again :)

I just wipe everything out. Now I am downloading Villarin Rom 12, i extracted the other day and deleted the zip file and now I found out that I have to flash using the zip file. lol.

need another 20 minutes to wait here.

So all the process that you are telling me, is being done while the phone is still connected through the usb in my computer right?
[Hero, G2 Touch Android Development] yohny:
i successfully flashed VillainROM 12!!! :) I will enjoy the freedom of my new HERO!

I like the gallery so much, that's what attracted me to go this long way to be able to root. Along the way I pick up some terms, and I think I am not so much a moron now :)

Thanks for your guidance :) Appreacite it very much. Sincerely yours, I'm Indonesian by the way working in Singapore :) I need to sleep now. Now is 4.46am.

YOhny
[Hero, G2 Touch Android Development] ticho:
I just wonder when will someone release an .apk that will work instead of users having to set adb up.

Incidentally, adb is not even needed - you just need to put a recovery image (amonra or other) on your sdcard and enter few commands in the phone (ConnectBot application could be used for that).
[Hero, G2 Touch Android Development] pulser_g2:
The issue with this (we have tried :)) is that applications run in their own user-space, and can't write to /data/local without root.

We need to put files there, as that is part of the path variable, and IIRC android is firm in only permitting execution from $PATH.

So we wouldn't be able to put the files there or make the required symlink :(

We even tried a gscript and it didn't work, as gscript is running in it's own application 'Group' and couldn't access this part of the filesystem.

But anyway, for the 5 minutes to set up adb, it stands you in good stead for future if it's set up :)
[Hero, G2 Touch Android Development] ticho:
Ah, I see now - adb shell runs with privileges to write to /data/local, while regular apps don't. I missed that, sorry. :)

And I agree that setting up adb is beneficial for the future, if only for quick, painless file transfer. Probably more beneficial for us commandline junkies than for a regular Windows user, but still. :)
[Hero, G2 Touch Android Development] yohny:
Keyboard layout

Hi there,

It seems that after I run VR12, the keyboard turns into the old my android 1.5.

Very narrow and hard for me to type sms. The android 2.1 from OTA update keyboard was far better. Also, this VR12 don't support chinese :)

Where should I download a better keyboard layout? :P

Yohny