EdXposed icon indicating copy to clipboard operation
EdXposed copied to clipboard

[BUG] Support Riru v.22

Open SecPhases opened this issue 6 years ago • 13 comments

什么情况/What happened?

在Riru v22 Alpha2,Magisk 21001,Android 10环境下无法使用Edxposed 4564 YAHFA

Xposed模块列表/Xposed Module List

Magisk模块列表/Magisk Module List

EdXposed及Riru版本/Versions of EdXposed and Riru

EdXposed: v0.5.0.6(4564) YAHFA

Riru: v22.0-alpha02

相关Logcat/Logcat

Edxposed Manager 显示Edxposed框架未安装

SecPhases avatar Oct 11 '20 19:10 SecPhases

The 22.0 development document has not been updated. Before that, there is nothing we can do.

22.0: DO NOT upgrade until the modules you are using are updated.

MlgmXyysd avatar Oct 11 '20 21:10 MlgmXyysd

They updated the ModuleTemplate and added API changes. Can you take a look now?

dko4er avatar Oct 26 '20 23:10 dko4er

They updated the ModuleTemplate and added API changes. Can you take a look now?

Yes, let's wait for @MlgmXyysd and team to release the new update for newest Riru's changes

Stillhard avatar Oct 28 '20 18:10 Stillhard

I have already made a patch in my own fork. However due to the hide machanism in Riru 22, ART related libs can't be hooked anymore. So it is not even boot-able. We will wait for a fix from Riru. https://github.com/RikkaApps/Riru/issues/121

kotori2 avatar Oct 30 '20 20:10 kotori2

@kotori2 There is no "fix" from Riru.

Replace an existing file in /system with Magisk means detected with simple /proc/maps scan (files replaced by Magisk have a different device). There is no reliable way to run codes at the beginning without replacing an existing file.

ART related libs can't be hooked anymore.

Can you explain the purpose of hooking ART related libs? So maybe I or other people can provide some ideas to bypass this problem.

Furthermore, Magisk may provide Riru-like features in the far future and the plan is module codes can only be executed after fork. There is some xposed solution based on repacking apk, their codes run in the app process only (equals to run after fork), how did they work?

RikkaW avatar Oct 31 '20 04:10 RikkaW

@kotori2 So #121 is blocking this issue? Because #121 seems to have been closed already.

ChristophSchmidpeter avatar Nov 04 '20 22:11 ChristophSchmidpeter

@TitusLabienus I have already figured out a workaround. Currently stucked at cannot get ClassLinker instance.

kotori2 avatar Nov 05 '20 05:11 kotori2

@kotori2 Thanks for the reply.

Currently stucked at cannot get ClassLinker instance.

I don't fully understand how you mean this sentence. Do you mean that you are still trying to find a solution on how to get the ClassLinker instance? Or does it need to be fixed by somebody else and / or needs to be fixed in another module e.g. in Ruru.Core?

ChristophSchmidpeter avatar Nov 06 '20 09:11 ChristophSchmidpeter

@TitusLabienus actually this was already fixed. Edxp now working on arm64 (but not arm) and x86_64. There are some issues with inline hook on arm. Waiting for a fix from Dobby

kotori2 avatar Nov 06 '20 09:11 kotori2

@kotori2 Ok, thanks!

ChristophSchmidpeter avatar Nov 06 '20 09:11 ChristophSchmidpeter

Hi, I give a try with latest EdXposed build from CI (V4607) but it still not working ? EdXposed Manager is reporting framework not installed

Latest riru V22 Magisk V21.1 Fairphone 3 Android 10

christophe-95 avatar Nov 22 '20 12:11 christophe-95

Working here... https://github.com/ElderDrivers/EdXposed/issues/635#issuecomment-731762037

psychopathologist avatar Nov 22 '20 15:11 psychopathologist

#623

MlgmXyysd avatar Nov 22 '20 15:11 MlgmXyysd