summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--common/bluetooth.mk3
-rw-r--r--common/core_amlogic.mk70
-rw-r--r--common/products/mbox/init.amlogic.ab.rc59
-rw-r--r--common/products/mbox/init.amlogic.rc78
-rw-r--r--common/products/mbox/product_mbox.mk7
-rw-r--r--common/products/tablet/init.amlogic.rc6
-rw-r--r--common/products/tv/init.amlogic.rc57
-rw-r--r--common/products/tv/product_tv.mk11
-rw-r--r--common/sepolicy/adbd.te1
-rw-r--r--common/sepolicy/app.te149
-rw-r--r--common/sepolicy/audioserver.te7
-rw-r--r--common/sepolicy/bluetooth.te1
-rw-r--r--common/sepolicy/bootanim.te3
-rw-r--r--common/sepolicy/bootvideo.te8
-rw-r--r--common/sepolicy/cameraserver.te1
-rw-r--r--common/sepolicy/device.te1
-rw-r--r--common/sepolicy/dex2oat.te1
-rw-r--r--common/sepolicy/drm_device.te2
-rw-r--r--common/sepolicy/drmserver.te8
-rw-r--r--common/sepolicy/droidvold.te38
-rw-r--r--common/sepolicy/dv_config.te4
-rw-r--r--common/sepolicy/file.te4
-rw-r--r--common/sepolicy/file_contexts222
-rw-r--r--common/sepolicy/firmload.te10
-rw-r--r--common/sepolicy/fsck.te15
-rwxr-xr-x[-rw-r--r--]common/sepolicy/genfs_contexts18
-rw-r--r--common/sepolicy/hal_camera_default.te5
-rw-r--r--common/sepolicy/hal_drm_default.te2
-rw-r--r--common/sepolicy/hal_dumpstate_impl.te9
-rw-r--r--common/sepolicy/hal_memtrack_default.te35
-rw-r--r--common/sepolicy/hal_tv_cec_default.te2
-rw-r--r--common/sepolicy/hal_wifi_default.te8
-rw-r--r--common/sepolicy/hdcp_rx22.te17
-rw-r--r--common/sepolicy/hdcp_tx22.te3
-rw-r--r--common/sepolicy/hdmi_cec.te14
-rw-r--r--common/sepolicy/hdmicecd.te15
-rw-r--r--common/sepolicy/hwservice.te3
-rw-r--r--common/sepolicy/hwservice_contexts1
-rw-r--r--common/sepolicy/hwservicemanager.te7
-rw-r--r--common/sepolicy/imageserver.te48
-rw-r--r--common/sepolicy/init.te158
-rw-r--r--common/sepolicy/installd.te8
-rw-r--r--common/sepolicy/kernel.te2
-rw-r--r--common/sepolicy/keystore.te3
-rw-r--r--common/sepolicy/lmkd.te2
-rw-r--r--common/sepolicy/logcat.te12
-rw-r--r--common/sepolicy/make_ext4fs.te19
-rw-r--r--common/sepolicy/mediacodec.te10
-rw-r--r--common/sepolicy/mediaserver.te48
-rw-r--r--common/sepolicy/netd.te5
-rw-r--r--common/sepolicy/platform_app.te48
-rw-r--r--common/sepolicy/ppp.te13
-rw-r--r--common/sepolicy/pppd.te42
-rw-r--r--common/sepolicy/pppoe_wrapper.te53
-rw-r--r--common/sepolicy/priv_app.te15
-rw-r--r--common/sepolicy/recovery.te34
-rw-r--r--common/sepolicy/remotecfg.te2
-rw-r--r--common/sepolicy/seapp_contexts38
-rw-r--r--common/sepolicy/servicemanager.te6
-rw-r--r--common/sepolicy/shell.te6
-rw-r--r--common/sepolicy/surfaceflinger.te6
-rw-r--r--common/sepolicy/system_app.te120
-rw-r--r--common/sepolicy/system_control.te25
-rw-r--r--common/sepolicy/system_server.te66
-rw-r--r--common/sepolicy/tee.te2
-rw-r--r--common/sepolicy/tvserver.te63
-rw-r--r--common/sepolicy/ueventd.te1
-rw-r--r--common/sepolicy/update_engine.te2
-rw-r--r--common/sepolicy/update_verifier.te4
-rw-r--r--common/sepolicy/usbpm.te9
-rw-r--r--common/sepolicy/vndservicemanager.te3
-rw-r--r--common/sepolicy/vold.te58
-rw-r--r--common/sepolicy/vold_ext.te27
-rw-r--r--common/sepolicy/webview_zygote.te2
-rw-r--r--common/sepolicy/wlan_fwloader.te10
-rw-r--r--common/sepolicy/zygote.te3
-rw-r--r--common/software.mk3
-rw-r--r--common/vndk/Android.mk57
-rw-r--r--p212/BoardConfig.mk6
-rw-r--r--p212/device.mk2
-rw-r--r--p212/fstab.amlogic5
-rw-r--r--p212/init.amlogic.board.rc16
-rw-r--r--p212/manifest.xml63
-rw-r--r--p212/system.prop81
-rw-r--r--p230/BoardConfig.mk5
-rw-r--r--p230/device.mk2
-rw-r--r--p230/fstab.AB.amlogic3
-rw-r--r--p230/fstab.AB.verity.amlogic3
-rw-r--r--p230/fstab.amlogic3
-rw-r--r--p230/fstab.amlogic.bak19
-rw-r--r--p230/fstab.verity.amlogic3
-rw-r--r--p230/init.amlogic.board.rc16
-rw-r--r--p230/manifest.xml63
-rw-r--r--p230/system.prop81
94 files changed, 987 insertions, 1322 deletions
diff --git a/common/sepolicy/app.te b/common/sepolicy/app.te
index eb9f839..6f6cbad 100644
--- a/common/sepolicy/app.te
+++ b/common/sepolicy/app.te
@@ -1,75 +1,80 @@
# Write to various pseudo file systems.
-allow untrusted_app block_device:dir { search getattr };
+#allow untrusted_app block_device:dir { search getattr };
+#
+#allow untrusted_app imageserver_service:service_manager find;
+#
+#allow untrusted_app system_control_service:service_manager find;
+#
+#allow untrusted_app unlabeled:dir { search read write getattr };
+#allow untrusted_app unlabeled:file { lock open read write getattr };
+#
+## Read and write /data/data subdirectory.
+#allow untrusted_app { system_app_data_file app_data_file }:dir { getattr read search };
+#
+#allow untrusted_app { system_app_data_file app_data_file }:file { getattr read write };
+#
+#allow untrusted_app subtitle_service:service_manager { find };
+#allow untrusted_app unlabeled:filesystem getattr;
+#allow untrusted_app proc_sysrq:file { read getattr };
+#allow untrusted_app kernel:file { open read getattr };
+#allow untrusted_app kernel:dir { search getattr };
+#allow untrusted_app pppoe_wrapper:file { open read getattr };
+#allow untrusted_app pppoe_wrapper:dir { search getattr };
+#allow untrusted_app zygote:file { open read getattr };
+#allow untrusted_app zygote:dir { search getattr };
+#allow untrusted_app gatekeeperd:file { open read getattr };
+#allow untrusted_app gatekeeperd:dir { search getattr };
+#allow untrusted_app imageserver:file { open read getattr };
+#allow untrusted_app imageserver:dir { search getattr };
+#allow untrusted_app system_control:file { open read getattr };
+#allow untrusted_app system_control:dir { search getattr };
+#allow untrusted_app keystore:file { open read getattr };
+#allow untrusted_app keystore:dir { search getattr };
+#allow untrusted_app installd:file { open read getattr };
+#allow untrusted_app installd:dir { search getattr };
+#allow untrusted_app mediaserver:file { open read getattr };
+#allow untrusted_app mediaserver:dir { search getattr };
+#allow untrusted_app drmserver:file { open read getattr };
+#allow untrusted_app drmserver:dir { search getattr };
+#allow untrusted_app netd:file { open read getattr };
+#allow untrusted_app netd:dir { search getattr };
+#allow untrusted_app surfaceflinger:file { open read getattr };
+#allow untrusted_app surfaceflinger:dir { search getattr };
+#allow untrusted_app servicemanager:file { open read getattr };
+#allow untrusted_app servicemanager:dir { search getattr };
+#allow untrusted_app lmkd:file { open read getattr };
+#allow untrusted_app lmkd:dir { search getattr };
+#allow untrusted_app shell:file { open read getattr };
+#allow untrusted_app shell:dir { search getattr };
+#allow untrusted_app healthd:file { open read getattr };
+#allow untrusted_app healthd:dir { search getattr };
+#allow untrusted_app vold:file { open read getattr };
+#allow untrusted_app vold:dir { search getattr };
+#allow untrusted_app logd:file { open read getattr };
+#allow untrusted_app logd:dir { search getattr };
+#allow untrusted_app ueventd:file { open read getattr };
+#allow untrusted_app ueventd:dir { search getattr };
+#allow untrusted_app init:file { open read getattr };
+#allow untrusted_app init:dir { search getattr };
+#allow untrusted_app system_server:file { open read getattr };
+#allow untrusted_app system_server:dir { search getattr };
+#allow untrusted_app dhcp:file { open read getattr };
+#allow untrusted_app dhcp:dir { search getattr };
+#allow untrusted_app sdcardd:file { open read getattr };
+#allow untrusted_app sdcardd:dir { search getattr };
+#allow untrusted_app platform_app:file { open read getattr };
+#allow untrusted_app platform_app:dir { search getattr };
+#allow untrusted_app system_app:file { open read getattr };
+#allow untrusted_app system_app:dir { search getattr };
+#allow untrusted_app usbpm:file { open read getattr };
+#allow untrusted_app usbpm:dir { search getattr };
+#
+#allow untrusted_app fuseblk:dir { search };
+#allow untrusted_app fuseblk:file { read open };
+#allow untrusted_app dex2oat:dir { getattr };
+#allow untrusted_app storage_stub_file:dir { getattr };
-allow untrusted_app imageserver_service:service_manager find;
-allow untrusted_app system_control_service:service_manager find;
-
-allow untrusted_app unlabeled:dir { search read write getattr };
-allow untrusted_app unlabeled:file { lock open read write getattr };
-
-# Read and write /data/data subdirectory.
-allow untrusted_app { system_app_data_file app_data_file }:dir { getattr read search };
-
-allow untrusted_app { system_app_data_file app_data_file }:file { getattr read write };
-
-allow untrusted_app subtitle_service:service_manager { find };
-allow untrusted_app unlabeled:filesystem getattr;
-allow untrusted_app proc_sysrq:file { read getattr };
-allow untrusted_app kernel:file { open read getattr };
-allow untrusted_app kernel:dir { search getattr };
-allow untrusted_app pppoe_wrapper:file { open read getattr };
-allow untrusted_app pppoe_wrapper:dir { search getattr };
-allow untrusted_app zygote:file { open read getattr };
-allow untrusted_app zygote:dir { search getattr };
-allow untrusted_app gatekeeperd:file { open read getattr };
-allow untrusted_app gatekeeperd:dir { search getattr };
-allow untrusted_app imageserver:file { open read getattr };
-allow untrusted_app imageserver:dir { search getattr };
-allow untrusted_app system_control:file { open read getattr };
-allow untrusted_app system_control:dir { search getattr };
-allow untrusted_app keystore:file { open read getattr };
-allow untrusted_app keystore:dir { search getattr };
-allow untrusted_app installd:file { open read getattr };
-allow untrusted_app installd:dir { search getattr };
-allow untrusted_app mediaserver:file { open read getattr };
-allow untrusted_app mediaserver:dir { search getattr };
-allow untrusted_app drmserver:file { open read getattr };
-allow untrusted_app drmserver:dir { search getattr };
-allow untrusted_app netd:file { open read getattr };
-allow untrusted_app netd:dir { search getattr };
-allow untrusted_app surfaceflinger:file { open read getattr };
-allow untrusted_app surfaceflinger:dir { search getattr };
-allow untrusted_app servicemanager:file { open read getattr };
-allow untrusted_app servicemanager:dir { search getattr };
-allow untrusted_app lmkd:file { open read getattr };
-allow untrusted_app lmkd:dir { search getattr };
-allow untrusted_app shell:file { open read getattr };
-allow untrusted_app shell:dir { search getattr };
-allow untrusted_app healthd:file { open read getattr };
-allow untrusted_app healthd:dir { search getattr };
-allow untrusted_app vold:file { open read getattr };
-allow untrusted_app vold:dir { search getattr };
-allow untrusted_app logd:file { open read getattr };
-allow untrusted_app logd:dir { search getattr };
-allow untrusted_app ueventd:file { open read getattr };
-allow untrusted_app ueventd:dir { search getattr };
-allow untrusted_app init:file { open read getattr };
-allow untrusted_app init:dir { search getattr };
-allow untrusted_app system_server:file { open read getattr };
-allow untrusted_app system_server:dir { search getattr };
-allow untrusted_app dhcp:file { open read getattr };
-allow untrusted_app dhcp:dir { search getattr };
-allow untrusted_app sdcardd:file { open read getattr };
-allow untrusted_app sdcardd:dir { search getattr };
-allow untrusted_app platform_app:file { open read getattr };
-allow untrusted_app platform_app:dir { search getattr };
-allow untrusted_app system_app:file { open read getattr };
-allow untrusted_app system_app:dir { search getattr };
-allow untrusted_app usbpm:file { open read getattr };
-allow untrusted_app usbpm:dir { search getattr };
-
-allow untrusted_app fuseblk:dir { search };
-allow untrusted_app fuseblk:file { read open };
-allow untrusted_app dex2oat:dir { getattr };
-allow untrusted_app storage_stub_file:dir { getattr };
+allow untrusted_app vendor_file:file { getattr read open execute };
+allow untrusted_app sysfs_zram:file { read open getattr };
+allow untrusted_app sysfs_zram:dir { search };