diff --git a/README.md b/README.md index dcbca0d..4c28851 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,10 @@ - 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://git.disroot.org/cuynu/bshield-lineage/releases) or clone repository then `./createmodule.sh` +- Download from [releases](https://gitlab.com/mbcp/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. # 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. diff --git a/bshield-fix/customize.sh b/bshield-fix/customize.sh index 8429e1e..776bc7a 100644 --- a/bshield-fix/customize.sh +++ b/bshield-fix/customize.sh @@ -2,25 +2,10 @@ echo "Module only hide custom rom like LineageOS. You have to hide other things like root, etc !" -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 - -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 +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 \ No newline at end of file diff --git a/bshield-fix/module.prop b/bshield-fix/module.prop index 12d6b4b..00883d8 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.5-bshield -versionCode=15 +version=v1.1-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= +updateJson= \ No newline at end of file diff --git a/bshield-fix/service.sh b/bshield-fix/service.sh index 2549236..6fbe278 100644 --- a/bshield-fix/service.sh +++ b/bshield-fix/service.sh @@ -1,7 +1,9 @@ -#!/system/bin/sh -# Disable adb root -resetprop init.svc.adb_root stopped -resetprop service.adb.root 0 -# Set SELinux to enforcing -setenforce 1 +#!/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 \ No newline at end of file