Monday, February 4, 2019

adb - Display bound manipulation on an android device, to avoid faulty touchscreen area


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: The instructions I followed were from these questions question 1 & question 2. But it didn't help.


Edit 2: Current device display configuration:


enter image description here


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.


enter image description here enter image description here enter image description here




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...