Building Android Oreo, error: ADDITIONAL_DEFAULT_PROPERTIES must not be set

So, round one of building Android Oreo. Specifically giving an early try for SlimRoms and OmniRom, both of which have started an Oreo build system. Obviously, anything at this stage is a pre-alpha, more or less just a rebranded AOSP build. Still, it’s fun to check it out and see what Oreo is all about.

That being easier said than done, here was the first error (not counting all the ones to set up the build environment to recognize the H811 phone as an option) :

[CODE]
out/build-slim_h811.ninja is missing, regenerating…
build/core/main.mk:245: error: ADDITIONAL_DEFAULT_PROPERTIES must not be set before here: ro.device.cache_dir=/data/cache.
07:23:13 ckati failed with: exit status 1
make: *** [run_soong_ui] Error 1
[/CODE]

So, I took a look at build/core/main.mk on line 245, and made a few edits:

[CODE]
#
# —————————————————————–
# Validate ADDITIONAL_DEFAULT_PROPERTIES.
# WJH ifneq ($(ADDITIONAL_DEFAULT_PROPERTIES),)
# WJH $(error ADDITIONAL_DEFAULT_PROPERTIES must not be set before here: $(ADDITIONAL_DEFAULT_PROPERTIES))
# WJH endif
[/CODE]

Now the build can continue. This is probably not the right way to fix this, but it is an easy bandaid until I figure that out.

Linux – keep it simple.

 

5 thoughts on “Building Android Oreo, error: ADDITIONAL_DEFAULT_PROPERTIES must not be set

    1. It depends on what the item is, sometimes this is because of something in your tree, just search for additional_default_properties, and replace with product_property_overrides instead. Sometimes it is something in the ROM source code, which the devs need to change, as Oreo is still pretty new. This is usually in build/core or vendor/romname.

      Like

  1. Is this resolved yet? I’m facing the same error:

    build/core/main.mk:105: error: ADDITIONAL_DEFAULT_PROPERTIES must not be set before here: ro.usb.id.midi=90BA ro.usb.id.midi_adb=90BB ro.usb.id.mtp=2281 ro.usb.id.mtp_adb=2282 ro.usb.id.ptp=2284 ro.usb.id.ptp_adb=2283 ro.usb.id.ums=2286 ro.usb.id.ums_adb=2285 ro.usb.vid=2970.

    Like

  2. Well, it depends on what the item is, sometimes this is because of something in your tree, just search for additional_default_properties, and replace with product_property_overrides instead. I think this is the new standard starting in Oreo.

    Like

Leave a Reply to Mars Yeh Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s