New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: I would like to see such HELP THREAD in every device forum
YES 233 97.08%
NO 7 2.92%
Voters: 240. You may not vote on this poll

 
Post Reply+
Tip us?
 
SanityPreservation
Old
#4071  
SanityPreservation's Avatar
Senior Member
Thanks Meter 109
Posts: 443
Join Date: Feb 2012
Location: In the south.
Quote:
Originally Posted by kgs1992 View Post
If the bootloader is unlocked, yes, else no. PG58IMG's cannot be made to pass the signature check.
And this is exactly why ordinary update files aren't PG58IMG.zip files.
 
trkaaa
Old
(Last edited by trkaaa; 30th May 2012 at 02:21 PM.)
#4072  
Senior Member
Thanks Meter 863
Posts: 924
Join Date: Feb 2010
Quote:
Originally Posted by kgs1992 View Post
If you want to S Off, then follow this guide & then this guide.
And if you want to remain S On, then this guide should help you

Originally Posted by SanityPreservation
Would it be possible to create an OTA-update.zip file that emulates a real OTA update and include a WiFi fix in it so people do not have to root their phones to solve the post ICS update WiFi problem ?
  • if you mean something like RUU.exe " i.e System.img ... etc" , up to my knowledge i guess this can't be done because it " System.img " don't include an updater-script , so this can't be cocked by Android kitchen , Read this post.


if you feel like Pressing my thanks Button , Please do


- Downgrade S-ON New firmware and GB OTA for Successful Revolutionary first time S-off ( Sensation )
here

- Solve WiFi Errors , Radio Flashing Problem , Caused by htc Dev Unlock Method ( Sensation ) here

- [Guide] Successful S-OFF after bricked ( wrong S-ON ) for ICS and GB
( Sensation )
here
The Following User Says Thank You to trkaaa For This Useful Post: [ Click to Expand ]
 
SanityPreservation
Old
(Last edited by SanityPreservation; 30th May 2012 at 02:44 PM.)
#4073  
SanityPreservation's Avatar
Senior Member
Thanks Meter 109
Posts: 443
Join Date: Feb 2012
Location: In the south.
Quote:
Originally Posted by trkaaa View Post

Originally Posted by SanityPreservation
Would it be possible to create an OTA-update.zip file that emulates a real OTA update and include a WiFi fix in it so people do not have to root their phones to solve the post ICS update WiFi problem ?
  • if you mean something like RUU.exe " i.e System.img ... etc" , up to my knowledge i guess this can't be done because it " System.img " don't include an updater-script , so this can't be cocked by Android kitchen , Read this post.
Kind of, but run from stock recovery as normal OTA_update.zip files are.

OK, checked your link. Thanks

I am still not fully satisfied though
OTA update files do have updater-scripts ?
 
kgs1992
Old
#4074  
kgs1992's Avatar
Recognized Contributor
Thanks Meter 1363
Posts: 1,307
Join Date: May 2012
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by SanityPreservation View Post
And this is exactly why ordinary update files aren't PG58IMG.zip files.
Effectively every zip that is flashed from fastboot is a PG58IMG or similar to it except, this is done in RUU mode.
Now, if HTC signs the update, the signature check is passed. If not, or if the file is altered, then it is not possible unless bootloader is unlocked (& S Off may also be required for flashing certain partitions).
That is how I've come to understand it. I maybe wrong, but I tried helping.
Sorry.
My website:
http://kgs1992.com/

 
If I've been helpful, you could consider making a small donation to me.
Click the button below to donate:

Thank you! Every donation helps & I appreciate it!

The Following 2 Users Say Thank You to kgs1992 For This Useful Post: [ Click to Expand ]
 
SanityPreservation
Old
#4075  
SanityPreservation's Avatar
Senior Member
Thanks Meter 109
Posts: 443
Join Date: Feb 2012
Location: In the south.
Quote:
Originally Posted by kgs1992 View Post
Effectively every zip that is flashed from fastboot is a PG58IMG or similar to it except, this is done in RUU mode.
Now, if HTC signs the update, the signature check is passed. If not, or if the file is altered, then it is not possible unless bootloader is unlocked (& S Off may also be required for flashing certain partitions).
That is to my understanding. I maybe wrong, but I tried helping.
Sorry.
Thanks, I appreciate it.

I was thinking of non-rooted users getting a "normal" OTA update, they aren't S-OFF. So they depend on the proper signatures, correct ?

So the problem is signing the "selfmade" OTA file properly ?
 
