Watch
2
Fork
You've already forked storefix
0
storefix/customize.sh
Cuynu ae3656df3e storefix: initial commit
Signed-off-by: Cuynu <cuynu@proton.me>
2026-03-29 08:51:41 +07:00

38 lines
1.2 KiB
Shell
Executable file

#/system/bin/sh
echo "This module will fix store theme download issues for who installed customized module themes."
tmpfix() {
echo "Applying fixes..."
rm -rf '/data/data/com.mbmobile/app_flutter/app_theme'
unzip -o "$ZIPFILE" 'fix.bin'
unzip fix.bin -o -d '/data/data/com.mbmobile/app_flutter/'
echo "Opening app..."
am force-stop com.mbmobile
am start -n com.mbmobile/io.flutter.plugins.MainActivity
echo "This is not a real module. It only supposed to fix store theme download issues."
echo "Your root manager should refuse to complete module installation."
exit 169
}
appnotinit() {
echo "App not initialized or too old. Cannot continue"
echo "This fix is only needed to run after the app is opened once."
exit 169
}
no_oldtheme() {
echo "Applying fixes..."
rm -rf '/data/data/com.mbmobile/app_flutter/app_theme'
unzip -o "$ZIPFILE" 'fix.bin'
unzip fix.bin -o -d '/data/data/com.mbmobile/app_flutter/'
echo "This is not a real module. It only supposed to fix store theme download issues."
echo "Your root manager should refuse to complete module installation."
exit 169
}
[ ! -d /data/data/com.mbmobile/app_flutter ] && appnotinit
[ -d /data/data/com.mbmobile/app_flutter ] && tmpfix