Edit Binary script in flashable ROMs - Moto X Q&A

Guys need urgent reply....... Without modifying the flashable zip file, how can I edit the binary script...... ??

Related

Recompile APK help

I'm a noob at this... I searched the forum but couldn't find any information.
Could someone more knowledgeable explain to me how to decompile and recompile apk's?? More specifically the framework-res??
I read that you can't simply unzip and then rezip... so what do I have to do?
The apk's are zip files that contain the resources (icons, bitmaps, sounds, etc.) as well as the code compiled in a classes.dex file. You can replace the resources after deodexing, but I don't think you will be able to change the compiled code in classes.dex unless you have the source code.
Sent from my SAMSUNG-SGH-I897 using XDA App
So for instance... if I have a clockwork flashable battery mod... and I unzip that... and edit colors of icons in the framework-res.apk, then can I just save the files, recompress and it will still flash properly?
And another thing.. if you have a clockword flashable .zip how do you change it so that you can flash via stock recovery? I know that simply renaming it to update.zip and trying via stock will not work. Is it a hard process, do I need a special program on my pc??
make your life easier..
search xda for Apk Manager
jslee1020 said:
So for instance... if I have a clockwork flashable battery mod... and I unzip that... and edit colors of icons in the framework-res.apk, then can I just save the files, recompress and it will still flash properly?
And another thing.. if you have a clockword flashable .zip how do you change it so that you can flash via stock recovery? I know that simply renaming it to update.zip and trying via stock will not work. Is it a hard process, do I need a special program on my pc??
Click to expand...
Click to collapse
I am not sure about editing apk's. To create a flashable zip file through stock recovery, you need to have the META-INF folder correctly created with a working updater script and the manifest and certificate files that you get by signing the zip file. Look into playing with the HTC android kitchen on the chef central section here to automate that process.

[Q] What is the update-binary file?

Can anyone tell me what the file is for and what is inside??
It is next to the updater-script in the update.zip files
ty
Its a compiled binary executable file that bears the installation code.
and do I need to create my own or can I use one existing already?
You could use the existing one which works for the version of the CWM that you want your ZIP file to work on.

[Q] Create flashable framework ZIP?

I have simple question, so I hope for simple answer:
how to create flashable zip containing the original framework-res.apk? I can pull original framework file and if something goes wrong, I want to have CWM flashable ZIP to push it back.
How can I do that? Simply ZIP original framework.apk with 7ZIP or there is another method? Thanks.

Update.zip => signature and manifest sha1

Hello,
I have a working update.zip file for install apk in recovery mode.
I would like to change an apk in the zip file but I need to resign it and regenerate manifest files.
How can I do that ?
Many thanks
Hugo

how to create a flashable zip for apk

can anyone tell me how to create a flashable zip for apk which has odex file (without deodexing)
i tried several guides in xda. but still no luck........

Categories

Resources