Unsetting persistent system properties

Prior to Android 9 Pie, the persistent property is stored as a file and can be removed.

rm /data/property/persist.this.is.my.property && reboot

Since Android 9 Pie, persistent properties are stored in a single file (commit 16fad42) and can only be unset.

setprop persist.this.is.my.property \"\" && reboot

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).


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

Tags:

Shell

Android

Adb