Using adb, one has a lot of additional permissions, that apps running locally on the phone have.
Specifically, I am interested in the wm size
command.
Is there a good way to allow apps access to those permissions?
The only way I know of, is to use adb tcpip
, so that apps can connect to the adb server running on the phone. But afaik, thata wouldn't survive a reboot.
adb
is an obvious security liability. Sadly I think your desired behavior for your hardware project is only available via Custom ROM.