Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

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

Open
gaich opened this issue Jun 28, 2016 · 18 comments
Open

Comments

@gaich
Copy link

gaich commented Jun 28, 2016

  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
Copy link
Owner

rovo89 commented Jun 29, 2016

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
Copy link
Author

gaich commented Jun 29, 2016

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
Copy link
Owner

rovo89 commented Jun 30, 2016

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
Copy link
Author

gaich commented Jun 30, 2016

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
Copy link
Owner

rovo89 commented Jun 30, 2016

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

@gaich
Copy link
Author

gaich commented Jun 30, 2016

Tried with different apps and methods:
temp.zip

@rovo89
Copy link
Owner

rovo89 commented Jul 1, 2016

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
Copy link
Author

gaich commented Jul 1, 2016

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
Copy link
Owner

rovo89 commented Jul 1, 2016

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

@gaich
Copy link
Author

gaich commented Jul 2, 2016

This one?
data.txt

@rovo89
Copy link
Owner

rovo89 commented Jul 3, 2016

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
Copy link
Author

gaich commented Jul 3, 2016

Thank you!

@vrookie
Copy link

vrookie commented Jul 4, 2016

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
Copy link

Simbi0z commented Sep 16, 2016

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
Copy link
Author

gaich commented Sep 16, 2016

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

@mechimichi
Copy link

@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
Copy link

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
Copy link

saurabhbhivandk commented Jul 8, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants