How can I overcome the property length limitation of the “adb shell setprop”

前端 未结 4 819
自闭症患者
自闭症患者 2020-12-10 13:20

I get an error when I try set a value for property with name >= 32 characters

adb shell setprop 01234567890123456789012345678901 VALUE

Erro

4条回答
  •  萌比男神i
    2020-12-10 13:52

    Maybe using redirection?

    Set small property which will hold file name for conf file:

    setprop confFileName "myConf.yml"
    

    in that conf file have all your big property names and values.

提交回复
热议问题