[Guide]How to make a flashable zip

Search This thread

Rishik999

Senior Member
Aug 12, 2012
368
768
27
Here you go..tutorial on [how to] make a flashable zip :D

Special Thanks to ateeq72 for teaching me :D

REQUIREMENTS
- Any file that you want to replace or add to your phone;
- An existing (base) cwm flashable zip file. - I've attached one below;
- 7-zip, Winrar or any program which can open and modify zip files .

STEPS:

DIRECTORY STRUCTURE:

(1) Download and place the sample.zip (attached below) anywhere on your desktop;
(2) Right-click on it and open the archive with 7zip, winrar ... [DO NOT extract]

Now you should see two folders: one called "system" and one called "META-INF".
1. Let's start with the "system" one, so open it:

In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation.

Make a "New Floder"
-Rename its as "media" (make sure its aint in CAPS nor with in quotation marks)
-drag those two new empty folders into the /system/ folder of the 7-zip opened archive
-now simply drop the two files in their respective place: the bootanimation.zip file should go in '/system/media' folder

.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now.. :silly:

Hints

/system/app - all the system apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk,android.policy.jar
/system/media - bootanimation.zip
/system/lib - libraries (*.so)

2. The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.

Now,just place the zip into your sd card! & try your luck ;) Ofc it will work :D

That's it !
CMON!Thats easy :p
 

Attachments

  • sample.zip
    122.2 KB · Views: 35,831
Last edited:

Minimilised_MR

Senior Member
Feb 23, 2013
810
714
Here you go..tutorial on [how to] make a flashable zip :D

Special Thanks to ateeq72 for teaching me :D

REQUIREMENTS
- Any file that you want to replace or add to your phone;
- An existing (base) cwm flashable zip file. - I've attached one below;
- 7-zip, Winrar or any program which can open and modify zip files .

STEPS:

DIRECTORY STRUCTURE:

(1) Download and place the sample.zip (attached below) anywhere on your desktop;
(2) Right-click on it and open the archive with 7zip, winrar ... [DO NOT extract]

Now you should see two folders: one called "system" and one called "META-INF".
1. Let's start with the "system" one, so open it:

In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation.

Make a "New Floder"
-Rename its as "media" (make sure its aint in CAPS nor with in quotation marks)
-drag those two new empty folders into the /system/ folder of the 7-zip opened archive
-now simply drop the two files in their respective place: the bootanimation.zip file should go in '/system/media' folder

.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now.. :silly:

Hints

/system/app - all the system apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk,android.policy.jar
/system/media - bootanimation.zip
/system/lib - libraries (*.so)

2. The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.

Now,just place the zip into your sd card! & try your luck ;) Ofc it will work :D

That's it !
CMON!Thats easy :p

No need to change updater script?.... I suppose if we need to set permissions... We have to edit updater script! Can you teach me how to?:rolleyes:

Sent from my HTC Using my Fingers
 

Rishik999

Senior Member
Aug 12, 2012
368
768
27
No need to change updater script?.... I suppose if we need to set permissions... We have to edit updater script! Can you teach me how to?:rolleyes:

Sent from my HTC Using my Fingers

No ..no changes needed in the updater scripts..
For what u wanna set permission for? :rolleyes:





I was trying to build one flashable zip and this came to my rescue. Great job man !

Haha...I know ..this a small ...kinda basic guide ..but its damn helpful ..I believe :)


Sent from my HTC Explorer A310e using xda premium
 
  • Like
Reactions: Harish Akula

sanny5

Senior Member
Dec 17, 2012
1,497
1,173
GOTHAM
I m sorry mate ..I thought u made that emotion ..but that was made by xda :p
My bad

Sent from my HTC Explorer A310e using xda premium

Bro what do u do for the files that are not located in /system ??
How do u write an updater script for them? Can u inclyde it in the guide??

3ndSIPB.png

=========HOLO-UBUNTU========theme
 

Top Liked Posts

  • There are no posts matching your filters.
  • 369
    Here you go..tutorial on [how to] make a flashable zip :D

    Special Thanks to ateeq72 for teaching me :D

    REQUIREMENTS
    - Any file that you want to replace or add to your phone;
    - An existing (base) cwm flashable zip file. - I've attached one below;
    - 7-zip, Winrar or any program which can open and modify zip files .

    STEPS:

    DIRECTORY STRUCTURE:

    (1) Download and place the sample.zip (attached below) anywhere on your desktop;
    (2) Right-click on it and open the archive with 7zip, winrar ... [DO NOT extract]

    Now you should see two folders: one called "system" and one called "META-INF".
    1. Let's start with the "system" one, so open it:

    In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation.

    Make a "New Floder"
    -Rename its as "media" (make sure its aint in CAPS nor with in quotation marks)
    -drag those two new empty folders into the /system/ folder of the 7-zip opened archive
    -now simply drop the two files in their respective place: the bootanimation.zip file should go in '/system/media' folder

    .. If you have more files to add, just follow the logic above; I'm sure you get the idea by now.. :silly:

    Hints

    /system/app - all the system apps (SystemUI.apk etc)
    /system/framework/ -framework-res.apk,android.policy.jar
    /system/media - bootanimation.zip
    /system/lib - libraries (*.so)

    2. The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.

    Now,just place the zip into your sd card! & try your luck ;) Ofc it will work :D

    That's it !
    CMON!Thats easy :p
    24
    Exactly what was i looking for!! Thanks mate:):thumbup:

    Welcome mate!
    hit the thanks button twice :p xD
    9
    Exactly what was i looking for!! Thanks mate:):thumbup:
    8
    you can also add a personal message in the updater script so when u flash the zip they can see ur personal message..the format is like this

    ui_print("your personal message here");
    5
    Welcome to all..welcomes for future thanks :p

    Sent from my HTC Explorer A310e using xda premium