How to repack system folder back to system.ext4? - Sony Xperia M4 Aqua

I'm currently working on my modified stock ROM. The problem is, that the extracted system folder is 2GB+, with little slimming 1.9GB, but still, very big. I don't know, how to compress it back to .ext4 nor I have any Linux distro on PC. I'm using just the folder with package_extract_dir on updater-script, but the .zip is very huge. Anyone knows how to do it on Windows?

Don't you have to cook the rom so that it's flashable and smaller?

I don't know, maybe. OK, I will try kitchens method.

Related

Packing a boot.img and drivers to a zip?

Im developing a custom kernel. I was wondering now that i have my boot.img and drivers is there a way to pack them for installtion in a flashable .zip? I basically want to supply features to an existing rom. with custom kernel and shell scripts. I would like ot to be easy for others to install. Google didnt turn up much about this. Any info or links would be greatly appreciated!
Sent from my LG-VM670 using XDA App
Have the drivers put into folders in this fashion. system/lib/modules the drivers being in the modules folder. The boot.img is in the root of the zip along with the META-INF and system folders. The META-INF folder consists of this order META-INF/com/google/android and in the android folder contains the update-binary and updater-script files. The update-binary is specific to whatever device you have. The updater-script is to be edited by a text editor to tell how to flash. Look through other flashable zips to see the syntax of the updater-script.
私のEVO 3Dから送信される。
Thank you this is allot simpler than i expected. I thought i was going to need some kind of Kitchen or tools to build the META stuff and scripts!
The only thing im still fuzzy on is the directory structure of the zip file lets say i have these three files boot.img, /system/bin/modules/wirless.ko, and /system/bin/remount.sh the zip should look like this:
-/boot.img
-/META-INF/obviously more to this dir just a quick layout
-/system/bin/remount.sh
-/system/lib/modules/wirless.ko
and if i wanted to throw anything else in there i would just add the directory with the new files in it as needed and any will /data, /mnt/sd-ext, whatever
Refer the link in my sig

[Q] Manual deodex an rom before flashing?

