I am trying to use some arguments for an Instrumentation test. I noticed that I can read system properties with System.getProperty() function. So I use setprop
System.getProperty()
You need a root to set system property
adb shell su setprop AP 123