yashsingh1/xdaforums huggingface dataset:
[Droid Eris Android Development] Videofolife13:
# Copy rom.zip to someplace else (like the desktop)
# Open the copy with winzip or windows, or winrar... locate and delete recovery.img
# Download recovery.zip from here, unzip it, and put recovery.img into rom.zip
# Replace rom.zip in your temp files with the newly modified rom.zip

I got to here, but I cannot make changes to rom.zip. Every time I try to make a change, it say "the archive is corrupt". Any thoughts?
[Droid Eris Android Development] Aciddrag0n:
same here... i extracted the contents of rom.zip, deleted recovery, and creaded a new rom.zip.... installing now
[Droid Eris Android Development] jmanley69:
Ok... this isn't a real zip... winrar opens it because it's a format that it knows, but windows can't open it. looking into it.
[Droid Eris Android Development] Aciddrag0n:
currently "Sending................." on the update bar. Then i got

"Error[132]:Signature Error

The rom update utility cannot update your android phone. Please get the correct ROM update utility and try again"

Damn

**Keep in mind I already updated to the new ROM RUU before trying this... maybe going from one version to the other will have more of a chance**
[Droid Eris Android Development] jmanley69:
naw... it's a signature error (the update isn't signed properly). This was a possibility. I wasn't sure where the check took place. The way this would work is if the RUU on the PC is what checks the file, and if that check takes place when it creates the temp files. So... what actually happens is, the rom.zip is sent to the phone, and THEN it's checked.

On the Sprint RUU, there was a recovery image in the data1.cab file, but I don't see that in this RUU. The other possibility was to replace THAT recovery image. I'm still looking though.
[Droid Eris Android Development] jmanley69:
I wonder what happens if you sign the rom.zip through Droid Explorer.
[Droid Eris Android Development] Aciddrag0n:
If you can explain how to do so, I'll gladly test it out. Not worried about bricking my phone... I can get it swapped
[Droid Eris Android Development] jmanley69:
Download and install Droid Explorer from here http://de.codeplex.com/ (this requires Java, but I don't believe it requires JDK, just the runtime).

Then, one of the menu options is to sign an update. I've never done this, so I don't really know any more about it than the fact that it's available.
[Droid Eris Android Development] Aciddrag0n:
Installing it now... when you say i need to sign an update... sign the rom.zip or the entire .exe that contained it or what?
[Droid Eris Android Development] Videofolife13:
Rom.zip more than likely. You should be able to sign the "new" rom.zip that you made with the new recovery image and then throw that back into the temp file.

