Update.zip => signature and manifest sha1 - Xposed General

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

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] in-depth explanation of files in rom.zip

hey guys.. i been looking around everywhere to try and get a good explanation of the files inside the rom.zip... like what the files are in the META-INF? and what are all the files inside the system folder? how do i know what to change and what not to change.. lol sorry but if anyone could possibly give me a more in depth explanation i would appreciate it greatly!!!
i dont have answer but i would also like to know this... since im just trying to learn how be a dev...
lol seems no one can help us... but this did help a little... http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
Hi
The files in META-INF are just that, meta files they contain information about the files that are part of the rom.. specifically CERT.* and MANIFEST.MF contain the SHA1 hash of each file in the rom when you flash the rom your recovery environment hashes each file and checks it against the manifest. These files are created during the signing process.
META-INF/com/google/android/updater-script tells the recovery environment what to actually do. such as format /system then extract system to /system on the phone, set permissions for each file and the correct kernel to your boot.img then reflash it
the files in /system are the actual operating system and are in a UNIX-ish layout
executable's in bin & xbin, system apks in app, configuration files in etc, libraries in lib, ringtones and bootanim in media
rattking said:
Hi
The files in META-INF are just that, meta files they contain information about the files that are part of the rom.. specifically CERT.* and MANIFEST.MF contain the SHA1 hash of each file in the rom when you flash the rom your recovery environment hashes each file and checks it against the manifest. These files are created during the signing process.
META-INF/com/google/android/updater-script tells the recovery environment what to actually do. such as format /system then extract system to /system on the phone, set permissions for each file and the correct kernel to your boot.img then reflash it
the files in /system are the actual operating system and are in a UNIX-ish layout
executable's in bin & xbin, system apks in app, configuration files in etc, libraries in lib, ringtones and bootanim in media
Click to expand...
Click to collapse
wow rattking thank you very much!! that was the best description anyone has ever given me!!! lol that was very helpful!! is there a place where you learn this from? or did you just figure it out as you went..?

[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] How to install additional .zip package to MobileOdin lite?

Ok er, noob question, but MobileOdin(lite) asks me to download added zip file for the N700. i did this, but how do I get it to install? Because it is present as a .zip file in my SD card and everytime MobOdin starts it asks to download the additional file.
Renaming it to .apk doesn't work as it gives a parsing error if I try to install it & if I extract it four different folders come out. How do I go about it then?
what are them folders ?
META-INF
System
ect ect ? ?
if so its probably a CWM flashable package.
*facepalm* noob action here. Used some other file manager but then used Astro & voila! Apk extracted and installed! Done and done!

edit framwork res apk how to?

if i turn my apk file to zip file and i extract all what in and i editing a xml file into, when i wiil flash the file its will work?
i haven`t any experience with it ,but you need a tool like APK-Tool to decompile and after your adaption you have to compile it new ...
MAybe this link can help you ...hope it does ...
http://forum.xda-developers.com/showthread.php?p=43348990#post43348990
JBPORTAL said:
if i turn my apk file to zip file and i extract all what in and i editing a xml file into, when i wiil flash the file its will work?
Click to expand...
Click to collapse

Categories

Resources