diff --git a/MBCPApp/blob_patches/verified_badge/tick-mark.png b/MBCPApp/blob_patches/verified_badge/tick-mark.png new file mode 100644 index 0000000..217f212 Binary files /dev/null and b/MBCPApp/blob_patches/verified_badge/tick-mark.png differ diff --git a/MBCPApp/patches/add_verified_badge.sh b/MBCPApp/patches/add_verified_badge.sh new file mode 100644 index 0000000..4901b4a --- /dev/null +++ b/MBCPApp/patches/add_verified_badge.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +# PATCHNAME: Add verified badge +# MAXVER: +# MINVER: +# shellcheck disable=SC1091 +. "$DIRPATH"/common.sh + +confirm "This patch will replace MIC protection shield with verified badge, including the unregistered package badge. Are you sure you want to apply?" || exit 169 + +info "Moving icons..." +# [actived] is typo from MB side. + +# Activated MIC protection shield +# +cp -f 'blob_patches/verified_badge/tick-mark.png' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/shield_img_actived.webp' +# Private users +cp -f 'blob_patches/verified_badge/tick-mark.png' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/shield_img_actived.private.webp' + +# Unactivated MIC protection shield +cp -f 'blob_patches/verified_badge/tick-mark.png' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/shield_img_pending.webp' +cp -f 'blob_patches/verified_badge/tick-mark.png' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/priority/shield_img_pending.webp' +# Private users +cp -f 'blob_patches/verified_badge/tick-mark.png' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/shield_img_pending.private.webp' + +# Empty shield (when the expiry date of current protection shield is less than 10 days) +rm -rf 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/shield_img_empty.webp' +rm -rf 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/priority/shield_img_empty.webp' +# Private users +rm -rf 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/shield_img_empty.private.webp' + +# Processing shield for private users +cp -f 'blob_patches/verified_badge/tick-mark.png' 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/img_shield_processing.webp' diff --git a/README.md b/README.md index e3f8cbe..9b29023 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ I'm not responsible for any illegal action if someone abuse this patch to do ill | ⚙️ Patch | 📜 Description | 🏦 Suggested version | |:--------:|:--------------:|:-----------------:| +| `Add verified badge` | Replaces the MIC protection shield with verified badge to make it looks more cute :3 | v6.4.0 ~ v6.4.79 | | `Adaptive launcher icon` | Adds the adaptive & themed icon support to the app. Thanks to @fukiame ! | v6.4.0 ~ v6.4.78 | | `Proper notification icon` | Temporary fixes for the app notification icon. Thanks to @fukiame ! | v6.4.0 ~ v6.4.78 | | `Block adjust volume on sEKYC` | Prevent the device volume from being adjusted when entering eKYC activity. | v6.4.0 ~ v6.4.78 | @@ -165,7 +166,7 @@ I'm not responsible for any illegal action if someone abuse this patch to do ill - [APKEditor](https://github.com/REAndroid/APKEditor/) - [MT Manager](https://mt2.cn/) to handle APK signature scheme v2/v3 (in the past) - [Zhaxia CN](https://t.me/zhaxia_cn) for sticker packs (Add anime resources) -- [FlatIcon](https://flaticon.com) for some icons +- [FlatIcon](https://flaticon.com) for some icons, including search icon, verified badge ## Contributors - [Cuynu](https://git.disroot.org/cuynu) - MBCP project author/maintainer