I'm searching for a simple way how can I deodex any rom. My idea is to rename the *.odex file to classes.dex and put it into the apk/jar archive using a simple archive manager. Will this work? I don't like any scripts to do that, will make it manual before flashing the rom. And need I to sign the apk/jar files (I think the normal apk files need that, but what witch the framework? Need it too to be resigned?).
no use xultimate
Sent from my GT-S5830 using xda premium
sometimes scripts is better to make your life easier
btw try dsixda android kitchen. its my favorite tool/script to deodex
Hmm ok will try first the dsixda android kitchen, I see it has version for Linux. But I will understand how this script works?
EDIT
Ok, now I see, it uses baksmali and samli to deodex. Thanks to all, will test it tomorrow.
Ok, after using the dsixda android kitchen and deodexing the framework (and SystemUI.apk, not more) and flashing the ROM I got an bootloop (wipe doesn't help). Her is my logcat http://pastebin.com/DtfChnPp , can some help, what did I wrong? I have only after deodexing apply the volume mod and the Pdroid patch, I am working on this rom http://forum.xda-developers.com/showthread.php?t=1360889
try this
download xultimate, theres a thread about it somewhere. unzip it and connect your phone with the rom thats .odex http://forum.xda-developers.com/show....php?t=1360889
next
once connected click on opition 5 which will pull all the apps and framework files from your phone and will deodex all the files and store them in the folder called "done_app" and "done_framework" may take up to 15mins
next
change the folder names of the done folders to "app" and "framework" and have both folders and the rom.zip that you installed pre at hand, in your case
http://forum.xda-developers.com/show....php?t=1360889
Then open the rom.zip up with 7zip and then click on system folder and drop "app" and "framework" folders into the rom.zip so your swaping the the folders with the .odex files for the deoxed ones you just did. put it on sd-card. wipe, mount system and data and install.
correct me if im wrong.
hope this works.

How to extract files from ROM

Hi,
As the new ICS 4.0.3 seems to have gotten rid of the libraries required for call recording, I am willing to extract the relevant libraries from a 2.3.6 ROM, replace and give it a shot. I already have a few of them with me, for example Official DXKL3.
I need to extract the following 3 files -
system/lib/libaudiopolicy.so
system/lib/libaudioflinger.so
system/lib/libaudio.so
How can I extract these files from a ROM?
On you pc or on you phone click extract here. And will be exctracted about 6 files. Navigate to system app and find wht app you want. Copy and replace. I guess I understood right what you mean.
Get a utility program like 7Zip, IZarc, WinRar on your PC & open up the zip/tarfile & you can see the individual files & extract same.
However...
What you're attempting to do will not work. Different framework.
Points for thinking outside the box tho.
Thanks... Though when I use 7z, it only extracts zImage,factoryfs, etc., only a handful of files. I cannot see the individual files in the file system. Also 7z cannot extract these files anymore...
Ahh I think I was talking about already "cooked" ROM, and you guys are talking about the source? Sorry I am very new to the terminologies used. If that is the case I will check if I can find these files in the source tarball.
Try another program if 7Zip doesn't work. Try IZarc. I can see every file in the roms I have with it.
MistahBungle said:
Try another program if 7Zip doesn't work. Try IZarc. I can see every file in the roms I have with it.
Click to expand...
Click to collapse
I tried but still couldn't open XXLPQ ROM with IZarc. Thanks anyway...
hirak99 said:
Hi,
As the new ICS 4.0.3 seems to have gotten rid of the libraries required for call recording, I am willing to extract the relevant libraries from a 2.3.6 ROM, replace and give it a shot. I already have a few of them with me, for example Official DXKL3.
I need to extract the following 3 files -
system/lib/libaudiopolicy.so
system/lib/libaudioflinger.so
system/lib/libaudio.so
How can I extract these files from a ROM?
Click to expand...
Click to collapse
to open *.img file inside the rom download diskinternal linux reader and mount the img file inside the app.
tried and tested when i needed to copy a file from another rom.
Solution you find here :
h__p://sconcauteam.com/forum/index.php?threads/how-to-windows-extract-deodex-sign-and-zipalign-an-official-rom.1325/

[Q] Specific Factory ROM modification

Hello,
I need to find a way to edit factory firmware:
1. insert one or two app to be preinstalled, and placed on home screen
2. change default ringtone
I tryed android kitchen, repack system.img file (which is one of many parts files of firmware i have to edit, like boot.img etc) then i edited just one thing, e.g background or place one app. And then I get stuck, i cant find way to restore system.img. Kitchen makes update.zip file..which cant be installed becouse of signature.. So my main problem is how to edit system.img? (unpacked or packed)
Basicly every advice is how to repack, open *.img file, non is to repack.
I have PAP4500DUO and A538 Lenovo. And Windows envirement. I am a rookie too.. :/

Create ext4-Image

Good Morning,
I had make a backup with clockwork and twrp. I install the Assayed Kitchen and convert the backup to the work folder.
I had seen that in a original ext4 image (same kind of backup) two folder with the name "tts" and "TTS". Is this a problem if in my backup the folder only one with the name "TTS". At the "TTS" Folder there are some files for pico. In the "tts" there a file named "resourche.rtf". In my Backup all files are in a folder named "TTS".
The second is, that there is a apk in the original named "AUX.apk". If my Backup extracted to the work folder the apk named "_AUX.apk". Renaming to AUX.APK isn´t possible under windows. When I create new rom the "_AUX.apk" will be not renamed back to "AUX.APK". What can I do.
How I create a ext4-file named "system.img.ext4" with the kitchen? I ever get a file named "system.img". How I can convert to ext4? At the creating I give the command that the kitchen create a raw-file. Is this right for ext4?
Why I have to say the kitchen the system size. I look how big the system folder. When the system folder have a size with 400mb I write 500mb. Is this right? Or can I say 420mb too? Because the partition of the device are at 885mb.
The ready ext4-file have to be in a update.zip for flashing with sd card.
I had seen that I have to signing the update.zip. Is this right with apk-sign?
Maybe someone can explain me how to create a rom into ext4.
Thank you very much

Categories

Resources