ElderDrivers / EdXposed

Elder driver Xposed Framework.
https://edxp.meowcat.org/
GNU General Public License v3.0
5.4k stars 624 forks source link

[BUG] Bootloop without coredomain's sepolicy #688

Closed yujincheng08 closed 3 years ago

yujincheng08 commented 3 years ago

This is because we install inline hooks in onModuleLoad, where we are in the coredomain, and inline hooks require execmem permission (workaround: add allow coredomain coredomain process execmem to sepolicy.rule or delete sepolicy.rule completely).

We don't want to add any sepolicy about the coredomain, so we are planning to move inline hooks to post fork.

This problem happens on Android P or older devices mostly.

logcat2.txt

enetec1 commented 3 years ago

Verified that the last release without the bug is 4569. 4570 & 4571 are not available for download and since 4572 I have bootloop on Android P. Catlog in #657

EWF54Y6U7I commented 3 years ago

OGFZZ37XNK)V`ENF3YMSF@V

1024mb commented 3 years ago

In EMUI8 the workaround doesn't work, I'm using Riru v22.4 and Sandhook, adding allow coredomain coredomain process execmem to sepolicy still bootloops, deleting sepolicy contents also still bootloops, as they are workarounds I don't imagine you want logcats?

kotori2 commented 3 years ago

Fixed via d6c7570588b9c1b6ff2393429d8f5c6a44c3e552

yujincheng08 commented 3 years ago

Fix in https://github.com/ElderDrivers/EdXposed/commit/1e9b307f5451dacd6b3c1a46e7e26cb23579e777 and https://github.com/ElderDrivers/EdXposed/commit/d6c7570588b9c1b6ff2393429d8f5c6a44c3e552

1024mb commented 3 years ago

I've installed latest canary with Magisk v21.1 and Riru v22.4 and now it doesn't bootloops but the manager doesn't detects the framework. I've rebooted 4 times and nothing. This is the EdXposed log: EdXposed_Verbose_20201203_142742.txt

I can't enable EdXposed on the modules list because it says that no framework is installed, although in the manager main screen it says that the framework is installed but not active.

![photo_2020-12-03_14-44-10](https://user-images.githubusercontent.com/9301204/101080256-7510b200-35a0-11eb-8a9d-5525495391a3.jpg) ![photo_2020-12-03_14-44-15](https://user-images.githubusercontent.com/9301204/101080265-7a6dfc80-35a0-11eb-8eaa-9b7fc4631d05.jpg)
kotori2 commented 3 years ago

@1024mb Check the pinned FAQ.

1024mb commented 3 years ago

@1024mb Check the pinned FAQ.

I saw the FAQ but it says that the point 2 should only happen in Android R, I'm in Android Oreo (8.0.0) with EMUI 8. I will try with YAHFA.

EDIT: Tried YAHFA, and the exact same is happening. I even rebooted twice but still, it doesn't detect the framework. EdXposed_Verbose_20201203_151253.txt

kotori2 commented 3 years ago

That's sus weird, but maybe gonna test it later.

enxg commented 3 years ago

Any updates on EMUI 8 support?