Build AOSP with SELinux DISABLED

4,514 views
Skip to first unread message

Desconocido Nadie

unread,
Mar 17, 2016, 10:04:06 AM3/17/16
to Android Building
Hello.
My question is simple, is possible build android with selinux disabled (no permissive)?
Thanks very much.

Nikola Veljkovic

unread,
Mar 25, 2016, 10:31:20 AM3/25/16
to Android Building
Haven't tried it since M, but there should be no problems, as long as you are building for eng or userdebug flavors.
For user flavor, init will be crashing.

白书来

unread,
Mar 25, 2016, 10:47:21 AM3/25/16
to android-...@googlegroups.com

I have tried,no problem with eng and userdebug build.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Desconocido Nadie

unread,
Mar 28, 2016, 10:59:03 PM3/28/16
to Android Building
Please, How is it done, exactly?

白书来

unread,
Mar 29, 2016, 1:03:34 AM3/29/16
to android-...@googlegroups.com
add androidboot.selinux=permissive or androidboot.selinux=disabled to kernel cmdline.

but since Android M check the policydb version,the only way to  make previous kernel work is disable selinux.

-- 
Best Regards
------------------
Shulai Bai

Member of  IT service team
Unique Studio

Room 811, Building Liangsheng,1037 Luoyu Road, Wuhan 430074,P.R.China

On Tue, Mar 29, 2016 at 8:04 AM, Desconocido Nadie <ajm...@gmail.com> wrote:
Please, How is it done, exactly?

--

Desconocido Nadie

unread,
Mar 29, 2016, 10:53:44 AM3/29/16
to Android Building
Ok, thanks. I'll check it.
Reply all
Reply to author
Forward
0 new messages