Packing a boot.img and drivers to a zip? - Android Q&A, Help & Troubleshooting

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

Related

[Q] How to create update zips in kitchen

as the title suggests i would like to know how to create zips with the android kitchen to update a current rom. eg- i want to make a flashable zip that will reinstall all the bloatware apps that i have removed from my rom?
all answers appreciated
The kitchen doesn't have that feature. Try downloading a mod in the section of thee phone your developing for and open the zip with 7zip don't close it take the apps you want to flag and put then in the system folder in the zip then extract the updater-script and modify it to give it a little message or something then delete the one in. the zip and drag you new one in there I can walk you through it if you don't get it
would it work if i delete everything in the working folder of the kitchen but leave only the folder system and files that i wan to flash? then build rom... would it generate an updater-script to match then without overwriting the main rom when i flash via recovery?
I guess you could do so but why go through all that?
Option 99 in the kitchen. Follow the prompts on the screen
私のエボ3Dから送信される。

[Q] nuub question, can an .apk be lightly modified like this?

I am sure this would be a WTF for some people thats why I'm asking in the Q&A section.
I've noticed that .apk files can be renamed to .rar and, once decompressed, we can find files in a normal-structure in their real format (images, sounds, xmls, etc).
So I wonder, let's say, we want to modify one of the images inside the .apk. We would change it for another with the same name/size so no probs with that.
Could we decompress the .apk as a .rar, change the file, recompress it to a .rar and rename it to .apk, or we would **** permissions or something in the way?
Otherwise it needs some compiler or something I guess right? But then I wouldn't understand why it can be plainly decompressed as a .rar..
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
UpInTheAir said:
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
Click to expand...
Click to collapse
Thanks a lot mate! Very appreciated

Creating a CWM zip file

I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
BigMc71 said:
I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
Just head over to perkas files stash (google it) and look for a empty system cwm.
Now you just have to make folders in this zip and add your files. example you want framework-res.apk and systemui.apk flashed.
So open the cwm zip and add a folders called app and a folder called framework.
The zip will be/system and so with the folders it creates /system/framework/framework-res.apk and system/app/SystemUI.apk. Etc
This empty system cwm should have all the folders you need for the zip

[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.

[Q] Are update.zips Universal?

Hi guys,
just a quick question for you all. Are flashable zip files universal across all devices?
In other words, if I had a zip file that replaced the framework-res.apk, would it work on any phone or tablet? I know the app wouldn't, but would the zip file?
Thanks!
depends on the updater- script
So if I had a script that just copied the contents of the system/app folder from the zip file to the phone, that would work? I don't want to do anything complicated, it's mainly for replacing apk's.

Categories

Resources