The objective of this commit is to support these 3 combinations: 1. Master-GSI + Master-VENDOR (w/ BOARD_VNDK_VERSION) 2. Master-GSI + Master-VENDOR (w/o BOARD_VNDK_VERSION for upgrading devices) 3. Master-GSI + O-MR1-VENDOR (w/ BOARD_VNDK_VERSION) This commit defines a new property `ro.vndk.lite` to indicate the status of BOARD_VNDK_VERSION run-time enforcement. Now, all devices should have `ro.vndk.version` so that `libhidlbase.so`, `libRSCpuRef.so`, and `libnativeloader.so` can find the versioned VNDK directory. Bug: 78605339 Test: aosp_sailfish Master-SYSTEM + Master-VENDOR boots Test: aosp_sailfish Master-GSI + Master-VENDOR boots Test: aosp_walleye Master-SYSTEM + Master-VENDOR boots Test: aosp_walleye Master-GSI + Master-VENDOR boots Test: aosp_walleye Master-GSI + O-MR1-VENDOR boots Change-Id: Iee9553b3ca9e0798a873e655d87d10cdc23d4b1cgugelfrei-debug
parent
732ed64fbd
commit
d73b94c097
@ -1,2 +1,2 @@
|
||||
# If ro.vndk.version is not defined, import init.noenforce.rc
|
||||
import /system/etc/init/gsi/init.${ro.vndk.version:-noenforce}.rc
|
||||
# If ro.vndk.version is not defined, import init.vndk-27.rc.
|
||||
import /system/etc/init/gsi/init.vndk-${ro.vndk.version:-27}.rc
|
||||
|
@ -1,5 +0,0 @@
|
||||
on early-init
|
||||
# If ro.vndk.version is not set, use ld.config.nonenforce.txt
|
||||
export LD_CONFIG_FILE /system/etc/ld.config.noenforce.txt
|
||||
# To use current VNDK libs, set ro.vndk.version to system vndk version
|
||||
setprop ro.vndk.version ${ro.gsi.vndk.version}
|
@ -0,0 +1,3 @@
|
||||
on early-init
|
||||
# Set ro.vndk.version to 27 so that O-MR1-VENDOR can run latest GSI.
|
||||
setprop ro.vndk.version 27
|
Loading…
Reference in new issue