Disable part of a touchscreen from taking phantom touches I have a 10.Or G android Oreo device


Resolution: 1080x1920 
Density: 480


This question follows up from here

I'm having problem with lots of ghost touches in the very top 5 mm bar of the screen where touches will register almost 20 times in a minute. Doing the overscan doesnt help at all, because touches will still register, so I am looking to resize my screen with: 

adb shell wm size 1080*1820


I dont know what to do from here because I'm receiving error:

Error: bad size 1080*1820


Help will be greatly appreciated.
You can use the overscan subcommand instead of size for achieving your objective.
The syntax is adb shell wm overscan left,top,right,bottom, where left, top, right and bottom are the coordinates relative to the actual edges of the screen.
So, in your case, you should write adb shell wm overscan 0,100,0,0, to get a resolution of 1080×1820, as you have mentioned above.

Explanation: This will set your device's screen bounds to 0px from the left, 100 px from the top, 0 px from the right and 0 px from the bottom. See this image: