MDZ-19-AA - modify update.zip (stock recovery) - Android Stick & Console AMLogic based Computers

Hey guys
I tried to change the ROM from my chinese Mi Box to the US version with a guide
But I made something wrong and ended up in the stock-recovery
luckily I was able to update the Box from the recovery with a update.zip (which is for the MDZ-19-AB US version)
Everything worked fine, but I was greedy and wanted to update with the same procedure to Android TV 8.0 and I soft-bricked the device but I can still get into the recovery
I tried to go back to Android TV 7.0 with the update.zip but the update checks if ("ro.product.device") is equal to "once" which was "once" but after the 8.0 update is somehow empty
I even tried tho unbrick it with a guide and the USB burning tool but that doesnt work either
I tried to take the update.zip remove the check form the updater-script and zip it and even sign it (with multiple different tools) but I am unable to get it working (either "footer is wrong" or "failed to verify whole-file signature" error comes up)
TL/DR: Can someone take the update.zip remove the check for the device in the updater script(first line), zip and sign it properly so I can update it with the stock-recovery?
it seems like I am unable to do it myself
please PM me if you can help I'n not allowed to add outside-links :crying:

remo_94 said:
Hey guys
I tried to change the ROM from my chinese Mi Box to the US version with a guide
But I made something wrong and ended up in the stock-recovery
luckily I was able to update the Box from the recovery with a update.zip (which is for the MDZ-19-AB US version)
Everything worked fine, but I was greedy and wanted to update with the same procedure to Android TV 8.0 and I soft-bricked the device but I can still get into the recovery
I tried to go back to Android TV 7.0 with the update.zip but the update checks if ("ro.product.device") is equal to "once" which was "once" but after the 8.0 update is somehow empty
I even tried tho unbrick it with a guide and the USB burning tool but that doesnt work either
I tried to take the update.zip remove the check form the updater-script and zip it and even sign it (with multiple different tools) but I am unable to get it working (either "footer is wrong" or "failed to verify whole-file signature" error comes up)
TL/DR: Can someone take the update.zip remove the check for the device in the updater script(first line), zip and sign it properly so I can update it with the stock-recovery?
it seems like I am unable to do it myself
please PM me if you can help I'n not allowed to add outside-links :crying:
Click to expand...
Click to collapse
that would be nice if anyone actually had the keys needed to sign it to pass verification lol

remo_94 said:
Hey guys :crying:
Click to expand...
Click to collapse
Hey, you can extract the updater-script from the package, edit it, then repack it to the same zip(preserving the signature)

Ricky Divjakovski said:
Hey, you can extract the updater-script from the package, edit it, then repack it to the same zip(preserving the signature)
Click to expand...
Click to collapse
wouldnt that break the whole file signature?

elliwigy said:
wouldnt that break the whole file signature?
Click to expand...
Click to collapse
Pretty sure it doesnt aslong as you repack with the update method, same way your able to mod certain apps inside/system preserving the signature
But.. im pretty sure ive got amlogics keys somewhere though

Ricky Divjakovski said:
Pretty sure it doesnt aslong as you repack with the update method, same way your able to mod certain apps inside/system preserving the signature
But.. im pretty sure ive got amlogics keys somewhere though
Click to expand...
Click to collapse
I guess with the "update method" you mean just edit the file in the archive without extracting and repacking.
I tried with WinRAR and 7-zip, I tried editing it inside the archive and saving the changes, I tried extracting editing and repacking it, I even edited the MANIFEST.MF to the new SHA-1 value of the update-script but I only get "failed to verify whole-file signature"
I thought it was enough if I sign my update.zip with the Android testkeys isn't that possible?

remo_94 said:
I guess with the "update method" you mean just edit the file in the archive without extracting and repacking.
I tried with WinRAR and 7-zip, I tried editing it inside the archive and saving the changes, I tried extracting editing and repacking it, I even edited the MANIFEST.MF to the new SHA-1 value of the update-script but I only get "failed to verify whole-file signature"
I thought it was enough if I sign my update.zip with the Android testkeys isn't that possible?
Click to expand...
Click to collapse
Ill look more into it tonight

Related

Request: System Dump of full DI01 updated phone.

