How to define and use a system property in Android Instrumentation test?

前端 未结 7 1019
时光说笑
时光说笑 2020-12-02 23:25

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

相关标签:
7条回答
  • 2020-12-03 00:11

    You need a root to set system property

    adb shell
    su
    setprop AP 123
    
    0 讨论(0)
提交回复
热议问题