Minimal change for OpenGL selection

BUG: 127353494
BUG: 128842306
Test: Boots and sets ro.hardware.egl
Change-Id: I0b9136d2249f63620462d256d21ae463def3f27a
diff --git a/shared/config/init.common.rc b/shared/config/init.common.rc
index 9511294..0c574d1 100644
--- a/shared/config/init.common.rc
+++ b/shared/config/init.common.rc
@@ -10,6 +10,7 @@
     mount debugfs debugfs /sys/kernel/debug
     chmod 0755 /sys/kernel/debug
     setprop ro.sf.lcd_density ${ro.boot.lcd_density}
+    setprop ro.hardware.egl ${ro.boot.hardware.egl}
 
 
 on init
diff --git a/shared/sepolicy/property_contexts b/shared/sepolicy/property_contexts
index bea3150..2b09527 100644
--- a/shared/sepolicy/property_contexts
+++ b/shared/sepolicy/property_contexts
@@ -2,6 +2,7 @@
 sys.cf.ser.  u:object_r:sys_cf_ser_prop:s0
 vendor.ser.  u:object_r:vendor_ser_prop:s0
 ro.boot.cuttlefish_ril  u:object_r:cuttlefish_ril_prop:s0
+ro.boot.hardware.egl u:object_r:cf_graphics_config_prop:s0 exact string
 ro.boot.vsock_frames_port  u:object_r:vsock_frames_port_prop:s0
 ro.boot.vsock_logcat_port  u:object_r:vsock_logcat_port_prop:s0
 ro.cdma.home.operator.alpha  u:object_r:vendor_init_radio_prop:s0
diff --git a/shared/sepolicy/vendor_init.te b/shared/sepolicy/vendor_init.te
index d231723..6ff4a1e 100644
--- a/shared/sepolicy/vendor_init.te
+++ b/shared/sepolicy/vendor_init.te
@@ -1,6 +1,7 @@
 type vendor_init_radio_prop, property_type;
 type cf_setupwizard_mode_prop, property_type;
 type vendor_init_setupwizard_prop, property_type;
+type cf_graphics_config_prop, property_type;
 
 allow vendor_init {
   audio_device
@@ -14,3 +15,5 @@
 set_prop(vendor_init, vendor_init_radio_prop)
 
 get_prop(vendor_init, vendor_ser_prop)
+
+get_prop(vendor_init, cf_graphics_config_prop)