This commit is contained in:
shuixx
2025-07-14 01:42:42 +00:00
parent c6f5f40333
commit 732117171d
38 changed files with 126 additions and 126 deletions

View File

@@ -2,7 +2,7 @@
#
# ADDOND_VERSION=2
#
# /system/addon.d/50-minus.sh
# /system/addon.d/50-strix.sh
# During a MinusOS upgrade, this script backs up /system/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#

View File

@@ -48,7 +48,7 @@ if [ ! -r $S/build.prop ]; then
echo "Backup/restore is not possible. Partition is probably empty"
return 1
fi
if ! grep -q "^ro.minus.version=$V.*" $S/build.prop; then
if ! grep -q "^ro.strix.version=$V.*" $S/build.prop; then
echo "Backup/restore is not possible. Incompatible ROM version: $V"
return 2
fi

View File

@@ -56,7 +56,7 @@ if [ ! -r /system/build.prop ]; then
echo "Backup/restore is not possible. Partition is probably empty"
return 1
fi
if ! grep -q "^ro.minus.version=$V.*" /system/build.prop; then
if ! grep -q "^ro.strix.version=$V.*" /system/build.prop; then
echo "Backup/restore is not possible. Incompatible ROM version: $V"
return 2
fi

View File

@@ -1,4 +1,4 @@
on post-fs-data
# Create an additional OTA package directory that unlike /data/ota_package
# will not be touched by GmsCore.
mkdir /data/minusos_updates 0770 system cache encryption=Require
mkdir /data/strixos_updates 0770 system cache encryption=Require