Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
oldsk00lz
Old
#1  
Senior Member - OP
Thanks Meter 13
Posts: 230
Join Date: Nov 2008
Default Reverting from Modded firmware to stock firmware

Hi there,

Sorry if this thread is redundant, but it seems the topic is always buried within other threads versus focusing on it. Then again, maybe it's a simple answer and needs no focus.

I had some quick questions before I mod my G1, and know it has been touched upon, but just want to make sure.

Once your phone is modded and using the test keys, then is it currently impossible to ever go back to an official firmware update without the need to resign it with the test keys?

I guess I am curious if Google ever did force a 'test key' OTA update that took away root (or worse), then would we be stuck at that version until someone finds a way to flash the device via other means? Even if we had root, would we ever be able to revert back without having Googles private key?

Also, with the new modded firmware will we be able to install older revisions (i.e. go back to an earlier modded release candidate? say RC32 to RC30)

Thanks,
olsk00lz
 
Gary13579
Old
#2  
Gary13579's Avatar
Retired Moderator
Thanks Meter 58
Posts: 516
Join Date: Nov 2008
If you're that worried about Google signing an update with the test keys (which, FYI, would be a horrible idea, as the devices that have the official keys would freak and couldn't update), then do this:

Make your own keys (it's not too hard, I'm sure JesusFreke could help), sign the modded RC30 yourself, and update to that. There's nothing Google could really do to stop that, except somehow make an update that didn't require signing. If they did that, we could just make our own update that didn't need signing, which wouldn't even require root access anymore.
 
oldsk00lz
Old
#3  
Senior Member - OP
Thanks Meter 13
Posts: 230
Join Date: Nov 2008
Makes sense, but questions still remain. More out of curiosity.

- If you wanted to sell your phone as stock or something later and wanted to revert back to "enable OTA"... is there anyway to do this?
* May not be possible without a private key???

- If you are using the test keys, or your own keys, then can you install any firmware. a) revert from a modded RC32 to a modded RC30 with google test key, or b) switch from a modded RC30 (goog test key) to a modded RC30 (your own key)
* Should be possible if you have both public/private keys??

Also, anyone see an impact with the new fingerprint being sent back to google, I have seen suggestions to create a new entry in your host file to prevent this.

Thanks !
oldsk00lz
 
SGTDavePwnage
Old
#4  
Senior Member
Thanks Meter 0
Posts: 157
Join Date: Nov 2008
Yes, you can go back to stock updates.
You can grab the recovery image from one of the official updates and flash it in the same way you did to get the modded one, and then apply the official update.
 
Gary13579
Old
#5  
Gary13579's Avatar
Retired Moderator
Thanks Meter 58
Posts: 516
Join Date: Nov 2008
Quote:
Originally Posted by oldsk00lz View Post
Makes sense, but questions still remain. More out of curiosity.

- If you wanted to sell your phone as stock or something later and wanted to revert back to "enable OTA"... is there anyway to do this?
* May not be possible without a private key???

- If you are using the test keys, or your own keys, then can you install any firmware. a) revert from a modded RC32 to a modded RC30 with google test key, or b) switch from a modded RC30 (goog test key) to a modded RC30 (your own key)
* Should be possible if you have both public/private keys??

Also, anyone see an impact with the new fingerprint being sent back to google, I have seen suggestions to create a new entry in your host file to prevent this.

Thanks !
oldsk00lz
Yes, you would be able to reflash the official keys, so that it'll OTA update again. You should have backed up your keys before you flashed (I'm not sure if the guide on the forums tells you to do this, it probably doesn't, so you shouldn't follow that exactly).

You probably won't be able to go from modded RC30 to official RC30. The updater would probably disallow it because it is the same version. I think you'd have to modify the modded to RC29 (although, there's probably a build number that it uses somewhere, I doubt they use the RC identifier we do for update checking).

If you were to resell the G1, just reflash the normal keys. When the next update comes out, he'll be back on stock.
 
oldsk00lz
Old
#6  
Senior Member - OP
Thanks Meter 13
Posts: 230
Join Date: Nov 2008
Gotchya.... Thanks!
 
JesusFreke
Old
#7  
JesusFreke's Avatar
Senior Member
Thanks Meter 36
Posts: 735
Join Date: Oct 2008
Location: Dallas
I think your question has already been pretty much answered, but let me clarify the details

There are 2 ways you could apply an "official" update over a modified one:
- You can resign the official update with the keys used by the modified recovery image.
- You can re-flash one of the official recovery images, and then apply the official update without having to re-sign it. The updates themselves contain the recovery image for that version (look for recovery.img). So you could extract that file, flash it onto the recovery partition, and then apply the update.
"Whether You Think You Can or Can't, You're Right"
--Henry Ford

Android Developer Phone 1 - JFv1.51 - REPRESENT!
 
bhang
Old
#8  
bhang's Avatar
Senior Member
Thanks Meter 3
Posts: 441
Join Date: Aug 2006
Location: megalopolis
Default hey J.F. correct me if im wrong...

But you included the goog signed recovery.img in the androidmod.zip so you could just refollow the directions in the package to go back to a goog signed G1.

At least that's how I understood it.


Bhang
http://www.geocities.com/sarabhanga/bhang.html
1 mtg3 stock
1 Moto Cliq rooted, pimped (bought opening day also)
2xHTC - DREAM - G1(1bronze,1black)
black, bought 10.22.08 opening day in the us CM6
bronze, cyanogen[out of use]
mytouch slide, bought 1st day of soft-launch, rooted running slideme5r1...for now{brand new one in box on hold for a bit
G2 pimped, many mods, screen rez, battery morphed, pershoots latest, looking to go to CM7 soon
 
mrboyd
Old
#9  
Member
Thanks Meter 0
Posts: 34
Join Date: Nov 2008
Your missing out on something important here.. when most of the population will have been upgraded to a non rootable firmware your rooted g1 will be worth n time its original value. Why on earth would you sell it locked for 1/2 of the original price???!!!
 
JesusFreke
Old
#10  
JesusFreke's Avatar
Senior Member
Thanks Meter 36
Posts: 735
Join Date: Oct 2008
Location: Dallas
Quote:
Originally Posted by bhang View Post
But you included the goog signed recovery.img in the androidmod.zip so you could just refollow the directions in the package to go back to a goog signed G1.

At least that's how I understood it.


Bhang

No, I included the RC29 boot image (not the recovery image), which was just a convenient "known good" boot image I had laying around at the time when I packaged it up.

You'll need to get an official recovery image from one of the official updates. It's called recovery.img, and is in the system folder in the zip file.
"Whether You Think You Can or Can't, You're Right"
--Henry Ford

Android Developer Phone 1 - JFv1.51 - REPRESENT!

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more