ROG2: Import stock keylatout and idc configs
Change-Id: Id0317fa2176efbfa3ff8ccc3099ec9e3923ddb92
diff --git a/device.mk b/device.mk
index 2d1bb07..19c9782 100755
--- a/device.mk
+++ b/device.mk
@@ -107,9 +107,10 @@
# Input
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
- $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
- $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
+ $(LOCAL_PATH)/idc/goodix_ts.idc:system/usr/idc/goodix_ts.idc \
+ $(LOCAL_PATH)/idc/goodix_ts_station.idc:system/usr/idc/goodix_ts_station.idc \
+ $(LOCAL_PATH)/keychars/goodix_ts.kcm:system/usr/keychars/goodix_ts.kcm \
+ $(LOCAL_PATH)/keylayout/goodix_ts.kl:system/usr/keylayout/goodix_ts.kl
# Live Wallpapers
PRODUCT_PACKAGES += \
diff --git a/idc/goodix_ts.idc b/idc/goodix_ts.idc
new file mode 100644
index 0000000..6cd7276
--- /dev/null
+++ b/idc/goodix_ts.idc
@@ -0,0 +1,4 @@
+device.internal = 1
+touch.deviceType = touchScreen
+touch.orientationAware = 1
+
diff --git a/idc/goodix_ts_station.idc b/idc/goodix_ts_station.idc
new file mode 100644
index 0000000..75676f2
--- /dev/null
+++ b/idc/goodix_ts_station.idc
@@ -0,0 +1,4 @@
+device.internal = 0
+touch.deviceType = touchScreen
+touch.orientationAware = 1
+touch.wake = 0
diff --git a/keychars/goodix_ts.kcm b/keychars/goodix_ts.kcm
new file mode 100644
index 0000000..a510228
--- /dev/null
+++ b/keychars/goodix_ts.kcm
@@ -0,0 +1 @@
+type SPECIAL_FUNCTION
diff --git a/keylayout/fts_ts.kl b/keylayout/goodix_ts.kl
similarity index 84%
rename from keylayout/fts_ts.kl
rename to keylayout/goodix_ts.kl
index 2c22921..b74f901 100644
--- a/keylayout/fts_ts.kl
+++ b/keylayout/goodix_ts.kl
@@ -12,4 +12,7 @@
key 18 GESTURE_E WAKE VIRTUAL
key 46 GESTURE_C WAKE VIRTUAL
key 44 GESTURE_Z WAKE VIRTUAL
-key 47 GESTURE_V WAKE VIRTUAL
\ No newline at end of file
+key 47 GESTURE_V WAKE VIRTUAL
+key 33 FINGERPRINT_EARLYWAKEUP
+key 22 FINGERPRINT_SCREEN_OFF_LEAVE
+key 38 FINGERPRINT_SCREEN_OFF_TAP_IN_IDENTIFY_AREA
\ No newline at end of file
diff --git a/keylayout/goodixfp.kl b/keylayout/goodixfp.kl
deleted file mode 100644
index b06d453..0000000
--- a/keylayout/goodixfp.kl
+++ /dev/null
@@ -1,4 +0,0 @@
-key 103 SYSTEM_NAVIGATION_UP
-key 108 SYSTEM_NAVIGATION_DOWN
-key 105 SYSTEM_NAVIGATION_LEFT
-key 106 SYSTEM_NAVIGATION_RIGHT
\ No newline at end of file
diff --git a/keylayout/googlekey_input.kl b/keylayout/googlekey_input.kl
deleted file mode 100644
index 122463e..0000000
--- a/keylayout/googlekey_input.kl
+++ /dev/null
@@ -1 +0,0 @@
-key 583 VOICE_ASSIST