My phone arrives tomorrow night hopefully. I made an attempt at writing a quick custom script that runs on boot using the patched.img that darth posted. It polls /data/local/tmp for *.sh files every 5 sec. It writes a .out file and skips .sh which already have a .out. Hopefully all running as root. If it works you should be able to do something like:
cd /data/local/tmp
cat >1.sh <<EOF
resetprop ro.vendor.tct.endurance true
resetprop ro.build.type userdebug
EOF
Wait 5 sec and check the properties...
[Login to see the link]