adding new patches is now trivial: cd patches cp TEMPLATE patch_name_whatever.sh # then just fill in patch name and ver clamp if desired this gets rid of the need for excessive if-elses and not-so-pleasing indents for logging, instead of using pure echo, 4 new "levels" can be utilized - `info` : normal - `good` : info but have green color? - `warn` : warning - `err` : error Signed-off-by: fukiame <fukiame@proton.me>
97 lines
5.9 KiB
Shell
97 lines
5.9 KiB
Shell
#!/usr/bin/env bash
|
|
# PATCHNAME: Autopatch strings
|
|
# MAXVER:
|
|
# MINVER:
|
|
# shellcheck disable=SC1091
|
|
. "$DIRPATH"/common.sh
|
|
|
|
# App embedded links
|
|
# App update button url
|
|
sed_libapp 's|market://details?id=com.mbmobile|https://t.me/mbbpatch/2?ref=mbcp|g'
|
|
# Facebook button url
|
|
sed_libapp 's|https://www.facebook.com/VietnamMBBank?mibextid=LQQJ4d|https://gitlab.com/mbcp/mbbpatch/? |g'
|
|
# VNeID download url
|
|
sed_libapp 's|https://play.google.com/store/apps/details?id=com.vnid|https://www.apkmirror.com/uploads/?appcategory=vneid??|g'
|
|
|
|
# App embedded strings
|
|
sed_libapp 's|online OTP|DigitalOTP|g'
|
|
sed_libapp 's|Online OTP|DigitalOTP|g'
|
|
sed_libapp 's|MB Bank|MBCPApp|g'
|
|
sed_libapp 's|The lastest version|TG/GitLab: mbbpatch|g'
|
|
sed_libapp 's|User profile|View profile|g'
|
|
sed_libapp 's|User ID|Phone |g'
|
|
sed_libapp 's|MB Membership Package|MB Membership |g'
|
|
sed_libapp 's|email information|Email information|g'
|
|
sed_libapp 's|Premium Account Number|Open new lucky account|g'
|
|
sed_libapp 's|Cashback 150K| |g'
|
|
sed_libapp 's|Request for supplying password|Request for new password |g'
|
|
sed_libapp 's|ID card/ID card|Old/New ID card|g'
|
|
sed_libapp 's|Number of document|Number of id card |g'
|
|
sed_libapp 's|Your device will be locked if you enter incorrectly more than 5 times. Please try again or select the "Forgot password" feature to be reissued.|Your account will be locked if you enter incorrect password more tham 5 times. Please try again or use the "Forgot password" feature to reset. |g'
|
|
sed_libapp 's|Introduction to receive money|Invite using MB |g'
|
|
sed_libapp 's|Shopping- Entertainment- Investment|Flutter embedded MiniApps |g'
|
|
sed_libapp 's|Downloaded themes|Your owned themes|g'
|
|
sed_libapp 's|Coming soon|Placeholder|g'
|
|
sed_libapp 's|Coming Soon|Placeholder|g'
|
|
sed_libapp 's|MBBank app|MBCPApp |g'
|
|
|
|
# Adapt for v6.4.56+
|
|
sed_libapp 's|MBBank APP|MBCPApp |g'
|
|
# Adapt for v6.4.56+
|
|
sed_libapp 's|APP MBBank|MBCPApp |g'
|
|
sed_libapp 's|MBBank App|MBCPApp |g'
|
|
sed_libapp 's|App MBBank|MBCPApp |g'
|
|
sed_libapp 's|get notifications|Get notifications|g'
|
|
sed_libapp 's|Read the announcement|Notify with voice |g'
|
|
|
|
sed_libapp 's|Viettel post|Viettel Post|g'
|
|
sed_libapp 's|This service has been upgraded, please update the app to continue using the service|This app version is expired, please update or repatch with newer version. (GW525) |g'
|
|
sed_libapp 's|Welcome to the MBBank APP!|Thanks for login to MBCP~ |g'
|
|
sed_libapp 's|There is no device registered for DOTP|No active DigitalOTP device found :> |g'
|
|
sed_libapp 's|Transaction authentication code (OTP) has been sent to your phone number|DigitalOTP registration code (OTP) has been sent to your phone number : |g'
|
|
sed_libapp 's|You can request a new code later|You can request a new code after|g'
|
|
sed_libapp 's|Verification information is invalid, please contact hotline 1900545426 for support|EKYC failed, please go to our Telegram group (@mbbpatch) for details and help !!! |g'
|
|
# XPE002/XPE003 dialog contents :
|
|
sed_libapp 's|MB has detected that the device is currently not secure for performing transactions|This dialog are showing cuz server-side MB changes for rooted devices are enforced.|g'
|
|
sed_libapp 's|Please try closing and reopening the app, or reinstalling the MBCPApp from the app store to continue using the service.|If you are patching via Patcher with v6.4.59+ or newer, please repatch and dont include [Remove new root detection] patch.|g'
|
|
|
|
sed_libapp 's|Set up DigitalOTP|Setup DigitalOTP |g'
|
|
sed_libapp 's|Set up facial authentication|Setup eKYC for transactions |g'
|
|
sed_libapp 's|facial|seKYC |g'
|
|
sed_libapp 's|Dentification|Identifier |g'
|
|
|
|
sed_libapp 's|The data synchronization process was not successful, please restart the MBCPApp or redownload it on the app market|Unable to connect to MB server or VTAP isnt properly working. Please restart MBCPApp and try to login again. |g'
|
|
|
|
sed_libapp 's|Devices registered with DOTP|Active DigitalOTP devices |g'
|
|
|
|
sed_libapp 's|Select Digital OTP Setup / Configuration|3 dots / Setup DigitalOTP / Register |g'
|
|
sed_libapp 's|Total Balance in VND|Total balance in VND|g'
|
|
sed_libapp 's|Simply enter the DigitalOTP PIN, and the system will Autoally activate to process encryption and transaction authentication.|Simply enter the DigitalOTP PIN, and the VTAP system will activate to process encryption and transaction authentication. |g'
|
|
|
|
sed_libapp 's|productionrn|mbcpreleases|g'
|
|
|
|
sed_libapp 's|Momo|MoMo|g'
|
|
sed_libapp 's|Zalo Pay|ZolaPay |g'
|
|
sed_libapp 's|MB membership|MB Membership|g'
|
|
|
|
sed_libapp 's|Open account ice number|Open new account number|g'
|
|
sed_libapp 's|Link Management|Link management|g'
|
|
sed_libapp 's|Set as Default Account|Set as default account|g'
|
|
sed_libapp 's|Account Balance|Account balance|g'
|
|
sed_libapp 's|New release|Features |g'
|
|
sed_libapp 's|Challenge to receive gifts|Others |g'
|
|
sed_libapp 's|MB will Autoally transfer the entire remaining balance to the account you have selected|MB will transfer the balance from the closed account to the account you have selected. |g'
|
|
sed_libapp 's|You have not registered for D-OTP|DigitalOTP is not registered |g'
|
|
sed_libapp 's|Please register for D-OTP to use this feature|DigitalOTP is required for this feature. |g'
|
|
sed_libapp 's|Register D-OTP|Register now |g'
|
|
sed_libapp 's|The login session expired. Please login again|Login session are expired. Please login again|g'
|
|
sed_libapp 's|I understand|OKAY |g'
|
|
sed_libapp 's|Authentication with DigitalOTP|DigitalOTP authentication |g'
|
|
sed_libapp 's|DigitalOTP information|DigitalOTP Information|g'
|
|
sed_libapp 's|Do you want to exit the app?|Back button pressed. Exit ? |g'
|
|
sed_libapp 's|Exit application|Exit MBCPApp |g'
|
|
sed_libapp 's|To use this feature, please install|To use this feature, please setup |g'
|
|
sed_libapp 's|Setup D-OTP|Digital OTP|g'
|
|
sed_libapp 's|Your login session expired|Login session will end :< |g'
|
|
# Placeholder toolbox
|
|
sed_libapp 's|Shopping, entertainment|MBCPApp Toolbox |g'
|