-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog - Added KernelSU Support - Fixed ML Algorithm - Fixed Frequency Scaling - Fixed Config Interpreter - Fixed Refresh Rate on Boot - Fixed Installation on Other Managers - Updated Module Updater to v4.0 - Miscellaneous Fixes and Improvements Signed-off-by: Kyliekyler <siosonkylebrandon@gmail.com>
- Loading branch information
1 parent
99d864d
commit c22e5e4
Showing
8 changed files
with
89 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
## Changelog | ||
|
||
- Added Custom Config Viewer | ||
- Added Loop Interpreter for Custom Config | ||
- Adjusted Tuning Profile | ||
- Allowed Regular Users to Use Game Mode | ||
- Fixed Slow Config Detection | ||
- Fixed Endurance+ Mode for MIUI | ||
- Fixed ML Null Training Data | ||
- Fixed Feature Support Checking at Kernel Change | ||
- Improved Daemon | ||
- Removed Per-App Profile for Regular Users | ||
- Removed Beta Update Channel | ||
- Updated Dependencies to 64bit | ||
- Added KernelSU Support | ||
- Fixed ML Algorithm | ||
- Fixed Frequency Scaling | ||
- Fixed Config Interpreter | ||
- Fixed Refresh Rate on Boot | ||
- Fixed Installation on Other Managers | ||
- Updated Module Updater to v4.0 | ||
- Miscellaneous Fixes and Improvements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# _____ __________ _____ ____ _____ _________ | ||
# | | _ | __| | | __|_ _| _ | __ | | ||
# | | | | | | | | | | __| | | | | -| | ||
# |_|_|_|_|__|_____|_|___|____| |_| |_|__|_|__| | ||
# by Kyliekyler © 2019-2023 | ||
|
||
#===========================================================================// | ||
# GIVE PROPER CREDITS IF YOU USE THE PART OF IT IN YOUR WORK, THANKS! | ||
#===========================================================================// | ||
|
||
require_new_magisk() { | ||
ui_print "- PLEASE INSTALL MAGISK VERSION 23 OR NEWER!" | ||
exit 1 | ||
} | ||
|
||
require_new_ksu() { | ||
ui_print "- PLEASE INSTALL KERNELSU VERSION 10575 OR NEWER!" | ||
exit 1 | ||
} | ||
|
||
on_install() { | ||
if ! $BOOTMODE; then | ||
recovery_actions > /dev/null 2>&1 | ||
abort "- INSTALLATION FROM RECOVERY NOT SUPPORTED!" | ||
fi | ||
|
||
if [ -n "$KSU_KERNEL_VER_CODE" ] && [ "$KSU_KERNEL_VER_CODE" -lt "10575" ]; then | ||
require_new_ksu | ||
elif [ "$MAGISK_VER_CODE" -lt "23000" ]; then | ||
require_new_magisk | ||
fi | ||
|
||
[ "$ARCH" = "arm64" ] || abort "- $(awk -v var="$ARCH" 'BEGIN{print toupper(var)}') NOT SUPPORTED!" | ||
|
||
rm -rf $TMPDIR | ||
mkdir -p $TMPDIR | ||
chcon u:object_r:system_file:s0 $TMPDIR | ||
cd $TMPDIR || abort "- UNABLE TO CHANGE DIRECTORY" | ||
|
||
ensure_bb | ||
mount_partitions > /dev/null 2>&1 | ||
boot_actions | ||
|
||
unzip -o "$ZIPFILE" module.prop -d $TMPDIR >&2 | ||
[ ! -f $TMPDIR/module.prop ] && abort "- UNABLE TO EXTRACT ZIP FILE!" | ||
|
||
rm -rf $MODPATH | ||
|
||
RDM=$(tr < /dev/urandom -cd 'A-F0-9' | head -c 8) | ||
sed -i "s/.*id=.*/id=$RDM/" $TMPDIR/module.prop | ||
|
||
MODID=$(grep_prop id $TMPDIR/module.prop) | ||
MODPATH=$MODULEROOT/$MODID | ||
|
||
mkdir -p $MODPATH | ||
|
||
unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2 | ||
|
||
set_perm_recursive $MODPATH 0 0 0755 0644 | ||
set_perm_recursive $MODPATH/install 0 0 0755 0755 | ||
|
||
[ -f "$MODPATH/install" ] && $MODPATH/install "$MODPATH" | ||
|
||
rm -rf \ | ||
$MODPATH/LICENSE $MODPATH/install* \ | ||
$MODPATH/*.json $MODPATH/*.md \ | ||
$MODPATH/.git* $MODPATH/resources* \ | ||
$MODPATH/dependencies* 2> /dev/null | ||
|
||
cd / | ||
rm -rf $TMPDIR | ||
|
||
exit 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
id=MAGNETAR | ||
name=MAGNETAR | ||
version=19.0.0 (SIERRA) | ||
versionCode=190000 | ||
version=19.1.0 (TANGO) | ||
versionCode=190100 | ||
author=Kyliekyler | ||
description=Device Performance Optimizer — Aims To Provide An Optimal Experience At Every Usage Scenario | ||
updateJson=https://raw.githubusercontent.com/Kyliekyler/MAGNETAR/pre-release/update.json |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": "SIERRA ", | ||
"versionCode": 190000, | ||
"zipUrl": "https://github.com/Kyliekyler/MAGNETAR-UPDATER/releases/download/v3.0/MAGNETAR-UPDATER.zip", | ||
"version": "TANGO ", | ||
"versionCode": 190100, | ||
"zipUrl": "https://github.com/Kyliekyler/MAGNETAR-UPDATER/releases/download/v4.0/MAGNETAR-UPDATER.zip", | ||
"changelog": "https://raw.githubusercontent.com/Kyliekyler/MAGNETAR/pre-release/changelog.md" | ||
} |