Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
thor2002ro
Old
#21  
thor2002ro's Avatar
Senior Member - OP
Thanks Meter 511
Posts: 716
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
its easy... after decryption if you still cant open the zip they changed the key ^^
copy/paste or git merging is not development...

++++++++++++
Samsung Galaxy Note
FW: Tegraowners JB ROM v3
Kernel: thor-kernel-0.20-2
Recovery: thor touch recovery galaxy note 1.9

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners JB ROM v12@k3.6-thor-kernel_v5.2
Recovery: 1.7.3
++++++++++++
Twitter

If I did something you liked HIT THANKS (: and Donate for BEER FUND
 
kimycai
Old
#22  
Member
Thanks Meter 1
Posts: 66
Join Date: Mar 2011
Quote:
Originally Posted by thor2002ro View Post
its easy... after decryption if you still cant open the zip they changed the key ^^
but how can we know what is the new key?
 
lostsoul3471
Old
#23  
lostsoul3471's Avatar
Member
Thanks Meter 3
Posts: 81
Join Date: Nov 2008
Location: Louisville
Quote:
Originally Posted by kimycai View Post
but how can we know what is the new key?
Same way someone figured out it's xor12 the first time. Either being brilliant in staring at hex dumps of the file, or finding out from an internal source. Xor12 isn't really an encryption scheme as much as it's a means to prevent the easy access to the files inside. It was most likely used because it wouldn't slow the update process to a crawl if they used something more secure like RSA.

Just my $0.02
LostSoul3471
Phone: HTC Vivid
Tablet: Acer Iconia A500
 
sp3dev
Old
#24  
Senior Member
Thanks Meter 668
Posts: 551
Join Date: Jul 2006
Location: Kaluga/Moscow
Oh my. You know that ZIPs start with 'PK'.. and Acer is using one byte as xor mask. So just xor the first byte of file with 'P' and you get the key
Sony Vaio SA3S9R, IBM ThinkPad R500, Samsung Galaxy S2 I9100 [u-boot multiboot]
Me on github
Me on gitorious
GIT d- s a-- c++ UL P--- !J--- L++++ E--- W- N O? K? w--- o ?V PS+ PE Y+ PGP++ t+ ?5 X++ R* !tv b++ DI++ D++ G++ e* h+
BTC 14KZnQkZR2GLnme7pYGs68MQVJHWwHGt3B
The Following 2 Users Say Thank You to sp3dev For This Useful Post: [ Click to Expand ]
 
kimycai
Old
#25  
Member
Thanks Meter 1
Posts: 66
Join Date: Mar 2011
Quote:
Originally Posted by thor2002ro View Post
I made a tool so we can decrypt the acer updates easier.

Also added decryption key change if acer decides to change the key.

http://www.virustotal.com/file-scan/...732-1306538282
hi,do U know how to sign an update.zip for A500,as i signed the zip file using testkey.x509.pem and testkey.pk8 ,but the recovery cant fount it and flash it,Why?Acer changed the key?but how can we sign it correctly?
 
kimycai
Old
#26  
Member
Thanks Meter 1
Posts: 66
Join Date: Mar 2011
Quote:
Originally Posted by sp3dev View Post
Oh my. You know that ZIPs start with 'PK'.. and Acer is using one byte as xor mask. So just xor the first byte of file with 'P' and you get the key
hi,do U know how to sign an update.zip for A500,as i signed the zip file using testkey.x509.pem and testkey.pk8 ,but the recovery cant fount it and flash it,Why?Acer changed the key?but how can we sign it correctly?
 
sp3dev
Old
#27  
Senior Member
Thanks Meter 668
Posts: 551
Join Date: Jul 2006
Location: Kaluga/Moscow
Quote:
Originally Posted by kimycai View Post
hi,do U know how to sign an update.zip for A500,as i signed the zip file using testkey.x509.pem and testkey.pk8 ,but the recovery cant fount it and flash it,Why?Acer changed the key?but how can we sign it correctly?
Don't confuse this simple zip encryption with xor'ing and real signatures for update.zip. Acer are using their own private keys to sign the updates. So we're out of luck here
Sony Vaio SA3S9R, IBM ThinkPad R500, Samsung Galaxy S2 I9100 [u-boot multiboot]
Me on github
Me on gitorious
GIT d- s a-- c++ UL P--- !J--- L++++ E--- W- N O? K? w--- o ?V PS+ PE Y+ PGP++ t+ ?5 X++ R* !tv b++ DI++ D++ G++ e* h+
BTC 14KZnQkZR2GLnme7pYGs68MQVJHWwHGt3B
 
kimycai
Old
#28  
Member
Thanks Meter 1
Posts: 66
Join Date: Mar 2011
Quote:
Originally Posted by sp3dev View Post
Don't confuse this simple zip encryption with xor'ing and real signatures for update.zip. Acer are using their own private keys to sign the updates. So we're out of luck here
yes i do know the difference,so we cant sign the update.zip until Acer unleash the private key?
 
sp3dev
Old
#29  
Senior Member
Thanks Meter 668
Posts: 551
Join Date: Jul 2006
Location: Kaluga/Moscow
It's not like they ever will. For sure it's used not only in Iconia, so releasing it would be stupid. Our only hope is an unlocked bootloader to be able to flash custom kernel and recovery
Sony Vaio SA3S9R, IBM ThinkPad R500, Samsung Galaxy S2 I9100 [u-boot multiboot]
Me on github
Me on gitorious
GIT d- s a-- c++ UL P--- !J--- L++++ E--- W- N O? K? w--- o ?V PS+ PE Y+ PGP++ t+ ?5 X++ R* !tv b++ DI++ D++ G++ e* h+
BTC 14KZnQkZR2GLnme7pYGs68MQVJHWwHGt3B
 
kimycai
Old
(Last edited by kimycai; 7th June 2011 at 09:58 AM.)
#30  
Member
Thanks Meter 1
Posts: 66
Join Date: Mar 2011
Quote:
Originally Posted by sp3dev View Post
Oh my. You know that ZIPs start with 'PK'.. and Acer is using one byte as xor mask. So just xor the first byte of file with 'P' and you get the key
and i cant understand what u said clearly,can u explain more clearly for my poor english. i can see that the encrypted file starts with "BY........bŽ.,.È.ãB...f.......S_AA<h{bg™#.’2. Q-l'ÃË.ª««¨k...òúè%^v‘i"`B,66"∴[Á8›ñ˜Ò.Œ|ºJÊýUv\ïy7×¢s}JÊ.bÂÌ´+..gc.k..BY........ý f.,............"

and the decrypted file starts with "PK........pœm>.Ú.ñP...t.......AMSS.zipu‹1.€ .C?~5ÑÙ.¸¹¹ºy...àèú7Ldƒ{0rP>$$0ðš¦IÓ*‰ãŠÀ<žn¨XØïGd Nýk%ŰaoXØmpÐÞ¦9.‚uq.y..PK........ïtm>............ "
so,how can we do to get the key "$12", and what is "xor12"?

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

Advanced Search
Display Modes

report this ad
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...