From 726bea3dbf304ea03c020649eff3744f0f4f805c Mon Sep 17 00:00:00 2001 From: Sangam Kumar Shrestha <2shrestha22@gmail.com> Date: Mon, 2 Jan 2023 15:16:14 +0545 Subject: [PATCH] Add Magisk module (#2) add magisk module --- .gitignore | 5 +-- build.sh | 5 +-- .../META-INF/com/google/android/update-binary | 33 ++++++++++++++++++ .../com/google/android/updater-script | 1 + magisk/module.prop | 7 ++++ .../vendor/overlay/lineage-dialer-rro.apk | Bin .../META-INF/com/google/android/update-binary | 0 .../com/google/android/updater-script | 0 .../system/addon.d/20-lineage-dialer-rro.sh | 0 .../vendor/overlay/lineage-dialer-rro.apk | Bin 0 -> 7286 bytes 10 files changed, 47 insertions(+), 4 deletions(-) create mode 100755 magisk/META-INF/com/google/android/update-binary create mode 100644 magisk/META-INF/com/google/android/updater-script create mode 100644 magisk/module.prop rename {flashable => magisk}/system/vendor/overlay/lineage-dialer-rro.apk (100%) rename {flashable => recovery}/META-INF/com/google/android/update-binary (100%) rename {flashable => recovery}/META-INF/com/google/android/updater-script (100%) rename {flashable => recovery}/system/addon.d/20-lineage-dialer-rro.sh (100%) create mode 100644 recovery/system/vendor/overlay/lineage-dialer-rro.apk diff --git a/.gitignore b/.gitignore index 9a0c5ac..9fb95f7 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/build.sh b/build.sh index 944cb33..32ea7b3 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/magisk/META-INF/com/google/android/update-binary b/magisk/META-INF/com/google/android/update-binary new file mode 100755 index 0000000..28b48e5 --- /dev/null +++ b/magisk/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/magisk/META-INF/com/google/android/updater-script b/magisk/META-INF/com/google/android/updater-script new file mode 100644 index 0000000..11d5c96 --- /dev/null +++ b/magisk/META-INF/com/google/android/updater-script @@ -0,0 +1 @@ +#MAGISK diff --git a/magisk/module.prop b/magisk/module.prop new file mode 100644 index 0000000..164af41 --- /dev/null +++ b/magisk/module.prop @@ -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= \ No newline at end of file diff --git a/flashable/system/vendor/overlay/lineage-dialer-rro.apk b/magisk/system/vendor/overlay/lineage-dialer-rro.apk similarity index 100% rename from flashable/system/vendor/overlay/lineage-dialer-rro.apk rename to magisk/system/vendor/overlay/lineage-dialer-rro.apk diff --git a/flashable/META-INF/com/google/android/update-binary b/recovery/META-INF/com/google/android/update-binary similarity index 100% rename from flashable/META-INF/com/google/android/update-binary rename to recovery/META-INF/com/google/android/update-binary diff --git a/flashable/META-INF/com/google/android/updater-script b/recovery/META-INF/com/google/android/updater-script similarity index 100% rename from flashable/META-INF/com/google/android/updater-script rename to recovery/META-INF/com/google/android/updater-script diff --git a/flashable/system/addon.d/20-lineage-dialer-rro.sh b/recovery/system/addon.d/20-lineage-dialer-rro.sh similarity index 100% rename from flashable/system/addon.d/20-lineage-dialer-rro.sh rename to recovery/system/addon.d/20-lineage-dialer-rro.sh diff --git a/recovery/system/vendor/overlay/lineage-dialer-rro.apk b/recovery/system/vendor/overlay/lineage-dialer-rro.apk new file mode 100644 index 0000000000000000000000000000000000000000..3b4130c5b52638757536630956506e1282c8887c GIT binary patch literal 7286 zcmdT}c|28H`#%VoD?{3(5fMk&ri|yx$q+(GsmO`5l_6utSkCF{r8Z46Bu-bT$k1R8 z4K{_&K_Q9igv8BMIWqnBI`7-Pz4!ONpWpP?ZykHDXMdlyp66NLXYJ*)*V<_(utbKi zbm>yUBg2&4X>#v&@bM7{ZulibAQ0@Wc9Aq~9LQSsBnKO^mCG)oJ=yr@%G@aD=1!P1Ns|6o(q-VTYq-*-v~Je zMy%s+ouNxD32|2M3lnv5LMub3c2o$bmF@6Szi~Bkv*>Tj-bn{-EZ4l2Gcf4xqLojU z2~RH4ad&$ra65m{dhSBufFTPjOm>MVPkVUh<<{7=K%QmK$zAFM{?SX&v{r`1X3Po4W3q+1djG*Ltfd=;Olj%9*I# zk!xu?#S6IwpPb$`ZmjG1QkaYdl^zJ2Bi19G;=3%-rHUL(+)q)rqOTycFb!GEa( zbKRxTtyi9TTD}qLnA3-cJEWkS&c)R^cezQSI<6ra#>`JibWhFWDG5GjxAX1PP;;8^ z*eQ=NxswEks7ora!|rp zX-%T}&7|rQ+pcq}4*h8cPvcB}tDda;E(Ox`b29!pO~Z%$9k>DnLh=#-}1;X|$NsBt@uM&7`Y|5^vh%4#)EgMXwDa zDuv&uSXa)cYJJK+O%3k0AZ2znHL=-Ez4hJfrtU4a^!}!LnN6OEi0s<_k1Ay4!&Ls5 zC%sRaSOl3NuOnWE4|g}d7(4NN)Z%mVlrDP0Y|oT!;zgaISgn;0K5XxPb5=06u)NHA z!eL?WAvt*LEAgORKUJ@y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