Someone who has done the whole DI01 update, please dump their system for me, or just the framework folder, apparently the one given to me had the stock android lockscreen patch applied to it lol.
Aside from that, the DI01 deodex works perfect, I opt_png'ed and zip_align'ed all the apk's, as well as the framework-res and twframework-res.
I will also need someone who knows how to sign updater-scripts to open the one attached, and just save it again properly and upload it for me. I am trying to get a flashable CW zip but the darn thing always gives me a status 6 error, which means the CW cannot read the updater script.
Sorry for the n00b question, but what benifit does deodexing provide? Also if there is another software update will I have to readd any .apk's to my /system folder?
Why not just flash your own system back to stock, then run the update, then dump /system? If you'd like an update script that doesn't update modem.bin, I already have one.
Assuming you're updating via CWM, why are you signing the zip? You don't need any signature, just zip the file up.
Is there anything involved in a dump besides just copying the files in /system?
namebrandon said:
Why not just flash your own system back to stock, then run the update, then dump /system? If you'd like an update script that doesn't update modem.bin, I already have one.
Assuming you're updating via CWM, why are you signing the zip? You don't need any signature, just zip the file up.
Click to expand...
Click to collapse
Because I am too lazy to go through all that.
I don't need it signed per say. More like opened, edited, and saved properly. It is said it is best to edit the update script in s Linux based environment which I don't have, but that notepad should suffice, yet when I save it with my notepad, I get the error of cw not being able to read it properly.
I have a fresh phone that just got the D101 update. Just need directions on what if anything is involved beyond just getting the /system directory via adb.
s44 said:
I have a fresh phone that just got the D101 update. Just need directions on what if anything is involved beyond just getting the /system directory via adb.
Click to expand...
Click to collapse
That is all I need. The only things I deodex are the contents of system/app and system/framework.
frostman89 said:
I don't need it signed per say. More like opened, edited, and saved properly. It is said it is best to edit the update script in s Linux based environment which I don't have, but that notepad should suffice, yet when I save it with my notepad, I get the error of cw not being able to read it properly.
Click to expand...
Click to collapse
Try a real editor, like bluefish or something.. Those scripts look like sh#! in notepad.
If no one has done it by tonight, just grab me on IRC and I'll do it under Linux for you.
Make sure you've got the file/directory structure right too.. You can't just throw a script in a zip file, but I'm sure you knew that. Myself and and a few others had the wrong directory structure at first, don't remember what error number that gave us though.. I think it just froze.
OK, how can I get it to you? I can't post links or (I think) files yet.
s44 said:
OK, how can I get it to you? I can't post links or (I think) files yet.
Click to expand...
Click to collapse
You can just zip it up and upload it to mediafire.com
Just splice up the link like WWW. Website. Com and I will just delete the spaces.
Mediafire upload just not working for some reason. Hm.
s44 said:
Mediafire upload just not working for some reason. Hm.
Click to expand...
Click to collapse
http://multiupload.com/
J1HDKEGYAR at multiupload

E:failed to verify whole-file signature" "E:signature verification failed

"E: failed to verify whole-file signature" "E: signature verification failed" "installation aborted."
The message that is to give, everytime I try to apply the update
someone shed some light?
http://forum.xda-developers.com/showthread.php?t=1786107
Having applied the update by OTA3 recoverye to this Please try again.
I do all the procedures, and give error.
help
It's mean that the neccesary files had been changed, and it's stopped the updates. You should see which files that had been changed and get the replace it with the file from original stock. Typically the /system/build.prop; changed files or removed system files will interrupt the update.
Thank you.
bahathir said:
It's mean that the neccesary files had been changed, and it's stopped the updates. You should see which files that had been changed and get the replace it with the file from original stock. Typically the /system/build.prop; changed files or removed system files will interrupt the update.
Thank you.
Click to expand...
Click to collapse
How so? build.pro change?
I am applying the tutorial http://forum.xda-developers.com/showthread.php?t=1786107
can be more expecifico?...
weniton16 said:
How so? build.pro change?
I am applying the tutorial http://forum.xda-developers.com/showthread.php?t=1786107
can be more expecifico?...
Click to expand...
Click to collapse
Download the file I've published. The one you have is corrupted or wasn't downloaded from my thread.
Also, format your sdcard and try another computer. Your's may have a virus or a file verification app there's corrupting your files.
This have nothing to do with build.prop.
Cheers
pedrotorresfilho said:
Download the file I've published. The one you have is corrupted or wasn't downloaded from my thread.
Also, format your sdcard and try another computer. Your's may have a virus or a file verification app there's corrupting your files.
This have nothing to do with build.prop.
Cheers
Click to expand...
Click to collapse
What files? the start of the post? http://forum.xda-developers.com/showthread.php?t=1786107
The aqrquivos are apparently normal, until I open the winrar.E corrumpidos not seems to be corrupting
weniton16 said:
How so? build.pro change?
I am applying the tutorial http://forum.xda-developers.com/showthread.php?t=1786107
can be more expecifico?...
Click to expand...
Click to collapse
Hint : optimizer apps, bloatware removal apps which tampering or made changes in system partition.
Sent from my XT910 using xda app-developers app
have the same problem when im tryin'to install the new update for pshasia , i messed up with system files especifically WeatherWidget.apk u_u do i have to flash the stock ROM? or what are my options?

