initial commit

This commit is contained in:
Cuynu 2025-07-13 04:08:13 +07:00
commit d9fbf3be6a
7 changed files with 82 additions and 0 deletions

6
README.md Normal file
View file

@ -0,0 +1,6 @@
# BShield fix for Lineage based ROMs
- This module will fix error "5" on apps that using BShield protection, for example : VNeID, Techcombank, NCB izimobile,...
# Usage

View file

@ -0,0 +1,33 @@
#!/sbin/sh
#################
# Initialization
#################
umask 022
# echo before loading util_functions
ui_print() { echo "$1"; }
require_new_magisk() {
ui_print "*******************************"
ui_print " Please install Magisk v20.4+! "
ui_print "*******************************"
exit 1
}
#########################
# Load util_functions.sh
#########################
OUTFD=$2
ZIPFILE=$3
mount /data 2>/dev/null
[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
. /data/adb/magisk/util_functions.sh
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk
install_module
exit 0x

View file

@ -0,0 +1 @@
#MAGISK

11
bshield-fix/customize.sh Normal file
View file

@ -0,0 +1,11 @@
#!/system/bin/sh
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

7
bshield-fix/module.prop Normal file
View file

@ -0,0 +1,7 @@
id=bshield-fix
name=BShield Custom Rom Hide
version=v1.0-bshield
versionCode=1
author=cuynu, jan
description=Hide custom rom like Lineage-based for BShield apps. This does not hide root, etc and you have to hide it yourself!
updateJson=

9
bshield-fix/service.sh Normal file
View file

@ -0,0 +1,9 @@
#!/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

15
createmodule.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
echo "Creating module (*.zip)..."
cd bshield-fix
zip -r bshield-fix.zip . >/dev/null 2>&1
cd ..
cd ..
mv bshield-fix/bshield-fix.zip bshield-fix.zip
if [ -f bshield-fix.zip ]; then
echo "Module saved to [bshield-fix.zip], try to flash it :>"
else
echo "Where is [bshield-fix.zip] ?"
echo "Did module actually created yet... Try fetch repo and use command again!"
echo "If your system doesn't have [zip], pls install it"
fi