Commit Graph

11 Commits

Author SHA1 Message Date
c8990b0f68 Rewrite UID tracking 2022-02-07 02:46:47 -08:00
3da318b48e Fix random return value of faccessat() in x86
faccessat() should return 0 when success, but it returns random number with errno == 0 in x86 platform.

It’s a side effect of commit bf80b08b5f when magisk binaries ‘corretly’ linked with library of API16 .. lol

Co-authored-by: John Wu <topjohnwu@gmail.com>
2021-04-04 03:04:09 -07:00
0783f3d5b6 Fix mount rules dir
close #4006
2021-03-13 21:10:02 -08:00
4060c2107c Add preliminary zygote code injection support
Prototyping the injection setup and a clean "self unloading" mechanism.
2021-01-06 22:21:17 -08:00
cd23d27048 Fix remote_write implementation 2021-01-06 21:56:29 -08:00
5f2e22a259 Support remote function call with ptrace
End up not used for anything, but keep it for good
2021-01-02 21:29:45 -08:00
f9bde347bc Convert indentation to spaces
The tab war is lost
2020-12-30 22:11:24 -08:00
e02e46d0fc Detect volume down key combo for safe mode
It is possible that a module is breaking the device so bad that zygote
cannot even be started. In this case, system_server cannot start and
detect the safe mode key combo, set the persist property, and reboot.

Also on old Android versions, the system directly goes to safe mode
after detecting a key combo without rebooting, defeating the purpose of
Magisk's safe mode protection if we only check for the persist property.

Directly adding key combo check natively in magiskd allows us to enter
Magisk safe mode before the system is even aware of it.
2020-05-19 04:57:47 -07:00
93ef90cd24 Fix FORTIFY crashes 2020-04-11 04:05:34 -07:00
dbfde74c1e Clean rootfs in switch_root 2020-04-01 23:37:11 -07:00
a0998009c1 Small native code reorganization 2020-03-09 01:50:30 -07:00