case "$ACTION" in
post)
if [ ! -f ./var/lib/waydroid/waydroid.cfg ]; then return 0; fi
if [ ! -f ./var/lib/waydroid/waydroid_base.prop ]; then return 0; fi
echo "Regenerating Waydroid configs..."
waydroid upgrade --offline || exit 0
;;
esac