Compare commits
| SHA1 | |
|---|---|
|
8a077d7213 |
|
| 1af049e50e |
3 changed files with 33 additions and 9 deletions
|
|
@ -1110,7 +1110,7 @@
|
|||
},
|
||||
"gray_250": {
|
||||
"$type": "color",
|
||||
"$value": "#e6e6e6"
|
||||
"$value": "#736c88"
|
||||
},
|
||||
"gray_300": {
|
||||
"$type": "color",
|
||||
|
|
@ -1148,7 +1148,7 @@
|
|||
"blue": {
|
||||
"blue_50": {
|
||||
"$type": "color",
|
||||
"$value": "#f4f4fe"
|
||||
"$value": "#736C88"
|
||||
},
|
||||
"blue_100": {
|
||||
"$type": "color",
|
||||
|
|
|
|||
|
|
@ -1110,7 +1110,7 @@
|
|||
},
|
||||
"gray_250": {
|
||||
"$type": "color",
|
||||
"$value": "#e6e6e6"
|
||||
"$value": "#736c88"
|
||||
},
|
||||
"gray_300": {
|
||||
"$type": "color",
|
||||
|
|
@ -1148,7 +1148,7 @@
|
|||
"blue": {
|
||||
"blue_50": {
|
||||
"$type": "color",
|
||||
"$value": "#f4f4fe"
|
||||
"$value": "#736c88"
|
||||
},
|
||||
"blue_100": {
|
||||
"$type": "color",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,33 @@
|
|||
#
|
||||
# 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!"
|
||||
|
|
@ -19,13 +46,10 @@ 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..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue