rovo89 / Xposed

The native part of the Xposed framework (mainly the modified app_process binary).
Other
7.34k stars 1.46k forks source link

Some Marshmallow phones show Xposed is active, but the modules do not work #164

Open gaich opened 8 years ago

gaich commented 8 years ago
  1. Flashing ROM - flashingTWRP- injecting root - flashing xposed-v85-sdk23-arm64.zip - wiping caches- installing xposed installer - installing modules- modules do not work, although xposed shows framework is active.
  2. Uninstalling modules and xposed installer - flashing xposed uninstaller - wiping caches - flashing another version of xposed framevork - wiping caches - installing xposed installer - installing modules- modules do not work, although xposed shows framework is active.
  3. Repeating step 2 with xposed v.84, 83. 82. 80, @romracer 85.1,and systemless - result is the same.
  4. Changing SElinux to permissive in terminal emulator- no luck again.
  5. Changing SElinux to permissive on boot helped me - I flashed this mod - http://forum.xda-developers.com/elephone-p9000/development/mod-grorkmod-eragon-aerom-v0-5-beta-t3395667 and my modules began to work.

Phone data.txt

Framework is active: screenshot_20160628-083424 Modules do not work: screenshot_20160628-083433 screenshot_20160628-083438

Log_before_grork.txt Log_after_grork.txt

But this grork mod is rather unstable, sometimes I have the same situation as described after reboot - modules do not work, although xposed shows framework is active. Reflashing the mod in recovery helps again. xposed_error_20160628_131225.log.txt And it works untill the next reboot, although Selinux state is shown as Enforcing. screenshot_20160628-132410

rovo89 commented 8 years ago

When you say modules, do you mean all modules or just GravityBox? If the installer shows that Xposed is active, it means that a lot of things are working fine.

In any case, can you please try to get new, more complete logs? The ones you posted don't show much. https://github.com/rovo89/XposedBridge/wiki/Bugs#how-can-i-get-logs

gaich commented 8 years ago

I use Amplify, Xprivacy, Greenify donate, Appops Xposed, My Android tools Xposed and GravityBox - none of them works, showing Xposed isn`t installed. logcat.txt Video - https://youtu.be/x9qHV0yBYHw

rovo89 commented 8 years ago

Hm, I don't know how these apps check whether they're enabled or not. Unfortunately, the new log is still incomplete, it starts when the system is already running and doesn't include the log messages that were written during boot.

gaich commented 8 years ago

Well. I tried to do it from boot

logcat.zip

When the apps aren`t enabled they behave like in video in prevous comment. When they are enabled, they work as follows: https://youtu.be/3YI1yrMNyLo

When I realize on boot the stastusbar clock is in center? I can be sure modules are working - this is my GravityBox setting, but if I see it is in its stock place right ahead- the modules aren`t active and I can prove it trying to launch them like in previous post video.

rovo89 commented 8 years ago

That's a huge log, but nevertheless, it still starts too late, please try another method of getting a complete log.

gaich commented 8 years ago

Tried with different apps and methods: temp.zip

rovo89 commented 8 years ago

Thanks, the liveboot.log looks good.

There I found many lines like this:

W/_zygote_service( 1238): type=1400 audit(0.0:21): avc: denied { search } for name="de.robv.android.xposed.installer" dev="mmcblk0p22" ino=164552 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0 tclass=dir permissive=0
...
E/Xposed  (  340): Cannot load any modules because /data/data/de.robv.android.xposed.installer/conf/modules.list was not found

Access to the Xposed Installer directory is denied, and the strange thing is this: tcontext=u:object_r:app_data_file:s0. The SELinux context for this directory should be tcontext=u:object_r:app_data_file:s0:c512,c768.

Could you post the output of ls -lZ /data/data/ please? I would like to confirm this and it will also show whether other app directories are similar.

gaich commented 8 years ago

Sorry, @rovo89, cannot find such directory ls -lZ /data/data/. Or it isnt a directory? My phones going crazy with all this, even cannot restore the previous state - maybe this is phone related? But I see similar problems here - http://forum.xda-developers.com/elephone-p9000/development/mod-grorkmod-eragon-aerom-v0-5-beta-t3395667

rovo89 commented 8 years ago

It is a directory, however you need to execute the command as root.

gaich commented 8 years ago

This one? data.txt

rovo89 commented 8 years ago

Yes, thanks. Your ROM doesn't seem to have this AOSP commit: https://android.googlesource.com/platform/external/sepolicy/+/a833763ba04147e840fd054b613f759395bada35%5E!/ I'll have to check how I can handle this case.

gaich commented 8 years ago

Thank you!

vrookie commented 8 years ago

Hi rovo89. Hi gaich.

That was the missing hint!

In the the stockrom for the elephone the levelFrom entry was missing. Also there was no entry for /data/data/* in the file_contexts.

After adding these entries everything works as expected. Thank you very very much!

greetings vsrookie

Simbi0z commented 7 years ago

I have the same problem as described here and my /data/data directory looks the same as gaich when listed with ls -lZ /data/data/. But I don't understand how to fix this issue, is there a command to run? How do I add the levelFrom entry? Thanks!

btw, my phone is a Doogee X6 Pro with Android 6.0

gaich commented 7 years ago

Grorkmod is the solution. Flash ROM-SuperSU-Grorkmod-Xposed.

mechimichi commented 7 years ago

@vrookie @gaich I own a Cubot Mac and have been trying to install Xposed Framework. Framework is installed ok but none of the Modules work. This seems to be the same issue you faced with your ElephoneP9000. Could you please help me and explain the root of the problem. Thanks

chrisvk66 commented 6 years ago

Hi everyone. I have the same problem, when i try to install a module xposed print this toast message: "Cannot write /data/xposed/modules..." I solved this installing xposed in the internal sd because it was installed in the external sd card. I hope you find this information useful.

saurabhbhivandk commented 6 years ago

Is this still an active problem. I recently faced this with xiaomi mi5. Everything is active. Greenify, magisk, even the exposed (systemless) , yet after the reboot when I try to activate the additional parameters for greenify, it asks to reactive xPosed features [which are surprisingly, already activated]. And my xposed is a system apk. On the internal sd card only.