make otapackage
out/target/product/aosp/aosp-ota-eng.lake.zip ===> full update , NOT used for incremental package
Base for incremental update (! path)
===> out/target/product/aosp/obj/PACKAGING/target_files_intermediates/aosp-target_files-eng.lake.zip
## generate incremental update.zip between base / target
#! note: aosp-target_files-eng.lake-base.zip is the 1st build.
aosp-target_files-eng.lake.zip is the 2nd build. Only change one app/MyApp.
lake@localhost:~/aosp$ ./build/tools/releasetools/ota_from_target_files -i out/target/product/aosp/obj/PACKAGING/target_files_intermediates/aosp-target_files-eng.lake-base.zip out/target/product/aosp/obj/PACKAGING/target_files_intermediates/aosp-target_files-eng.lake.zip update.zip
unzipping target target-files...
(using device-specific extensions from target_files)
unzipping source target-files...
loaded device-specific extensions from /tmp/targetfiles-CQIqXq/META/releasetools.py
Loading target...
Loading source...
20 diffs to compute
0.09 sec 191 / 991232 bytes ( 0.02%) system/etc/cdrom_install.iso
0.11 sec 855 / 281033 bytes ( 0.30%) system/lib/modules/bam_dmux_loopback.ko
0.11 sec 875 / 428028 bytes ( 0.20%) system/lib/modules/ipa_test_module.ko
0.05 sec 861 / 194321 bytes ( 0.44%) system/lib/modules/the_memory_prof_module.ko
0.06 sec 881 / 178161 bytes ( 0.49%) system/lib/modules/msm_iommu_test_module.ko
0.09 sec 863 / 136602 bytes ( 0.63%) system/lib/modules/core_ctl.ko
0.06 sec 850 / 131936 bytes ( 0.64%) system/lib/modules/hrtimer_test_module.ko
0.09 sec 880 / 135231 bytes ( 0.65%) system/lib/modules/spinlock_test_module.ko
0.06 sec 858 / 125608 bytes ( 0.68%) system/lib/modules/ldrex_test_module.ko
0.04 sec 860 / 124457 bytes ( 0.69%) system/lib/modules/msm_ocmem_test_mod.ko
0.05 sec 853 / 121910 bytes ( 0.70%) system/lib/modules/page-nom.ko
0.06 sec 866 / 103230 bytes ( 0.84%) system/lib/modules/ipc_logging_test.ko
0.05 sec 851 / 86212 bytes ( 0.99%) system/lib/modules/ipi_test_module.ko
0.09 sec 857 / 100882 bytes ( 0.85%) system/lib/modules/msm_ion_test_mod.ko
0.04 sec 853 / 74285 bytes ( 1.15%) system/lib/modules/bus_timeout_mod.ko
0.39 sec 26401 / 1821064 bytes ( 1.45%) system/bin/MyApp
0.05 sec 855 / 66477 bytes ( 1.29%) system/lib/modules/msm_watchdog_test_module.ko
0.04 sec 849 / 35953 bytes ( 2.36%) system/lib/modules/cs_profile_mod.ko
0.05 sec 861 / 35354 bytes ( 2.44%) system/lib/modules/tsensor_reset_mod.ko
0.03 sec 857 / 30408 bytes ( 2.82%) system/lib/modules/modsign_test_module.ko
using prebuilt boot.img from IMAGES...
using prebuilt boot.img from IMAGES...
using prebuilt recovery.img from IMAGES...
using prebuilt recovery.img from IMAGES...
Loading radio filesmap...
Loading radio target...
warning radio-update: no radio images in input target_files
boot image unchanged; skipping.
recovery image unchanged; skipping.
Applying radio-update script modifications...
done.
lake@localhost:~/aosp$ du -hs update.zip
544K update.zip
lake@localhost:~/aosp$
out/target/product/aosp/aosp-ota-eng.jhula.zip ===> full update , NOT used for incremental package
Base for incremental update (! path)
===> out/target/product/aosp/obj/PACKAGING/target_files_intermediates/aosp-target_files-eng.jhula.zip
## generate incremental update.zip between base / target
#! note: aosp-target_files-eng.jhula-base.zip is the 1st build.
aosp-target_files-eng.jhula.zip is the 2nd build. Only change one app/MyApp.
lake@localhost:~/aosp$ ./build/tools/releasetools/ota_from_target_files -i out/target/product/aosp/obj/PACKAGING/target_files_intermediates/aosp-target_files-eng.jhula-base.zip out/target/product/aosp/obj/PACKAGING/target_files_intermediates/aosp-target_files-eng.jhula.zip update.zip
unzipping target target-files...
(using device-specific extensions from target_files)
unzipping source target-files...
loaded device-specific extensions from /tmp/targetfiles-CQIqXq/META/releasetools.py
Loading target...
Loading source...
20 diffs to compute
0.09 sec 191 / 991232 bytes ( 0.02%) system/etc/cdrom_install.iso
0.11 sec 855 / 281033 bytes ( 0.30%) system/lib/modules/bam_dmux_loopback.ko
0.11 sec 875 / 428028 bytes ( 0.20%) system/lib/modules/ipa_test_module.ko
0.05 sec 861 / 194321 bytes ( 0.44%) system/lib/modules/the_memory_prof_module.ko
0.06 sec 881 / 178161 bytes ( 0.49%) system/lib/modules/msm_iommu_test_module.ko
0.09 sec 863 / 136602 bytes ( 0.63%) system/lib/modules/core_ctl.ko
0.06 sec 850 / 131936 bytes ( 0.64%) system/lib/modules/hrtimer_test_module.ko
0.09 sec 880 / 135231 bytes ( 0.65%) system/lib/modules/spinlock_test_module.ko
0.06 sec 858 / 125608 bytes ( 0.68%) system/lib/modules/ldrex_test_module.ko
0.04 sec 860 / 124457 bytes ( 0.69%) system/lib/modules/msm_ocmem_test_mod.ko
0.05 sec 853 / 121910 bytes ( 0.70%) system/lib/modules/page-nom.ko
0.06 sec 866 / 103230 bytes ( 0.84%) system/lib/modules/ipc_logging_test.ko
0.05 sec 851 / 86212 bytes ( 0.99%) system/lib/modules/ipi_test_module.ko
0.09 sec 857 / 100882 bytes ( 0.85%) system/lib/modules/msm_ion_test_mod.ko
0.04 sec 853 / 74285 bytes ( 1.15%) system/lib/modules/bus_timeout_mod.ko
0.39 sec 26401 / 1821064 bytes ( 1.45%) system/bin/MyApp
0.05 sec 855 / 66477 bytes ( 1.29%) system/lib/modules/msm_watchdog_test_module.ko
0.04 sec 849 / 35953 bytes ( 2.36%) system/lib/modules/cs_profile_mod.ko
0.05 sec 861 / 35354 bytes ( 2.44%) system/lib/modules/tsensor_reset_mod.ko
0.03 sec 857 / 30408 bytes ( 2.82%) system/lib/modules/modsign_test_module.ko
using prebuilt boot.img from IMAGES...
using prebuilt boot.img from IMAGES...
using prebuilt recovery.img from IMAGES...
using prebuilt recovery.img from IMAGES...
Loading radio filesmap...
Loading radio target...
warning radio-update: no radio images in input target_files
boot image unchanged; skipping.
recovery image unchanged; skipping.
Applying radio-update script modifications...
done.
lake@localhost:~/aosp$ du -hs update.zip
544K update.zip
lake@localhost:~/aosp$