I have a Oneplus 3T on which, the digitizer would not register a touch on the bottom 1cm of the display. I tried the
adb shell wm overscan 0,0,0,100 command to set display margins, and it breaks a lot of apps (even after restart). The margin seems to scale differently to different apps. So, I used the
adb shell wm size 1080x1820 (original resolution: 1080x1920) command to set the height 100px less. Unfortunately, it shrunk to the middle, and there are 50px padding on the bottom as well as the top. But, all the apps are working well. Is there a way to shift ("translate") the display upwards on y-axis 50px, so that all the extra padding is on the bottom? If not, are there any other ways to achieve the same intention (to shrink the display to the usable area)? I can't find any comprehensive list of all the adb commands anywhere...
PS: I've tried activating on-screen navigation to offset the display, but on Oxygen OS 5.0.3, it also disabled the hardware buttons.
Edit 2: Current device display configuration:
Here are a few screenshots to show what went wrong with the
adb shell wm overscan 0,0,0,100 method. There is an empty space at the bottom of each of these app windows and they are different for each of them as well.