If you look at the start of the updater script (in the update):
Code: Select all
assert(getprop("ro.product.device") == "NSZGS7" || getprop("ro.product.device") == "");
assert(package_extract_file("system/bin/sony_version_checker", "/tmp/sony_version_checker"));
set_perm(0, 0, 0700, "/tmp/sony_version_checker");
assert(package_extract_file("system/build.prop", "/tmp/build.prop"));
if (getprop("ro.build.type") == "user") then (
if (run_program("/tmp/sony_version_checker", "/tmp/build.prop") != 0) then (
abort("package is too old.\n");
) endif;
) endif;