Skip to content

Commit

Permalink
Update to v1.1
Browse files Browse the repository at this point in the history
Added Device and Api checks
  • Loading branch information
Charlie-117 committed Sep 25, 2020
1 parent 98ac363 commit cd8763c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 24 additions & 0 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit cd8763c

Please sign in to comment.