[Q] How to close the update.zip file the right way

Hi everyone,
I want to eventually create an edited ROM for an Android tablet. (Very simple stuff, really. Removing apks, adding build.prop mods)
I have a working update.zip file, which re-installs the image on the tablet, through stock recovery and the install from sdcard option.
But once I unzip it,
and then zip and even re-sign it (with the tool I found by searching the forum),
the recovery says 'installation aborted', when it is verifying the package.
1. How can I avoid this from happening? I get it that closing the update.zip is done wrong. How can I pass the verification section?
2. It IS possible to push such a .zip through stock recovery, right? I want to avoid CWM and TWRP and make it as simple as possible.
Thanks.
Have you tried making the changes without the unzip-rezip step? Editing the zip contents directly inside the zip (just drag n drop, delete, etc).
dxppxd said:
Have you tried making the changes without the unzip-rezip step? Editing the zip contents directly inside the zip (just drag n drop, delete, etc).
Click to expand...
Click to collapse
I tried this, too.
I only deleted one apk from system/app and later I tried again by deleting the apk and its odex file, too.
In both cases, instead of rejecting the update instanlty, it starts the process and then stops after a few seconds.
IS it possible that there is a filesize checker text inside the image?
(or maybe a propery inside the build.prop or updater-script ?)
Any ideas, anyone?
Still no progress.
I am trying to avoid custom recovery,
(I guess that would involve re-compiling it - which I do not know how to do - or ... just asking so from someone?)
is it possible to push the update.zip through stock recovery?
iraklisvel said:
Still no progress.
I am trying to avoid custom recovery,
(I guess that would involve re-compiling it - which I do not know how to do - or ... just asking so from someone?)
is it possible to push the update.zip through stock recovery?
Click to expand...
Click to collapse
No
Stock recovery doesn't flash custom roms
Get cwm from builder.recovery.com
Press thanks :good: I'd helped :highfive:

[Q] I broke it

Hi guys!
I was hoping one of you could help me.
Yesterday i modified a build.prop file on my NextBook EBM8000ND (Next800T) tablet, causing it to get stuck in a bootloop every time it's turned on. I've been searching the Internet all day long but it's hard to find support when you have a device which no one in the world uses . It was rooted but I did a factory reset hoping that it would fix it. It didn't and now it's also unrooted. I tried to make a custom update.zip with the backup of the original build.prop file but the stock recovery simply refuses to load any update file. It always stops at verification. I used 7zip with store option. I tried signing the zip, I even edited the updater script to only print some text on the screen but the recovery still wouldn't load it. I tried to find a way to install CWM using sdcard but with no luck. When i tried to use ADB in recovery the device says: "failed to open driver control: No such file or directory". It might be worth mentioning that I found my device's ROM online with boot.img and recovery.img files and a .tar file which contains the original system folder.
Is there any way to make the stock recovery (since installing CWM or TWRP seems impossible) read my update file? Or is there another way to fix this? I only need to replace that single file.
Hoping to get help soon.
Cheers!

B170 update arrived

