File tree Expand file tree Collapse file tree 10 files changed +438
-0
lines changed
META-INF/com/google/android Expand file tree Collapse file tree 10 files changed +438
-0
lines changed Original file line number Diff line number Diff line change 1+ # Declare files that will always have LF line endings on checkout.
2+ * .sh text eol =lf
3+ * .prop text eol =lf
4+ * .md text eol =lf
5+ * .xml text eol =lf
6+ META-INF /** text eol =lf
7+
8+ .gitattributes export-ignore
9+ .gitignore export-ignore
Original file line number Diff line number Diff line change 1+ /* .zip
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ #MAGISK
Original file line number Diff line number Diff line change 1+ getprop = $(shell cat module.prop | grep "^$(1 ) =" | head -n1 | cut -d'=' -f2)
2+
3+ MODNAME ?= $(call getprop,id)
4+ MODVER ?= $(call getprop,version)
5+ ZIP = $(MODNAME ) -$(MODVER ) .zip
6+
7+ all : $(ZIP )
8+
9+ zip : $(ZIP )
10+
11+ % .zip : clean
12+ zip -r9 $(ZIP ) . -x $(MODNAME ) -* .zip LICENSE .gitignore .gitattributes Makefile /.git*
13+
14+ install : $(ZIP )
15+ adb push $(ZIP ) /sdcard/
16+ echo ' /sbin/.magisk/busybox/unzip -p "/sdcard/$(ZIP)" META-INF/com/google/android/update-binary | /sbin/.magisk/busybox/sh /proc/self/fd/0 x x "/sdcard/$(ZIP)"' | adb shell su -c sh -
17+ adb shell rm -f " /sdcard/$( ZIP) "
18+
19+ clean :
20+ rm -f * .zip
21+
22+ update :
23+ curl https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh > META-INF/com/google/android/update-binary
24+
25+ .PHONY : all zip % .zip install clean update
Original file line number Diff line number Diff line change 1+ # Strace for Android
2+
3+ Magisk module with strace tools.
4+ https://github.com/strace/strace
5+
6+ Build with GCC10, LTO, stripped. Arm64 only.
7+
8+ ## How to install:
9+
10+ Stable release:
11+ 1 . Dowload latest strace.zip from releases page
12+ https://github.com/evdenis/strace/releases
13+ 2 . MagiskManager -> Modules + Downloads/strace.zip -> Reboot
14+
15+ Master branch:
16+ 1 . git clone https://github.com/evdenis/strace
17+ 2 . cd strace
18+ 3 . make install
19+
20+ ## Support
21+
22+ - [ Telegram] ( https://t.me/joinchat/GsJfBBaxozXvVkSJhm0IOQ )
23+ - [ XDA Thread] ( https://forum.xda-developers.com/apps/magisk/module-debugging-modules-adb-root-t4050041 )
Original file line number Diff line number Diff line change 1+ set_perm_recursive $MODPATH /system/bin 0 0 0755 0755
Original file line number Diff line number Diff line change 1+ id=strace
2+ name=Strace
3+ version=v1
4+ versionCode=1
5+ author=Denis Efremov (@evdenis)
6+ description=Strace v5.9 Arm64 only.
You can’t perform that action at this time.
0 commit comments