Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Added information to the Installer
Browse files Browse the repository at this point in the history
  • Loading branch information
wacko1805 committed May 24, 2024
1 parent d441d26 commit ebe46b2
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions maker/scripts/template/common/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,14 @@ mount_mirrors() {

# Credits
ui_print "**************************************"
ui_print "* MagiskGApps Maker Installer *"
ui_print "* @ MagiskGApps.com *"
ui_print "* Based on *"
ui_print "* MMT Extended by Zackptg5 @ XDA *"
ui_print "**************************************"
ui_print " "


# Check for min/max api version
[ -z $MINAPI ] || { [ $API -lt $MINAPI ] && abort "! Your system API of $API is less than the minimum api of $MINAPI! Aborting!"; }
[ -z $MAXAPI ] || { [ $API -gt $MAXAPI ] && abort "! Your system API of $API is greater than the maximum api of $MAXAPI! Aborting!"; }
Expand Down Expand Up @@ -209,6 +213,14 @@ fi
if ! $BOOTMODE; then
ui_print "- Only uninstall is supported in recovery"
ui_print " Uninstalling!"
ui_print " Please not that any Google apps that "
ui_print " have been updated will not uninstall "
ui_print " automatically!"
ui_print " They will need to be able to be "
ui_print " manually uninstalled!"
ui_print " "


touch $MODPATH/remove
[ -s $INFO ] && install_script $MODPATH/uninstall.sh || rm -f $INFO $MODPATH/uninstall.sh
recovery_cleanup
Expand Down Expand Up @@ -252,11 +264,15 @@ if [ -f $INFO ]; then
fi

### Install
ui_print "- Installing"
ui_print "- Installing Custom MagiskGApps"

[ -f "$MODPATH/common/install.sh" ] && . $MODPATH/common/install.sh

ui_print " Installing for $ARCH SDK $API device..."
ui_print " Installing for $ARCH SDK $API device... "
ui_print " Please ensure that you have modified the"
ui_print " correct GApps package for the above "
ui_print " android version! "

# Remove comments from files and place them, add blank line to end if not already present
for i in $(find $MODPATH -type f -name "*.sh" -o -name "*.prop" -o -name "*.rule"); do
[ -f $i ] && { sed -i -e "/^#/d" -e "/^ *$/d" $i; [ "$(tail -1 $i)" ] && echo "" >> $i; } || continue
Expand Down

0 comments on commit ebe46b2

Please sign in to comment.