First, based on this version (V190816), do the following steps:
Record the ID number of your touch screen (as vendor=0x222a, product=0x0001):
C:\Users\hlm>adb shell
rk3399:/ $
rk3399:/ $
rk3399:/ $ dumpsys input
INPUT MANAGER (dumpsys input)
Input Manager State:
Interactive: true
System UI Visibility: 0xa018
Pointer Speed: 0
Pointer Gestures Enabled: true
Show Touches: false
Pointer Capture Enabled: false
Event Hub State:
BuiltInKeyboardId: 2
Devices:
-1: Virtual
Classes: 0x40000023
Path: <virtual>
Enabled: true
Descriptor: a718a782d34bc767f4689c232d64d527998ea7fd
Location:
ControllerNumber: 0
UniqueId: <virtual>
Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
KeyLayoutFile: /system/usr/keylayout/Generic.kl
KeyCharacterMapFile: /system/usr/keychars/Virtual.kcm
ConfigurationFile:
HaveKeyboardLayoutOverlay: false
........
10: fake_ts
Classes: 0x80000014
Path: /dev/input/event1
Enabled: true
Descriptor: 022849d4d83d06bba759daa734985de2f785d96a
Location:
ControllerNumber: 0
UniqueId:
Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
KeyLayoutFile:
KeyCharacterMapFile:
ConfigurationFile: /system/usr/idc/fake_ts.idc
HaveKeyboardLayoutOverlay: false
11: ILITEK ILITEK-TP
Classes: 0x00000014
Path: /dev/input/event10
Enabled: true
Descriptor: f1b4838838e240568fcbdd50c0f63be308c623ef
Location: usb-xhci-hcd.11.auto-1.4/input0
ControllerNumber: 0
UniqueId:
Identifier: bus=0x0003, vendor=0x222a, product=0x0001, version=0x0110
KeyLayoutFile:
KeyCharacterMapFile:
ConfigurationFile: /system/usr/idc/Vendor_222a_Product_0001.idc
HaveKeyboardLayoutOverlay: false
Create two new files:
fake_ts.idc
device.internal = 0
touch.deviceType = touchScreen
touch.orientationAware = 1
keyboard.layout = fake_ts
keyboard.characterMap = fake_ts
keyboard.orientationAware = 1
keyboard.builtIn = 1
cursor.mode = navigation
cursor.orientationAware = 1
Vendor_xxxx_Product_xxxx.idc (as Vendor_222a_Product_0001.idc)
device.internal = 1
touch.deviceType = touchScreen
touch.orientationAware = 1
keyboard.layout = Vendor_222a_Product_0001
keyboard.characterMap = Vendor_222a_Product_0001
keyboard.orientationAware = 1
keyboard.builtIn = 1
cursor.mode = navigation
cursor.orientationAware = 1
C:\Users\hlm>adb root
C:\Users\hlm>adb remount
remount succeeded
C:\Users\hlm>adb push fake_ts.idc system/usr/idc/
C:\Users\hlm>adb push Vendor_222a_Product_0001.idc system/usr/idc/
C:\Users\hlm>adb shell
rk3399:/ # reboot
rk3399:/ $ dumpsys input
Execute this command to confirm OK after the machine restarts: