RikkaApps / Riru

Inject into zygote process
4.85k stars 569 forks source link

Riru / Riru modules problem - Edxposed slows down the phone #228

Closed guest727 closed 3 years ago

guest727 commented 3 years ago

Hello, Greenify application worked very well on Magisk v22.1, but after updating to v23.0, there are problems, the operating system itself on the phone is slow and in the Greenify application.

MagiskHide off, module turned off, Riru, Riru - Edxposed, phone restart, phone working, fast as it was on v.22.1, probably something is wrong with these modules.

Greetings.

Magisk

eMPee584 commented 3 years ago

I think this might be an SELinux rule problem, .. zygote64 is burning CPU and I get zillions of log lines:

05-21 18:48:31.238  8309  8309 W re-initialized>: type=1400 audit(0.0:21118): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:31.498  8285  8285 W pps.podcastguru: type=1400 audit(0.0:21119): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:32.668  8393  8393 W re-initialized>: type=1400 audit(0.0:21121): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:35.748  8509  8509 W re-initialized>: type=1400 audit(0.0:21125): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:36.308  8539  8539 W re-initialized>: type=1400 audit(0.0:21126): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:40.458  8733  8733 W .android.chrom: type=1400 audit(0.0:21168): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1331 pcomm="main" pgid=1331 pgcomm="main"
05-21 18:48:41.368  8639  8639 W re-initialized>: type=1400 audit(0.0:21172): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:42.298  8708  8708 W re-initialized>: type=1400 audit(0.0:21173): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:44.068  8767  8767 W re-initialized>: type=1400 audit(0.0:21175): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:45.518  8840  8840 W re-initialized>: type=1400 audit(0.0:21176): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:46.698  8927  8927 W re-initialized>: type=1400 audit(0.0:21178): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:49.618  9057  9057 W re-initialized>: type=1400 audit(0.0:21179): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:53.798  9126  9126 W re-initialized>: type=1400 audit(0.0:21192): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:54.558  9180  9180 W re-initialized>: type=1400 audit(0.0:21193): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:54.998  9202  9202 W re-initialized>: type=1400 audit(0.0:21194): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:55.088  9194  9194 W re-initialized>: type=1400 audit(0.0:21195): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:48:59.478  9314  9314 W re-initialized>: type=1400 audit(0.0:21197): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:49:02.238  9473  9473 W re-initialized>: type=1400 audit(0.0:21204): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"
05-21 18:49:02.248  9478  9478 W re-initialized>: type=1400 audit(0.0:21205): avc: denied { open } for path="/data/ru.YlWeRbFE.IdgNBLial/xposed" dev="dm-0" ino=130566 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 ppid=1330 pcomm="main" pgid=1330 pgcomm="main"

and subsequent

05-21 18:06:44.826 28970 28970 W System.err: java.io.FileNotFoundException: /data/ru.YlWeRbFE.IdgNBLial/xposed: open failed: EACCES (Permission denied)
[…]
05-21 18:06:44.863 28970 28970 W zygote64: Skipping duplicate class check due to unrecognized classloader                                                                                      
05-21 18:06:44.899 28970 28970 I zygote64: Starting a blocking GC Alloc
eMPee584 commented 3 years ago

off topic? 🤨 please explain.

eMPee584 commented 3 years ago

Ok nevermind, sorry; moved to https://github.com/ElderDrivers/EdXposed/issues/864

RikkaW commented 3 years ago

EdXposed inject into all processes by default, of course, it will be slow. And, EdXposed is already a dead project for months since all the real maintainers have moved to their own project, LSPosed.

eMPee584 commented 3 years ago

But I don't think that is the problem (it was fine before the upgrade); zygote64 is continuosly choking on something, as posted it seems to be I suspected a missing SELinux rule [which it turned out not to be].. and system log is exploding, IO and CPU maxing out.. when before upgrading, it was working pretty fine.

SekiBetu commented 3 years ago

But I don't think that is the problem (it was fine before the upgrade); zygote64 is continuosly choking on something, as posted ~it seems to be~ I suspected a missing SELinux rule [which it turned out not to be].. and system log is exploding, IO and CPU maxing out.. when before upgrading, it was working pretty fine.

image mlgmxyysd made a closed-source version of riru, interesting.