From 1af049e50e7cff46a3d0048e005e0cd0f1214f29 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Wed, 18 Feb 2026 10:02:30 +0700 Subject: [PATCH 1/2] feat: template: priority and classic all in one module Signed-off-by: Cuynu --- community_themes/template/customize.sh | 34 ++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 5 deletions(-) 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..." From 8a077d72132df407d034ea32f6efda323e3d64ad Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 5 May 2026 01:30:35 +0700 Subject: [PATCH 2/2] community_themes: pitchblack_*: fix color accents in some places digitalotp notification hint, id screen, profile info, etc... Signed-off-by: Cuynu --- .../3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json | 4 ++-- .../3c8fca1c-5b39-46d8-bf1d-65d437ec2ca1/theme/token.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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",