diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2024-01-09 23:57:13 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2024-01-15 15:31:45 +0800 |
commit | 99662b3e45a426ccf6227a6064f9373ce66c4bf5 (patch) | |
tree | 7448d0fd4c1e2044a8471d0d061881f7ff5941f1 | |
parent | 39c0307b8aa5d752d020f563cb1a291cce0be02d (diff) | |
download | hikey-99662b3e45a426ccf6227a6064f9373ce66c4bf5.tar.gz |
hikey960: workaround: disable graphics driver preloading
As the Mali userspace binaries were built for Android 8.0,
when -ffixed-x18 was not guarteed to be used, which had been
ensured for Android versions newer than P for the shadow
call stack (SCS) feature.
For such old version vendor blob, there was a workaround
in com_android_internal_os_ZygoteInit.cpp which has been removed
now.
https://android-review.googlesource.com/c/platform/frameworks/base/+/2518435
After that removal, there is a crash on libbluetooth_jni.so
reported as the issue here:
https://issuetracker.google.com/issues/302408537
As a workaround, disabling the preloading of them to avoid
the bluetooth crash issue.
Bug: 302408537
Test: bluetooth enabled by default after booted up
Change-Id: Icd8be5e120b016b3019e0d0dd23121f7e931a67c
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | hikey960.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hikey960.mk b/hikey960.mk index dd7082b9..e0c63715 100644 --- a/hikey960.mk +++ b/hikey960.mk @@ -56,6 +56,13 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.opengles.version=196608 \ ro.hardware.egl=mali +## This is a workaround for the Bluetooth sanitize shadow call stack (SCS) +## crash reported here: https://issuetracker.google.com/issues/302408537, +## until the new version Mali binaries released. +## For details of the root cause and the cts vts tests comparison between +## the preloading and non-preloading builds, please check the above issue. +PRODUCT_PROPERTY_OVERRIDES += ro.zygote.disable_gl_preload=1 + # # Overrides PRODUCT_NAME := hikey960 |