Skip to content

Commit 9f2b6c6

Browse files
authored
Add files via upload
Uploaded wrongly; Do it again.
1 parent 593f1ca commit 9f2b6c6

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

2.8.0103/customize.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ui_print "**************************"
2+
ui_print "MIUI Flash Freely v2.8.0103"
3+
ui_print "**************************"
4+
CHECK="/vendor/etc
5+
/product/etc"
6+
SUPPORT="0"
7+
for path in $CHECK; do
8+
if [[ -d $path/device_features ]]; then
9+
ui_print "- Specific Directory Found!"
10+
SUPPORT="1"
11+
break
12+
else
13+
ui_print "! Warning: Directory $path/device_features Not Found."
14+
ui_print "- Trying another one."
15+
fi
16+
done
17+
if [[ $SUPPORT == "0" ]]; then
18+
abort "! Error: Unsupported device!"
19+
else
20+
ui_print "- Completed successfully!"
21+
fi

2.8.0103/module.prop

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=MIUI_Flash_Freely
22
name=MIUI Flash Freely
3-
version=v2.1.0102
4-
versionCode=3
3+
version=v2.8.0103
4+
versionCode=4
55
author=siergtc @ cgtsoft.com
6-
description=By changing the "support_ota_validate" value in the device_features file of any available Xiaomi or Redmi phone running MIUI 12+ to "false", it is possible to freely select the .zip package in the System Update App and flash it, even the package is in alpha.
6+
description=By changing the "support_ota_validate" value in the device_features file of any available Xiaomi or Redmi phone running MIUI 12/12.5/13 to "false", it is possible to freely select the .zip package in the System Update App and flash it, even the package is in alpha.

2.8.0103/post-fs-data.sh

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
MODDIR=${0%/*}
2-
32
TARGET_PATH=""
4-
POSSIBLE_LIST="
5-
/product/etc
6-
/vendor/etc
7-
/system/etc
8-
"
9-
for path in $POSSIBLE_LIST; do
10-
if [[ -d $path/device_features/ ]]; then
11-
TARGET_PATH=$path
3+
CHECK="/product/etc
4+
/vendor/etc"
5+
for path in $CHECK; do
6+
if [[ -d $path/device_features ]]; then
7+
TARGET_PATH="$path/device_features"
8+
break
129
fi
1310
done
14-
if [ "$TARGET_PATH" == "" ]; then
15-
ui_print "**Error: File Not Found. Unsupported device?**"
16-
exit
17-
else
18-
TARGET_PATH=$path/device_features
19-
fi
2011
CHANGE=$MODDIR/system/$TARGET_PATH
2112
mkdir -p $CHANGE
2213
rm $CHANGE/*

0 commit comments

Comments
 (0)