Compare commits
|
|
@ -1110,7 +1110,7 @@
|
|||
},
|
||||
"gray_250": {
|
||||
"$type": "color",
|
||||
"$value": "#736c88"
|
||||
"$value": "#e6e6e6"
|
||||
},
|
||||
"gray_300": {
|
||||
"$type": "color",
|
||||
|
|
@ -1148,7 +1148,7 @@
|
|||
"blue": {
|
||||
"blue_50": {
|
||||
"$type": "color",
|
||||
"$value": "#736C88"
|
||||
"$value": "#f4f4fe"
|
||||
},
|
||||
"blue_100": {
|
||||
"$type": "color",
|
||||
|
|
|
|||
|
|
@ -1110,7 +1110,7 @@
|
|||
},
|
||||
"gray_250": {
|
||||
"$type": "color",
|
||||
"$value": "#736c88"
|
||||
"$value": "#e6e6e6"
|
||||
},
|
||||
"gray_300": {
|
||||
"$type": "color",
|
||||
|
|
@ -1148,7 +1148,7 @@
|
|||
"blue": {
|
||||
"blue_50": {
|
||||
"$type": "color",
|
||||
"$value": "#736c88"
|
||||
"$value": "#f4f4fe"
|
||||
},
|
||||
"blue_100": {
|
||||
"$type": "color",
|
||||
|
|
|
|||
|
|
@ -2,33 +2,6 @@
|
|||
#
|
||||
# Replace [put-theme-id-here] and [theme-id] folder with your theme ID
|
||||
# Don't forget !
|
||||
#
|
||||
|
||||
# Get base.apk path
|
||||
dumpsys package com.mbmobile | grep path: > /data/local/tmp/path.txt
|
||||
sed -i 's| path: ||g' /data/local/tmp/path.txt
|
||||
|
||||
APKPATH="$(cat /data/local/tmp/path.txt)"
|
||||
|
||||
priorityapp() {
|
||||
unzip -o "$ZIPFILE" 'template.bin'
|
||||
unzip -o "$ZIPFILE" 'token_priority.json'
|
||||
unzip template.bin -o -d '/data/user/0/com.mbmobile/app_flutter/app_theme/unzip/'
|
||||
chmod 644 /data/user/0/com.mbmobile/app_flutter/app_theme/unzip/{put-theme-id-here}/images/*.png
|
||||
chmod 644 /data/user/0/com.mbmobile/app_flutter/app_theme/unzip/{put-theme-id-here}/theme/token.json
|
||||
cp -f token_priority.json '/data/data/com.mbmobile/app_flutter/unzip/{put-theme-id-here}/theme/token.json'
|
||||
sleep 2
|
||||
|
||||
}
|
||||
|
||||
classicapp() {
|
||||
unzip -o "$ZIPFILE" 'template.bin'
|
||||
unzip template.bin -o -d '/data/user/0/com.mbmobile/app_flutter/app_theme/unzip/'
|
||||
chmod 644 /data/user/0/com.mbmobile/app_flutter/app_theme/unzip/{put-theme-id-here}/images/*.png
|
||||
chmod 644 /data/user/0/com.mbmobile/app_flutter/app_theme/unzip/{put-theme-id-here}/theme/token.json
|
||||
sleep 2
|
||||
|
||||
}
|
||||
|
||||
if [[ -d /data/data/com.mbmobile/app_flutter ]]; then
|
||||
echo "[app_flutter] folder found, ignoring first time app open!"
|
||||
|
|
@ -46,10 +19,13 @@ mkdir '/data/user/0/com.mbmobile/app_flutter/app_theme/'
|
|||
mkdir '/data/user/0/com.mbmobile/app_flutter/app_theme/unzip'
|
||||
echo ----------
|
||||
echo Copying themes...
|
||||
unzip -o "$ZIPFILE" 'template.bin'
|
||||
unzip template.bin -o -d '/data/user/0/com.mbmobile/app_flutter/app_theme/unzip/'
|
||||
chmod 644 /data/user/0/com.mbmobile/app_flutter/app_theme/unzip/{put-theme-id-here}/images/*.png
|
||||
chmod 644 /data/user/0/com.mbmobile/app_flutter/app_theme/unzip/{put-theme-id-here}/theme/token.json
|
||||
sleep 2
|
||||
echo ----------
|
||||
echo "MBCP will open after 5 seconds, please login and then click [Apply] or [Áp dụng] to complete theme installation !"
|
||||
unzip -l $APKPATH | grep semipriority* && priorityapp || classicapp
|
||||
rm -rf /data/local/tmp/path.txt
|
||||
echo -------------
|
||||
sleep 5
|
||||
echo "Starting flutter activity..."
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 161 KiB |
|
Before Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 8 KiB |
|
Before Width: | Height: | Size: 289 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 289 KiB |
|
|
@ -1,33 +0,0 @@
|
|||
#!/sbin/sh
|
||||
|
||||
#################
|
||||
# Initialization
|
||||
#################
|
||||
|
||||
umask 022
|
||||
|
||||
# echo before loading util_functions
|
||||
ui_print() { echo "$1"; }
|
||||
|
||||
require_new_magisk() {
|
||||
ui_print "*******************************"
|
||||
ui_print " Please install Magisk v20.4+! "
|
||||
ui_print "*******************************"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#########################
|
||||
# Load util_functions.sh
|
||||
#########################
|
||||
|
||||
OUTFD=$2
|
||||
ZIPFILE=$3
|
||||
|
||||
mount /data 2>/dev/null
|
||||
|
||||
[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
|
||||
. /data/adb/magisk/util_functions.sh
|
||||
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk
|
||||
|
||||
install_module
|
||||
exit 0x
|
||||
|
|
@ -1 +0,0 @@
|
|||
#MAGISK
|
||||