The goal is to open some activity in one application. I'm testing on the transition to the settings. Try so

ProcessBuilder p = new ProcessBuilder(new String[]{"am start -n com.android.settings/.Settings"}); Process h = p.start(); 

Why is nothing happening? Still right! On the device under test, the application is granted root rights.

  • 2
    and what you are not comfortable with the standard way to launch an Activity , without using the commands of the "terminal"? - Vladyslav Matviienko
  • You need to open not the settings, but the activity from the engineering menu. Is it possible to do this without root ? Flippy
  • one
    The engineering menu is a regular application. If you know the name of his Activity, you can open it in the usual way - Vladyslav Matviienko
  • I know this Engineer Mode.apk, a system application. Thanks, make the answer - Flippy

0