[Q] Need some help replacing a file using update.zip - Android Software/Hacking General [Developers Only]

I screwed up my phone when I overwrote the framework-res.apk file, and now my phone won't boot. (duh)
I was wondering if someone could provide me with some assistance on what to write for the script, and how to put it all together in an update.zip so I can boot into ClockworkMod Recovery and restore the file. Thank you!
I am running 2.2 OTA (NOT deodexed) on a Droid X

Related

[I9003][MOD] Modded Stock Recovery (allow test-signed update.zip)

WELCOME ROM & THEME DEV!!!
Hi all.... since the work on CWM is longer than i wish i have done this MOD that - for the moment - can help all.....
This is the custom recovery modded by me to allow the installation of update.zip signed with the test key.
Attached at this post you can find:
- The PDA that must be flashed with odin;
- The tool for signing your custom update.zip
Update.zip must be signed like so:
java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 your-update.zip signed-update.zip
Very important is the "-w" that mean ( if i remember well) whole file.
To enter in recovery mode the combo is VOL-UP + Home + POWER
Hope you enjoy it!
UPDATE: I attach also an update.zip that will install Microbes Live Wallpaper, maybe you don't like it but sure it can help you on building you own update.zip. PLEASE STUDY IT!
IMPORTANT: System folder maybe cannot have more space, in this case the update.zip will i attached not work until you haven't deleted some bloatware like aldiko and other ( in all case i suggest to remove all bloatware). The update.zip that overwrite system files don't have this issue i think.
UPDATE 2: i forgot to tell you that this is based on XXKB3 kernel, it might also with other FW without problem but if you find any issue please PM what firmware is and i'll build the recovery for you.
A guide for n00bs that want build their update.zip - written by trip007in -can be found HERE
Last Thing
Press the Thanks Button if you like my work!
could better explain the steps?
I do not know if I explained well ....
could make a tutorial on how to do?
thanks and sorry for the inconvenience
Flashed succefully
Sent from my GT-I9003 using Tapatalk
Thanks alot man atleast we are on the right track........... excellent work
Great work mate, so you finally did it.
Immediately flashed PDA file uploaded by you and successfully flashed. Made an update.zip of livewallpapers to test the recovery, signed it using your tools. You dint mention any hardware key combinations to enter into recovery, so used root tools and entered recovery and tried update but it failed. in the last step.
I made update.zip by putting the livewallpapers.apk in system>app folder and zipped it. Signed it using your signing tool. placed it on sdcard for flashing.
Any suggestions?
nice dude
it's begin
nice work dude
please can anybody explain what is use of this...? I am new to android & its modifications...
trip007in said:
Great work mate, so you finally did it.
Immediately flashed PDA file uploaded by you and successfully flashed. Made an update.zip of livewallpapers to test the recovery, signed it using your tools. You dint mention any hardware key combinations to enter into recovery, so used root tools and entered recovery and tried update but it failed. in the last step.
I made update.zip by putting the livewallpapers.apk in system>app folder and zipped it. Signed it using your signing tool. placed it on sdcard for flashing.
Any suggestions?
Click to expand...
Click to collapse
I think that the content of updater-script is the part where you have to work.
EDIT: Look at the first post, i have updated it.
thx man greet hard work,year after we can install custom rom,kernial,them,apk,etc.. via update.zip will try and tel rex4u release rom update.zip
Skin1980 said:
I think that the content of updater-script is the part where you have to work.
EDIT: Look at the first post, i have updated it.
Click to expand...
Click to collapse
Thanks a million, it worked. I replaced the files in the zip using 7zip, and resigned it using the script. It worked but flashed a message during update regarding the microbesgl wallpaper that was packaged by you. I underastand thats because of the update-binary and update-script. It does not matter though, I would like to know how did you get/ create that android folder and its contents inside the zip. was it packaged separately or created automatically during signing zip?
The second question, the most important one is how to enter recovery using combo keys? does it work or we have to depend on ADB or softwares like root tools? to get into recovery from the on mode. Then there is no way to recover a bricked phone with wrong framework or essential files which are loaded during boot.
trip007in said:
Thanks a million, it worked. I replaced the files in the zip using 7zip, and resigned it using the script. It worked but flashed a message during update regarding the microbesgl wallpaper that was packaged by you. I underastand thats because of the update-binary and update-script. It does not matter though, I would like to know how did you get/ create that android folder and its contents inside the zip. was it packaged separately or created automatically during signing zip?
The second question, the most important one is how to enter recovery using combo keys? does it work or we have to depend on ADB or softwares like root tools? to get into recovery from the on mode. Then there is no way to recover a bricked phone with wrong framework or essential files which are loaded during boot.
Click to expand...
Click to collapse
The sign create only the three files inside the folder META-INF, you must create the other folder or simply edit the zip i posted.
If you edit the updater-script and change the first line ui_print("Installing Microbes...") you wil not see Instaling Microbes.
To enter in recovery mode simply shut down your phone then Press VOL UP + HOME (the center keys) + POWER.
Bye!
A little guide for using custom recovery (3e)
Hi Skin, this is a small guide to your recovery for noobs, who need some help for creating or flashing the update.zip files. You are free to link this post to the first post for easy reference.
Download the three attachments on the first post of this thread and save them on your PC.
Flashing Recovery to phone:
1. power down the phone and simultaneously press Vol. down + HOME (Center key) and power on buttons till you see download mode connect the phone to PC through USB.
2. open ODIN on PC and check Auto Reboot and F. Reset Time.
3. Click on PDA and browse to the location where you placed the PDA.tar file from this post. and click start.
Wait for the phone too reboot, the recovery is flashed now.
Preparing the update.zip for flashing.
You do this if you are an experienced user and know the location of the files to be paced on the system partition of phone or avoid this and may use the already uploaded update.zip provided here.
1.First create a folder called ‘updzip’ in c:\ drive, the path would be C:\updzip
2.Place here the contents of the sign-tools in this folder i.e signapk.jar, testkey.pk8 and testkey.x509.pem.
3.Now edit the update.zip file downloaded from this post with the files you want to flash in recovery. This can be done by dragging the files into the zip archive, which can be opened with applications like 7Zip. Alternatively you can extract the contents of the file and place the files to be updated in appropriate folder and rebuild the zip file. The location of this zip file will be the same C:\updzip.
Eg: for flashing system applications you have to place the apk files in system/app inside the zip. Whereas framework files goes into system/framework.
4.The update.zip contains META-INF folder which is essential for update.zip to work. After placing the files inside zip in appropriate folder(s) you need to sign it using the sign-tools. Before this you have to delete the three files inside the META-INF folder i.e CERT.RSA , CERT.SF and MANIFEST.MF, as these files will be created after signing the whole zip.
5.Now go to command prompt ‘cmd’ and browse to the C:\updzip and sign the zip as follows, assuming you have named the zip as ‘sysap-update.zip’.
Code:
C:\Users>cd c:\updzip
c:\updzip>java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 sysap-update.zip signed-update.zip
c:\updzip>exit
6.Now you will have signed-update.zip in C:\>updzip folder this file should be placed on the SDCARD and name it as update.zip for it to work in recovery.
Flashing update.zip files from recovery:
1.Power down the phone and simultaneously press Vol. up + Home and power on for few seconds till you see the samsung logo and release the keys wait for the phone to enter recovery (3e).
2.Select the option apply sdcard: update.zip, using vol down key to navigate to the option and press home button.
3.After update reboot the phone.
Your files are flashed and system is updated.
Enjoy and Happy Flashing. Now its not easy to screw up/ brick your phone.
@ tripin
dude thanks for this useful post
Later i will update the first post... thanks
Sent from my GT-I9003 using Tapatalk
really thanx for such wonderful mod...because of this we can now install themes, roms very easily...i have small question. Is this mod different than CWM...???? Because CWM very helpful for backup entire rom...& later we can flash that rom very easily...!!!
Grazie, sei un grande
@ vishal
dude it is a modded stock recovery it is not cwm
thanx krrazy for ur reply...
but can u tell me what is difference between modded stock recovery & CWM...? I m new to android & i m trying to learn all these basics about android modding, backup, rom etc...!!!!
vishal24387 said:
really thanx for such wonderful mod...because of this we can now install themes, roms very easily...i have small question. Is this mod different than CWM...???? Because CWM very helpful for backup entire rom...& later we can flash that rom very easily...!!!
Click to expand...
Click to collapse
CWM is different and i'm sure it will be ported.... i got it works succesfully but i have problem with the keys so i must review something.
Since tomorrow i leave for two week ( HOLYDAYS!!!) i decided to build this so you can enjoy with it.
When i'll came back i will work hard to port the CWM so please be patient.
Best Reguards.
Skin1980

