Unsetting persistent system properties

后端 未结 5 1605
渐次进展
渐次进展 2020-12-23 21:43

I can set a persistent system property on an Android phone (with appropriate permissions) using setprop command:

$ adb         


        
相关标签:
5条回答
  • 2020-12-23 21:50

    It works for me.
    on macOS:
    echo -e "setprop wrap.$PACKAGE_NAME \"\"\n exit" > .temp adb shell < .temp rm ./.temp

    on android:
    setprop wrap.$PACKAGE_NAME ""

    0 讨论(0)
  • 2020-12-23 21:53
    adb shell setprop persist.this.is.my.property \"\"
    adb shell reboot
    

    Changed the property value so it wouldn't be using it's previous value.
    Empty quotes("") wouldnt work for me, I had to escape them(this is in bash).

    0 讨论(0)
  • 2020-12-23 22:12

    You can remove the property with adb shell setprop persist.this.is.my.property ""

    0 讨论(0)
  • 2020-12-23 22:14

    Just reboot the device, the property will unset.

    0 讨论(0)
  • 2020-12-23 22:16

    To remove the property:

    rm /data/property/persist.this.is.my.property && reboot
    
    0 讨论(0)
提交回复
热议问题