• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Updater Script lingo

Fuzzy13

Extreme Android User
Someone give me the low down on the lingo used in the Updater Script.


I see that if I want to delete something I type

"delete_recursive("/data/dalvik-cache");

So say I want to delete android.policy.jar. Would it look like this?

delete_recursive("/system/android.policy.jar");

Do the periods go in there as well as the extension?



Also as far as the installing part and mounting part, do I "mount" before I Install? And Un-mount when at the end?


Feel free to throw more info in that I didn't inquire about, trying to understand fully how it works for different files and what not. :D
 
I never do delete_recursive because everything I do Im replacing or over writing. So I just do package_extract_dir("system", "/system");

So inside your zip youll have the system folder and inside that a folder named framework and whatever you have in that framework folder will be copied to the framework on the phone and just over write/replace whatever you're doing. You can do the same thing if you want to flash an app into the system>app folder. Have package_extract_dir("system", "/system"); and inside your zip have a folder named system and inside that have one named app. And itll put whatever you have in the app folde rin the zip into the app folder on the phone

Oh but to answer your question, you'd want delete_recursive("/system/framework/android.policy.jar");
 
I'm pretty sure its delete_recursive("/system/framework/android.policy.jar"); it has to have the directory of the file which is in /system/framework/
 
ShinySide said:
I never do delete_recursive because everything I do Im replacing or over writing. So I just do package_extract_dir("system", "/system");

So inside your zip youll have the system folder and inside that a folder named framework and whatever you have in that framework folder will be copied to the framework on the phone and just over write/replace whatever you're doing. You can do the same thing if you want to flash an app into the system>app folder. Have package_extract_dir("system", "/system"); and inside your zip have a folder named system and inside that have one named app. And itll put whatever you have in the app folde rin the zip into the app folder on the phone

Oh but to answer your question, you'd want delete_recursive("/system/framework/android.policy.jar");

Thank you sir
 
I never do delete_recursive because everything I do Im replacing or over writing. So I just do package_extract_dir("system", "/system");

So inside your zip youll have the system folder and inside that a folder named framework and whatever you have in that framework folder will be copied to the framework on the phone and just over write/replace whatever you're doing. You can do the same thing if you want to flash an app into the system>app folder. Have package_extract_dir("system", "/system"); and inside your zip have a folder named system and inside that have one named app. And itll put whatever you have in the app folde rin the zip into the app folder on the phone

Oh but to answer your question, you'd want delete_recursive("/system/framework/android.policy.jar");

so lets say I want to replace an .apk such as the Vendor.apk (play store) with an updated one I would simply have package_extract_dir("system", "/system"); and within my .zip I should have /system/app/Vendor.apk (the update one) and it'll replace the old one?
 
so lets say I want to replace an .apk such as the Vendor.apk (play store) with an updated one I would simply have package_extract_dir("system", "/system"); and within my .zip I should have /system/app/Vendor.apk (the update one) and it'll replace the old one?

Yup but first youll want to:

mount("ext4", "/dev/block/mmcblk0p12", "/system");

so it mounts the system directory and then

package_extract_dir("system", "/system");

then unmount the system

unmount("/system");


Or if you want to delete the one thats in there just for the hell of it youll want to do:

mount("ext4", "/dev/block/mmcblk0p12", "/system");

and then

delete_recursive("/system/app/Vending.apk");

and then

package_extract_dir("system", "/system");

and then

unmount("/system");
 
Yup but first youll want to:

mount("ext4", "/dev/block/mmcblk0p12", "/system");

so it mounts the system directory and then

package_extract_dir("system", "/system");

then unmount the system

unmount("/system");


Or if you want to delete the one thats in there just for the hell of it youll want to do:

mount("ext4", "/dev/block/mmcblk0p12", "/system");

and then

delete_recursive("/system/app/Vending.apk");

and then

package_extract_dir("system", "/system");

and then

unmount("/system");

lol idk why I put "Vendor" at least you understood what I meant. thanks Shiny will try this later. I'm glad someone started an updater script thread
 
hey Shiny, lets say i want to delete a batch of apks i.e browser.apk, calculator.apk, and calendar.apk would i put:

mount("ext4", "/dev/block/mmcblk0p12", "/system");

delete_recursive("/system/app/browser.apk,/system/app/calculator.apk,/system/app/calendar.apk");

unmount("/system");

would this be correct?
 
hey Shiny, lets say i want to delete a batch of apks i.e browser.apk, calculator.apk, and calendar.apk would i put:

mount("ext4", "/dev/block/mmcblk0p12", "/system");

delete_recursive("/system/app/browser.apk,/system/app/calculator.apk,/system/app/calendar.apk");

unmount("/system");

would this be correct?

Yes and no :D

you'd want:

delete_recursive("/system/app/browser.apk")
delete_recursive("/system/app/calculator.apk")
delete_recursive("/system/app/calendar.apk")

You want a delete_recursive for each app
 
Yes and no :D

you'd want:

delete_recursive("/system/app/browser.apk")
delete_recursive("/system/app/calculator.apk")
delete_recursive("/system/app/calendar.apk")

You want a delete_recursive for each app

i thought you were able to delete multiple apks like that. damn research you have failed me for the first time -____-
 
You may be able to do it your way. To be honest Im not sure. Try it out ;)


Oh ps if your zip is just to delete crap you want a "no media" file. I just took ldrifta's easy wipe zip file and edited the updater to delete all the calendar crap that kills the battery and the stupid email app
 
You may be able to do it your way. To be honest Im not sure. Try it out ;)


Oh ps if your zip is just to delete crap you want a "no media" file. I just took ldrifta's easy wipe zip file and edited the updater to delete all the calendar crap that kills the battery and the stupid email app

just read your edit, I'm just deleting a bunch of useless crap from PG's Plague rom, but I'm adding it to my theme so I don't have to make two different zips. I want it all to be in one flash
 
delete_recursive is for directories ;)

and what useless crap??? and how do you determine if its useless???

LOL! I loveee your rom! by useless crap I meant things I don't need like the file manager (just use root explorer), and Books, Deskhome, SmartShare. that kinda stuff lol
 
LOL! I loveee you rom! by useless crap I meant things I don't need like the file manager (just use root explorer), and Books, Deskhome, SmartShare. that kinda stuff lol
ahh that shyt I took out in the first ones n ppl cried wanting it back lol
 
well I use RE myself, DeskHome is nice if you have the dock, Smartshare is ok if you share stuff from your phone. lol

I just took time out of my life to see these apps . . . yeah not for me lol . in a different note, OMG I GOT MY EXTERNAL SD CARD TO MOUNT AFTER THREE FREAKING DAYS ! I am now a happy Esteemer once again :D
 
Back
Top Bottom