How To Execute Command "wm Size" In Android Runtime?
I try to execute a command wm for change the display resolution of the device. If I run the command in ADB SHELL works perfect, but when I try to do in code: Runtime.getRuntime().e
Solution 1:
Most adb shell
commands require above-average privileges. When running those commands through adb shell
, you get those privileges. When running those commands directly from an app, you do not... unless the device is rooted and you arrange to run those commands as a superuser.
Post a Comment for "How To Execute Command "wm Size" In Android Runtime?"