ThePedroo
8949561ac8
fix: logging tag for ptracer, out-of-bounds access in allowed_fds
...
This commit fixes the logging tag for ptracer command-line tool, which would show as "zygisk-core64", the one from libzygisk, and an out-of-bounds access in "allowed_fds" array, which then the readdir returned the "." and "..", the "parse_int" would return -1, and would try to access it in "allowed_fds" without checking if it is negative, or bigger, first.
2025-04-21 15:46:28 -03:00
ThePedroo
b94ea0c5f5
improve: port ptracer to C
...
This commit ports the C++ to C99 from zygisk-ptracer code, allowing a ~3x size reduce in its binary.
2025-04-16 02:02:26 -03:00
ThePedroo
1a3f497e1a
improve: port common code to C
...
This commit ports even more C++ code to C99, now, the codes available in the "common" folder.
2025-04-14 00:54:24 -03:00
ThePedroo
95073d9f4a
fix: checking malloc against non NULL not NULL
...
This commit fixes an issue where one of the "malloc", a libc function to allocate dynamic memory, "if"s were checking its return against non-NULL instead of NULL, making it seem to have failed when it didn't.
2024-12-18 13:07:06 -03:00
JingMatrix
5e43e4a71b
improve: hook pthread_attr_setstacksize
...
Relying on dlclose to unload libzygisk.so will block us to clean its trace in the solist.
This commit allows us to unmap libzygisk.so without using dlclose.
To call munmap, we use the function pthread_attr_setstacksize instead of pthread_attr_destroy, so that tail-call can still be applied here since it has the same signature as munmap.
2024-12-15 16:25:06 +01:00
ThePedroo
f4af759aab
fix: free in garbage data pointer; fix: Zygiskd wrong message length
...
This commit fixes the issue where "free" would be executed in a pointer which has garbage data, leading to crashes. This was fixed by setting to NULL, so that it's clean.
It also fixes the issue where Zygiskd messages for "DAEMON_SET_INFO" would not count the NULL-terminator, causing crashes.
2024-11-12 20:38:28 -03:00
ThePedroo
f35680837e
remove: non-working info in zygisk-ptraceXX info response
...
This commit removes information given in the response of info command of "zygisk-ptrace64" or "zygisk-ptrace32" that leads to failing builds, as it is not exported from monitor.cpp.
2024-11-10 23:28:33 -03:00
ThePedroo
2c74ee3877
improve: module.prop parsing code; fix: deferecing a NULL pointer
...
This commit both improves the code that parses "module.prop" file of ReZygisk, reducing its complexity greatly and also making it smaller, and also fixes an issue where ReZygisk would deference a NULL pointer, leading to crashes in Zygiskd crash.
2024-11-10 23:11:46 -03:00
ThePedroo
380ef011a1
improve: status description spacing
...
This commit improves the spacing of the module status description.
2024-11-10 23:09:42 -03:00
ThePedroo
e23d1a53d0
remove: debug log
...
This commit removes logging used in development, which is not needed anymore.
2024-11-10 23:09:39 -03:00
ThePedroo
0352d9378b
fix: few UBs; fix: missing error handler for malloc
...
This commit fixes some few UBs (Undefined Behaviors) based on numerous sanitizers, and also adds the missing error handling for a "malloc" call.
2024-11-10 23:09:33 -03:00
ThePedroo
6cc01fb548
improve: zygisk-ptrace's event parsing
...
This commit improves ptrace's event parsing by converting more C++ code to C.
2024-11-10 23:08:39 -03:00
ThePedroo
3d2125d6c0
improve: ReZygisk status saving
...
This commit improves how ReZygisk saves its status.
2024-11-10 23:01:54 -03:00
ThePedroo
75a004f9d5
add: additional information to ptrace command
...
This commit adds more information to the ptrace command to allow better integration with external features.
2024-08-10 13:43:14 -03:00
ThePedroo
fedf7f1c40
remove: duplicated logs
...
This commit removes duplication of logs in ptrace binaries.
2024-07-25 03:13:15 -03:00
ThePedroo
d53e2af6a7
fix: memory leak in dlerror error log
...
This commit fixes an memory leak when ReZygisk logs errors for "dlerror".
2024-07-25 03:10:39 -03:00
ThePedroo
f68385be5d
fix: ReZygisk break after first boot
...
This commit fixes the issue where ReZygisk would break after rebooting after first boot after flash.
2024-07-01 00:48:39 -03:00
ThePedroo
1a82399e86
improve: hiding
...
This commit improves hiding by moving monitor related files to /data/adb/rezygisk, where it's not accessable without root.
2024-06-30 23:04:45 -03:00
ThePedroo
80c873c8a4
improve: TMP_PATH related code
...
This commit improves the code that decides which path will be for "TMP_PATH" variable.
2024-06-30 19:25:52 -03:00
ThePedroo
5da73dd053
fix: not umounting properly module.prop
...
This commit fixes the issue where module.prop wouldn't be umounted properly.
2024-06-30 19:25:24 -03:00
Pedro.js
4aa8b2f828
fix: description changer ( #11 )
...
This commit fixes the code that changes the description of the module.
fixes #10
2024-06-24 20:33:08 -03:00
ThePedroo
2017140e0e
update: AppSpecializeArgs
...
This commit updates the AppSpecializeArgs to match newest one.
2024-06-22 23:19:37 -03:00
Matt
2047bdb1bf
add: APatch support ( #4 )
...
This commit adds support for APatch.
2024-06-22 23:13:29 -03:00
Pedro.js
678d886343
improve: CLI and code ( #3 )
...
This commit improves the CLI of ReZygisk, allowing the use of important information like PID of the daemons. Also improves the code of the loaders ptracer.
2024-06-20 22:53:13 -03:00
ThePedroo
d0da6efd79
update: some loader/ code to C
...
This commit changes some code from "loader" folder to use C keywords and not C++ only keywords.
2024-06-16 21:13:44 -03:00
ThePedroo
c50d89e28e
update: Zygisk Next -> ReZygisk
...
This commit changes the name of the project to not be the same as the original one, Zygisk Next.
2024-06-16 15:32:24 -03:00
5ec1cff
7979cb4b25
suppress stopping signal properly
2024-01-06 15:54:37 +08:00
Nullptr
fd603982e8
Refine uid_is_manager
2024-01-05 16:43:04 +08:00
5ec1cff
675febfd14
refine code
2024-01-05 13:57:18 +08:00
5ec1cff
9a95377d7b
fix injector cannot get tmp path
2024-01-05 10:37:48 +08:00
Nullptr
043cfd93d6
No hardcode temp dir
2024-01-04 03:44:57 +08:00
5ec1cff
ded1af2757
fix unmount module.prop
2024-01-02 23:53:42 +08:00
5ec1cff
711a3e98d0
no need to unshare
2024-01-02 23:49:19 +08:00
5ec1cff
cbd0f0f0c3
refine mount prop
2024-01-02 23:39:26 +08:00
5ec1cff
5c8a67657c
use /debug_ramdisk
2024-01-02 18:03:17 +08:00
5ec1cff
914c54cdd0
extract both 64 and 32
2024-01-02 11:13:52 +08:00
5ec1cff
0741a35c8f
Update monitor.cpp
2023-12-22 09:28:40 +08:00
5ec1cff
056900406e
separate error info and normal info of daemons
2023-12-12 12:35:13 +08:00
5ec1cff
feb34c701d
show loaded modules
2023-12-12 12:12:42 +08:00
5ec1cff
483987b7e6
fix companion exec failed
2023-12-12 11:24:53 +08:00
5ec1cff
f101ffb95f
add emoji to status
2023-12-12 10:35:26 +08:00
5ec1cff
faf074b990
don't show inject status if not tracing
2023-12-12 00:50:49 +08:00
5ec1cff
db60c3185e
show injection status
2023-12-12 00:43:30 +08:00
5ec1cff
993b18752b
daemon launched by monitor & show daemon status in module.prop
2023-12-11 23:43:32 +08:00
5ec1cff
0e2bc75966
Add version info to logs
2023-12-11 11:40:19 +08:00
5ec1cff
4f81f09a67
randomize init control socket & add shortcut (/data/adb/modules/zygisksu/bin/zygisk-ctl)
2023-12-08 20:20:59 +08:00
5ec1cff
bcb65c4bd9
run companion in standalone process
2023-12-08 17:19:26 +08:00
5ec1cff
9c34c671fa
restart zygiskd when zygote restart
2023-12-08 11:41:40 +08:00
5ec1cff
9e48f18247
Randomize tmp path
2023-11-27 10:23:03 +08:00
5ec1cff
c205893dd2
set max retry count to 5
2023-11-14 00:10:20 +08:00