[Q] How to make updater-script?

wawan999

Senior Member
Jun 27, 2013
61
25
0
www.wawansubagyo.web.id
hi DEV....
I want to make the updater-script for my update.zip.

how the script is correct. if I want to do this:
1. create a folder "backupApp" in sdcard
2. copy "/system/app/browser.apk" to "sdcard/backupApp/browser.apk"
3. Delete "/system/app/browser.apk".

I want to uninstall browser.apk of the system.

thanks.
 

x0nar

Senior Member
Oct 5, 2012
218
46
0
For 2 it should be like this
First you need to mount system hence the foll command
run_program("/sbin/busybox", "mount", "/system");
Then for copying it
run_program("/sbin/busybox", "cp", "/system/app/browser.apk", /sdcard/backupApp/browser.apk");
And for 3
delete("/system/app/browser.apk");
This should be it if i am not wrong