Compare commits
9 Commits
213354dbb3
...
e067501cc5
Author | SHA1 | Date | |
---|---|---|---|
e067501cc5 | |||
5e59ceff81 | |||
9eefd61dcd | |||
16cb93485c | |||
|
bbc2268788 | ||
|
6335412007 | ||
|
88b1230dee | ||
|
adad184263 | ||
|
d5610375c4 |
4
base.mk
4
base.mk
@ -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
|
||||
|
||||
|
1
files/tecno-touchpanel.kl
Normal file
1
files/tecno-touchpanel.kl
Normal file
@ -0,0 +1 @@
|
||||
key 183 WAKEUP
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user