Make native.bridge property overridable

When a device uses native bridge, it may be included in the system
image, so overriding by vendor/build.prop is not an option.
Example of overriding can be seen here: ag/15881132

Test: build cf_x86_64_phone-userdebug with native-bridge and launch, observe
1. ro.dalvik.vm.native.bridge=native_bridge.so moved from
vendor/build.prop to system/build.prop
2. the prop is correctly set at runtime
3. translated apps work
Bug: 197153442

Change-Id: I6cd566dd4e0fac181e309cb7f282d086de09075b
This commit is contained in:
Lev Rumyantsev 2021-09-21 13:10:00 -07:00
parent b9306ac477
commit b32e1479ef

View file

@ -93,7 +93,7 @@ PRODUCT_SYSTEM_PROPERTIES += \
dalvik.vm.appimageformat=lz4
PRODUCT_SYSTEM_PROPERTIES += \
ro.dalvik.vm.native.bridge=0
ro.dalvik.vm.native.bridge?=0
# Different dexopt types for different package update/install times.
# On eng builds, make "boot" reasons only extract for faster turnaround.