Skip to content

Instantly share code, notes, and snippets.

@danielml3
Last active July 21, 2024 23:18
Show Gist options
  • Save danielml3/627b0b38f3dc051bba8f30fbbd9e0bba to your computer and use it in GitHub Desktop.
Save danielml3/627b0b38f3dc051bba8f30fbbd9e0bba to your computer and use it in GitHub Desktop.
#!/system/bin/sh
#
# ADDOND_VERSION=2
#
# /system/addon.d/25-customprops.sh
#
. /postinstall/tmp/backuptool.functions
case "$1" in
backup)
# Stub
;;
restore)
# Stub
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
build_prop=$(get_output_path /system/build.prop)
sed -i s/ro.debuggable=1/ro.debuggable=0/g $build_prop
sed -i s/ro.build.tags=test-keys/ro.build.tags=release-keys/g $build_prop
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment