[Google Pixel 2 Guides, News, & Discussion] Hashcode:
I posted a hacked together fix on the Google Issue here:

https://issuetracker.google.com/u/2/issues/70344455#comment539

Quoted Post:

WARNING:

1) The following instructions are for advanced Android users. If you have any questions regarding your skills in this area, DO NOT ATTEMPT and wait for Google to apply the fix.

2) Modifying your system can/will break the Play Store "SafetyNet" check, which affects usage of apps like Google Pay, etc.

3) I accept no responsibility for any issues you may have if you choose to perform the following changes to your device.

4) It will break the ability to take OTAs until you reflash a factory image from Google: https://developers.google.com/android/images

5) Please understand the risks of unlocking your bootloader.

6) Read through all of the steps and understand them before starting.

7) Your host PC will need the Android SDK installed in order to use adb and fastboot commands.

8) THE FOLLOWING INSTRUCTIONS ONLY APPLY TO THE PIXEL 2 (Walleye) DEVICE.

I re-built the affected libraries from AOSP source tag: android-8.1.0_r20 (April 2, 2018) for walleye (Pixel 2).

The following commits applied to frameworks/native:

git cherry-pick 687a0d19345bb5fc669e594397370c76172362e1

git fetch https://android.googlesource.com/platform/frameworks/native refs/changes/05/640605/1 && git cherry-pick FETCH_HEAD

git fetch https://android.googlesource.com/platform/frameworks/native refs/changes/06/640606/1 && git cherry-pick FETCH_HEAD

The attached zip contains the new versions of the following files:

system/lib/libinput.so

system/lib/libinputflinger.so

system/lib64/libinput.so

system/lib64/libinputflinger.so

Apply them to your unlocked device using the following steps:

(NOTE: where lines begin with "$" this indicates a command entered on the host PC's command line, do not include the "$" portion)

1) Download Magisk from: https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589

Read more about Magisk and what it does to your boot.img / system here: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

2) Download TWRP custom recovery for Walleye from (currently 3.2.1-2): https://twrp.me/google/googlepixel2.html

TWRP is used as a temporary recovery to move the patched libraries to my current system partition and apply the Magisk.zip

3) Boot to TWRP temporarily:

$ adb reboot bootloader

$ fastboot boot twrp-3.2.1-2-walleye.img

4) Push the Magisk .zip to the /sdcard:

$ adb push Magisk-v16.3.zip /sdcard

5) Use the "Install" menu to install Magisk-v16.3.zip.

6) Use the "Mount" screen to mount "system" (check the box next to it)

NOTE: it mounts as /system/system due to the A/B partitioning of the device)

7) Using adb make a backup of the original libraries:

$ adb shell "mv /system/system/lib/libinput.so /system/system/lib/libinput.so.bak"

$ adb shell "mv /system/system/lib/libinputflinger.so /system/system/lib/libinputflinger.so.bak"

$ adb shell "mv /system/system/lib64/libinput.so /system/system/lib64/libinput.so.bak"

$ adb shell "mv /system/system/lib64/libinputflinger.so /system/system/lib64/libinputflinger.so.bak"

8) Extract the contents of the attached inputfix.zip

9) Using adb push the contents of the .zip to your device. This assumes you are "cd"'d to the directory where you've extracted the files:

$ adb push inputfix/system/lib/libinput.so /system/system/lib/libinput.so

$ adb push inputfix/system/lib/libinputflinger.so /system/system/lib/libinputflinger.so

$ adb push inputfix/system/lib64/libinput.so /system/system/lib64/libinput.so

$ adb push inputfix/system/lib64/libinputflinger.so /system/system/lib64/libinputflinger.so

10) Use the "Mount" screen to unmount "system" (uncheck the box next to it)

11) Reboot the device

12) Open the "Magisk" app that should now be showing up in your list of applications. Uncheck the "Preserve AVB 2.0/dm-verity" option.

13) Reboot the device again. This lets the setting change take affect.

I hope I got these instructions decently correct. Using the modified input libraries, I've had no issues with the jumping touches on my device.

- Hashcode