Edxposed: [BUG] Edxposed modules not loading on android emulator

Created on 18 Jun 2020  ·  13Comments  ·  Source: ElderDrivers/EdXposed

什么情况/What happened?
Edxposed modules not loading on boot even if enabled and edxposed installed successfully on android emulator x86 Q clean with no google api/services/playstore (avd/android studio)

Xprivacylua error: "module not running or updated"
minminguard error: "xposed is not enabled"

From logs, it looks like a permission issue, unable to access modules list.

如无法开机/模块无效等

Xposed模块列表/Xposed Module List
tried minminguard and xprivacylua

允许截图/Screenshot allowed

Magisk模块列表/Magisk Module List
magisk 20.4 (manager 7.5.1). Modules: riru core 21.2 and riru-edxposed 0.4.6.2(4529) (same for canary 0.4.6.3)

允许截图/Screenshot allowed

EdXposed及Riru版本/Versions of EdXposed and Riru

EdXposed: 0.4.6.2(4529) (same for canary 0.4.6.3) YAHFA
Later edit: On latest canary 0.5.0.6 (4561) YAHFA, android won't boot at all.
Edxposed manageR: 4.5.7

Riru:21.2

相关Logcat/Logcat

有助于定位问题,必须使用我们的log抓取模块抓取/It can help us to locate issue, must use our logcat module

edxposed_verbose_logs.txt
modules_log.txt

bug

All 13 comments

Hi, how did you install riru-core to emulator? Can you share your experiences? Thanks.

There is this repo where I am currently contributing: https://github.com/shakalaca/MagiskOnEmulator

The patcher is now stable, it works on both linux and windows, and allows patching up to the latest version of Android (from API 22 to 30/R (except 28)). It also allows patching with the latest canary version of magisk by running 'patch.bat (or patch.sh) canary'

After installing magisk and rebooting you install riru core as usually from magisk store.

EDIT: edxposed modules actually work when using an older version: riru-edxposed 0.4.6.1(4510)

@fusionneur seems selinux problem, remove sepolicy.rule

Can you please guide me on what exactly it should be removed? I prefer to leave selinux on and to use latest version of edxposed. Note that the magisk and edxposed were installed on fresh android without altering anything else before.

@fusionneur /data/adb/modules(_update)/riru_edxposed(_sandhook)/sepolicy.rule

Hmm that worked. Can you please explain why ? :) Is there any reference (github commit, issue, forum etc) regarding this? Which are the effects of removing this file in terms of security? Thank you.

Hi, @fusionneur
I wonder how u install edxposed. I tried to install edxposed(Yahfa) and the emulator bootlooped, showing the following logs:

2020-08-17 18:20:14.640 3338-3338/? A/libc: Fatal signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0 in tid 3338 (main), pid 3338 (main)
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:10/QPP6.190730.005.B1/5775370:userdebug/test-keys'
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: Revision: '0'
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: ABI: 'x86_64'
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: Timestamp: 2020-08-17 18:20:14+0800
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: pid: 3338, tid: 3338, name: main  >>> zygote64 <<<
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: uid: 0
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG: signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG:     rax 4800000026bafff2  rbx 00007ffc74635838  rcx 0000000000000095  rdx 00007aeba51d260c
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG:     r8  0000000000000007  r9  0000000000000000  r10 0000000000000010  r11 0000000000000246
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG:     r12 00007aeb1fea5a4d  r13 00007ffc74635838  r14 00007aeba5210d80  r15 00007aeba5215000
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG:     rdi 0000000000000000  rsi ffffffffffffffe8
2020-08-17 18:20:14.656 3346-3346/? A/DEBUG:     rbp 0000000000000000  rsp 00007ffc746355f0  rip 00007aeb2027458f
2020-08-17 18:20:14.663 3346-3346/? A/DEBUG: backtrace:
2020-08-17 18:20:14.663 3346-3346/? A/DEBUG:       #00 pc 000000000055858f  /apex/com.android.runtime/lib64/libart.so!libart.so (offset 0x555000) (art::Runtime::Init(art::RuntimeArgumentMap&&)+18959) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2)
2020-08-17 18:20:14.663 3346-3346/? A/DEBUG:       #01 pc 0000000000048db4  /system/lib64/libriru_edxp.so (BuildId: cb671957d3b7445cb994df4cfe65bedffa4090d8)
2020-08-17 18:20:14.663 3346-3346/? A/DEBUG:       #02 pc 000000000055b6c6  /apex/com.android.runtime/lib64/libart.so!libart.so (offset 0x555000) (art::Runtime::Create(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, void const*>>> const&, bool)+118) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2)
2020-08-17 18:20:14.664 3346-3346/? A/DEBUG:       #03 pc 00000000003f4cc0  /apex/com.android.runtime/lib64/libart.so!libart.so (offset 0x2ed000) (JNI_CreateJavaVM+1136) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2)
2020-08-17 18:20:14.664 3346-3346/? A/DEBUG:       #04 pc 00000000000d9722  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::startVm(_JavaVM**, _JNIEnv**, bool)+9250) (BuildId: 26b0d32477058ae8c26975bf08cfd935)
2020-08-17 18:20:14.664 3346-3346/? A/DEBUG:       #05 pc 00000000000d9cf8  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+344) (BuildId: 26b0d32477058ae8c26975bf08cfd935)
2020-08-17 18:20:14.664 3346-3346/? A/DEBUG:       #06 pc 00000000000035ad  /system/bin/app_process64 (main+1357) (BuildId: 5fc10f534220ec316be705f2ec8c36e6)
2020-08-17 18:20:14.664 3346-3346/? A/DEBUG:       #07 pc 000000000008a985  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+117) (BuildId: a08a19770d6696739c847e29c3f5f650)
2020-08-17 18:20:14.741 3346-3346/? E/crash_dump64: unable to connect to activity manager: Connection refused
2020-08-17 18:20:14.741 1825-1825/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_17

Problem sovled. I tried x86 instead of x86_64 and now it works. The above crash is relative to #566

Yes i use only x86 avd for compatibility. on x86_64 you get into all sorts of problems and i'm not refering to edxposed but to various stuff

Which is the solution here? I was using also yahfa with the same result.

Which is the solution here? I was using also yahfa with the same result.

Try latest canary build. It works for me with Android R AVD.

using latest canary edxp & latest canary magisk. It works on R AVD. For Q, magisk won't load sepolicy.

thanks for the clarifications, will do a test

Was this page helpful?
0 / 5 - 0 ratings