Skip to content

Commit

Permalink
Use userdebug_or_eng in domain.te
Browse files Browse the repository at this point in the history
For /dev/diag

Change-Id: I9692a0bb55cdf1d8bf4786f178be42dca44fea5f
  • Loading branch information
nickkral committed Jan 11, 2014
1 parent 2d3e204 commit 8629b43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ BOARD_SEPOLICY_UNION += \
bridge.te \
camera.te \
device.te \
domain.te \
file.te \
irsc_util.te \
mediaserver.te \
Expand All @@ -127,10 +128,6 @@ BOARD_SEPOLICY_UNION += \
genfs_contexts \
te_macros

ifneq ($(TARGET_BUILD_VARIANT),user)
BOARD_SEPOLICY_UNION += domain.te
endif

HAVE_ADRENO_SOURCE:= false

OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
Expand Down
4 changes: 3 additions & 1 deletion sepolicy/domain.te
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
allow domain diag_device:chr_file rw_file_perms;
userdebug_or_eng(`
allow domain diag_device:chr_file rw_file_perms;
')

0 comments on commit 8629b43

Please sign in to comment.