OP6: Keylayout to support dt2w
Change-Id: I4a21138dfbe2b28afb67bdf8c5971a671dd89edb
diff --git a/rw-system.sh b/rw-system.sh
index 89d3357..34b18e6 100644
--- a/rw-system.sh
+++ b/rw-system.sh
@@ -60,6 +60,12 @@
changed=true
fi
+ if [ "$(getprop ro.vendor.product.device)" == "OnePlus6" ];then
+ cp /system/phh/oneplus6-synaptics_s3320.kl /mnt/phh/keylayout/synaptics_s3320.kl
+ chmod 0644 /mnt/phh/keylayout/synaptics_s3320.kl
+ changed=true
+ fi
+
if [ "$changed" == true ];then
mount -o bind /mnt/phh/keylayout /system/usr/keylayout
restorecon -R /system/usr/keylayout