Skip to content

Commit

Permalink
Add Magisk module (#2)
Browse files Browse the repository at this point in the history
add magisk module
  • Loading branch information
2shrestha22 authored Jan 2, 2023
1 parent 7b36075 commit 726bea3
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lineage-dialer-rro-signed.zip
lineage-dialer-rro.zip
lineage-dialer-rro_magisk.zip
lineage-dialer-rro-signed_recovery.zip
lineage-dialer-rro_recovery.zip
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
7za a -tzip -r lineage-dialer-rro.zip ./flashable/*
java -jar ./bin/zipsigner.jar lineage-dialer-rro.zip lineage-dialer-rro-signed.zip
7za a -tzip -r lineage-dialer-rro_magisk.zip ./magisk/*
7za a -tzip -r lineage-dialer-rro_recovery.zip ./recovery/*
java -jar ./bin/zipsigner.jar lineage-dialer-rro_recovery.zip lineage-dialer-rro-signed_recovery.zip
33 changes: 33 additions & 0 deletions magisk/META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions magisk/META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#MAGISK
7 changes: 7 additions & 0 deletions magisk/module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
id=lineage_dialer_rro
name=Lineage Dialer RRO
version=v0.1.0
versionCode=1
author=2shrestha22
description=Enables call recording in Lineage OS Dialer for all countries.
updateJson=
Binary file not shown.

0 comments on commit 726bea3

Please sign in to comment.