How To Create Android Update Zip Package
You should upgrade or use an alternative browser.

- #1
note: although i am copying this from the page, this isnt a straight ctrl+c, ctrl+p from it. ive rewritten it with slightly more english. ok alot more.
before we start, grab ppcgeeks auto signer here, or nothing will flash anyway. its the easiest method since its drag, drop, and click.
also i recommend 7-zip but its not necessarily needed.
first step, make the folder structure.
ive included prebuilt updates to make it a little faster for you. they contain no actual files, just the appropriate folder structure and update script. they must be resigned if you add files and expect to flash them.
if what your looking for isnt included, make a folder and name it "workdir". this will contain your work.
this is just to make it easier to organize all your stuff. if you feel so inclined you can name it whatever you want, it doesnt really matter.
next youll need to make folders inside the workdir according to where your flashing stuff, ie if your flashing wallpapers youd need to make a structure that looks like this: "workdir/system/customize/resource"
next to make the update-script. this tells the system what to do.
first make this folder structure: "workdir/META-INF/com/google/android"
make sure you
now put a text file into the "android" folder and call it "update-script"
the easiest way to code it would be to copy this into it:
show_progress 0.1 0 copy_dir PACKAGE:(x) (X): set_perm_recursive 0 0 0755 0644 (X):(y) show_progress 0.1 10
replace the (X)'s with the same thing as (x) except in UPPERCASE such as SYSTEM or DATA or SDCARD.
replace the
note: if your adding to the root of (X) folder then leave this blank, no spaces or anything.
if your flashing an app it should look something like this:
show_progress 0.1 0 copy_dir PACKAGE:system SYSTEM: set_perm_recursive 0 0 0755 0644 SYSTEM:app show_progress 0.1 10
if there is no extension showing, make sure you have "hide extensions for known file types" unchecked in tools> folder options> "view" tab.
second to last step! compress the workdir contents into a zip file, not the actual workdir though. it should look like this inside the zip: "update.zip/(folders)" not "update.zip/workdir/(folders)"
finally, sign the zip with the auto signer and put it into the root of the sd card.
boot into recovery and flash it up! with a bit of luck, it should work.
if you have any questions, problems, or concerns just post them. i have instant subscription to this thread and will be notified every 30 min when my evo fetches my mail.
Attachments
- Update-Notifications-signed.zip
- Update-Ringtones-signed.zip
- Update-Wallpapers-signed.zip

- #2
Ok, my app should be installed in /system/app/
but is it possible to include in the same (app)update-script:

- #3
Awesome thread and thanks btw.

- #4
What directories do boot animations go into?
/data/local/

- #5
Ok, my app should be installed in /system/app/
but is it possible to include in the same (app)update-script: delete /data/app/xxx.apk?
honestly, i couldnt tell you for sure but i dont see why you couldnt
Awesome thread and thanks btw.
thanks
- #6
can you let me know where I went wrong?
have tried both
set_perm_recursive 0 0 0755 0644 SYSTEM:media
set_perm_recursive 0 0 0755 0644 SYSTEM:notifications
but to no avail
Attachments

- #7
did you use the example i posted?
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:media
show_progress 0.1 10
- #8
what was the whole code in the update-script?
did you use the example i posted?show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:media
show_progress 0.1 10
yeah, sorry for not making it clear. Im kinda rote-learning this atm, I did a straight copy of your notifications script into my flashable-zip. when that didnt work I tried it with line3 modified as a stab in the dark.
what does the entire folder structure look like? if I am changing notifications is it /system/media/audio/notification where I put the files?

- #9
workdir.zip/ _system/ __media/ ___audio/(files).mp3 _META-INF/ __com/ ___google/ ____android/update-script

- #10
update.zip
__media/
_____audio/
_______ringtones/
__________newring.mp3
__META-INF/
_____com/
_______google/
___________android/
_______________update-script
_____CERT.RSA
_____CERT.SF
_____MANIFEST.MF
Then just sign the .zip and flash it... Is this correct?

- #12
media/
audio
alarm
notifacation
And then put the file you want for what you want into the folder you want it for it will show in dropdown menu so you can select it.
Been trying to get googles auto app builder program to force download the sdk for devices so i can start there first. Want an app that forces mms to the sprint max of 5mb send limit and not stocks 2mb or handsents 1.2 limit. Will doing this according to thread give me an app that does this? What would i need to change? (guess you could make it faster than trying to teach me but still wonder)

- #13
thats true but installing saves space on the sd card and makes it load instantly instead of waiting for the sd card to be preparedWow sounds real complex just to add an mp3 for a ringtone. I know if you create a file on sdcardmedia/
audio
alarm
notifacationAnd then put the file you want for what you want into the folder you want it for it will show in dropdown menu so you can select it.
what?Been trying to get googles auto app builder program to force download the sdk for devices so i can start there first. Want an app that forces mms to the sprint max of 5mb send limit and not stocks 2mb or handsents 1.2 limit. Will doing this according to thread give me an app that does this? What would i need to change? (guess you could make it faster than trying to teach me but still wonder)
- #14

- #15
- #16
i believe it is
if you still cant get it going i can assemble it for youworkdir.zip/ _system/ __media/ ___audio/(files).mp3 _META-INF/ __com/ ___google/ ____android/update-script
finally got adb to stop sh***ing itself. did it that way.
thanks for the help anyway.

- #17
path to my wallpapers...
using launcherpro
data/app/com.fede.launcher-1.apk/res/drawable-hdpi
data/app/com.fede.launcehr-1/apk/res/drawable-mdpi
Attachments
- #18
I've followed the steps one by one, but after flashing the .zip in recovery and rebooting, everything looks the exact same as it did before! I figured I would start with framewor-res, and see if I could get that to work before I started working on all the other images, but even after modifying all images, straightening out the .9.png's, and compiling everything correctly in Eclipse, I get nothing.
I have no effing clue what's going on, any ideas?

- #19
- #20
I'm not do a Update.zip yet with your tutorial, but i have a question:
some Update.zip have a file named updated-binary together with update-script, how i do that file? because when i try to flash via OpenRecovery say's that coul'd not find that file: update-binary...
Sory for my english, i'm from Argentina, and i try not to use Google Translate...
Regards!!!
PS: Great work with this tutorial!!!
Similar threads
- GuestK0017
- 2 3
How To Create Android Update Zip Package
Source: https://forum.xda-developers.com/t/guide-how-to-make-a-flashable-package-update-zip.732957/
Posted by: cordonearmeard.blogspot.com
0 Response to "How To Create Android Update Zip Package"
Post a Comment