-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
623 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build Module | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Upload module as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: module | ||
path: | | ||
. | ||
!.git | ||
!.github |
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,70 @@ | ||
#!/sbin/sh | ||
|
||
################# | ||
# Functions | ||
################# | ||
|
||
ui_print() { echo "$1"; } | ||
|
||
grep_prop() { | ||
local REGEX="s/^$1=//p" | ||
shift | ||
local FILES="$@" | ||
[[ -z "$FILES" ]] && FILES=/system/build.prop | ||
cat "$FILES" 2>/dev/null | dos2unix | sed -n "$REGEX" | head -n 1 | ||
} | ||
|
||
abort() { | ||
ui_print "$1" | ||
[[ ! -z "$MODPATH" ]] && rm -rf "$MODPATH" | ||
rm -rf "$TMPDIR" | ||
exit 1 | ||
} | ||
|
||
################# | ||
# Initialization | ||
################# | ||
|
||
umask 0022 | ||
|
||
# Enable debugging by default. | ||
set -x | ||
|
||
# Global vars. | ||
TMPDIR=/dev/tmp | ||
NVBASE=/data/adb | ||
MODDIRNAME=modules_update | ||
MODULEROOT="$NVBASE/$MODDIRNAME" | ||
"$KSU" || ZIPFILE="$3" | ||
|
||
# Setup tmp dir. | ||
mkdir -p "$TMPDIR" | ||
cd "$TMPDIR" | ||
|
||
# Extract necessary stuff. | ||
unzip -o "$ZIPFILE" module.prop module_functions.sh -d "$TMPDIR" >&2 | ||
|
||
# Extract module info. | ||
[[ ! -f "$TMPDIR/module.prop" ]] && abort "[Error] Unable to extract zip file!" | ||
MODID="$(grep_prop id $TMPDIR/module.prop)" | ||
MODPATH="$MODULEROOT/$MODID" | ||
|
||
# Setup mod path. | ||
rm -rf "$MODPATH" | ||
mkdir -p "$MODPATH" | ||
|
||
################# | ||
# Load utils | ||
################# | ||
|
||
# Mount data partition. | ||
"$KSU" || mount /data 2>/dev/null | ||
|
||
# Load functions. | ||
source "$TMPDIR/module_functions.sh" | ||
|
||
# Install module. | ||
install_module | ||
|
||
# Exit successfully. | ||
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
#MAGISK |
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,7 @@ | ||
# Android Enhancer Module 🚀 | ||
Module variant of Android Enhancer that works on both Magisk and KSU. | ||
|
||
## Instructions 📜 | ||
- Flash & reboot. | ||
- Check for logs in Internal Storage / Android. | ||
- Forget that you installed it in first place if you liked it & you are seeing a improvement. |
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,5 @@ | ||
#!/sbin/sh | ||
|
||
# Execute update-binary from here for KSU installation. | ||
unzip -o "$ZIPFILE" META-INF/* -d "$TMPDIR" >&2 | ||
sh "$TMPDIR/META-INF/com/google/android/update-binary" |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
id=android_enhancer | ||
name=Android Enhancer | ||
version=v1.1.0 | ||
author=iamlooper @ telegram | ||
description=Revolutionary android optimizer 🚀 |
Oops, something went wrong.