We've only recently begun trusting incremental builds, though all of our
release builds (that would go to an OTA system) are still full clean builds.

Which android version are you building? Two clean builds on Android-N
should be quite similar, especially once you follow the guidelines here for
any code that you've added:
http://source.android.com/devices/tech/ota/reduce_size.html

If you still want to use incremental builds, I would suggest running "m
installclean" in between the builds -- that "fixes" a number of issues with
files being uninstalled in between builds.

It looks like to force regeneration of this file, you could remove
$OUT/obj/ETC/system_build_prop_intermediates/system.prop. Or just change
the value of BUILD_ID, which should probably change between builds sent to
an OTA system anyway.

- Dan

On Sun, Mar 5, 2017 at 9:49 AM Aby Mathews <[email protected]> wrote:


down votefavorite
<http://stackoverflow.com/questions/42578037/aosp-ota-incremental-version-issue#>

I am facing an issue with AOSP incremental OTA build. If I do an
incremental build (without make clean), build completes fast and I get a
smaller OTA file, and OTA updates successfully on the target system; BUT
the incremental build number of target system remains same.
(os.build.version.incremental returns old number) So next time when another
OTA is generated and tried to update, it fails, giving error : "package
expects build fingerprint of ../../../(build number)/.. ". as, incremental
build number is part of build fingerprint.

If I do 'make clean' before 'make dist', things work fine; but build time
is much more and OTA file is bloated; many packages which are NOT modified
are identified as modified by some %, and is added to OTA.

How to increment build number without 'make clean' ?

-- 
-- 
You received this message because you are subscribed to the "Android
Building" mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to