PAGalaxyLab / YAHFA

Yet Another Hook Framework for ART
GNU General Public License v3.0
1.56k stars 350 forks source link

7.0系统system_progress hook 失败问题 #121

Open wjy000 opened 4 years ago

wjy000 commented 4 years ago

大佬,安卓7.0原生系统,hook system_server 进程的时候,所有方法都hook失败,但是hook其他进程没问题,hook其他系统此进程也没问题,这是啥原因? 会不会和SElinux有关?

log

not enough capacity. Allocating... mmap failed, errno = Permission denied cannot hook method

ghost commented 4 years ago

wjy000 commented 4 years ago

就是SELinux的原因,除了自己编译rom去掉SELinux,目前我也没有找到通用的解决办法,头疼

ghost commented 4 years ago

selinux本就是为了防止恶意代码执行

rover12421 commented 4 years ago

可以参考magisk打补丁