You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dex2oat failure due to linker namespace inaccessibility #217
Maybe it is a SELinux problem. Please follow these instructions #189 (comment) and #189 (comment) to upload your dex2oat.log and share your output of adb command.
To fix this problem, please follow this #142 (comment) and upload your avc.log.
Maybe it is a SELinux problem. Please follow these instructions #189 (comment) and #189 (comment) to upload your dex2oat.log and share your output of adb command.
To fix this problem, please follow this #142 (comment) and upload your avc.log.
for the 1st #189 command, the dex2oat.log is showing nothing. Or I do it wrong? (I plug my phone while enabling USB debugging, open platform tools from cmd then do adb start-server, after that I use this command adb logcat -s LSPosedDex2Oat dex2oat64 > dex2oat.log the output are exist but its only show this:
--------- beginning of system
--------- beginning of crash
--------- beginning of main
while for the 2nd command (adb shell su -c 'ls -aZ /data/adb/modules/zygisk_lsposed/bin') its show this:
u:object_r:xposed_file:s0 .
u:object_r:system_file:s0 ..
u:object_r:dex2oat_exec:s0 dex2oat32
u:object_r:dex2oat_exec:s0 dex2oat64
u:object_r:xposed_file:s0 liboat_hook32.so
u:object_r:xposed_file:s0 liboat_hook64.so
for the avc.log, i still installing WSL since i've got no linux-installed device at the moment, will upload result later
When you record your dex2oat.log, you should at the some time choose an app to Re-optimize from LSPosed manager.
Apparently, the problem now fixed. The optimization run successfully
I think it's fixed with the setenforce command, well yes it's become permissive now
but I'm sorry, unfortunately I can't reproduce the avc.log due to WSL limitation (can't access USB devices)
I already follow this guide but I doesn't work.
(*ps. I'm a Noob)
Will try to search for a linux device to get the avc.log in the right way, I'll sent here ASAP when I get the log.
You may try: install Termux, grant root permission to it, and run command
sudo cat /proc/kmsg | grep avc > avc.log
And then try to upload the avc.log file, which should located in some folder of Termux.
BTW, why do you need WSL? Cannot you run adb directly in Windows?
Ah! actually i've already installed and tried that in termux but apparently i'm doing it wrong. I ran su then remove the sudo now its work. the file already exist but the process in termux still not finished (or it won't stop until i forcefully stop it?) I can send it here now, wait
for the WSL thing, when i run the command it says got a problem with grep and after i googled that, what i got is it's need linux environment so I install WSL as an alternative lol
I see, SELinux shouldn't be disabled on your device.
Please run adb shell su -c setenforce 1, and then collect the following logs when you re-optimize an app:
Pardon me, If I remember I already flash the debug version but I dunno (maybe I mistakenly changing by flashing the non-debug version in the middle of the process? because yesterday was so late night) I apologize for such inconvenience
After I reflash the debug version and re-do the steps, its show new value. Here it is:
Or is this a rom problem?
Previously using Havoc R rom got no such problem. But I had to downgrade into lower version of rom due to heavy lags that occurred in this potato phone
It's Android 11, I frequently install new build from github action time-to-time as soon as there's main/core + flashable zip update, but never had this issue before
@widagdag Please test the latest CI build to see if this problem is solved for you.
Currently my cactus (redmi 6A) was broken (but still have it, need repair) but I'm on ginkgo (redmi note 8) for now
I'll check if the problem persist or maybe there's another issue. Will report if found any
Activity
JingMatrix commentedon Mar 5, 2025
Maybe it is a SELinux problem. Please follow these instructions #189 (comment) and #189 (comment) to upload your
dex2oat.logand share your output ofadbcommand.To fix this problem, please follow this #142 (comment) and upload your
avc.log.JingMatrix commentedon Mar 5, 2025
It could also be a problem of your system module
Space saving ahead-of-time. Please try disable it.widagdag commentedon Mar 5, 2025
for the 1st #189 command, the dex2oat.log is showing nothing. Or I do it wrong? (I plug my phone while enabling USB debugging, open platform tools from cmd then do adb start-server, after that I use this command
adb logcat -s LSPosedDex2Oat dex2oat64 > dex2oat.logthe output are exist but its only show this:--------- beginning of system
--------- beginning of crash
--------- beginning of main
while for the 2nd command (adb shell su -c 'ls -aZ /data/adb/modules/zygisk_lsposed/bin') its show this:
u:object_r:xposed_file:s0 .
u:object_r:system_file:s0 ..
u:object_r:dex2oat_exec:s0 dex2oat32
u:object_r:dex2oat_exec:s0 dex2oat64
u:object_r:xposed_file:s0 liboat_hook32.so
u:object_r:xposed_file:s0 liboat_hook64.so
for the avc.log, i still installing WSL since i've got no linux-installed device at the moment, will upload result later
widagdag commentedon Mar 5, 2025
already disable but problem still persist. Thanks for your time sir! wait i'll provide the avc.log later. Have a good day
JingMatrix commentedon Mar 5, 2025
When you record your
dex2oat.log, you should at the some time choose an app toRe-optimizefrom LSPosed manager.widagdag commentedon Mar 5, 2025
Apparently, the problem now fixed. The optimization run successfully
I think it's fixed with the
setenforcecommand, well yes it's become permissive nowbut I'm sorry, unfortunately I can't reproduce the avc.log due to WSL limitation (can't access USB devices)
I already follow this guide but I doesn't work.
(*ps. I'm a Noob)
Will try to search for a linux device to get the avc.log in the right way, I'll sent here ASAP when I get the log.
JingMatrix commentedon Mar 5, 2025
You may try: install Termux, grant root permission to it, and run command
And then try to upload the
avc.logfile, which should located in some folder of Termux.BTW, why do you need WSL? Cannot you run
adbdirectly in Windows?widagdag commentedon Mar 5, 2025
Ah! actually i've already installed and tried that in termux but apparently i'm doing it wrong. I ran su then remove the sudo now its work. the file already exist but the process in termux still not finished (or it won't stop until i forcefully stop it?) I can send it here now, wait
for the WSL thing, when i run the command it says got a problem with
grepand after i googled that, what i got is it's need linux environment so I install WSL as an alternative lolwidagdag commentedon Mar 5, 2025
here's the avc.log
avc.log
hope its correct
JingMatrix commentedon Mar 5, 2025
When you record the log, did you do
re-optimizeof some app at the same time?widagdag commentedon Mar 5, 2025
I forgot to do that, but now already did. I'll sent the new file now
avc (1).log
JingMatrix commentedon Mar 5, 2025
Please also upload your
dex2oat.logas said in #217 (comment).You
avc.logdidn't capture useful information, there might be something wrong.widagdag commentedon Mar 5, 2025
dex2oat.logonly show this, again--------- beginning of system
--------- beginning of crash
--------- beginning of main
adb logcat -s LSPosedDex2Oat dex2oat64 > dex2oat.logwhile its running on cmd thenre-optimizesome apps, open it, re-optimize again, and so-onJingMatrix commentedon Mar 5, 2025
I see, SELinux shouldn't be disabled on your device.
Please run
adb shell su -c setenforce 1, and then collect the following logs when youre-optimizean app:and
This time,
grepis removed for your convenience.4 remaining items
widagdag commentedon Mar 5, 2025
Yes I did, even on all lsposed modules installed, i try to re-optimize all of them few times
it didn't recorded on logs?
JingMatrix commentedon Mar 5, 2025
Nope, no useful information found in your logs.
Please upload your logs generated by LSPosed manager.
widagdag commentedon Mar 5, 2025
LSPosed_2025-03-06T04_38_24.322.zip
I see, it's so strange 😔
Here's the logs generated from lsposed
JingMatrix commentedon Mar 5, 2025
I found the problem: you should use the debug version of LSPosed.
Try again record the
dex2oat.logand upload it. Also upload your LSPosed logs afterre-optimizean app,widagdag commentedon Mar 6, 2025
Pardon me, If I remember I already flash the debug version but I dunno (maybe I mistakenly changing by flashing the non-debug version in the middle of the process? because yesterday was so late night) I apologize for such inconvenience
After I reflash the debug version and re-do the steps, its show new value. Here it is:
dex2oat.log
avc.log
LSPosed_2025-03-06T07_47_09.602.zip
JingMatrix commentedon Mar 6, 2025
The crucial part of logs is
It is still unclear what the cause for linker namespace inaccessibility yet.
widagdag commentedon Mar 7, 2025
Or is this a rom problem?
Previously using Havoc R rom got no such problem. But I had to downgrade into lower version of rom due to heavy lags that occurred in this potato phone
JingMatrix commentedon Mar 7, 2025
Previously before downgrade, what is Android version?
widagdag commentedon Mar 7, 2025
It's Android 11, I frequently install new build from github action time-to-time as soon as there's main/core + flashable zip update, but never had this issue before
[-]Optimization Failed: Return Value is empty[/-][+]`dex2oat` failure due to linker namespace inaccessibility[/+]JingMatrix commentedon Jul 31, 2025
Possibly related blog: http://xtuly.cn/article/android-exec-mem-elf
JingMatrix commentedon Jan 22, 2026
@widagdag Please test the latest CI build to see if this problem is solved for you.
widagdag commentedon Jan 23, 2026
Currently my cactus (redmi 6A) was broken (but still have it, need repair) but I'm on ginkgo (redmi note 8) for now
I'll check if the problem persist or maybe there's another issue. Will report if found any