Grant access to the assembly number file

Give access to to the radio domain to the assembly number file on the
persist partition (/persist/phoneid.bin). The file contains the
assembly number encoded with ASCII characters.

The Settings app belongs to the radio domain.

FPII-1452
FPIIM-1446

Change-Id: Ia72295381193ae41be74d1042cbd7a494d84e59f
diff --git a/common/file.te b/common/file.te
index 49a6d96..a284597 100644
--- a/common/file.te
+++ b/common/file.te
@@ -33,6 +33,7 @@
 type persist_drm_file, file_type;
 type persist_sns_file, file_type;
 type persist_board_date_file, file_type;
+type persist_phoneid_file, file_type;
 type data_qsee_file, file_type;
 type seemp_file, file_type;
 
diff --git a/common/file_contexts b/common/file_contexts
index d90075c..c6005c4 100644
--- a/common/file_contexts
+++ b/common/file_contexts
@@ -332,6 +332,12 @@
 /persist/board_date.bin                                             u:object_r:persist_board_date_file:s0
 
 ###################################
+# Assembly number file
+#
+/persist/phoneid.bin                                                u:object_r:persist_phoneid_file:s0
+
+
+###################################
 # adsp files
 #
 /dsp(/.*)?                                                          u:object_r:adsprpcd_file:s0
diff --git a/common/radio.te b/common/radio.te
index 6f72664..9076604 100644
--- a/common/radio.te
+++ b/common/radio.te
@@ -9,3 +9,7 @@
 
 # IMS needs permission to use avtimer
 allow radio avtimer_device:chr_file r_file_perms;
+
+# Access to assembly number file
+allow radio persist_file:dir r_dir_perms;
+allow radio persist_phoneid_file:file r_file_perms;