Check if the navigation bar is hidden with ADB command “overscan”

北城以北 提交于 2021-01-29 22:04:09

问题


Many popular third parties apps and users are hiding the navigation bar by using a particular ADB command:

adb shell wm overscan 0,0,0,-202

The particular thing of this command is if you check the presence of the navigation bar by reading a boolean from Android resources it will always return true (navigation bar is not hidden).

That tricky ADB command doesn't hide the navigation bar it just moves it off the screen.

Is there a way to detect this?

来源:https://stackoverflow.com/questions/60980095/check-if-the-navigation-bar-is-hidden-with-adb-command-overscan

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!