Compare commits

...

9 Commits

Author SHA1 Message Date
e067501cc5 Use tablet characteristics 2022-07-17 13:03:34 +07:00
5e59ceff81 ouch 2022-07-17 13:01:43 +07:00
9eefd61dcd add a bit more gapps 2022-07-17 13:01:43 +07:00
16cb93485c switch wallpaper picker 2022-07-17 13:01:43 +07:00
Pierre-Hugues Husson
bbc2268788 Enable DT2W on Tecno KD7 2022-07-07 12:13:57 -04:00
Pierre-Hugues HUSSON
6335412007
Merge pull request #317 from AndyCGYan/no-more-emulator-12
Overwrite the inherited "emulator" characteristics
2022-06-30 20:39:40 +02:00
Andy CrossGate Yan
88b1230dee Overwrite the inherited "emulator" characteristics 2022-06-30 13:41:53 +00:00
Pierre-Hugues HUSSON
adad184263
Merge pull request #316 from ponces/android-12.0
Include vendor.xiaomi.hardware.displayfeature
2022-06-28 19:38:59 +02:00
Alberto Ponces
d5610375c4 Include vendor.xiaomi.hardware.displayfeature
Needed to disable Xiaomi's Sunlight Mode which triggers some constrast/color issues on AOSP
2022-06-27 23:25:37 +01:00
8 changed files with 45 additions and 4 deletions

View File

@ -102,6 +102,7 @@ PRODUCT_PACKAGES += \
vendor.huawei.hardware.tp-V1.0-java \ vendor.huawei.hardware.tp-V1.0-java \
vendor.qti.hardware.radio.am-V1.0-java \ vendor.qti.hardware.radio.am-V1.0-java \
vendor.qti.qcril.am-V1.0-java \ vendor.qti.qcril.am-V1.0-java \
vendor.xiaomi.hardware.displayfeature-V1.0-java
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/phh/treble/interfaces.xml:system/etc/permissions/interfaces.xml device/phh/treble/interfaces.xml:system/etc/permissions/interfaces.xml
@ -132,7 +133,8 @@ PRODUCT_COPY_FILES += \
device/phh/treble/files/zf6-googlekey_input.kl:system/phh/zf6-googlekey_input.kl \ device/phh/treble/files/zf6-googlekey_input.kl:system/phh/zf6-googlekey_input.kl \
device/phh/treble/files/teracube2e-mtk-kpd.kl:system/phh/teracube2e-mtk-kpd.kl \ device/phh/treble/files/teracube2e-mtk-kpd.kl:system/phh/teracube2e-mtk-kpd.kl \
device/phh/treble/files/bv9500plus-mtk-kpd.kl:system/phh/bv9500plus-mtk-kpd.kl \ device/phh/treble/files/bv9500plus-mtk-kpd.kl:system/phh/bv9500plus-mtk-kpd.kl \
device/phh/treble/files/moto-liber-gpio-keys.kl:system/phh/moto-liber-gpio-keys.kl device/phh/treble/files/moto-liber-gpio-keys.kl:system/phh/moto-liber-gpio-keys.kl \
device/phh/treble/files/tecno-touchpanel.kl:system/phh/tecno-touchpanel.kl \
SELINUX_IGNORE_NEVERALLOWS := true SELINUX_IGNORE_NEVERALLOWS := true
@ -212,6 +214,10 @@ PRODUCT_PRODUCT_PROPERTIES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
NavigationBarMode2ButtonOverlay NavigationBarMode2ButtonOverlay
# ThemePicker
PRODUCT_PACKAGES += \
ThemePicker
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
oplus-alert-slider oplus-alert-slider

View File

@ -0,0 +1 @@
key 183 WAKEUP

View File

