#/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