I can set a persistent system property on an Android phone (with appropriate permissions) using setprop
command:
$ adb
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 ""
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 ""
Just reboot the device, the property will unset.
To remove the property:
rm /data/property/persist.this.is.my.property && reboot