简体   繁体   中英

How to disable SELinux competely in android

For some really unavoidable circumstances, I want to completely disable SEAndroid from my Android builds and not just making it permissive . Any help would be greatly appreaciated. But please dont answer in a way that "Instead you can make it permissive ", because I know that but I simply want to disable it in my case. I have already read this post, but it was not what I was looking for!

You might want to try editing the default AOSP SE-policy to allow access to all for all. Start by deleting all the "neverallow" rules from all the '.te' files, and work your way by finding all the various domains on the system, and granting each and every one of them permissions to all resources on the device (files, dirs, sockets, etc).

This might take some work, but you will eventually get an enforced SE-Policy that permits everything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM