Merge pull request #218 from PeterCxy/patch-qin-2-pro-sensors

rw-system: disable sensor direct report for Qin 2 Pro
This commit is contained in:
Pierre-Hugues HUSSON 2020-12-16 14:03:07 +01:00 committed by GitHub
commit e63e4d7cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -707,6 +707,11 @@ if [ -e /dev/sprd-adf-dev ];then
setprop ro.config.avoid_gfx_accel true
fi
# Fix sensor services crashing on SPRD devices with Pie vendor
if getprop ro.hardware.keystore | grep -iq sprd && [ "$vndk" -le 28 ]; then
setprop persist.sys.phh.disable_sensor_direct_report true
fi
# Fix manual network selection with old modem
# https://github.com/LineageOS/android_hardware_ril/commit/e3d006fa722c02fc26acdfcaa43a3f3a1378eba9
if getprop ro.vendor.build.fingerprint | grep -iq \