Skip to content

Commit da10165

Browse files
committed
Add HPESuperpower Magisk Module for reference.
The catch: It's difficult to install the module that removes the install apps restriction under Install Apps Restriction.
1 parent 6809873 commit da10165

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/sbin/sh
2+
3+
#################
4+
# Initialization
5+
#################
6+
7+
umask 022
8+
9+
# echo before loading util_functions
10+
ui_print() { echo "$1"; }
11+
12+
require_new_magisk() {
13+
ui_print "*******************************"
14+
ui_print " Please install Magisk v20.4+! "
15+
ui_print "*******************************"
16+
exit 1
17+
}
18+
19+
#########################
20+
# Load util_functions.sh
21+
#########################
22+
23+
OUTFD=$2
24+
ZIPFILE=$3
25+
26+
mount /data 2>/dev/null
27+
28+
[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
29+
. /data/adb/magisk/util_functions.sh
30+
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk
31+
32+
install_module
33+
exit 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#MAGISK

module/module.prop

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
id=hpesuperpower
2+
name=HPE Superpower
3+
version=1.0.0
4+
versionCode=1
5+
author=ChsBuffer
6+
description=remove no_install_unknown_sources_globally restriction

module/service.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/sbin/sh
2+
3+
MODDIR=${0%/*}
4+
exec /system/bin/app_process -cp ${MODDIR}/superpower.apk /sdcard Superpower

module/superpower.apk

3.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)