Compare commits
9 Commits
213354dbb3
...
e067501cc5
Author | SHA1 | Date | |
---|---|---|---|
e067501cc5 | |||
5e59ceff81 | |||
9eefd61dcd | |||
16cb93485c | |||
|
bbc2268788 | ||
|
6335412007 | ||
|
88b1230dee | ||
|
adad184263 | ||
|
d5610375c4 |
8
base.mk
8
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
|
||||
|
||||
@ -212,6 +214,10 @@ PRODUCT_PRODUCT_PROPERTIES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
NavigationBarMode2ButtonOverlay
|
||||
|
||||
# ThemePicker
|
||||
PRODUCT_PACKAGES += \
|
||||
ThemePicker
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
oplus-alert-slider
|
||||
|
||||
|
1
files/tecno-touchpanel.kl
Normal file
1
files/tecno-touchpanel.kl
Normal file
@ -0,0 +1 @@
|
||||
key 183 WAKEUP
|
5
gapps.mk
5
gapps.mk
@ -4,14 +4,15 @@ ifneq ($(wildcard vendor/google)$(wildcard vendor/partner_gms),)
|
||||
-include vendor/partner_gms/products/gms.mk
|
||||
PRODUCT_SHIPPING_API_LEVEL :=
|
||||
|
||||
PRODUCT_PACKAGES := $(filter-out CalendarGoogle, $(PRODUCT_PACKAGES))
|
||||
PRODUCT_PACKAGES := $(filter-out GoogleContacts, $(PRODUCT_PACKAGES))
|
||||
#PRODUCT_PACKAGES := $(filter-out CalendarGoogle, $(PRODUCT_PACKAGES))
|
||||
#PRODUCT_PACKAGES := $(filter-out GoogleContacts, $(PRODUCT_PACKAGES))
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
phh-gapps-overrides \
|
||||
Chrome \
|
||||
GoogleContactsSyncAdapter \
|
||||
talkback \
|
||||
Photos \
|
||||
|
||||
PRODUCT_SYSTEM_DEFAULT_PROPERTIES := $(filter-out ro.boot.vendor.overlay.theme=%,$(PRODUCT_SYSTEM_DEFAULT_PROPERTIES))
|
||||
endif
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
<bool name="config_useRoundIcon">true</bool>
|
||||
|
||||
<string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||
<integer name="config_multiuserMaximumUsers">5</integer>
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
|
21
overlay/packages/apps/Settings/res/values/config.xml
Normal file
21
overlay/packages/apps/Settings/res/values/config.xml
Normal 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>
|
@ -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