unbricking ddDroid Bionic (bootloader bypass method)

My droid bionic had died. and after days of searching forums, i finally took my droid back to verizon. after trying to reset the phone. they decided to send me a new one. feeling i had nothing left to lose. i started to think and work with the files i had. (the full .905 rom, the full .905 ics update files, rsdlite 5.7. after noticing that rsdlite would not flash the bootloader locked files (recovery.img, device tree.bin, boot.img, and cdt.bin) i decided to extract the entire file and open the xml file with notepad and remove the filenames that rsdlite would not flash.located in the VRZ_XT875_5.9.905.XT875.Verizon.en.US_CFC.xml.rar file. i ran rsdlite and it completed successfully without trying to flash the files locked by the bootloader. this works! then i took the microsd card and placed the file (ics file which i had installed before this fiasco) located here onto the root of the microsd. i then booted into the options menu ( volume up/down + Power) and chose recovery. i then flashed the original ics file located here: (google search xda bionic, then go to "One Stop Shop, ROMS, MODS, SCRIPTS, TOOLS, ROOT, BOOTSTRAP" and dthe latest ics rom is the one. and now i have my droid back! anyone who wants to try this my email is [email protected]. i can upload the edited xml file at request.

[Q] dlpkgfile.zip?

So does everyone know you can throw a .zip on the dlpkgfile?(and then of course open it as a zip file) can this be flashed in TWRP afterwards? or is there more modification needed?

[Q] (Stock Deodexing) -- boot.img failure on update.zip flash? Fix, Replace? Re-Zip?

I have a ZTE990 avail.
Currently I'm rooted with no other roms installed, simply stock, and odexed.
I've tried to manually de-odex using baksmali, Xultimate, etc. All were a pain, all wouldn't work properly.
I found someone and downloaded someone who just simply uploaded a Stock_Deodex.zip rom. Sounded perfect.
So I boot into CWM, try to update and...
assert failed: write_raw_image("/tmp/boot.img","boot" android
Click to expand...
Click to collapse
Since I have stock.. and am just trying to De-Odex.
Can I just unzip the Stock_Deodex.zip, delete the current (apparently faulty) boot.img, and replace it with one of the ones created with the cwm recovery, re-zip and attempt to update as usual?
Or since (if my understanding is correct), the only thing necessary for a system to become deodex is the files in /system/app and /system/restore.
Obviously when I un-zip stock_deodex.zip I have access to them. Could I possibly just replace the two folders (somehow?) and be properly de-odexed?
Any other options that I could use that'd be best?
Much appreciated to anyone who helps, thanks!

[Q] creating update.zip issue

Hello everyone!=)
I'm trying to create and update.zip with modified framework.jar. I have htc one v with cyanogenmod 9 and framework.jar which i got from building deodexed aosp 4.0.4_r2.1. I'm using "Update zip creator" tool to create archive. And after i install it with twrp recovery, phone stucks at boot. Can anyone point me on my mistake?

Categories

Resources