Skip to content

Commit 5206c48

Browse files
committed
Strace 5.9
Signed-off-by: Denis Efremov <efremov@linux.com>
1 parent 7dc04b4 commit 5206c48

File tree

10 files changed

+438
-0
lines changed

10 files changed

+438
-0
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*.zip

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.
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

Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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)

customize.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set_perm_recursive $MODPATH/system/bin 0 0 0755 0755

module.prop

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
id=strace
2+
name=Strace
3+
version=v1
4+
versionCode=1
5+
author=Denis Efremov (@evdenis)
6+
description=Strace v5.9 Arm64 only.

system/bin/strace

1.63 MB
Binary file not shown.

0 commit comments

Comments
 (0)