The original change incorrectly overwrote the existing ADDITIONAL_BUILD_PROPERTIES variable with our new property. This wiped out ~70 system properties. This fix correctly appends our new property to the list.
How did we find this bug?
The symptom was a consistent OOM thrown by WallpaperManager when loading the device wallpaper. A manual git bisect revealed 2633b73f to be the first bad commit. It was unclear from the commit what was causing the bug, but the diff of $ANDROID_PRODUCT_OUT/installed-files.txt between versions identified system/build.props to be the only changed file:
The original change incorrectly overwrote the existing
ADDITIONAL_BUILD_PROPERTIES
variable with our new property. This wiped out ~70 system properties. This fix correctly appends our new property to the list.How did we find this bug? The symptom was a consistent OOM thrown by
WallpaperManager
when loading the device wallpaper. A manual git bisect revealed 2633b73f to be the first bad commit. It was unclear from the commit what was causing the bug, but the diff of$ANDROID_PRODUCT_OUT/installed-files.txt
between versions identifiedsystem/build.props
to be the only changed file:It was clear from the two
build.prop
versions that we were throwing away all of the properties in theADDITIONAL_PROPERTIES
section:In particular, the absence of
dalvik.vm.heapsize=512m
forced a heap size fallback of just 16MB.