Little hack that can be used to update android properties
(yes even read-only ro properties) using gdb.
Requires root.
first of all you need gdb
you can install it with termux.
Install termux
wget https://f-droid.org/repo/com.termux_1021.apk
adb install com.termux_1021.apkAfter installing termux install gdb from termux
# inside termux:
pkg install gdbgdb should be located in /data/data/com.termux/files/usr/bin/gdb
After installing gdb just run the script inside your android machine:
adb push gdbsetprop /data/
# example change ro.debuggable to 0
adb shell su -c "/data/gdbsetprop ro.debuggable 0"