i need run security test on 1 of our android mobile applications.
- it must not run if device rooted.
- it should run expected on non-rooted devices.
i have tested part 1 without issue , found work expected.
however, cannot seem create emulator using avd manager not start root access.
-is there command line method reduce emulator instance non-rooted @ startup? -failing that, there method send adb shell command (or other command line call) reduce permissions installed application?
thanks!
edit @fred. have opened shell , changed user id (uid) of application under test. note in image can see command, "adb shell su u0_a53" , next prompt includes user, "u0_a53@generic_x86_64" returned shell , has "$" indicating non-root access. however, when opening application under test on emulator, application detects device rooted. missing?
yes, there way using su change super user non root, see answer in question directions:
https://android.stackexchange.com/questions/60599/how-to-get-non-root-access-on-emulators
Comments
Post a Comment