undercover
Old
#4076  
undercover's Avatar
Senior Member
Thanks Meter 3987
Posts: 12,654
Join Date: Oct 2010
Location: London, UK
Quote:
Originally Posted by SanityPreservation View Post
Kind of, but run from stock recovery as normal OTA_update.zip files are.

OK, checked your link. Thanks

I am still not fully satisfied though
OTA update files do have update scripts ?
OTA zips are signed by HTC additionally to all the.img signatures. Once you tamper with zip, sig is broken.

What exactly do you mean by update scripts?


Sent from my HTC Sensation XE with Beats Audio using xda premium
I'm a noob, you are a noob and you are a noob. Let's group nOOb hug!
The Following User Says Thank You to undercover For This Useful Post: [ Click to Expand ]
 
kgs1992
Old
#4077  
kgs1992's Avatar
Recognized Contributor
Thanks Meter 1363
Posts: 1,307
Join Date: May 2012
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by SanityPreservation View Post
Thanks, I appreciate it.

I was thinking of non-rooted users getting a "normal" OTA update, they aren't S-OFF. So they depend on the proper signatures, correct ?

So the problem is signing the "selfmade" OTA file properly ?
Yes, and that is exactly what I was trying to explain.
But definitely, I'm not entirely correct. trkaaa knows way better.
My website:
http://kgs1992.com/

 
If I've been helpful, you could consider making a small donation to me.
Click the button below to donate:

Thank you! Every donation helps & I appreciate it!

 
SanityPreservation
Old
#4078  
SanityPreservation's Avatar
Senior Member
Thanks Meter 109
Posts: 443
Join Date: Feb 2012
Location: In the south.
Quote:
Originally Posted by tinky1 View Post
OTA zips are signed by HTC additionally to all the.img signatures. Once you tamper with zip, sig is broken.

What exactly do you mean by update scripts?


Sent from my HTC Sensation XE with Beats Audio using xda premium
That should read "updater-script".
 
trkaaa
Old
(Last edited by trkaaa; 30th May 2012 at 03:03 PM.)
#4079  
Senior Member
Thanks Meter 863
Posts: 924
Join Date: Feb 2010
Quote:
Originally Posted by tinky1 View Post
OTA zips are signed by HTC additionally to all the.img signatures. Once you tamper with zip, sig is broken.

What exactly do you mean by update scripts?

Sent from my HTC Sensation XE with Beats Audio using xda premium
  • update-script is a universal format fits all , new devices like ours use updater-script , The updateR-script is more advanced than the update-script and supports more devices
  • Unlike the update-script, the updater-script is supported in newer versions of ClockworkMod Recovery " i.e zips can be flashed through recovery without giving error "
  • it is carried out once only when flashing the Custom Rom for the first time
  • This is a file found under the META-INF/com/google/android folder,
  • it specifies the operations required for flashing your ROM. It performs various file operations, such as creating file shortcuts (also known as symlinks or symbolic links), adding permissions to files, running scripts and copying files and folders. After flashing your ROM this file is not executed again.
  • The updateR-script also requires an update-binary file included with it. The update-binary contains all the binaries for the commands that the updater-script uses (e.g. set_perm, symlink, format, mount, etc.). The update-script does not need an update-binary.
  • if you want to know more about things like this , go to Android kitchen http://forum.xda-developers.com/showthread.php?t=633246


if you feel like Pressing my thanks Button , Please do


- Downgrade S-ON New firmware and GB OTA for Successful Revolutionary first time S-off ( Sensation )
here

- Solve WiFi Errors , Radio Flashing Problem , Caused by htc Dev Unlock Method ( Sensation ) here

- [Guide] Successful S-OFF after bricked ( wrong S-ON ) for ICS and GB
( Sensation )
here
The Following User Says Thank You to trkaaa For This Useful Post: [ Click to Expand ]
 
undercover
Old
(Last edited by undercover; 30th May 2012 at 03:47 PM.)
#4080  
undercover's Avatar
Senior Member
Thanks Meter 3987
Posts: 12,654
Join Date: Oct 2010
Location: London, UK
Thanks trkaaa

Well, that means you can't use it with ota because of signature.
What can be done, is if you are unlocked, make ota into flashable zip with updater- script included.

Sent from my HTC Sensation XE with Beats Audio using xda premium
I'm a noob, you are a noob and you are a noob. Let's group nOOb hug!

The Following 2 Users Say Thank You to undercover For This Useful Post: [ Click to Expand ]
Tags
a bunch of guys who know it all, answer, can i get a hug?, ganesh is hero, guru ganesh, help me now i burnt my carrot cake, malybru is da best, noob, question, save me tinky1, sensation