OSDN Git Service

Prevent abuse of property overrides
authorJaekyun Seok <jaekyun@google.com>
Fri, 20 Jan 2017 04:17:12 +0000 (13:17 +0900)
committerJaekyun Seok <jaekyun@google.com>
Wed, 25 Jan 2017 04:00:25 +0000 (13:00 +0900)
commit7ace0d60ef59bb5d5ff0b22d51d3a85b626eaa0c
tree0f05663ee8a5d7551a95d8b96d04e6390a7ac154
parent96c81711c1e752e55c94c59e55ae02352e8146d2
Prevent abuse of property overrides

To prevent abuse of PRODUCT_*PROPERTY_OVERRIDES and
ADDITIONAL*PROPERTIES, the following rules should be applied.

- Mark PRODUCT_*PROPERTY_OVERRIDES readonly after reading product
 specs.
- Disallow any changes on ADDITIONAL*PROPERTIES from product specs
 and BoardConfig.mk.
- Mark ADDITIONAL*PROPERTIES readonly before reading Android.mk
 files.

Test: building succeeded on marlin-userdebug.
Bug: 34116668
Change-Id: I93d8de086ec85ba787165a156bdcc7df04310be1
(cherry picked from commit 294286d95c7647c1c20c3537f065c21e85371695)
core/Makefile
core/main.mk
core/product_config.mk