singalarity-losfix: initial commit
Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
commit
47a52b3f3b
8 changed files with 83 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
.zip
|
||||
33
META-INF/com/google/android/update-binary
Normal file
33
META-INF/com/google/android/update-binary
Normal 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 0
|
||||
1
META-INF/com/google/android/updater-script
Normal file
1
META-INF/com/google/android/updater-script
Normal file
|
|
@ -0,0 +1 @@
|
|||
#MAGISK
|
||||
11
README.md
Normal file
11
README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Singalarity Fix for LineageOS based ROMs
|
||||
This is the module that override `ro.build.display.id` with something other than lineage to fix eKYC failling issues on the banking apps that using Singalarity eKYC (eg MB Bank, LPBank).
|
||||
|
||||
# Usage
|
||||
- Download from releases : [Selfhosted](http://cuynutt.ddns.net/cuynu/Singalarity-losfix/releases) | [Disroot](https://git.disroot.org/cuynu/Singalarity-losfix/releases)
|
||||
- Install it as normal module
|
||||
- Reboot device to take effects
|
||||
- eKYC should be resolved, until if you still granting root access to apps that using Singalarity eKYC or something other wrong with it.
|
||||
|
||||
# Credit
|
||||
- [@cuynu](https://git.disroot.org/cuynu)
|
||||
13
createmodule.sh
Executable file
13
createmodule.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
echo "Creating module (*.zip)..."
|
||||
|
||||
zip -r singalarity-losfix.zip *.sh *.prop META-INF >/dev/null 2>&1
|
||||
|
||||
if [ -f singalarity-losfix.zip ]; then
|
||||
echo "Module saved to [singalarity-losfix.zip], try to flash it :>"
|
||||
else
|
||||
echo "Where is [singalarity-losfix.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
|
||||
|
||||
17
customize.sh
Executable file
17
customize.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/system/bin/sh
|
||||
|
||||
# Check if /data/magisk exists or not
|
||||
if [[ -d /data/magisk* ]]; then
|
||||
rm -rf /data/magisk
|
||||
rm -rf /data/magisk_*
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
||||
echo "Changing display id..."
|
||||
|
||||
echo "Current prop : " && getprop ro.build.display.id
|
||||
|
||||
|
||||
echo "Reboot to take effects!"
|
||||
|
||||
6
module.prop
Executable file
6
module.prop
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
id=singalarity-losfix
|
||||
name=Singalarity Fix
|
||||
version=v1.0-singalarity
|
||||
versionCode=10
|
||||
author=cuynu
|
||||
description=Fixing eKYC failling issues for Singalarity eKYC on some LineageOS based ROMs.
|
||||
1
system.prop
Normal file
1
system.prop
Normal file
|
|
@ -0,0 +1 @@
|
|||
ro.build.display.id=overrided_by_singalarity-losfix_module
|
||||
Loading…
Reference in a new issue