Add bluetooth in the list of features to check HIDL manifest for, to trigger packagemange feature

This commit is contained in:
Pierre-Hugues Husson 2019-07-17 20:11:18 +02:00
parent 95036eb2f6
commit 5dc6a4573a
2 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,9 @@
#TODO: Proper detection #TODO: Proper detection
PRODUCT_COPY_FILES := \ PRODUCT_COPY_FILES := \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \ frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
#Use a more decent APN config #Use a more decent APN config
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \

View File

@ -134,6 +134,11 @@ if ! grep android.hardware.biometrics.fingerprint /vendor/manifest.xml && ! grep
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.fingerprint.xml mount -o bind system/phh/empty /system/etc/permissions/android.hardware.fingerprint.xml
fi fi
if ! grep android.hardware.bluetooth /vendor/manifest.xml && ! grep android.hardware.bluetooth /vendor/etc/vintf/manifest.xml; then
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.bluetooth.xml
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.bluetooth_le.xml
fi
if getprop ro.hardware | grep -qF qcom && [ -f /sys/class/backlight/panel0-backlight/max_brightness ] && if getprop ro.hardware | grep -qF qcom && [ -f /sys/class/backlight/panel0-backlight/max_brightness ] &&
grep -qvE '^255$' /sys/class/backlight/panel0-backlight/max_brightness; then grep -qvE '^255$' /sys/class/backlight/panel0-backlight/max_brightness; then
setprop persist.sys.qcom-brightness "$(cat /sys/class/backlight/panel0-backlight/max_brightness)" setprop persist.sys.qcom-brightness "$(cat /sys/class/backlight/panel0-backlight/max_brightness)"