From cd8763ce01c2d95c3a6411fa61c681a6105ec672 Mon Sep 17 00:00:00 2001 From: Charlie-117 Date: Fri, 25 Sep 2020 17:52:40 +0530 Subject: [PATCH] Update to v1.1 Added Device and Api checks --- README.md | 5 +++++ customize.sh | 24 ++++++++++++++++++++++++ module.prop | 4 ++-- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d71b15f..e16b53a 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,11 @@ If you liked this mod then please drop a thanks to the original author of the mo Initial Release -Uses the Medium profile of MixerMod + +### V 1.1 + +Second Release + -Added Device and OS API checks to prevent any accidents # Credits diff --git a/customize.sh b/customize.sh index c010a85..791d467 100644 --- a/customize.sh +++ b/customize.sh @@ -16,6 +16,30 @@ ui_print " *******************************************" ui_print " * ! Use with CAUTION ! *" ui_print " *******************************************" ui_print " " + +DEVICE=`getprop ro.product.system.device` + +ui_print "Device: "$DEVICE + +ui_print "Running Device Checks" + +if [ $DEVICE != "merlin" ]; then + abort " => Device '"$DEVICE"' is not supported" +fi + +ui_print "Your Device '"$DEVICE"' is supported" + +if [ $API -ge 28 ]; then +ui_print " - Reached minimum API requirements" +sleep 1 +ui_print " - Continuing installation" +break +else +ui_print " - Does not reached minimum API requirements" +sleep 1 + abort " - Aborting" +fi + if [ -f /system/vendor/etc/mixer_paths.xml ]; then mkdir -p `dirname $MODPATH/system/vendor/etc/mixer_paths.xml` cp -af $MODPATH/mixer_paths.xml $MODPATH/system/vendor/etc/ diff --git a/module.prop b/module.prop index 4e65154..db98f85 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=Merlin_Dual_Speaker_Mod name=Dual Speaker Mod for Merlin -version=v1.0 -versionCode=100 +version=v1.1 +versionCode=101 author=Lukest85 & Charlie-117 description=This is a simple mod that turns the earpiece to a standard speaker , giving us stereo experience. This mod is authored by Lukest85, I(Charlie) has only converted it into a magisk module.