If you wanted to make a patch the updater script could look like this:
ui_print("AtomICS - My patch");
ui_print("");
ui_print("Cleaning cache...");
format("MTD", "cache");
format("MTD", "persist");
ui_print("Updating system...");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
ui_print("Setting permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
unmount("/system");
The actual system directory should be built to look identical to the ROM's. So in this case for a font I'd make the folder called system and then another called fonts and then I'd place the font I want to replace into that folder.
Edited by H3ROS, 28 April 2012 - 03:10 PM.







Sign In
Create Account




Back to top












