tir38 / ADBX

ADB extensions
2 stars 0 forks source link

Add option to toggle Accessibility Display Scale #77

Closed tir38 closed 2 years ago

tir38 commented 2 years ago

Unlike #72 , this one is a bit more complicated. We don't have a way to set the scale. Instead we have to set the absolute value of screen density. But we can compute that value based on default value:

adb shell wm density

which will give us physical density (and override if set).

We can then do a density X scale computation, based on these scales:

small ~ 0.85 default = 1.0 large ~ 1.1 larger ~ 1.2 largest ~ 1.3

unfortunately, these are approximates. Real values based on my single-phone-test are: 0.84, 1.09, 1.19, 1.28.