diff --git a/community_themes/pitchblack_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json b/community_themes/pitchblack_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json index 674d250..ca8dc98 100644 --- a/community_themes/pitchblack_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json +++ b/community_themes/pitchblack_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json @@ -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", diff --git a/community_themes/pitchblack_priority_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json b/community_themes/pitchblack_priority_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json index 8ade8de..9c8da6d 100644 --- a/community_themes/pitchblack_priority_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json +++ b/community_themes/pitchblack_priority_fukiame/3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json @@ -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", diff --git a/community_themes/template/customize.sh b/community_themes/template/customize.sh index 225f8b5..c6331e8 100755 --- a/community_themes/template/customize.sh +++ b/community_themes/template/customize.sh @@ -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..."