Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
assert(!less_than_int(1374790134, getprop("")));
assert(getprop("ro.product.device") == "anchovy" ||
getprop("") == "anchovy");
assert(getprop("ro.hardware") == "eureka-b3");
show_progress(0.800000, 35);
write_raw_image(package_extract_file("system.img"), "rootfs");
show_progress(0.100000, 4);
write_raw_image(package_extract_file("boot.img"), "kernel");
show_progress(0.100000, 4);
assert(package_extract_file("bootloader.eureka-b3", "/tmp/bootloader.img"),
run_program("/bin/flash_bootloader", "eureka-b3", "/tmp/bootloader.img"),
# fix permission of /factory partition, make files readable to all.
mount("yaffs2", "MTD", "factory_store", "/tmp/factory");
set_perm_recursive(0, 0, 0555, 0444, "/tmp/factory");
# Fix the client key file names on some devices.
getprop("ro.hardware") == "eureka-b1" &&
symlink("client.key.nd.bin", "/tmp/factory/client.key.bin");
# Delete left over files from key programming
getprop("ro.hardware") == "eureka-b1" && delete("/tmp/factory/otp.pkg");
getprop("ro.hardware") == "eureka-b1" && delete("/tmp/factory/custk.img");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.