Revert "Include consumerir feature, disable dynamically if not present"
This reverts commit 1936b6256e
.
Many devices are not booting because of this, saying the feature is
present, but not the HAL.
I'm unsure why yet, but this feature is not worth the trouble.
This commit is contained in:
parent
20d38353ee
commit
69a4b69ff7
4
base.mk
4
base.mk
@ -1,8 +1,8 @@
|
|||||||
#Huawei devices don't declare fingerprint and telephony hardware feature
|
#Huawei devices don't declare fingerprint and telephony hardware feature
|
||||||
|
#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.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml
|
|
||||||
|
|
||||||
#Use a more decent APN config
|
#Use a more decent APN config
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
@ -63,10 +63,6 @@ if ! grep android.hardware.biometrics.fingerprint /vendor/manifest.xml;then
|
|||||||
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.ir /vendor/manifest.xml;then
|
|
||||||
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.consumerir.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)
|
||||||
|
Loading…
Reference in New Issue
Block a user