@ -4,14 +4,15 @@ ifneq ($(wildcard vendor/google)$(wildcard vendor/partner_gms),)
-include vendor/partner_gms/products/gms.mk -include vendor/partner_gms/products/gms.mk
PRODUCT_SHIPPING_API_LEVEL := PRODUCT_SHIPPING_API_LEVEL :=
PRODUCT_PACKAGES := $(filter-out CalendarGoogle, $(PRODUCT_PACKAGES)) #PRODUCT_PACKAGES := $(filter-out CalendarGoogle, $(PRODUCT_PACKAGES))
PRODUCT_PACKAGES := $(filter-out GoogleContacts, $(PRODUCT_PACKAGES)) #PRODUCT_PACKAGES := $(filter-out GoogleContacts, $(PRODUCT_PACKAGES))
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
phh-gapps-overrides \ phh-gapps-overrides \
Chrome \ Chrome \
GoogleContactsSyncAdapter \ GoogleContactsSyncAdapter \
talkback \ talkback \
Photos \
PRODUCT_SYSTEM_DEFAULT_PROPERTIES := $(filter-out ro.boot.vendor.overlay.theme=%,$(PRODUCT_SYSTEM_DEFAULT_PROPERTIES)) PRODUCT_SYSTEM_DEFAULT_PROPERTIES := $(filter-out ro.boot.vendor.overlay.theme=%,$(PRODUCT_SYSTEM_DEFAULT_PROPERTIES))
endif endif

View File

@ -91,6 +91,9 @@ PRODUCT_BRAND := google
PRODUCT_SYSTEM_BRAND := google PRODUCT_SYSTEM_BRAND := google
PRODUCT_MODEL := Phh-Treble $apps_name PRODUCT_MODEL := Phh-Treble $apps_name
# Overwrite the inherited "emulator" characteristics
PRODUCT_CHARACTERISTICS := tablet
PRODUCT_PACKAGES += $extra_packages PRODUCT_PACKAGES += $extra_packages
EOF EOF

View File

@ -12,4 +12,6 @@
file="/system/framework/vendor.huawei.hardware.tp-V1.0-java.jar" /> file="/system/framework/vendor.huawei.hardware.tp-V1.0-java.jar" />
<library name="android.hardware.wifi.hostapd.V1_0" <library name="android.hardware.wifi.hostapd.V1_0"
file="/system/framework/android.hardware.wifi.hostapd-V1.0-java.jar" /> file="/system/framework/android.hardware.wifi.hostapd-V1.0-java.jar" />
<library name="vendor.xiaomi.hardware.displayfeature.V1_0"
file="/system/framework/vendor.xiaomi.hardware.displayfeature-V1.0-java.jar" />
</permissions> </permissions>

View File

@ -22,7 +22,6 @@
<string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string> <string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string>
<bool name="config_useRoundIcon">true</bool> <bool name="config_useRoundIcon">true</bool>
<string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
<bool name="config_unplugTurnsOnScreen">true</bool> <bool name="config_unplugTurnsOnScreen">true</bool>
<integer name="config_multiuserMaximumUsers">5</integer> <integer name="config_multiuserMaximumUsers">5</integer>
<bool name="config_enableMultiUserUI">true</bool> <bool name="config_enableMultiUserUI">true</bool>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- Package name and fully-qualified class name for the wallpaper picker activity. -->
<string name="config_wallpaper_picker_package" translatable="false">com.android.wallpaper</string>
<string name="config_wallpaper_picker_class" translatable="false">com.android.customization.picker.CustomizationPickerActivity</string>
<!-- Fully-qualified class name for the styles & wallpaper picker activity. -->
<string name="config_styles_and_wallpaper_picker_class" translatable="false">com.android.customization.picker.CustomizationPickerActivity</string>
</resources>

View File

@ -296,6 +296,14 @@ changeKeylayout() {
changed=true changed=true
fi fi
if getprop ro.vendor.build.fingerprint |grep -iq tecno/kd7;then
# Enable dt2w
echo cc1 > /proc/gesture_function
cp /system/phh/tecno-touchpanel.kl /mnt/phh/keylayout/mtk-tpd.kl
chmod 0644 /mnt/phh/keylayout/mtk-tpd.kl
changed=true
fi
if [ "$changed" = true ]; then if [ "$changed" = true ]; then
mount -o bind /mnt/phh/keylayout /system/usr/keylayout mount -o bind /mnt/phh/keylayout /system/usr/keylayout
restorecon -R /system/usr/keylayout restorecon -R /system/usr/keylayout