Android AOSP sepolicy not updated while Editing Seliunx Rule

30 views
Skip to first unread message

xie doye

unread,
Jul 12, 2019, 8:13:38 AM7/12/19
to Android Building

I'm trying to customize the AOSP, And After compiled success once, I changed some selinux rule due to Android SElinux implementation, And after that, I turn into AOSP root directory and run m, It indeed find some diff and seems compiled a new boot.img(due to time it generated), But After I flash it with fastboot flashall -w the dmesg still showing the avc sepolicy failed which I was just added


So the question is Am I doing wrong with the routine?  Or Is there any mechanism I was ignored? If that What should I do?(Now I'm m clean and recompile all with m and problem gone, But it just takes hours)


PS: I've found the policy.conf file under /out /target/product/marlin/obj/ETC/sepolicy_neverallows_intermediates and it sync with what I changed?



Dan Willemsen

unread,
Jul 12, 2019, 1:27:51 PM7/12/19
to Android Building
What version of Android are you using?

Which file did you change? There may be some missing dependencies.

- Dan

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/cfa4dd5b-41a7-44ac-8fe8-78db1453ea21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

xie doye

unread,
Jul 13, 2019, 12:58:26 PM7/13/19
to Android Building
Sorry for lacking the details, I was thought it could be a general question

I'm currently building branch is android-9.0.0_r2, And I've modified te files mainly under  /system/sepolicy/private(public)  


在 2019年7月13日星期六 UTC+8上午1:27:51,Dan Willemsen写道:
What version of Android are you using?

Which file did you change? There may be some missing dependencies.

- Dan

On Fri, Jul 12, 2019 at 5:13 AM xie doye <d0...@d0ye.com> wrote:

I'm trying to customize the AOSP, And After compiled success once, I changed some selinux rule due to Android SElinux implementation, And after that, I turn into AOSP root directory and run m, It indeed find some diff and seems compiled a new boot.img(due to time it generated), But After I flash it with fastboot flashall -w the dmesg still showing the avc sepolicy failed which I was just added


So the question is Am I doing wrong with the routine?  Or Is there any mechanism I was ignored? If that What should I do?(Now I'm m clean and recompile all with m and problem gone, But it just takes hours)


PS: I've found the policy.conf file under /out /target/product/marlin/obj/ETC/sepolicy_neverallows_intermediates and it sync with what I changed?



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

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-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages