Hi, How can I build incremental ota update package in android 9?
Hello @mntprn
@goenjoy @xiong.zhang will help you here.
1 Like
@mntprn Make a differential upgrade package:
source build/envsetup.sh
lunch kvim3-userdebug
make installclean
make -j100
make otapackage -j100
- After executing
make otapackage -jN
to compile android, it will generatexxx-target_files-xxx.xxx.zip
file inout/target/product/xxx/obj/PACKAGING/target_files_intermediates
directory. - Name the old version of the zip
package xxx-target_files-xxx.xxx.zip
asold.zip
. - Name the new version of the zip
package xxx-target_files-xxx.xxx.zip
asnew.zip
. - Put
old.zip
andnew.zip
in the custom folderota
of the android source root directory. - Execute the following command to generate a differential package
ota/update.zip
:
source build/envsetup.sh
lunch kvim3-userdebug
./build/tools/releasetools/ota_from_target_files -i ota/old.zip ota/new.zip ota/update.zip
1 Like