Update policy of firmware updater for Focaltech touchscreen

This CL adds support for the touchscreen device to check the version
and upgrade the firmware. Tested on devices with both a touchscreen
and a touchpad. The update process was verified to check the firmware
version and to successfully apply the upgrade.

BUG=b:400438528
TEST=chromeos-touch-update.sh
TEST=The update process was verified to check the firmware version
and to successfully apply the upgrade.

Change-Id: I9b1235555fb0310d9080af134e73918324abf74c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touch_updater/+/6327558
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Chienhao Chen <chienhao.chen@focaltech.corp-partner.google.com>
Commit-Queue: Jingyuan Liang <jingyliang@chromium.org>
Tested-by: Chienhao Chen <chienhao.chen@focaltech.corp-partner.google.com>
diff --git a/policies/amd64/focaltech.query.policy b/policies/amd64/focaltech.query.policy
index bfd1040..2e37fd5 100644
--- a/policies/amd64/focaltech.query.policy
+++ b/policies/amd64/focaltech.query.policy
@@ -14,12 +14,17 @@
 exit_group: 1
 close: 1
 write: 1
+read: 1
+pselect6: 1
 # IOCTL Information:
 #  ftphid_ezupg_ap:
 #   HIDIOSCFEATURE: 0xc0404806
 #   HIDIOGCFEATURE: 0xc0404807
 #   HIDIOCGRAWINFO: 0x80084803
-ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803
+#   HIDIOCSOUTPUT: 0xC0404808
+#   HIDIOCGOUTPUT: 0x8040480B
+ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803 || \
+       arg1 == 0xC0404808 || arg1 == 0x8040480B
 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
 getrandom: arg2 in ~GRND_RANDOM
diff --git a/policies/amd64/focaltech.update.policy b/policies/amd64/focaltech.update.policy
index e80bfdf..9c641c4 100644
--- a/policies/amd64/focaltech.update.policy
+++ b/policies/amd64/focaltech.update.policy
@@ -15,12 +15,16 @@
 close: 1
 read: 1
 write: 1
+pselect6: 1
 # IOCTL Information:
 #  ftphid_ezupg_ap:
 #   HIDIOSCFEATURE: 0xc0404806
 #   HIDIOGCFEATURE: 0xc0404807
 #   HIDIOCGRAWINFO: 0x80084803
-ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803
+#   HIDIOCSOUTPUT: 0xC0404808
+#   HIDIOCGOUTPUT: 0x8040480B
+ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803 || \
+       arg1 == 0xC0404808 || arg1 == 0x8040480B
 fstat: 1
 lseek: 1
 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
diff --git a/policies/arm64/focaltech.query.policy b/policies/arm64/focaltech.query.policy
index 5f24bdf..33291c0 100644
--- a/policies/arm64/focaltech.query.policy
+++ b/policies/arm64/focaltech.query.policy
@@ -13,12 +13,17 @@
 exit_group: 1
 close: 1
 write: 1
+read: 1
+pselect6: 1
 # IOCTL Information:
 #  ftphid_ezupg_ap:
 #   HIDIOSCFEATURE: 0xc0404806
 #   HIDIOGCFEATURE: 0xc0404807
 #   HIDIOCGRAWINFO: 0x80084803
-ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803
+#   HIDIOCSOUTPUT: 0xC0404808
+#   HIDIOCGOUTPUT: 0x8040480B
+ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803 || \
+       arg1 == 0xC0404808 || arg1 == 0x8040480B
 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
 mprotect: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
 getrandom: arg2 in ~GRND_RANDOM
@@ -27,4 +32,4 @@
 clock_nanosleep: 1
 openat: 1
 newfstatat: 1
-getdents64: 1
\ No newline at end of file
+getdents64: 1
diff --git a/policies/arm64/focaltech.update.policy b/policies/arm64/focaltech.update.policy
index 4c88e8c..129ed1a 100644
--- a/policies/arm64/focaltech.update.policy
+++ b/policies/arm64/focaltech.update.policy
@@ -14,12 +14,16 @@
 close: 1
 read: 1
 write: 1
+pselect6: 1
 # IOCTL Information:
 #  ftphid_ezupg_ap:
 #   HIDIOSCFEATURE: 0xc0404806
 #   HIDIOGCFEATURE: 0xc0404807
 #   HIDIOCGRAWINFO: 0x80084803
-ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803
+#   HIDIOCSOUTPUT: 0xC0404808
+#   HIDIOCGOUTPUT: 0x8040480B
+ioctl: arg1 == 0xc0404806 || arg1 == 0xc0404807 || arg1 == 0x80084803 || \
+       arg1 == 0xC0404808 || arg1 == 0x8040480B
 fstat: 1
 lseek: 1
 mmap: arg2 in ~PROT_EXEC || arg2 in ~PROT_WRITE
@@ -30,4 +34,4 @@
 clock_nanosleep: 1
 openat: 1
 newfstatat: 1
-getdents64: 1
\ No newline at end of file
+getdents64: 1