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
Because there are two types of property in Android.
adb shell getprop/setprop.System.getProperty()/setProperty().As you are setting a system level property and trying to get its value as current process level, you are getting null value in log.