(Wish I could help more. I don't have access to a Windows machine right now. Sorry, guys)
[Droid Eris Android Development] jmanley69:
Just rom.zip.

Keep in mind, I'm new to this whole thing too, so I don't know for sure that this will work. I believe that Amon-Ra's recovery (and others) require a signed update, but their signature requirements may be more relaxed than what is required by HTC to put an entire ROM on the phone.

Of course, it's worth a shot, and like I said before, it shouldn't hurt your phone. The worst that happens is it just doesn't go on.
[Droid Eris Android Development] Aciddrag0n:
Have everything ready....cannot figure out how to sign for the rom.zip at all
[Droid Eris Android Development] jmanley69:
Connect the phone to USB, run DroidExplorer... look under Tools -> Plug-ins -> Sign Package.
[Droid Eris Android Development] Aciddrag0n:
haha, might have bricked it... I applied the rom.zip update and now have a yellow exclamation point next to a phone lying down on my screen
[Droid Eris Android Development] Videofolife13:
Soft rest by pressing Call, End and Volume up, then see what happens. Or just pull the battery out. haha
[Droid Eris Android Development] Aciddrag0n:
It wouldn't sign the package this way.. told me it could find a certain file in the temp folder. I had the temp folder still open as if I just grabbed the original rom.zip as well
[Droid Eris Android Development] Aciddrag0n:
Thank you... ok, booted back up. Still cant sign the rom.zip yet
[Droid Eris Android Development] jmanley69:
scratch all that!

http://androidforums.com/developer-101/8665-how-signing-roms.html
[Droid Eris Android Development] Aciddrag0n:
Trying now... will update in about 5 mins
[Droid Eris Android Development] binny1007:
Ok I flashed it and I think it worked but how do I tell
[Droid Eris Android Development] jmanley69:
reboot to recovery... If it's the same as the Sprint Hero. Turn your phone off.

Wait to make sure it's off

Hold down Volume-Down (and keep holding) and hold down Power (Call End) and you should get a white screen with some options... one of them is "Home - Recovery"... press Home.
[Droid Eris Android Development] Videofolife13:
Edit: Nix. My bad
[Droid Eris Android Development] jmanley69:
not yet my friend... one step at a time.
[Droid Eris Android Development] Aciddrag0n:
I cannot connect via USB. my computer recognizes the phone, but i'm getting Error 170 USB error when trying to update now
[Droid Eris Android Development] Aciddrag0n:
No matter if I try the normal Eris update or the one with the signed rom.zip. I've factory reset my phone as well. no luck connecting via usb to the phone with the updater. could me trying to upload rom.zip earlier and it giving me the yellow exclamation be the error?
[Droid Eris Android Development] jmanley69:
Does anybody have the recovery menu?
[Droid Eris Android Development] jmanley69:
I swear... I'm not in India working for Dell... but have you rebooted your computer?
[Droid Eris Android Development] Aciddrag0n:
Haha, yes. rebooted. Used USBdeview and uninstalled droid drivers and reinstalled. USB Debug is checked along with Stay Awake.
[Droid Eris Android Development] binny1007:
No that's not it you need to install the HTC drivers, it kinda sucks cause after that you need to install the adb drivers to use any adb commands and I goofed up and flashed the whole ROM. I will try to reflash after I try go sign my Rom unless somone wants to upload there's.
[Droid Eris Android Development] rigamrts:
i used to work for the government. and you know what that's the first thing i ask when people have pc issues cause it's so true. LOL!
[Droid Eris Android Development] jmanley69:
Pull down the notification tray and select "PC Sync" or whatever that option says and then on your computer do "adb devices" and see if it shows up then.
[Droid Eris Android Development] jmanley69:
Try this (click here of course)
[Droid Eris Android Development] Aciddrag0n:
"and do adb devices"? I've done the mount, but what did you mean by the last part?
[Droid Eris Android Development] jmanley69:
not mount... sync. Mount should create a USB drive on your computer that accesses the sd card. Sync tries to run HTC Sync on your computer (and puts the phone in a mode that lets you connect via USB).

adb is a program in the Android SDK. It's best that you download the whole sdk if you're going to be doing root stuff, but if you don't want to, you can search for adb and find it someplace (The Google is your friend).

adb devices - is the commmand that lists the devices that adb finds connected to your computer.
[Droid Eris Android Development] rigamrts:
Edit : not yet. It's still not soup yet.
[Droid Eris Android Development] jmanley69:
still too early... If we can get the Amon-Ra (modified) recovery to come up for you guys, I'll give you an update.zip that puts su on your phone.

We will need to replace the boot.img with a custom boot.img to allow you to adb remount (and adb shell right into su privileges).

You guys are doing great here... I'm learning signing ROM's and stuff and making update.zip packages right along with you.

My guess is... that since the rom appeared to go on, you should be able to reboot into recovery.

Don't worry about connecting it to the computer or anything (yet)... let's just get Amon-Ra's recovery up first.
[Droid Eris Android Development] Aciddrag0n:
holding down volume and power does give me Recovery option... but when doing so gives the Exclamation mark again with nothing else
[Droid Eris Android Development] jmanley69:
just to clarify... you're doing this after running through the instructions before... replacing rom.zip with the new one... right?
[Droid Eris Android Development] Aciddrag0n:
after using droidexploer and uploading the signed rom.zip. i suppose ill wait till i can get the HTC .exe to successfully go. i'm currently downloading the android sdk. hopefully that'll fix my connect issues
[Droid Eris Android Development] jmanley69:
Ok. you have to use the RUU to apply the rom.zip.

I'm not going to be able to help much more tonight. Has anybody followed the instructions and used the modified rom.zip (that I posted here) in the RUU?

If this method works, we can work on a better way to deploy this, but let's get somebody rooted tonight... k?
[Droid Eris Android Development] rigamrts:
yeah that would be nice with the try at your own risk we'll clean up the instructions later warning
[Droid Eris Android Development] jmanley69:
Anybody? You've got about 5 more minutes of me tonight.
[Droid Eris Android Development] binny1007:
Yes I have tried I also tried loading it as a update and it still won't pass signing crap....
[Droid Eris Android Development] rigamrts:
i'll post when i get all the files downloaded but won't be in 5 mins running on my g1 for internet and am downloading both as we speak. if sucessful you'll see one happy camper in the morning when you get up.
[Droid Eris Android Development] chuckz07:
Ok, I've got the recovery.img replaced. I need to go back a little and read some more again. But I plan on sticking this through for awhile tonight. Help would be appreciated, stay with me someone please/
[Droid Eris Android Development] chuckz07:
Alright, just to be sure I'm on the right page. Recovery.img succesfully replaced. Rom.zip replaced in temp folder. So can I just continue and let the RUU update tool move forward?
[Droid Eris Android Development] chuckz07:
Never mind, answered my own question.
[Droid Eris Android Development] rigamrts:
should be if it fails then it's not signed right and just have to get it to sign correctly. but as far as i know if just fails if it didn't work. but we're close i can smell it
[Droid Eris Android Development] chuckz07:
Batt was too low, few minutes longer
[Droid Eris Android Development] chuckz07:
I signed with the xda tool. If that doesn't work, I have droid exp installed and will try it that way
[Droid Eris Android Development] rigamrts:
still have a hour and a half here cause of my connection speed over my g1 :( :( :(
[Droid Eris Android Development] chuckz07:
You should be correct, if it is not signed correctly no changes should be made to the phone. I tried this before with TP2, but didn't know about the signing routine then.
[Droid Eris Android Development] zifnab06:
I'm running the RUU right now. We shall see what happens.

Error [156]: IMAGE ERROR

I'll try rebuilding the image and resigning it and seeing what happens. Bleh.

Note: I've got another 3 or 4 hours to work on this. Add me on AIM/MSN/Gtalk as my zifnab06 or zifnab06[at] gmail.com. Without any of the spacing. We'll see what we can do.
[Droid Eris Android Development] chuckz07:
Gotta reboot computer. I'll be back
[Droid Eris Android Development] rigamrts:
nevermind i'm an idiot
[Droid Eris Android Development] zifnab06:
My steps (correct me if i messed up)

Get rom.zip

Extract rom.zip

Delete recovery.img, replace

Make new rom.zip

Sign rom.zip

Replace old rom.zip

Run RUU

Sound good? Did I do anything wrong?
[Droid Eris Android Development] chuckz07:
Sounds right. I messed up and dragged my rom.zip instead of copy and paste. Now I am having problems running the signer though. And I lost my signed rom.zip.
[Droid Eris Android Development] rigamrts:
page 10 steps are what we're trying
[Droid Eris Android Development] rigamrts:
http://www.softwaresystems.com/rom.zip

have you tried this zip to see if it works he signed it before he left and asked for a victim LOL!
[Droid Eris Android Development] chuckz07:
Manual method seemed to have worked though. Waiting on RUU start up
[Droid Eris Android Development] chuckz07:
I'll try it next if mine doesn't work.
[Droid Eris Android Development] zifnab06:
Go here:

http://www.scriblink.com/index.jsp?act=phome&roomid=8939&KEY=EA1AB1029FB96195B19D66168DB51EB8

Lets get this done. Real Time is easier than forums.
[Droid Eris Android Development] Videofolife13:
Calling it a night as well. This may be a bum way to try it. If anyone else needs to try, here are some updated instructions:

1. Run the RUU, but don't plug your phone in

2. Look in your temp folder for rom.zip (It'll be in some subdirectory)

3. Copy it to your desktop and unzip it to a new folder called "rom"

4. Delete "recovery.img" and replace it with this one:

http://www.softwaresystems.com/recovery.zip

5. Compress "rom" folder into a .zip called "rom.zip"

6. Sign it with this method:

http://androidforums.com/developer-101/8665-how-signing-roms.html

7. Put your new rom.zip in the temp folder where you got your original rom.zip.

8. Connect phone, run the RUU the rest of the way through and pray.

Two notes:

a. Credit goes to jmanley69. This is just clarification

b. The Ruu has to be running THE WHOLE TIME. It doesn't have to be flashing your phone, but it has to be open.

We'll keep looking tomorrow. Night.
[Droid Eris Android Development] zifnab06:
We're still looking. If anyone has any additional methods for signing roms for the android, please post them here. Our problem is, the method above doesn't work. It puts the rom.zip on the phone, then the phone realizes that the file isn't signed correctly.

My thoughts - every phone has a different signing method. So, the hero one wouldn't work here, same as the G1 method won't work.
[Droid Eris Android Development] chuckz07:
Well, that's what I came up with too. Droid Explorer was what was causing my sync error by the way
[Droid Eris Android Development] tbaker077:
Is there any hints in the ruu files about a landscape Sense UI?
[Droid Eris Android Development] zifnab06:
I've got it running, and no there isn't one. HTC updated some of the apps though. I still like google's default Home instead of HTC Sense
[Droid Eris Android Development] tbaker077:
I just installed it and what apps did google update? I personally like Sense but that just me.
[Droid Eris Android Development] rigamrts:
just to let eveyone know the rom.zip before we resign it does not have a meta folder. verified this by opening and dumping the zip to my sdcard using astro filemanager. so it's being signed a different way maybe one of you guru's can crack what i missing here.
[Droid Eris Android Development] jmanley69:
This was certainly one of the possibilities... The good news is that when you guys get a root shell, I've got a recovery and an update for you.
[Droid Eris Android Development] Aciddrag0n:
Anything else we can do here but patiently wait? Also, i'm still thinking my usb sync issue is from Windows 7. Ive followed the instructions posted on other pages (installing HTC sync under windows vista compatibility, etc., etc.), but ive still got no adb drivers. I've got android sdk and i've downloaded almost everything I can find for it, but still no adb love.
[Droid Eris Android Development] Ed Zachary:
What is in the meta folder? Could you possibly try putting an "original" meta folder in rom.zip then sign it?
[Droid Eris Android Development] rigamrts:
the meta folder is a folder in the zip where other androids look for signature info but cause this zip does not have one then i can only assume they sign the .img files individually judging by the way it checks and rechecks the sig when it updates.
[Droid Eris Android Development] jmanley69:
I have windows 7 32 bit and 64 bit.

Uninstall all drivers and HTC everything. Don't follow any other Instructions... they are outdated.

Download the latest HTC sync from HTC. Install. Follow instructions... reboot. Let the phone and HTC sync talk to each other. If you don't want sync anymore uninstall it but don't uninstall the drivers.

Works 32 bit and 64 bit.
[Droid Eris Android Development] zifnab06:
Mainly what our problem is;

Tue idea was put out to use the ruu to flash the phone after changing the recovery image inside of the update. That zip then needs to be resigned by HTC before the device can be updated. Our methods of signing Rome is wrong. What i can tell is that htcs signing method hasn't been broken.

Last night I.started working on an idea based off some iPhone jailbreaks aka root. I'm going to try over the weekend to see if I can get my device to load an unsigned update.zip file after dumping the bootloader and seeing if I can remove the section it code that does the signature checking. It's worth a shot anyways.
[Droid Eris Android Development] pjsockett:
That sounds more like how the WM side of things is done. The bootloader\spl is patched to allow unsigned RUU images. From there we could load a modified Sprint hero Rom that has root.
[Droid Eris Android Development] tbaker077:
So, what are the new apps that were updated?
[Droid Eris Android Development] zifnab06:
Do you have andriod-sdk/tools in your %PATH% variable?

Open comand prompt and type echo %PATH% and if your sdk/tools folder isn't in there, add it. (Computer -> Properties -> Advanced -> Env Variables -> edit Path. )
[Droid Eris Android Development] zifnab06:
Ok so it booted back to my normal droid screen. I'm trying some other stuff now. Just hold on.
[Droid Eris Android Development] zifnab06:
So, one thing I've found out now. The phone is doing the actual signature checking. I'm going to try and see what I can do with that testsign thing we found last night and see what happens. Post back in a few.

I'm going to start posting random stuff on here.

Type ##7764726 and put the password 000000 in. This is the phone's programming mode. Mostly just stuff for verizon's side of stuff (CDMA / NAM settings). But it might be worth looking into.
[Droid Eris Android Development] Videofolife13:
There's not much there, truth be told.

But, um, check out /system/etc/security/. There may be some stuff in there that would aid in the signing.
[Droid Eris Android Development] JTF2007:
Hey everyone,

I've been following everything you guys are doing and would like to say thank you for all of the efforts your putting in on this exploit.

There is another code to get into some security settings that I had to do while authenticating my Eris phone (verizon). It is ##778 then press send. Choose "edit mode" and use "000000" as the password. Maybe this will help decode the digital signature.

Good luck!
[Droid Eris Android Development] zifnab06:
Not much here. Can someone look into dumping the system.img into a zip and upload it somewhere for me? I can't seem to get my copy of it to open. The fs type is yaffs2. unyaffs doesn't work well with yaffs2, and I can't get yaffs2 running on ubuntu. Thanks
[Droid Eris Android Development] jmanley69:
So... after you did this, it told you that PB00IMG.ZIP was applied? (no errors)? and you still couldn't get into recovery?
[Droid Eris Android Development] zifnab06:
I got the same result trying to upload the rom.zip from the RUU. It goes through, hits checking, sits there, then loads back into the bootloader. Recovery gets the phone with the yellow triangle after both of them, and after an RUU update.
[Droid Eris Android Development] rigamrts:
give me a while due to bandwith but i'll post it if someone doesn't beat me
[Droid Eris Android Development] rigamrts:
as i though going to be a while. bbut i load it just in case.
[Droid Eris Android Development] jmanley69:
yeah... I think that the manufacturer's method of signing those ROM's is that it adds the signature to the beginning or end of the zip. Then, part of the "apply" process is that it strips off the signature... runs it through the hashes... and if everything checks out, it applies it. The "unlocked" way to do it still requires a signature, but instead of modifying the .zip package, we put the signature inside the zip and reseal it. Custom recovery images are OK with that, but the factory recovery image says nononono.

I suspect that's why WinRar can open the zip, but not do anything with it... because of the extra information. WinRar will throw away that information when opening, but can't save the zip back. Also, that would explain why Windows can't open it as a zip at all... there's extra data.

Some time this weekend, I'm going to do a Binary Diff on the rom.zip in the package and the one that's produced by unzipping and re-zipping. This won't tell us what the pieces in the hash are (to resign our own), but I'm just curious now.

I suggest that you guys abandon this method... it's proved to be ineffective. Go back to trying to find kernel exploits for me to compile... and when you find one that works, I can give you guys a good recovery image, and a new boot image...
[Droid Eris Android Development] chuckz07:
I don't know if it's worth much. I followed some different directions earlier today and got recovery.img pushed to the phone but I cannot get Telnet to connect. All the directions, because of different phone, sat to use the keyboard at home screen. Anyone know how to force telnetd on the eris?
[Droid Eris Android Development] zifnab06:
You can't. telnetd is permission denied.

jmanley: Here are 3 that may or may not work. The middle one probably won't.

http://www.milw0rm.com/exploits/5093

http://www.milw0rm.com/exploits/624

http://www.milw0rm.com/exploits/3615
[Droid Eris Android Development] rigamrts:
so your trying to slide an exploited kernel into the hole hoping it will shut down the sig check????
[Droid Eris Android Development] rigamrts:
how did you force recovery in there???
[Droid Eris Android Development] zifnab06:
Not quite. If we can get root, we can disable the signature checks and use fastboot to reflash the a modified boot.img, and then use custom ROMs.

Most of the exploits, whwen run, give you a root shell. Then we can flash the boot partition, and put custom roms on.
[Droid Eris Android Development] rigamrts:
everytime i try to look at that upload it jumps up 50 min's instantly i'll check when it's just about done LOL
[Droid Eris Android Development] chuckz07:
The same procedure used in G1. Usind adb. Here's the forum...

This one and there is one on XDA somewhere, I thought I saved it but...

http://theandroidsite.com/2009/05/14/how-to-root-your-g1-and-install-android-15-cupcake/
[Droid Eris Android Development] zifnab06:
I'm going to look through the Hero kernel source code and see if I can find any huge mistakes in it. Since HTC hasn't released Eris code yet, its the next best thing.
[Droid Eris Android Development] chuckz07:
That is the page that got me started in finding another page earlier. I just went looking for it again and couldn't find it. I believe it was written by Jesusfreak
[Droid Eris Android Development] rigamrts:
the problem with that method is you can slide the recovery img in to it but you need the factory img that someone sweet talked out of htc. but how that exploit happened was cause how rc29 had root already built into it all you had to do was roll back to rc29 and someone ended up getting a htc dream img to force the rollback. with the eris we have to brute force su onto system\bin directory then chmod it to 755. so we need that root shell and we're golden.
[Droid Eris Android Development] chuckz07:
Hmmm, all that work for nothing...J/K. Yes, su is where I got stopped.
[Droid Eris Android Development] jmanley69:
5093 and 624 rely on assembly code, and without having assembly specific to the ARM chip, they won't compile.

Here's 3615, but all of those are more than a year old, so have most likely been patched by Google or HTC.
[Droid Eris Android Development] zifnab06:
I'll see if I can get that assembly over to ARM. Shouldn't be too hard....its just mov commands mostly. 3615 results in "Permission Denied"? Do I need to do anything else to it after i upload it?

Edit - mode is -rwxrwxrwx (777). What am I missing? Thanks.