So my friend got an update to the huawei XT. He was already at b160. The new update is labeled as b170 which i think it could gain some hope this phone will get nougat sometime (most likely not). The update only has a device security patch. The security is from june 5 which is pretty old but i guess it's better. If someone else received the update post it here
got the notice for update at noon today - but alas, I have mine rooted so it tried to update, and then reset and is back at 160.
and yes, was really hoping beyond hope for some Nougat...
We need someone then to unroot the phone and update to b170 or at least check how to update to b170
See this post and links in it for how we updated before if the phone was already rooted (and for stock phones that can't OTA due to non-AT&T SIM) :
https://forum.xda-developers.com/showpost.php?p=73488912&postcount=1818
ensol52 said:
So my friend got an update to the huawei XT. He was already at b160. The new update is labeled as b170 which i think it could gain some hope this phone will get nougat sometime (most likely not). The update only has a device security patch. The security is from june 5 which is pretty old but i guess it's better. If someone else received the update post it here
Click to expand...
Click to collapse
Paisley Pirate said:
got the notice for update at noon today - but alas, I have mine rooted so it tried to update, and then reset and is back at 160.
and yes, was really hoping beyond hope for some Nougat...
Click to expand...
Click to collapse
divineBliss said:
See this post and links in it for how we updated before if the phone was already rooted (and for stock phones that can't OTA due to non-AT&T SIM) :
https://forum.xda-developers.com/showpost.php?p=73488912&postcount=1818
Click to expand...
Click to collapse
If anyone is able to capture the B170 update and upload it somewhere I'll try and make a TWRP flashable update
My phone doesn't see any updates yet
Could you briefly describe how to do this please? Can it be done from a phone with a locked bootloader or must the bootloader be unlocked?
clsA said:
If anyone is able to capture the B170 update and upload it somewhere I'll try and make a TWRP flashable update
My phone doesn't see any updates yet
Click to expand...
Click to collapse
divineBliss said:
Could you briefly describe how to do this please? Can it be done from a phone with a locked bootloader or must the bootloader be unlocked?
Click to expand...
Click to collapse
you would need Root and a Root explorer - file manager
you would go to settings / Software update / download the update
choose to install it later
then with the root explorer search your phone for an update.zip
I'm not sure where it's stored I'm looking for that information now
after you find the update.zip file copy it to your phones storage and upload it to your google drive (or anywhere I can download it from)
if you know the exact location the update.zip is stored you could possibly adb pull the file without having root
Update should be in /cache/fotapkg/update.zip
clsA said:
you would need Root and a Root explorer - file manager
you would go to settings / Software update / download the update
choose to install it later
then with the root explorer search your phone for an update.zip
I'm not sure where it's stored I'm looking for that information now
after you find the update.zip file copy it to your phones storage and upload it to your google drive (or anywhere I can download it from)
if you know the exact location the update.zip is stored you could possibly adb pull the file without having root
Update should be in /cache/fotapkg/update.zip
Click to expand...
Click to collapse
iirc, on huawei, it's in a folder on internal storage. shouldn't need root to grab it.
redbeard1083 said:
iirc, on huawei, it's in a folder on internal storage. shouldn't need root to grab it.
Click to expand...
Click to collapse
HwOUC/****** (numbers)
redbeard1083 said:
iirc, on huawei, it's in a folder on internal storage. shouldn't need root to grab it.
Click to expand...
Click to collapse
MT2-User said:
HwOUC/****** (numbers)
Click to expand...
Click to collapse
Thanks seems AT&T likes to put them in the path I described though
I'm pretty sure we can edit the updater script to install this from TWRP if someone captures it
clsA said:
you would need Root and a Root explorer - file manager
you would go to settings / Software update / download the update
choose to install it later
then with the root explorer search your phone for an update.zip
I'm not sure where it's stored I'm looking for that information now
after you find the update.zip file copy it to your phones storage and upload it to your google drive (or anywhere I can download it from)
if you know the exact location the update.zip is stored you could possibly adb pull the file without having root
Update should be in /cache/fotapkg/update.zip
Click to expand...
Click to collapse
working on grabbing it now.
Tried grabbing it - and messed up and got past the waiting part - it tried to update and (of course) failed. I'll give it another shot shortly.
Paisley Pirate said:
working on grabbing it now.
Tried grabbing it - and messed up and got past the waiting part - it tried to update and (of course) failed. I'll give it another shot shortly.
Click to expand...
Click to collapse
Good deal .. what was the name and path to the update file ?
you could possibly grab it with the TWRP file manager also
clsA said:
Good deal .. what was the name and path to the update file ?
you could possibly grab it with the TWRP file manager also
Click to expand...
Click to collapse
When I get it I'll get all that as well.
The ATT update note calls it B160_B170_SMR_100 , I hit continue when I tried to hit "remind me later" - but it redownloaded.
Ghost Commander shows nothing in the /cache - odd - so I don't know where it's actually sticking it. I'm searching for it both under that name above and also as update.zip and anything else I can think of (by date, since it just re-downloaded)
I'll grab and document all the info on what I got where.
File is in /cache/fotapkg/ but is named package_temp.zip
I have it out, xda won't accept the file that large, trying to figure out how to link that file only to my onedrive so you can get it without access to all my other junk (sorry)
clsA said:
Good deal .. what was the name and path to the update file ?
you could possibly grab it with the TWRP file manager also
Click to expand...
Click to collapse
https://1drv.ms/u/s!AkvKyEBneZGLjuQ44wo1pwjtdbgOCA
OneDrive link to file package_temp.zip should be 102 mb in size.
Got it using Total Commander. It seems to be better at grabbing root files than Ghost was.
Also, one other note - I modified the permissions from root root to everyone so that may need to get changed back (or not - you tell me) to be able to get it to move.
Paisley Pirate said:
https://1drv.ms/u/s!AkvKyEBneZGLjuQ44wo1pwjtdbgOCA
OneDrive link to file package_temp.zip should be 102 mb in size.
Got it using Total Commander. It seems to be better at grabbing root files than Ghost was.
Also, one other note - I modified the permissions from root root to everyone so that may need to get changed back (or not - you tell me) to be able to get it to move.
Click to expand...
Click to collapse
ok my phone doesn't see the file as an update ..where was it located ?
that is the file sent down from ATT to the phone. I have unzipped it and looked at it as well -it's 209MB unzipped. Contains the following files and drawers:
cust.new
cust.patch
cust.transfer
system.new
system.patch
system.transfer
UPDATE.APP
(drawer) META-INF
(drawer) com
(drawer) android
otacert
(drawer) google
(drawer) android
update-binary
update-script
blacklist.conf
CERT.RSA
CERT.SF
MANIFEST.MF
If you can't get the .zip to open, let me know and I'll stick it on one drive unzipped.
Paisley Pirate said:
that is the file sent down from ATT to the phone. I have unzipped it and looked at it as well -it's 209MB unzipped. Contains the following files and drawers:
If you can't get the .zip to open, let me know and I'll stick it on one drive unzipped.
Click to expand...
Click to collapse
file opens fine ..where was it located on the phone
clsA said:
file opens fine ..where was it located on the phone
Click to expand...
Click to collapse
as I said earlier - /cache/fotapkg/
Paisley Pirate said:
as I said earlier - /cache/fotapkg/
Click to expand...
Click to collapse
Well I'm sorry to report so far I have had no luck installing this thing
I have tried the dload/update.app using the dialer method and the update flashes but you have no wifi afterwords
and the phone still shows you on B160 (cust not updated / system files not patched)
I also tried with Flashify and Stock recovery and used an edited updater script in TWRP and all fail for one reason or another
Sooo the only way we will get this is if someone that has done the update
uses TWRP and creates a system.img and cust.img and uploads it somewhere for me
So I can build the B170_Full_Update.zip
Any idea how the phone installs this OTA zip file?
Is the updater-script failing because of assert statements for cust and system?
Have you had success patching cust and system using the OTA updater-script/OTA zips for the Huawei Ascend XT before? How did you end up getting the cust and system for your B160 Update zip? Probably from a TWRP of someone's updated B160, which is what we need to do for B170 now, I'm guessing?
Thanks for your efforts on this and answering my questions.
clsA said:
Well I'm sorry to report so far I have had no luck installing this thing
I have tried the dload/update.app using the dialer method and the update flashes but you have no wifi afterwords
and the phone still shows you on B160 (cust not updated / system files not patched)
I also tried with Flashify and Stock recovery and used an edited updater script in TWRP and all fail for one reason or another
Sooo the only way we will get this is if someone that has done the update
uses TWRP and creates a system.img and cust.img and uploads it somewhere for me
So I can build the B170_Full_Update.zip
Click to expand...
Click to collapse

Categories

Resources