From 47a52b3f3bc42f0725efb15030ea92b7d2225b4f Mon Sep 17 00:00:00 2001 From: Cuynu Date: Fri, 31 Oct 2025 02:18:04 +0700 Subject: [PATCH] singalarity-losfix: initial commit Signed-off-by: Cuynu --- .gitignore | 1 + META-INF/com/google/android/update-binary | 33 ++++++++++++++++++++++ META-INF/com/google/android/updater-script | 1 + README.md | 11 ++++++++ createmodule.sh | 13 +++++++++ customize.sh | 17 +++++++++++ module.prop | 6 ++++ system.prop | 1 + 8 files changed, 83 insertions(+) create mode 100644 .gitignore create mode 100644 META-INF/com/google/android/update-binary create mode 100644 META-INF/com/google/android/updater-script create mode 100644 README.md create mode 100755 createmodule.sh create mode 100755 customize.sh create mode 100755 module.prop create mode 100644 system.prop diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5c7d3a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.zip diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary new file mode 100644 index 0000000..28b48e5 --- /dev/null +++ b/META-INF/com/google/android/update-binary @@ -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 diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script new file mode 100644 index 0000000..11d5c96 --- /dev/null +++ b/META-INF/com/google/android/updater-script @@ -0,0 +1 @@ +#MAGISK diff --git a/README.md b/README.md new file mode 100644 index 0000000..cbe9569 --- /dev/null +++ b/README.md @@ -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) diff --git a/createmodule.sh b/createmodule.sh new file mode 100755 index 0000000..bdeea6a --- /dev/null +++ b/createmodule.sh @@ -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 + diff --git a/customize.sh b/customize.sh new file mode 100755 index 0000000..1e698b4 --- /dev/null +++ b/customize.sh @@ -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!" + diff --git a/module.prop b/module.prop new file mode 100755 index 0000000..6b39f2c --- /dev/null +++ b/module.prop @@ -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. diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..5f69532 --- /dev/null +++ b/system.prop @@ -0,0 +1 @@ +ro.build.display.id=overrided_by_singalarity-losfix_module