THE first steps for our development towards the android devices is installing / fashing application to system memory of your device...
... by creating update.zip file..
first of all for this your phone should be rooted..
so lets do it yourself!!
STEP I - For a refference... the first and moat essential part for this is downloading a sample of update.zip from here and then rename it to update.zip
now we have the most essential part...
STEP II - Now copy all the apps that you want to insert in archive and install on the phone to /data/app of rhe update.zip directory
(NOTE:the apps must have .apk extension)
STEP III - If you want to copy the data of the apps, open any root explorer in your device and go to /data/data , then copy the folder(s) of the apps you want and then paste it to /data/data of the update.zip
STEP IV - Now we have all the apps and datas we want
so now go to META-INF/com/google/android/ and
open 'updater-script' with a simple text editor
nd the only thing we have to modify is:-
Code:
set_perm(1000, 1000, 0644, "/data/app/[PACKAGE].apk");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/PACKAGE_DATA_FOLDER");
delete("/data/dalvik-cache/data@app@[PACKAGE].apk@classes.dex");
For each app you have to write these lines.
This is
an example if you want to put
ROOT_EXPLORER.APK in the
UPDATE.ZIP:-
Code:
set_perm(1000, 1000, 0644, "/data/app/ROOT_EXPLORER.APK");
set_perm_recursive(1000, 1000, 0777, 0777, "/data/data/ROOT_EXPLORER_DATA_FOLDER");
delete("/data/dalvik-cache/data@app@ROOT EXPLORER@classes.dex");
STEP V - and if you want any app to be deleted from your phone then you have to use these codes:-
Code:
ui_print("| 80% Installing Applications |");
and
Code:
package_extract_dir("data", "/data");
this line:
Code:
delete("/APK_DIR/APP.APK");
IT'S IMPORTANT TO LEAVE AN EMPTY
LINE AT THE END OF THE SCRIPT,
OTHERWISE THE ZIP WON'T WORK!
thats all but
You can easily find the name of the app going with
Root Explorer to /system/app and searching the same
app.
If you also want to add your modified Apps, you've
to sign them with a simple app: Auto-Sign, putting
them in /auto-sign/update/app and renaming it to
Launcher.apk .
You can download AUTO-SIGN from here
With it you can sign your apks or your zip. So,
finally, when you'll finish your zip, you'll have to
put it in Auto-Sign folder ("/auto-sign").
Then, open Auto-Sign, choose your zip or apk, and
click AUTO-SIGN. It will create a new apk or zip,
name as SIGNED-apk/zip.
Now, you only have to put the update.zip on your sd-
card and flash it! Have fun guys!
for the tutorial to how to flash .zip file in mobile devices click here