Question about creating flashable zip - Android Q&A, Help & Troubleshooting

Hi,
I build aosp for my Xperia X, the output are 3 .img files, system.img, boot.img, userdata.img.
So I wanted to ask if it's possible to create a flashable zip for those .img files instead of flashing them using fastboot.
If yes, what should the folder structure look like?
Also could I use a META-INF folder from an other rom? (omnirom for example)
Greetings.

Related

Change update.zip to system.img boot.img recovery.img

I am trying to change an update.zip file back to the three components system.img, boot.img, and recovery.img. I have tried creating the system.img but when i do so the permissions are wrong on the files. (update script is not run on it to change permissions)
For boot.img i can repackage it by splitting the blob but when i do it i am not sure what base value to use. when using mkbootimg
i was wondering if there was a way to convert it back to those components in some more automated way....
I am not sure but possible emulating the install of update.zip then harvesting the img files?

[Q]Noob question about cwm flashable zip

I can create cwm flashable zip using skeleton zip provided by many thread on xda. but, I want to create my own zip.
I took apk, meta-inf for a flashable zip, but when I zip them using 7zip on windows or archive mounter in linux, it shows flashing aboard.
I want to know the zip technique of cwm zip files. How can i create them?
39 view, still no reply. Disappointed
Sent from my WT19i using XDA
Zip file should directly contain meta-inf folder and the folder where you wish to replace/copy apk in the phone's root.
I think you have created a folder, consider 'x', placed meta-inf and ___ folder in 'x', and then zipped the whole 'x' folder as 'x.zip'.
The name of the folder/zip doesn't matter at all.
Also, you need to understand how the updater-script works and edit it according to what files you need to replace/edit.
I can understand update-script.
you mentioned that, I have to create a meta-inf folder and an /system/app folder and directly zip both of them? am I write?
Which zip software do you use for that?
Don't use any compression (storage) in 7zip
Sent from my WT19i using xda premium
i use 7zip....

Help Need Meta-inf

So, my phone recently got soft bricked....
I had the tar file of the XXELK4 leaked firmware and i extracted it, unpacked system.img.
Mounted it as ext4 and extracted the contents.
I want to make a flashable zip file from the system.img contents.
I made a folder called system. In which all app, bin, etc and other folders are.
Then i copied over the boot.img from the tar file...
Now, i need the meta-inf. I tried using some meta-inf from other roms, and removing the aroma functions from them.
Then trying to flash..
I get only a bootloop.
So, could someone provide a clean Meta-inf consisting of only the updater-script and update-binary??

[TOOL]Flashable recovery zip template

Hi. This isn't really original at the core, but I haven't seen many flashable zips for new recoveries in this forum.
It's not original development so it goes in general.
It's easy to make recoveries flashable if you have the recovery .img file. I use a modified kernel flashing zip file... johnnysit's newest recovery complains about the update-binary but is sophisticated enough to take care of using it anyway.
Drop the .img into the /kernel folder of the zip. Modify META-INF/com/google/android/updater-script by replacing generic_recovery.img with the filename of your recovery .img.
Rename the containing zip appropriately and sign or don't.
This template contains an empty .img and shouldn't flash. I wouldn't try it unmodified unless you're prepared to replace the recovery afterwards.
Hope this is useful.

Is there any difference?

Good day!
Hi!
In creating flashable zip of /system...
What I've read is to extract system.img from phone and unpack it (convert to .ext4 then extract using some tools) then make it flashable zip.
Is it possible to directly copy the entire /system of the phone and make it a flashable zip?
(Without extracting system.img of the device...)
Thanks!

Categories

Resources