Commit Graph

19 Commits

Author SHA1 Message Date
a9121fa28f Reorganize libutils and cleanups 2018-10-12 21:46:09 -04:00
acf7c0c665 Minor reorganization of daemons 2018-10-12 00:50:47 -04:00
d119dd9a0c Rewrite su daemon and client 2018-10-04 04:59:51 -04:00
906b4aad9e New method of communication
Introduce a new communication method between Magisk and Magisk Manager.

Magisk used to hardcode classnames and send broadcast/start activities to
specific components. This new method makes no assumption of any class names,
so Magisk Manager can easily be fully obfuscated.

In addition, the new method connects Magisk and Magisk Manager with random
abstract Linux sockets instead of socket files in filesystems, bypassing
file system complexities (selinux, permissions and such)
2018-09-16 04:16:18 -04:00
d3858b81e2 Add new boot service: boot-complete 2018-08-09 14:52:44 +08:00
ada0f93686 Apply all sepolicy patches pre-init
Boot services tend to fail in the middle when the kernel loads a sepolicy live.
It seems that moving full patch (allow magisk * * *) to late_start is still not enough to fix service startup failures.
So screw it, apply all patched in magiskinit, which makes sure that all rules are only loaded in a single step.
The only down side is that some OEM with a HUGE set of secontexts (e.g. Samsung) might suffer a slightly longer boot time, which IS the reason why the rules are split to 2 parts in the first place.
2018-08-09 03:20:28 +08:00
5be035fd44 Try logging a little harder 2018-08-03 01:58:56 +08:00
46ee2c3f4e Improve handshake between the 2 daemons 2018-07-06 07:51:17 +08:00
6c4d81b1e9 Invincible mode implemented in magisklogd 2018-07-03 01:38:19 +08:00
a8030c39b1 Separate logging into its own daemon 2018-07-02 22:11:28 +08:00
d08fd0561a Remove invincible mode 2018-06-17 01:28:29 +08:00
3f83919e09 Fix bootloops when flashing Magisk after data wipe on FBE devices 2018-06-11 02:26:18 +08:00
34dcf49fbc Update restorecon implementation 2018-06-03 14:43:03 +08:00
9484ec0c17 Massive refactoring
Remove post-fs mode
2018-04-22 02:16:56 +08:00
87f6018468 Massive sepolicy refactor 2018-04-15 03:18:18 +08:00
42284c5efb Test logcat instead of checking logd 2018-04-08 02:12:40 +08:00
754fafcfe9 Check logd before logging 2018-02-12 02:48:15 +08:00
40b6fe03c2 Tweak enum 2018-02-11 18:50:42 +08:00
328fc44194 Rename module core to native 2018-01-27 09:11:28 +08:00