全志H6 Android7.0 OTA 相关

1.通过make_ota_target_file命令生成zip包petrel_fvd_p1-target_files-20190725.zip
2.执行命令 ./build/tools/releasetools/ota_from_target_files zlb/petrel_fvd_p1-target_files-20190725.zip zlb/ota_update.zip
其中zlb/ota_update.zip就是OTA包了
updater-script:示例
getprop(“ro.product.device”) == “petrel-p1” || abort(“E3004: This package is for “petrel-p1” devices; this is a “” + getprop(“ro.product.device”) + “”.”);
show_progress(0.750000, 0);
mount(“ext4”, “EMMC”, “/dev/block/by-name/system”, “/system”);
run_program("/system/bin/sh", “-c”, “rm -rf /cache/.zip");
run_program("/system/bin/sh", “-c”, "rm -rf /data/local/30
”);
package_extract_dir(“system”, “/system”);
set_metadata_recursive("/system/framework/", “uid”, 0, “gid”, 0, “dmode”, 0755, “fmode”, 0644, “capabilities”, 0x0, “selabel”, “u:object_r:system_file:s0”);
show_progress(0.200000, 10);
unmount("/system");

附官方说明:https://source.android.google.cn/devices/tech/ota/nonab/inside_packages.html
全志H6 Android7.0 OTA 相关_第1张图片

你可能感兴趣的:(全志,固件,Android,安卓,Android,OTA)