[Q] [Updater Script]Will This Updater Script Work ? - General Questions and Answers

Hi , I want to make a kitkat custom rom so I downloaded a META-INF.zip ... When I edit the Script it Shows The Code
Code:
ui_print("Android KitKat ROM Update 4.4");
ui_print("Starting Installation");
mount("yaffs2", "MTD", "system", "/system");
ui_print("Mounted /system");
ui_print("Copying /system...");
package_extract_dir("system", "/system");
ui_print("Copied /system");
ui_print("Done! Enjoy Your New Android Update");
I Want to know that if I use this script would it be able to install the system folder(Custom Rom) on a phone......
Any help is Welcome....

Related

[DEV Q] updater-script and edify

can someone smarter than me help me or point me in the right direction to convert my updater-scripts to edify. i think im sort of getting it but i want to make sure because i'm not a programmer. for instance, is the update-binary file required or just updater-script? also, the code posted below, it what i've come up with for flashing my themes, is it correct? and will it work with the new recoveries?
Code:
ui_print("Preparing system for istallation...");
ui_print("Wiping Cache / Dalvik...");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
ui_print("Installing Project_Bliss HD...");
show_progress(0.100000, 60);
package_extract_dir("system", "/system");
show_progress(1.000000, 0);
i am unsure whether or not i will have to mount the specific partitions for data and cache for this to work. i can always leave that part out but the less the person flashing needs to do the better. if i do have to mount in the script will the code below work for just a simple theme flash.
Code:
ui_print("Preparing system for installation...");
run_program("/sbin/mount", "/dev/block/mtdblock4", "/system");
ui_print("Installing Project_Bliss HD...");
show_progress(0.100000, 60);
package_extract_dir("system", "/system");
show_progress(1.000000, 0);
Anyone?
10 char
No one? Hmmmm?
I'm also interested in the same topic..
trying to build rom with dsixida kitchen and converting it from update to updater scripts remove all ui_print functions...
If I add them manually then clockwork refuses to boot that image...
Ditto... same issue about the ui_print... don't get it, because after the update-script gets created to the updater-script/update-binary cant be changed.
try this
show_progress(0.500000, 20);
run_program("/sbin/mount", "/system");
package_extract_dir("system", "/system");
unmount("/system");
show_progress(0.500000, 30);
ui_print("All done!");

[Q] ??? How to flash rom with data folder to /data

Hi guys,
i was wondering how to edit the updater-script and put some apps in a data/app folder ready to flash....
I thought something like this:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "chmod", "0771", "/data/data");
run_program("/sbin/busybox", "chmod", "0771", "/data/app");
unmount("/data");
Well after flashing this i got a bootloop.
Any suggestions ?
This one can be closed.
No one is interested in this i think
I wondering about how to do that as well.. if someone knows it would be great!

Recovery Flashable ZIP Error

Hi All,
I am trying to create a flash-able zip to remove some apps and I am getting this error
E: error executing updater binary in zip
Now here comes me question: is there a universal update-binary that I can use with CM11 / CM12 and is there a sample how to use it.
This is the updater-script I have written so far
Code:
ui_print("");
ui_print("Moutings Partitions");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("Cleaning System Apps");
delete("/system/app/BasicDreams/");
ui_print("Adding Codename Lungo Sounds & Apex Launcher")
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print(" ");
ui_print("Unmounting partitions");
ui_print(" ");
ui_print("Finish");
I am using a Mac if that makes a difference..

How to remove bloatware by flashing zip

Make updater-script like this
ui_print("");
ui_print("REMOVE_BLOATWARE");
ui_print("*For Android *");
ui_print("");
ui_print("");
run_program("/sbin/busybox", "mount", "/system");delete("/system/app/folder/application.apk");
ui_print("");
unmount("/system");
ui_print("finish");
ui_print("CoOlstArDeViL");
ui_print(" with smiley ");
you have to replace folder and apllication.apk of you apk .
and use your brain
I'm new user so add url

updater-script and data ?

Hi,
which command to put in updater-script? for the data to install, the standard command does not install them.
******
ui_print("@-> Extraction Data");
run_program("/sbin/mount", "-t", "ext4", "/dev/block/bootdevice/by-name/userdata", "/data");
package_extract_dir("data", "/data");
*****
This command does not work with OREO!
An idea ?

Categories

Resources