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
5 changed files with 17 additions and 1 deletions

View File

@ -102,6 +102,7 @@ PRODUCT_PACKAGES += \
vendor.huawei.hardware.tp-V1.0-java \
vendor.qti.hardware.radio.am-V1.0-java \
vendor.qti.qcril.am-V1.0-java \
vendor.xiaomi.hardware.displayfeature-V1.0-java
PRODUCT_COPY_FILES += \
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/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/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

View File

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

View File

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

View File

@ -12,4 +12,6 @@
file="/system/framework/vendor.huawei.hardware.tp-V1.0-java.jar" />
<library name="android.hardware.wifi.hostapd.V1_0"
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>

View File

@ -296,6 +296,14 @@ changeKeylayout() {
changed=true
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
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
restorecon -R /system/usr/keylayout