Introduce sepolicy exceptions for theme assets

Assets such as composed icons and ringtones need to be accessed
by apps. This patch adds the policy needed to facilitate this.

commit eb25c1e0b69aab8d0c055d51de15501827f5dffd
Author: George G <kreach3r@users.noreply.github.com>
Date:   Wed Feb 8 17:22:44 2017 +0200

    sepolicy: fix themed sounds

    02-08 17:26:48.011 18259-18259/? W/SoundPoolThread: type=1400 audit(0.0:31): avc: denied { read } for path="/data/system/theme/audio/ui/Lock.ogg" dev="dm-0" ino=1006317 scontext=u:r:drmserver:s0 tcontext=u:object_r:theme_data_file:s0 tclass=file permissive=0

commit 4b1a5419b93858200e9cc143c900fc02ad2781d4
Author: Miccia <bono.michele94@gmail.com>
Date:   Mon Feb 27 12:36:21 2017 +0100

    sepolicy: Fix application of bootanimation

commit 2af86e0a49b496da3106885e5c6aa1c23e99db9d
Author: Randall Rushing <randall.rushing@gmail.com>
Date:   Wed Jan 4 10:31:29 2017 -0800

    sepolicy: fix themed boot animation

    W BootAnimation: type=1400 audit(0.0:42): avc: denied { open } for uid=1003 path="/data/system/theme/bootanimation.zip" dev="mmcblk0p42" ino=1657697 scontext=u:r:bootanim:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

    W         : Unable to open '/data/system/theme/bootanimation.zip': Permission denied

    W zipro   : Error opening archive /data/system/theme/bootanimation.zip: I/O Error

Change-Id: I0420de579aed0cff5add181cd0a8bf0f2b05d723
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
4 files changed