From 21c4b178e6623c103f59a164b0916df6b318386f Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 22 Jul 2025 21:33:17 +0700 Subject: [PATCH 01/11] module: bump v1.2-bshield --- bshield-fix/module.prop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bshield-fix/module.prop b/bshield-fix/module.prop index 00883d8..5c12a59 100644 --- a/bshield-fix/module.prop +++ b/bshield-fix/module.prop @@ -1,7 +1,7 @@ id=bshield-fix name=BShield Custom Rom Hide -version=v1.1-bshield +version=v1.2-bshield versionCode=11 author=cuynu, Jan, RainyXeon description=Hide custom rom like Lineage-based for BShield apps. This does not hide root, etc and you have to hide it yourself! -updateJson= \ No newline at end of file +updateJson= -- 2.55.0 From 47d81a84a5120a90203de9f25a3d73063da735a4 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 4 Aug 2025 04:12:11 +0700 Subject: [PATCH 02/11] module: also set selinux to enforcing Signed-off-by: Cuynu --- bshield-fix/customize.sh | 5 ++++- bshield-fix/service.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bshield-fix/customize.sh b/bshield-fix/customize.sh index 776bc7a..3aa83cc 100644 --- a/bshield-fix/customize.sh +++ b/bshield-fix/customize.sh @@ -8,4 +8,7 @@ resetprop persist.sys.usb.config mtp resetprop ro.adb.secure 1 resetprop ro.secure 1 resetprop ro.debuggable 0 -resetprop service.adb.root 0 \ No newline at end of file +resetprop service.adb.root 0 + +# Set SELinux to enforcing +setenforce 1 diff --git a/bshield-fix/service.sh b/bshield-fix/service.sh index 6fbe278..ecba022 100644 --- a/bshield-fix/service.sh +++ b/bshield-fix/service.sh @@ -6,4 +6,7 @@ resetprop persist.sys.usb.config mtp resetprop ro.adb.secure 1 resetprop ro.secure 1 resetprop ro.debuggable 0 -resetprop service.adb.root 0 \ No newline at end of file +resetprop service.adb.root 0 + +# Set SELinux to enforcing +setenforce 1 -- 2.55.0 From fd0867bad3fdd92785eaf72a0bce1865f8e65042 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 4 Aug 2025 04:12:41 +0700 Subject: [PATCH 03/11] module: bump v1.3-bshield Signed-off-by: Cuynu --- bshield-fix/module.prop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bshield-fix/module.prop b/bshield-fix/module.prop index 5c12a59..1dde5e1 100644 --- a/bshield-fix/module.prop +++ b/bshield-fix/module.prop @@ -1,7 +1,7 @@ id=bshield-fix name=BShield Custom Rom Hide version=v1.2-bshield -versionCode=11 +versionCode=12 author=cuynu, Jan, RainyXeon description=Hide custom rom like Lineage-based for BShield apps. This does not hide root, etc and you have to hide it yourself! updateJson= -- 2.55.0 From d89b2cfbf6642758b780a29fb33e66e57cfd75af Mon Sep 17 00:00:00 2001 From: Cuynu Date: Mon, 4 Aug 2025 04:14:40 +0700 Subject: [PATCH 04/11] README: minor changes Signed-off-by: Cuynu --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4c28851..8fe2604 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,6 @@ - Check if the BShield related apps worked or not. If not then try to hide root with other method as this module does not bypass other detection points. # Information +- This fix only possible if the app crash, or jump to a WebView activity that throwing detection, it will not work if the app simply crash on some ROMs, such as Project Matrixx. - Some new ROMs has merged change, so BShield are not detect anymore, but this module might helpful for old ROMs. - USB debugging will always turned off on startup due to prop changes, you have to enable it again on developer options. -- 2.55.0 From 29318d990bd1dcb94021869f8a90ea4eb8dffe44 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:15:27 +0700 Subject: [PATCH 05/11] feat: customize.sh: service.sh: detect digimi package and only disable usb debugging if found them this is the only known bank that requiring usb debugging off with bshield protection --- bshield-fix/customize.sh | 30 +++++++++++++++++++++--------- bshield-fix/service.sh | 28 +++++++++++++++++++--------- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/bshield-fix/customize.sh b/bshield-fix/customize.sh index 3aa83cc..8429e1e 100644 --- a/bshield-fix/customize.sh +++ b/bshield-fix/customize.sh @@ -2,13 +2,25 @@ echo "Module only hide custom rom like LineageOS. You have to hide other things like root, etc !" -resetprop init.svc.adb_root stopped -resetprop init.svc.adbd stopped -resetprop persist.sys.usb.config mtp -resetprop ro.adb.secure 1 -resetprop ro.secure 1 -resetprop ro.debuggable 0 -resetprop service.adb.root 0 +if [[ -d /data/data/vn.banvietbank.mobilebanking ]]; then + echo "digimi detected!" + echo "Disabling USB debugging..." + resetprop init.svc.adbd stopped + resetprop ro.adb.secure 1 + resetprop ro.secure 1 + resetprop ro.debuggable 0 + echo "Disabling adb root..." + resetprop init.svc.adb_root stopped + resetprop service.adb.root 0 + # Set SELinux to enforcing + echo "Changing SELinux to Enforcing..." + setenforce 1 -# Set SELinux to enforcing -setenforce 1 +else + echo "Disabling adb_root" + resetprop init.svc.adb_root stopped + resetprop service.adb.root 0 + # Set SELinux to enforcing + echo "Changing SELinux to Enforcing..." + setenforce 1 +fi diff --git a/bshield-fix/service.sh b/bshield-fix/service.sh index ecba022..5063429 100644 --- a/bshield-fix/service.sh +++ b/bshield-fix/service.sh @@ -1,12 +1,22 @@ #!/system/bin/sh -resetprop init.svc.adb_root stopped -resetprop init.svc.adbd stopped -resetprop persist.sys.usb.config mtp -resetprop ro.adb.secure 1 -resetprop ro.secure 1 -resetprop ro.debuggable 0 -resetprop service.adb.root 0 +sleep 5 +if [[ -d /data/data/vn.banvietbank.mobilebanking ]]; then + # Disable usb debugging + resetprop init.svc.adbd stopped + resetprop ro.adb.secure 1 + resetprop ro.secure 1 + resetprop ro.debuggable 0 + # Disable adb root + resetprop init.svc.adb_root stopped + resetprop service.adb.root 0 + # Set SELinux to enforcing + setenforce 1 -# Set SELinux to enforcing -setenforce 1 +else + # Disable adb root + resetprop init.svc.adb_root stopped + resetprop service.adb.root 0 + # Set SELinux to enforcing + setenforce 1 +fi -- 2.55.0 From 02c8f6a5e0c67f8b2738fd5050a81dc17af7b6ae Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:16:15 +0700 Subject: [PATCH 06/11] feat: module.prop: bump v1.3-bshield Signed-off-by: Cuynu --- bshield-fix/module.prop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bshield-fix/module.prop b/bshield-fix/module.prop index 1dde5e1..ba8bc81 100644 --- a/bshield-fix/module.prop +++ b/bshield-fix/module.prop @@ -1,7 +1,7 @@ id=bshield-fix name=BShield Custom Rom Hide -version=v1.2-bshield -versionCode=12 +version=v1.3-bshield +versionCode=13 author=cuynu, Jan, RainyXeon description=Hide custom rom like Lineage-based for BShield apps. This does not hide root, etc and you have to hide it yourself! updateJson= -- 2.55.0 From af630f284510fff06a35e0c43b3afdaa5c5e3739 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:19:13 +0700 Subject: [PATCH 07/11] feat: module.prop: bump v1.4-bshield Signed-off-by: Cuynu --- bshield-fix/module.prop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bshield-fix/module.prop b/bshield-fix/module.prop index ba8bc81..b2efbc5 100644 --- a/bshield-fix/module.prop +++ b/bshield-fix/module.prop @@ -1,7 +1,7 @@ id=bshield-fix name=BShield Custom Rom Hide version=v1.3-bshield -versionCode=13 +versionCode=14 author=cuynu, Jan, RainyXeon description=Hide custom rom like Lineage-based for BShield apps. This does not hide root, etc and you have to hide it yourself! updateJson= -- 2.55.0 From c6780fbeb50ba5729ee03b5a13841893f21cdc93 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:19:39 +0700 Subject: [PATCH 08/11] fix: README.md: wrong release link Signed-off-by: Cuynu --- README.md | 2 +- bshield-fix.zip | Bin 0 -> 2463 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 bshield-fix.zip diff --git a/README.md b/README.md index 8fe2604..dcbca0d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - WARNING : This module only fixes LineageOS detection for BShield related apps, you still have to hide root from those BShield related apps by other method, like NoHello module, umount, etc.... # Usage -- Download from [releases](https://gitlab.com/mbcp/bshield-lineage/-/releases) or clone repository then `./createmodule.sh` +- Download from [releases](https://git.disroot.org/cuynu/bshield-lineage/releases) or clone repository then `./createmodule.sh` - Flash with your root app (KernelSU, KernelSU-Next, APatch,etc) (Magisk is not recommended) - Check if the BShield related apps worked or not. If not then try to hide root with other method as this module does not bypass other detection points. diff --git a/bshield-fix.zip b/bshield-fix.zip new file mode 100644 index 0000000000000000000000000000000000000000..5ba96d032e1b43185fab13d770cfd993a5bfa8fe GIT binary patch literal 2463 zcmWIWW@Zs#U|`^2xG5nO&8-~jt9*0WO>2NzyK!BPPFwuY#`9~{8xC)ZBdySHyiR4+Bz6RMT_2K*JLHRZxg;) zf8KIg5NqqqgY&=N+k5`z>r~Nx!^C*gC#y1A9dd2g%-btz&GLSia)c2_RnN)q0u?1C z4i!r6tBy{OIy77U;3`hVpNqbpOln9uxpm`;=I<}L3^F6uwJfmB*CJCyon@ctiZ|YU*LQlMaJN(Xily@oBsk5zP;hqr0cF>#C6-UO?t5NgyiIrh zk|{cz5{A47`5pQu^-P|2%7ksl#zco=Jr29}6c<~zmfQIYu-La~toqfaIpC!}f-CPqw>n|L(Z?`pG{BwWi;;7ti%ubm$ z4c$9-bl6S)8~)C=(;pPrTnr$vP*f@!M8hyAgA9YOYlx$+r=OcXIHYa&uE}uOyCwrI zq;VU;i)=)4elD5Dh@cyjo}ZtdlS-y(GB`|2%u6ZC&rBg`DkN!wLQAhGEJm4;fgy#7 zfkBgisig%ei6yDJNtt_hR7C&Kf5l> zShj&ly=3k>U8&ap?-FKdEVx*FbI<$Ys(D47GZiz_mN7g%+i2uAONY~S{h^>$aXeEkaH*1-tz)|9$Bma4iymxH{x@Udw(8$M!k*afe<%A`NMW*n zpV7&!HP1R{OqjXWso}>>$M+Auf85tvxL}Eakf*fvltcGsb$&KjVan(I;_q~w_!CL8 z)2u^k1FxNZf6rpqwAX)kGX0(X+HdvC_5yKUtHAAdzw|Rqy7KgX(#8!;hlRyXTVD3l zY^Yw-*IlmmNKxBmPO4r(QGNkF!%X`&_8oHIaryn1>$1AXh5TX@ zbr)8VEo!gtM2Wx2c-wp8{$v?;yy|MfUEiG| zjXvlf>}>tee#=@)^~Kf$&&6fjZyz$<>=Kim4EdT3cwE2F zIV4)Wp#8g+&4C#ddpq1P)PRg{onCyyS(do7VJKPh)1fI?@{8M;{^L#{0N~qYz&^ce{xOEw1+Ih5Y-zEBGt3piu$x5jUS0&iL zJH6m@*>L7b;r!e7?|L#9xVQc*TOM+M0nZFKy?H?<*>9_Je#-}VGcw6BLt+!NYLNgJ ze2feX3`-h8Ow@{o6;jb)6n!8Qah0DC6B!r;7~VSOGBO~SrmPIipim>hI9>*1<2E20 z2Ps)eH&O(}$nWSz!b@4wO_o71*_8>&?;yuQO-7Ws_-ug07iM`22@Xhn%_d+2TIq|= zIz(im7A(ltDYD@A5X3q}F@w)Og!fPj7i9Z-Sr|}@8sZE@&9=w}wy-jwWMW+Av9f`3 Q0w)6}g8?%GLnN370FZ1CqW}N^ literal 0 HcmV?d00001 -- 2.55.0 From 37c7ed1bf7b8c4597a5affa0c6c381708cdc951a Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:22:38 +0700 Subject: [PATCH 09/11] fix: wrong binary Signed-off-by: Cuynu --- bshield-fix.zip | Bin 2463 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bshield-fix.zip diff --git a/bshield-fix.zip b/bshield-fix.zip deleted file mode 100644 index 5ba96d032e1b43185fab13d770cfd993a5bfa8fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2463 zcmWIWW@Zs#U|`^2xG5nO&8-~jt9*0WO>2NzyK!BPPFwuY#`9~{8xC)ZBdySHyiR4+Bz6RMT_2K*JLHRZxg;) zf8KIg5NqqqgY&=N+k5`z>r~Nx!^C*gC#y1A9dd2g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Ws_-ug07iM`22@Xhn%_d+2TIq|= zIz(im7A(ltDYD@A5X3q}F@w)Og!fPj7i9Z-Sr|}@8sZE@&9=w}wy-jwWMW+Av9f`3 Q0w)6}g8?%GLnN370FZ1CqW}N^ -- 2.55.0 From b19f98d36480ed34a83ed9239d8e895d78f0d74f Mon Sep 17 00:00:00 2001 From: Cuynu Date: Sun, 31 Aug 2025 18:20:09 +0700 Subject: [PATCH 10/11] fix: service.sh: dont turn off debug Signed-off-by: Cuynu --- bshield-fix/service.sh | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/bshield-fix/service.sh b/bshield-fix/service.sh index 5063429..2549236 100644 --- a/bshield-fix/service.sh +++ b/bshield-fix/service.sh @@ -1,22 +1,7 @@ -#!/system/bin/sh +#!/system/bin/sh +# Disable adb root +resetprop init.svc.adb_root stopped +resetprop service.adb.root 0 +# Set SELinux to enforcing +setenforce 1 -sleep 5 -if [[ -d /data/data/vn.banvietbank.mobilebanking ]]; then - # Disable usb debugging - resetprop init.svc.adbd stopped - resetprop ro.adb.secure 1 - resetprop ro.secure 1 - resetprop ro.debuggable 0 - # Disable adb root - resetprop init.svc.adb_root stopped - resetprop service.adb.root 0 - # Set SELinux to enforcing - setenforce 1 - -else - # Disable adb root - resetprop init.svc.adb_root stopped - resetprop service.adb.root 0 - # Set SELinux to enforcing - setenforce 1 -fi -- 2.55.0 From 473a7a1a35b7374651b8013b7097431a357b46d2 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Sun, 31 Aug 2025 18:21:00 +0700 Subject: [PATCH 11/11] feat: module.prop: bump v1.5-bshield Signed-off-by: Cuynu --- bshield-fix/module.prop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bshield-fix/module.prop b/bshield-fix/module.prop index b2efbc5..12d6b4b 100644 --- a/bshield-fix/module.prop +++ b/bshield-fix/module.prop @@ -1,7 +1,7 @@ id=bshield-fix name=BShield Custom Rom Hide -version=v1.3-bshield -versionCode=14 +version=v1.5-bshield +versionCode=15 author=cuynu, Jan, RainyXeon description=Hide custom rom like Lineage-based for BShield apps. This does not hide root, etc and you have to hide it yourself! updateJson= -- 2.55.0