[Android Software/Hacking General [Developers Only]] akky26:
THIS WORKS ON EVERY DEVICE SO FAR,STILL DO AT YOUR OWN RISK​

This guide is for them who has very less or Zero knowledge about how to create a flashable zip for their system apps or frameworks.

Respected Dev's please correct me if I am wrong in explaining something in this tutorial. Thanks in advance :)

Requirements:

1. Notepad++

2. Recovery partition name of your device (Will explain it below in-case you don't know what it is :) )

3. Sample Flashable zip (attached at the end of this tutorial)

4. Winrar or any other application to open and save zip file.

Lets start this guys :D

[Q] How to find out what is the name of Recovery partition of your device ?

Those who have no idea about what it is, don't worry. Just open any custom rom for your device and locate the updater-script.

You will find the updater-script like the following :

Open the custom rom and you'll find a folder named META-INF.

Open it and go to \META-INF\com\google\android\updater-script

Now open the updater-script with Notepad++

In the updater-script find for this line "/dev/block/"

U'll get like this

In my case mmcblk0p21 is the Recovery partition name of the respected device.

Note: You will find more than one result in your search for "/dev/block/" Remember your Recovery partition name is the one which includes "/system" at the end

Eg: "/dev/block/mmcblk0p21", "/system" [In my case]

Now you know the Recovery partition name of your device.

Download the flashable zip from the download links provided at the end of this tutorial.

In case you want to flash a system app in your device then download the Systemapp.zip

Open it with winrar.

You'll get two folders 1.META-INF ; 2.system

First open the system folder ,you'll get a folder name app Open it and place your system app.apk that you want to flash.

The address will be like "Sytemapp.zip\system\app\yoursystemapp"

Secondly open Systemapp.zip and now goto "Sytemapp.zip\META-INF\com\google\android \updater-script"

Open the updater-script with Notepad++and edit the lines

search "/dev/block/RecoveryPartitionName" & replace "RecoveryPartitionName" that you figured out above.

Next search delete("/system/app/yoursystemapp.apk") & Rename yoursystemapp.apk with the apk you have put in your /system/app/ folder.

Do the same with delete("/system/app/yoursystemapp.odex") In case you are making an ODEX flashable zip.

Save the updater-script, exit from winrar and save it.

BINGO!! :laugh: You successfully created your own system flashable zip ;)

NOTE: If you wanna flash more than one apps.apk then add

delete("/system/app/yoursystemapp.apk");

delete("/system/app/yoursystemapp.odex");

& rename yoursystemapp.apk & yoursystemapp.odex accordingly.

For example i have see this screenshot :cowboy:

Do the same for framework apps and jar files :)

DOWNLOADS: ​

Sytemapp.zip

​

http://www.megafileupload.com/9ivU/Sytemapp.ziphttp://www.megafileupload.com/9ivU/Sytemapp.zip

framework.zip

http://www.megafileupload.com/9ivX/framework.zip

WORKING LINKS ​

Sytemapp.zip

​

https://drive.google.com/file/d/0B7Ko9fdwLEF0UkxEYU42RjFJOEE/view?usp=sharinghttps://drive.google.com/file/d/0B7Ko9fdwLEF0UkxEYU42RjFJOEE/view?usp=sharing

framework.zip

https://drive.google.com/file/d/0B7Ko9fdwLEF0eWtDLVZlblR0QVU/view?usp=sharing

STEPS TO INSTALL IT

​

1.AFTER MAKING THE FLASHABLE ZIP PUT IN YOUR EXT SD CARD

2.BOOT YOUR DEVICE INTO CWM RECOVERY

3.SELECT THE OPTION INSTALL ZIP FROM EXT SD CARD

4.CHOOSE Sytemapp.zip/framework.zip WHATEVER YOU WANT TO FLASH

5.WAIT FOR IT TO COMPLETE

6.PULL YOUR BATTERY OUT AND RESTART YOUR PHONE

7.ENJOY THE MOD :)

THANKS FOR CHOOSING MY TUTORIAL

IF I HELPED YOU BY THIS POST, PRESS :good: THANKS ;)

Feel free to suggest anything that i left to cover in this tutorial. And same for the queries.