Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please open source of espf? #2

Open
shenzhigang opened this issue Jan 30, 2021 · 1 comment
Open

Could you please open source of espf? #2

shenzhigang opened this issue Jan 30, 2021 · 1 comment

Comments

@shenzhigang
Copy link

Because I need to put some sepolicy into espf.

@LuigiVampa92
Copy link
Owner

Hello, I am currently rewriting the entire project with different approach. espf was built on magiskpolicy source code and relied on using init.d approach, it was meant to be executed on boot as init.d script and that was a rare case for most ROMs (like it wouldn't work on 90% of devices). Also it executed at some more or less random point during system start, which is enough if you want to inject policy for android applications but not enough if you want to apply new policies for system services since they can start before the moment of new policy injection.

Right now I am working on approach with patching boot partition and injecting new policies even before the init process will start. This is an approach this is used by magisk to patch sepolicies for itself and achieve effectively permissive policy to be able to run su binary. This should work universally on any device (already tested on a few) and any OS version. I will also use this approach for SystemEdxposed and I have already updated the code in this repo but unfortunately don't have enough time to update the README and polish all the things.

Please do not close this issue, I will return to it as soon as I gonna have some free time to work on this. If you want it urgently, you can see how things are organized in new code. Basically it is magisk as it is in original repo but with different build script, and some minor changes in code. The rules that magiskinit injects into system policies are all in rules.cpp file.

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

No branches or pull requests

2 participants