Force bluetooth library to be AOSP's

Some vendors set ro.bluetooth.library_name.
This shouldn't matter because GSIs targetting Pie ignore those
properties from vendor.
Sadly we're targetting Oreo, so vendor can set it.

https://github.com/AndroidDumps/redmi_curtana_dump/blob/qssi-user-10-QKQ1.191215.002-V11.0.4.0.QJWINXM-release-keys/system/system/build.prop#L167
https://github.com/AndroidDumps/redmi_curtana_dump/blob/qssi-user-10-QKQ1.191215.002-V11.0.4.0.QJWINXM-release-keys/vendor/build.prop#L103
This commit is contained in:
Pierre-Hugues Husson 2020-05-24 19:21:58 +02:00
parent 7a830b3d3e
commit 9f53b904c5
3 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,13 @@
BUILD_GMS := yes
ifneq ($(wildcard vendor/google),)
-include vendor/google/products/gms_eea_type1.mk
PRODUCT_SHIPPING_API_LEVEL :=
PRODUCT_PACKAGES += \
phh-gapps-overrides \
FILTER_OUT = $(foreach v,$(2),$(if $(findstring $(1),$(v)),,$(v)))
endif
ifneq ($(wildcard vendor/opengapps),) ifneq ($(wildcard vendor/opengapps),)
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/phh/treble/empty-permission.xml:system/etc/permissions/com.google.android.camera2.xml \ device/phh/treble/empty-permission.xml:system/etc/permissions/com.google.android.camera2.xml \

View File

@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := phh-gapps-go-overrides LOCAL_MODULE := phh-gapps-go-overrides
PACKAGES.phh-gapps-go-overrides.OVERRIDES := \ PACKAGES.$(LOCAL_MODULE).OVERRIDES := \
Wellbeing \ Wellbeing \
GMailGo \ GMailGo \
YouTubeGo \ YouTubeGo \
@ -18,13 +18,18 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := phh-gapps-overrides LOCAL_MODULE := phh-gapps-overrides
PACKAGES.phh-gapps-go-overrides.OVERRIDES := \ PACKAGES.$(LOCAL_MODULE).OVERRIDES := \
Drive \ Drive \
YTMusic \ YTMusic \
Videos \ Videos \
Duo \ Duo \
Traceur \ Traceur \
Weelbeing \ Wellbeing \
YouTube \
Photos \
Maps \
Gmail2 \
GoogleContacts \
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC

View File

@ -722,3 +722,5 @@ if getprop ro.build.overlay.deviceid |grep -iq -e RMX1941 -e RMX1945 -e RMX1943
setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)" setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)"
setprop persist.sys.phh.mainkeys 0 setprop persist.sys.phh.mainkeys 0
fi fi
resetprop ro.bluetooth.library_name libbluetooth.so