From 11bce4badcbfc1e11091fba72407e076416ff29a Mon Sep 17 00:00:00 2001 From: FriendlyNeighborhoodShane Date: Sat, 31 Dec 2022 15:54:18 +0530 Subject: [PATCH] conf/defconf-phonesky.txt: install addon script --- conf/defconf-phonesky.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/defconf-phonesky.txt b/conf/defconf-phonesky.txt index 8c80aab..52d1928 100644 --- a/conf/defconf-phonesky.txt +++ b/conf/defconf-phonesky.txt @@ -34,6 +34,8 @@ stuff_arch_sdk=" "; stuff_util=" + /util/func-defconf.sh + /util/script-addon.sh "; stuff_other=" @@ -66,18 +68,21 @@ post_build_actions() { pre_install_actions() { + . "$filedir/util/func-defconf.sh"; return 0; } post_install_actions() { + addon_install; return 0; } pre_uninstall_actions() { + [ "$magisk" = "no" ] && stuff_uninstall="$stuff_uninstall $addond_file"; return 0; } @@ -87,3 +92,5 @@ post_uninstall_actions() { return 0; } + +addond_file="/system/addon.d/10-$modname.sh";