• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE][06 OCT 11] How to make Flashable ZIPs ?

Search This thread

blindndumb

Senior Member
Sep 3, 2011
1,097
4,944
This Guide is for NEWBIES so that they should have atleast some knowledge about creating Flashable ZIPs

Before starting with the procedure Download these :

1. WinRar or 7zip
2. AndroidSigner or SignApk [LOOK IN ATTACHMENTS]
3. Edify Files [LOOK IN ATTACHMENTS]

OK , Now I assume you have downloaded all the required files. So, Lets Start

Making Zip:

1. Make a folder structure like this
-META-INF
--com
--google
--android

-system
--app(Or the directory/folder where you want to replace files)

2. After making the structure put your files in the system -> app(or Your Required Directory)

3. Place the EdifyFiles in META-INF -> com -> google -> android

4. Open WinRAR or 7Zip and make a zip of the directories META-INF and system

5. Now all you need is to sign your zip and then you are good to go


SIGNING ZIPS (Procedure 1)

1. Download and Install AndroidSigner

2. Drag and drop your zip file into it

3. Hit the Sign Button

4. Now a signed Zip will be created with following name
yourzip-signed.zip

5. Put it in sdcard and flash it from Recovery

SIGNING ZIPS (Procedure 2)[Make Sure You Have Java Run Time Environment installed (jre)]

1. Download SignAPK and extract it to C:\

2. If you have Java Run Time then OK , else download from FileHippo.com

3. Open Command Prompt

4. Type
cd c:\[Directory where you extracted SignApk]\SignApk

java -jar signapk.jar certificate.pem key.pk8 YourZIP.zip YorZIP-signed.zip

5. Now Look into the directory C:\[Directory where you extracted SignApk]\SignApk

6. There will be a ZIP named as YourZIP-signed.zip

7. Put it on sdcard and flash from recovery

If you are not clear about structure made above download DemoStructure.zip from attachments

I hope this will give you a little Knowledge. If any problem Please POST your prob.

Have FUN, Enjoy ; )

Here is a collection of some FlashableZIPs by me (blindndumb)
 

Attachments

  • AndroidSigner-blindndumb.zip
    243.5 KB · Views: 1,078
  • DemoStructure-blindndumb.zip
    127.2 KB · Views: 513
  • EdifyFiles-blindndumb.zip
    154.4 KB · Views: 625
  • SignApk-blindndumb.rar
    8.6 KB · Views: 506
Last edited:

amidabuddha

Senior Member
Jun 26, 2011
2,441
2,458
Thanks for the guide.
Do we need to zipalign such files or it is valid only for rom zips?

Sent from my HTC Desire S using XDA App
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    This Guide is for NEWBIES so that they should have atleast some knowledge about creating Flashable ZIPs

    Before starting with the procedure Download these :

    1. WinRar or 7zip
    2. AndroidSigner or SignApk [LOOK IN ATTACHMENTS]
    3. Edify Files [LOOK IN ATTACHMENTS]

    OK , Now I assume you have downloaded all the required files. So, Lets Start

    Making Zip:

    1. Make a folder structure like this
    -META-INF
    --com
    --google
    --android

    -system
    --app(Or the directory/folder where you want to replace files)

    2. After making the structure put your files in the system -> app(or Your Required Directory)

    3. Place the EdifyFiles in META-INF -> com -> google -> android

    4. Open WinRAR or 7Zip and make a zip of the directories META-INF and system

    5. Now all you need is to sign your zip and then you are good to go


    SIGNING ZIPS (Procedure 1)

    1. Download and Install AndroidSigner

    2. Drag and drop your zip file into it

    3. Hit the Sign Button

    4. Now a signed Zip will be created with following name
    yourzip-signed.zip

    5. Put it in sdcard and flash it from Recovery

    SIGNING ZIPS (Procedure 2)[Make Sure You Have Java Run Time Environment installed (jre)]

    1. Download SignAPK and extract it to C:\

    2. If you have Java Run Time then OK , else download from FileHippo.com

    3. Open Command Prompt

    4. Type
    cd c:\[Directory where you extracted SignApk]\SignApk

    java -jar signapk.jar certificate.pem key.pk8 YourZIP.zip YorZIP-signed.zip

    5. Now Look into the directory C:\[Directory where you extracted SignApk]\SignApk

    6. There will be a ZIP named as YourZIP-signed.zip

    7. Put it on sdcard and flash from recovery

    If you are not clear about structure made above download DemoStructure.zip from attachments

    I hope this will give you a little Knowledge. If any problem Please POST your prob.

    Have FUN, Enjoy ; )

    Here is a collection of some FlashableZIPs by me (blindndumb)
    1
    Nice guide, but adb pushing, then chmod'ing the files to have the correct permissions is a billion times quicker and easier ;-).
    1
    If only we all found it that simple :p

    Sent from my HTC Desire S using xda premium

    adb push file.apk /system/app/
    adb shell
    cd /system/app/
    chmod 644 file.apk

    It really isn't that hard.