Khadas vim3 OTA

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 generate xxx-target_files-xxx.xxx.zip file in out/target/product/xxx/obj/PACKAGING/target_files_intermediates directory.
  • Name the old version of the zip package xxx-target_files-xxx.xxx.zip as old.zip.
  • Name the new version of the zip package xxx-target_files-xxx.xxx.zip as new.zip.
  • Put old.zip and new.zip in the custom folder ota 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