Is there any difference? - Android Q&A, Help & Troubleshooting

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!

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??

Question about creating flashable zip

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.

How to extract system.img.ext4?

I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
I think Android Kitchen can do that.
Sent from my GT-I9060I using Tapatalk
7-Zip
7-Zip cannot read .img.ext4 files. I used program called sgs2toext4 and now the file is .ext4.img and 7-Zip can read it but it can't extract any .so files. I need to get libdefcontrainer_jni.so from /system/priv-app/DefaultContrainerService/lib/arm.
PetteriM said:
I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
Click to expand...
Click to collapse
Use for that the EXT2 unpacker tool,
https://androidfrog.com/5gt67f
Select Package and then the directory where you want to extract it.
Doesn't work. It can't save that .so file.
same problem here, i try to extract cache.img from S8 firmware (G950FXXU1AQJ1/G950FOXM1AQJ1/G950FXXU1AQJ1/G950FXXU1AQJ1 , 20171018104053) . using ImgExtractor 1.3.7 it extracts , but the extracted zip cannot be opened by any program, with ext4_unpacker (after i fix the img header 4 bytes using sgs4ext4fs) it gives 'list index out of bounds' when i try to extract the zip, using CacheRipperUX it extracts the zip from img but when i try to open the zip using 7-zip it only sees a few files, when i try to open with Winrar it sees full list but cannot extract any of them because it give archive corrupted.
i found a solution: convert the original cache.img (samsung sparse ext4) to raw ext4 using simg2img , and the resulted .img file open with 7-zip and extract the content. My zip content was extracted correctly.
Is there any app for android which can extract .img files like system.img?

Categories

Resources