Commit Graph

94 Commits

Author SHA1 Message Date
5ec1cff ccb5764b72 Receive the reply_ok to prevent from dmesg flooding (#35) 2023-06-21 23:06:47 +08:00
5ec1cff 0338cdb0ed Update kernelsu.rs (#34) 2023-06-18 16:42:54 +08:00
Nullptr 99e653c576 Revert "Fix #27: bool on kernel is 4 bytes, while rust's is 1 byte. This causes the stack to be covered, triggering a ub."
This reverts commit 7c27c32861.
2023-06-18 15:47:12 +08:00
Nullptr 7c27c32861 Fix #27: bool on kernel is 4 bytes, while rust's is 1 byte. This causes the stack to be covered, triggering a ub. 2023-06-13 23:32:43 +08:00
Nullptr 954a712089 Use app profile 2023-06-04 01:31:12 +08:00
Nullptr f6195ddb43 Don't spawn new process for companion 2023-05-21 20:14:36 +08:00
Nullptr 8b5e9db347 Make watchdog async 2023-05-21 19:38:24 +08:00
Nullptr a04f636ac4 Refine code 2023-05-19 19:14:54 +08:00
5ec1cff 00f0a6e3fa several changes (#21)
* umount for ksu 10763

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* Add crashdump sepolicy

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* Add more information about debug

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* daemonize zygiskd companion

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* create zygiskd if crash

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* injector: use ANDROID_DLEXT_USE_LIBRARY_FD to load module

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* zygiskd: use file as module fd instead of memfd on debug build

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* use OwnedFd

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* dlopen: no need to create ns

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

---------

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
2023-05-19 18:28:56 +08:00
Nullptr f5bf82fa93 Set memfd name to module name on debug 2023-04-23 09:15:53 +08:00
Nullptr 3eee57eb8f Fix incorrect ksu denylist meaning 2023-04-21 08:40:11 +08:00
Nullptr a6f455218f No inline for root_impl 2023-03-21 22:55:14 +08:00
Nullptr 87cf885070 No hex patch 2023-03-20 17:36:59 +08:00
Nullptr 49e3ac9d7a Fix dependency bug: OnceCell crashes on 32 bit 2023-03-03 18:20:36 +08:00
Nullptr cce8e6686f Implement uid_on_allowlist for Magisk 2023-02-28 20:48:32 +08:00
Nullptr ff2658f2de Rename libs 2023-02-28 20:48:20 +08:00
Nullptr f465cbf810 Refactor to better support Magisk 2023-02-28 19:50:41 +08:00
Nullptr 09b6673ab0 Implement revert_unmount_magisk 2023-02-28 16:03:41 +08:00
Nullptr 5f8eb4af09 No submodule 2023-02-28 12:37:58 +08:00
Nullptr 8affc8f991 Fix zygote restart & Show zygisksu status on module.prop 2023-02-26 11:54:52 +08:00
Nullptr 915749e59b Never allow multiple root implementation 2023-02-24 09:31:44 +08:00
Nullptr f27aed5068 Change memfd name to jit-cache 2023-02-20 16:35:02 +08:00
Nullptr 5365ab1f12 Check correct KernelSU version 2023-02-20 16:28:15 +08:00
Nullptr b99d042002 Implement GetProcessFlags for KernelSU 2023-02-19 13:29:36 +08:00
Nullptr baf444228d Handle zygote death 2023-02-15 13:15:35 +08:00
Nullptr 5c00071fed Use relative path 2023-02-15 11:06:46 +08:00
Nullptr ab9ce993eb Fix race 2023-02-09 12:37:18 +08:00
Nullptr 291599ffc8 Separate companion 2023-02-08 20:17:56 +08:00
Nullptr f75d15c6f6 Linker namespace 2023-02-08 16:38:39 +08:00
Nullptr fb1ba93db8 Set MAX_LOG_LEVEL 2023-02-08 15:00:50 +08:00
Nullptr 814476ea7a Log to zygiskd 2023-02-08 14:49:32 +08:00
Nullptr 673eca8025 Remove path suffix 2023-02-02 22:46:50 +08:00
Nullptr 70f56910cb Refine codes 2023-02-02 17:05:30 +08:00
Nullptr 335a1c3437 Preload modules 2023-01-31 18:40:49 +08:00
Nullptr d7877ea959 Fix fd ownership 2023-01-31 15:04:01 +08:00
5ec1cff b8678720fb Zygisk injector (#1)
* fix x86

* add lsplt

* transplant from zygisk

* api v4

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

* Remove redundant logs

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>

---------

Signed-off-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
2023-01-31 15:03:01 +08:00
Nullptr b9ce45bd6e Add lsplt 2023-01-30 17:46:38 +08:00
Nullptr 851c7120ec Add flashable module 2023-01-30 16:38:53 +08:00
Nullptr 06650368b0 Update build 2023-01-30 10:25:55 +08:00
Nullptr 70024cc082 Add injector 2023-01-29 22:41:57 +08:00
Nullptr fc8b7c1b4d Configure cargo 2023-01-30 00:00:49 +08:00
Nullptr e4b797a7ac Update zygiskd 2023-01-29 12:10:05 +08:00
Nullptr c63cfbb6ea Integrate rust into gradle 2023-01-29 00:12:19 +08:00
Nullptr cd272c6370 Add zygiskd 2023-01-28 15:55:01 +08:00