From 4e9a5e6986007de519ecfa84735cd4d212a872fc Mon Sep 17 00:00:00 2001 From: ianchb Date: Sat, 18 Feb 2023 22:53:47 +0800 Subject: [PATCH 1/4] Solve conflicts with MIUI-AOD-Freely --- post-fs-data.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/post-fs-data.sh b/post-fs-data.sh index 8ae5eee..9fe1e6f 100644 --- a/post-fs-data.sh +++ b/post-fs-data.sh @@ -11,5 +11,11 @@ done CHANGE=$MODDIR/system/$TARGET_PATH mkdir -p $CHANGE rm $CHANGE/* -cp -f $TARGET_PATH/* $CHANGE/ +if [ ! -f $MODDIR/../maodf.marker ]; then + cp -f $TARGET_PATH/* $CHANGE/ + touch $MODDIR/../mff.marker +else + cp -f $MODDIR/../MIUI_AOD_Freely/system/$TARGET_PATH/* $CHANGE/ + rm -f $MODDIR/../maodf.marker +fi sed -i 's/"support_ota_validate">truefalse Date: Sat, 18 Feb 2023 23:36:33 +0800 Subject: [PATCH 2/4] improve compatability --- post-fs-data.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/post-fs-data.sh b/post-fs-data.sh index 9fe1e6f..9bee184 100644 --- a/post-fs-data.sh +++ b/post-fs-data.sh @@ -13,9 +13,9 @@ mkdir -p $CHANGE rm $CHANGE/* if [ ! -f $MODDIR/../maodf.marker ]; then cp -f $TARGET_PATH/* $CHANGE/ - touch $MODDIR/../mff.marker + sed -i 's/"support_ota_validate">truefalsetruefalsetruefalse Date: Sat, 18 Feb 2023 23:37:33 +0800 Subject: [PATCH 3/4] remove the marker file automatically --- service.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 service.sh diff --git a/service.sh b/service.sh new file mode 100644 index 0000000..7e8b738 --- /dev/null +++ b/service.sh @@ -0,0 +1,2 @@ +MODDIR=${0%/*} +rm -f $MODDIR/../mff.marker From d09c0c69232e6f02c9a4a7d4a15753104c72dae7 Mon Sep 17 00:00:00 2001 From: ianchb Date: Sat, 18 Feb 2023 23:38:50 +0800 Subject: [PATCH 4/4] bump to 4.3.0218 --- module.prop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.prop b/module.prop index 93de25f..9bdc8d5 100644 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=MIUI_Flash_Freely name=MIUI Flash Freely -version=v4.2.0120 -versionCode=8 +version=v4.3.0218 +versionCode=9 author=siergtc description=View https://github.com/ianchb/MIUI-Flash-Freely for more. updateJson=https://update.ap.icu/mff