We found that stock firmware calculates the fod rect
from resolution and a set of inscreen fingerprint
sensor position data at boot and then use set_fod_rect
command to tell the Kernel TSP driver.
Then the Kernel TSP driver wrote it to "sponge"
(presumably firmware of touchscreen panel).
It is not yet known what exactly was done with this
data but it is good to keep in line with stock
firmware when we can.
Change-Id: Id44d399a8dc482c7d6f320a3bbfea1282ac4f83a
Signed-off-by: Jesse Chan <jc@lineageos.org>
}
}
-FingerprintInscreen::FingerprintInscreen() {}
+FingerprintInscreen::FingerprintInscreen() {
+#ifdef FOD_SET_RECT
+ set(TSP_CMD_PATH, FOD_SET_RECT);
+#endif
+}
Return<void> FingerprintInscreen::onStartEnroll() { return Void(); }
#define FOD_ENABLE "fod_enable,1,1"
#define FOD_DISABLE "fod_enable,0"
+// #define FOD_SET_RECT "set_fod_rect,554,2263,886,2595"
+
#define FINGERPRINT_ACQUIRED_VENDOR 6
#define VENDORCODE_FINGER_DOWN 9002
#define VENDORCODE_FINGER_UP 9001