diff --git a/non_plat/device.te b/non_plat/device.te index 5386d55..ef1cd6a 100644 --- a/non_plat/device.te +++ b/non_plat/device.te @@ -84,6 +84,7 @@ type CAM_CAL_DRV1_device, dev_type; type CAM_CAL_DRV2_device, dev_type; type MTK_SMI_device, dev_type; type mtk_cmdq_device, dev_type; +type mtk_mdp_device, dev_type; type mtk_rrc_device, dev_type; type ebc_device, dev_type; type vow_device, dev_type; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index d160466..e0f45d4 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -200,6 +200,7 @@ /dev/mtk_sched(/.*)? u:object_r:mtk_sched_device:s0 /dev/MTK_SMI(/.*)? u:object_r:MTK_SMI_device:s0 /dev/mtk_cmdq(/.*)? u:object_r:mtk_cmdq_device:s0 +/dev/mdp_sync(/.*)? u:object_r:mtk_mdp_device:s0 /dev/mtk_rrc(/.*)? u:object_r:mtk_rrc_device:s0 /dev/mtk_dfrc(/.*)? u:object_r:mtk_dfrc_device:s0 /dev/mt-mdp(/.*)? u:object_r:mt_mdp_device:s0 diff --git a/non_plat/hal_graphics_composer_default.te b/non_plat/hal_graphics_composer_default.te index 2e304f5..88a550c 100644 --- a/non_plat/hal_graphics_composer_default.te +++ b/non_plat/hal_graphics_composer_default.te @@ -44,3 +44,8 @@ binder_call(hal_graphics_composer_default, mtk_hal_power) # Purpose: Allow to access property set_prop(hal_graphics_composer_default, graphics_hwc_pid_prop) get_prop(hal_graphics_composer_default, graphics_hwc_pid_prop) + +# Date : WK18.03 +# Purpose: Allow to access property dev/mdp_sync +#============= hal_graphics_composer_default ============== +allow hal_graphics_composer_default mtk_mdp_device:chr_file { read write open ioctl }; \ No newline at end of file diff --git a/prebuilts/api/26.0/nonplat_sepolicy.cil b/prebuilts/api/26.0/nonplat_sepolicy.cil index 1cf7bbb..e9299ae 100755 --- a/prebuilts/api/26.0/nonplat_sepolicy.cil +++ b/prebuilts/api/26.0/nonplat_sepolicy.cil @@ -18,7 +18,7 @@ (genfscon proc /ged (u object_r proc_ged ((s0) (s0)))) (genfscon rawfs / (u object_r rawfs ((s0) (s0)))) (roletype r domain) -(typeattributeset dev_type (device_26_0 alarm_device_26_0 ashmem_device_26_0 audio_device_26_0 audio_timer_device_26_0 audio_seq_device_26_0 binder_device_26_0 hwbinder_device_26_0 vndbinder_device_26_0 block_device_26_0 camera_device_26_0 dm_device_26_0 keychord_device_26_0 loop_control_device_26_0 loop_device_26_0 pmsg_device_26_0 radio_device_26_0 ram_device_26_0 rtc_device_26_0 vold_device_26_0 console_device_26_0 cpuctl_device_26_0 fscklogs_26_0 full_device_26_0 gpu_device_26_0 graphics_device_26_0 hw_random_device_26_0 input_device_26_0 kmem_device_26_0 port_device_26_0 log_device_26_0 mtd_device_26_0 mtp_device_26_0 nfc_device_26_0 ptmx_device_26_0 kmsg_device_26_0 null_device_26_0 random_device_26_0 sensors_device_26_0 serial_device_26_0 socket_device_26_0 owntty_device_26_0 tty_device_26_0 video_device_26_0 vcs_device_26_0 zero_device_26_0 fuse_device_26_0 iio_device_26_0 ion_device_26_0 qtaguid_device_26_0 watchdog_device_26_0 uhid_device_26_0 uio_device_26_0 tun_device_26_0 usbaccessory_device_26_0 usb_device_26_0 properties_device_26_0 properties_serial_26_0 i2c_device_26_0 hci_attach_dev_26_0 rpmsg_device_26_0 root_block_device_26_0 frp_block_device_26_0 system_block_device_26_0 recovery_block_device_26_0 boot_block_device_26_0 userdata_block_device_26_0 cache_block_device_26_0 swap_block_device_26_0 metadata_block_device_26_0 misc_block_device_26_0 ppp_device_26_0 tee_device_26_0 kb_block_device_26_0 dkb_block_device_26_0 devmap_device ttyMT_device ttySDIO_device vmodem_device stpwmt_device wmtdetect_device wmtWifi_device stpbt_device stpant_device fm_device stpgps_device pmem_multimedia_device mt6516_isp_device mt6516_IDP_device mt9p012_device mt6516_jpeg_device FM50AF_device DW9714AF_device DW9814AF_device AK7345AF_device DW9714A_device LC898122AF_device LC898212AF_device BU6429AF_device AD5820AF_device DW9718AF_device BU64745GWZAF_device MAINAF_device MAIN2AF_device SUBAF_device M4U_device_device Vcodec_device MJC_device smartpa_device smartpa1_device uio0_device xt_qtaguid_device rfkill_device sw_sync_device sec_device hid_keyboard_device btn_device uinput_device TV_out_device camera_sysram_device camera_isp_device camera_dpe_device camera_tsf_device camera_fdvt_device camera_rsc_device camera_gepf_device camera_wpe_device camera_owe_device camera_pipemgr_device ccu_device vpu_device mtk_jpeg_device kd_camera_hw_device kd_camera_flashlight_device flashlight_device kd_camera_hw_bus2_device MATV_device mt_otg_test_device mt_mdp_device mtkg2d_device misc_sd_device mtk_sched_device ampc0_device mmp_device ttyGS_device CAM_CAL_DRV_device CAM_CAL_DRV1_device CAM_CAL_DRV2_device MTK_SMI_device mtk_cmdq_device mtk_rrc_device ebc_device vow_device MT6516_H264_DEC_device MT6516_Int_SRAM_device MT6516_MM_QUEUE_device MT6516_MP4_DEC_device MT6516_MP4_ENC_device sensor_device aed_device ccci_device ccci_monitor_device gsm0710muxd_device eemcs_device emd_device mt6605_device st21nfc_device exm0_device mmcblk_device BOOT_device MT_pmic_device aal_als_device accdet_device android_device bmtpool_device bootimg_device btif_device cache_device cpu_dma_latency_device dummy_cam_cal_device ebr_device expdb_device fat_device logo_device loop-control_device mbr_device misc_device misc2_device mtfreqhopping_device mtgpio_device mtk_kpd_device network_device nvram_device pmt_device preloader_device pro_info_device protect_f_device protect_s_device psaux_device ptyp_device recovery_device sec_ro_device seccfg_device tee_part_device snapshot_device tgt_device touch_device tpd_em_log_device ttyp_device uboot_device uibc_device usrdata_device zram0_device hwzram0_device RT_Monitor_device kick_powerkey_device agps_device mnld_device geo_device mdlog_device md32_device scp_device sspm_device etb_device MT_pmic_adc_cali_device mtk-adc-cali_device MT_pmic_cali_device otp_device otp_part_block_device qemu_pipe_device icusb_device irtx_device pmic_ftm_device charger_ftm_device shf_device keyblock_device offloadservice_device ttyACM_device hrm_device lens_device nvdata_device nvcfg_device expdb_block_device misc2_block_device logo_block_device para_block_device tee_block_device seccfg_block_device secro_block_device preloader_block_device lk_block_device protect1_block_device protect2_block_device keystore_block_device oemkeystore_block_device sec1_block_device md1img_block_device md1dsp_block_device md1arm7_block_device md3img_block_device mmcblk1_block_device mmcblk1p1_block_device bootdevice_block_device odm_block_device oem_block_device vendor_block_device dtbo_block_device spm_device persist_block_device md_block_device spmfw_block_device dsp_block_device ppl_block_device nvcfg_block_device ancservice_device mbim_device audio_ipi_device cam_vpu_block_device boot_para_block_device mtk_dfrc_device hwmsensor_device msensor_device gsensor_device als_ps_device gyroscope_device barometer_device humidity_device biometric_device m_batch_misc_device m_als_misc_device m_ps_misc_device m_baro_misc_device m_hmdy_misc_device m_acc_misc_device m_mag_misc_device m_gyro_misc_device m_act_misc_device m_pedo_misc_device m_situ_misc_device m_step_c_misc_device m_fusion_misc_device m_bio_misc_device)) +(typeattributeset dev_type (device_26_0 alarm_device_26_0 ashmem_device_26_0 audio_device_26_0 audio_timer_device_26_0 audio_seq_device_26_0 binder_device_26_0 hwbinder_device_26_0 vndbinder_device_26_0 block_device_26_0 camera_device_26_0 dm_device_26_0 keychord_device_26_0 loop_control_device_26_0 loop_device_26_0 pmsg_device_26_0 radio_device_26_0 ram_device_26_0 rtc_device_26_0 vold_device_26_0 console_device_26_0 cpuctl_device_26_0 fscklogs_26_0 full_device_26_0 gpu_device_26_0 graphics_device_26_0 hw_random_device_26_0 input_device_26_0 kmem_device_26_0 port_device_26_0 log_device_26_0 mtd_device_26_0 mtp_device_26_0 nfc_device_26_0 ptmx_device_26_0 kmsg_device_26_0 null_device_26_0 random_device_26_0 sensors_device_26_0 serial_device_26_0 socket_device_26_0 owntty_device_26_0 tty_device_26_0 video_device_26_0 vcs_device_26_0 zero_device_26_0 fuse_device_26_0 iio_device_26_0 ion_device_26_0 qtaguid_device_26_0 watchdog_device_26_0 uhid_device_26_0 uio_device_26_0 tun_device_26_0 usbaccessory_device_26_0 usb_device_26_0 properties_device_26_0 properties_serial_26_0 i2c_device_26_0 hci_attach_dev_26_0 rpmsg_device_26_0 root_block_device_26_0 frp_block_device_26_0 system_block_device_26_0 recovery_block_device_26_0 boot_block_device_26_0 userdata_block_device_26_0 cache_block_device_26_0 swap_block_device_26_0 metadata_block_device_26_0 misc_block_device_26_0 ppp_device_26_0 tee_device_26_0 kb_block_device_26_0 dkb_block_device_26_0 devmap_device ttyMT_device ttySDIO_device vmodem_device stpwmt_device wmtdetect_device wmtWifi_device stpbt_device stpant_device fm_device stpgps_device pmem_multimedia_device mt6516_isp_device mt6516_IDP_device mt9p012_device mt6516_jpeg_device FM50AF_device DW9714AF_device DW9814AF_device AK7345AF_device DW9714A_device LC898122AF_device LC898212AF_device BU6429AF_device AD5820AF_device DW9718AF_device BU64745GWZAF_device MAINAF_device MAIN2AF_device SUBAF_device M4U_device_device Vcodec_device MJC_device smartpa_device smartpa1_device uio0_device xt_qtaguid_device rfkill_device sw_sync_device sec_device hid_keyboard_device btn_device uinput_device TV_out_device camera_sysram_device camera_isp_device camera_dpe_device camera_tsf_device camera_fdvt_device camera_rsc_device camera_gepf_device camera_wpe_device camera_owe_device camera_pipemgr_device ccu_device vpu_device mtk_jpeg_device kd_camera_hw_device kd_camera_flashlight_device flashlight_device kd_camera_hw_bus2_device MATV_device mt_otg_test_device mt_mdp_device mtkg2d_device misc_sd_device mtk_sched_device ampc0_device mmp_device ttyGS_device CAM_CAL_DRV_device CAM_CAL_DRV1_device CAM_CAL_DRV2_device MTK_SMI_device mtk_cmdq_device mtk_mdp_device mtk_rrc_device ebc_device vow_device MT6516_H264_DEC_device MT6516_Int_SRAM_device MT6516_MM_QUEUE_device MT6516_MP4_DEC_device MT6516_MP4_ENC_device sensor_device aed_device ccci_device ccci_monitor_device gsm0710muxd_device eemcs_device emd_device mt6605_device st21nfc_device exm0_device mmcblk_device BOOT_device MT_pmic_device aal_als_device accdet_device android_device bmtpool_device bootimg_device btif_device cache_device cpu_dma_latency_device dummy_cam_cal_device ebr_device expdb_device fat_device logo_device loop-control_device mbr_device misc_device misc2_device mtfreqhopping_device mtgpio_device mtk_kpd_device network_device nvram_device pmt_device preloader_device pro_info_device protect_f_device protect_s_device psaux_device ptyp_device recovery_device sec_ro_device seccfg_device tee_part_device snapshot_device tgt_device touch_device tpd_em_log_device ttyp_device uboot_device uibc_device usrdata_device zram0_device hwzram0_device RT_Monitor_device kick_powerkey_device agps_device mnld_device geo_device mdlog_device md32_device scp_device sspm_device etb_device MT_pmic_adc_cali_device mtk-adc-cali_device MT_pmic_cali_device otp_device otp_part_block_device qemu_pipe_device icusb_device irtx_device pmic_ftm_device charger_ftm_device shf_device keyblock_device offloadservice_device ttyACM_device hrm_device lens_device nvdata_device nvcfg_device expdb_block_device misc2_block_device logo_block_device para_block_device tee_block_device seccfg_block_device secro_block_device preloader_block_device lk_block_device protect1_block_device protect2_block_device keystore_block_device oemkeystore_block_device sec1_block_device md1img_block_device md1dsp_block_device md1arm7_block_device md3img_block_device mmcblk1_block_device mmcblk1p1_block_device bootdevice_block_device odm_block_device oem_block_device vendor_block_device dtbo_block_device spm_device persist_block_device md_block_device spmfw_block_device dsp_block_device ppl_block_device nvcfg_block_device ancservice_device mbim_device audio_ipi_device cam_vpu_block_device boot_para_block_device mtk_dfrc_device hwmsensor_device msensor_device gsensor_device als_ps_device gyroscope_device barometer_device humidity_device biometric_device m_batch_misc_device m_als_misc_device m_ps_misc_device m_baro_misc_device m_hmdy_misc_device m_acc_misc_device m_mag_misc_device m_gyro_misc_device m_act_misc_device m_pedo_misc_device m_situ_misc_device m_step_c_misc_device m_fusion_misc_device m_bio_misc_device)) (typeattributeset domain (adbd_26_0 audioserver_26_0 blkid_26_0 blkid_untrusted_26_0 bluetooth_26_0 bootanim_26_0 bootstat_26_0 bufferhubd_26_0 cameraserver_26_0 charger_26_0 clatd_26_0 cppreopts_26_0 crash_dump_26_0 dex2oat_26_0 dhcp_26_0 dnsmasq_26_0 drmserver_26_0 dumpstate_26_0 ephemeral_app_26_0 fingerprintd_26_0 fsck_26_0 fsck_untrusted_26_0 gatekeeperd_26_0 healthd_26_0 hwservicemanager_26_0 idmap_26_0 incident_26_0 incidentd_26_0 init_26_0 inputflinger_26_0 install_recovery_26_0 installd_26_0 isolated_app_26_0 kernel_26_0 keystore_26_0 lmkd_26_0 logd_26_0 logpersist_26_0 mdnsd_26_0 mediacodec_26_0 mediadrmserver_26_0 mediaextractor_26_0 mediametrics_26_0 mediaserver_26_0 modprobe_26_0 mtp_26_0 netd_26_0 netutils_wrapper_26_0 nfc_26_0 otapreopt_chroot_26_0 otapreopt_slot_26_0 performanced_26_0 perfprofd_26_0 platform_app_26_0 postinstall_26_0 postinstall_dexopt_26_0 ppp_26_0 preopt2cachename_26_0 priv_app_26_0 profman_26_0 racoon_26_0 radio_26_0 recovery_26_0 recovery_persist_26_0 recovery_refresh_26_0 rild_26_0 runas_26_0 sdcardd_26_0 servicemanager_26_0 sgdisk_26_0 shared_relro_26_0 shell_26_0 slideshow_26_0 su_26_0 surfaceflinger_26_0 system_app_26_0 system_server_26_0 tee_26_0 tombstoned_26_0 toolbox_26_0 tzdatacheck_26_0 ueventd_26_0 uncrypt_26_0 untrusted_app_26_0 untrusted_app_25_26_0 untrusted_v2_app_26_0 update_engine_26_0 update_verifier_26_0 vdc_26_0 virtual_touchpad_26_0 vndservicemanager_26_0 vold_26_0 vr_hwc_26_0 watchdogd_26_0 webview_zygote_26_0 wificond_26_0 zygote_26_0 aee_aed_26_0 aee_aedv_26_0 audiocmdservice_atci_26_0 boot_logo_updater_26_0 cmddumper_26_0 em_svr_26_0 emdlogger_26_0 factory_26_0 fuelgauged_static_26_0 kisd_26_0 mdlogger_26_0 meta_tst_26_0 mobile_log_d_26_0 netdiag_26_0 pre_meta_26_0 thermalindicator_26_0 hal_audio_default hal_bluetooth_default hal_bootctl_default hal_camera_default hal_configstore_default hal_contexthub_default hal_drm_default hal_dumpstate_default hal_fingerprint_default hal_gatekeeper_default hal_gnss_default hal_graphics_allocator_default hal_graphics_composer_default hal_health_default hal_ir_default hal_keymaster_default hal_light_default hal_memtrack_default hal_nfc_default hal_power_default hal_sensors_default hal_thermal_default hal_tv_cec_default hal_tv_input_default hal_usb_default hal_vibrator_default hal_vr_default hal_wifi_default hal_wifi_offload_default hal_wifi_supplicant_default hostapd vendor_modprobe MtkCodecService aee_core_forwarder biosensord_nvram ccci_fsd ccci_mdinit fuelgauged fuelgauged_nvram gsm0710muxd hal_drm_widevine hal_keymaster_attestation lbs_hidl_service md_ctrl mmc_ffu mnld MPED mtk_agpsd mtk_hal_audio mtk_hal_bluetooth mtk_hal_camera mtk_hal_gnss mtk_hal_imsa mtk_hal_light mtk_hal_power mtk_hal_pq mtk_hal_sensors mtk_wmt_launcher mtkrild muxreport nvram_agent_binder nvram_daemon slpd spm_loader stp_dump3 sysenv_daemon thermal_manager thermalloadalgod vendor_app wifi2agps wmt_loader epdg_wod ipsec mtkmal volte_imcb volte_imsm_md volte_stack volte_ua wfca)) (typeattributeset fs_type (device_26_0 labeledfs_26_0 pipefs_26_0 sockfs_26_0 rootfs_26_0 proc_26_0 proc_security_26_0 proc_drop_caches_26_0 proc_overcommit_memory_26_0 usermodehelper_26_0 qtaguid_proc_26_0 proc_bluetooth_writable_26_0 proc_cpuinfo_26_0 proc_interrupts_26_0 proc_iomem_26_0 proc_meminfo_26_0 proc_misc_26_0 proc_modules_26_0 proc_net_26_0 proc_perf_26_0 proc_stat_26_0 proc_sysrq_26_0 proc_timer_26_0 proc_tty_drivers_26_0 proc_uid_cputime_showstat_26_0 proc_uid_cputime_removeuid_26_0 proc_uid_io_stats_26_0 proc_uid_procstat_set_26_0 proc_zoneinfo_26_0 selinuxfs_26_0 cgroup_26_0 sysfs_26_0 sysfs_uio_26_0 sysfs_batteryinfo_26_0 sysfs_bluetooth_writable_26_0 sysfs_leds_26_0 sysfs_hwrandom_26_0 sysfs_nfc_power_writable_26_0 sysfs_wake_lock_26_0 sysfs_mac_address_26_0 configfs_26_0 sysfs_devices_system_cpu_26_0 sysfs_lowmemorykiller_26_0 sysfs_wlan_fwpath_26_0 sysfs_vibrator_26_0 sysfs_thermal_26_0 sysfs_zram_26_0 sysfs_zram_uevent_26_0 inotify_26_0 devpts_26_0 tmpfs_26_0 shm_26_0 mqueue_26_0 fuse_26_0 sdcardfs_26_0 vfat_26_0 debugfs_26_0 debugfs_mmc_26_0 debugfs_trace_marker_26_0 debugfs_tracing_26_0 debugfs_tracing_instances_26_0 debugfs_wifi_tracing_26_0 tracing_shell_writable_26_0 tracing_shell_writable_debug_26_0 pstorefs_26_0 functionfs_26_0 oemfs_26_0 usbfs_26_0 binfmt_miscfs_26_0 app_fusefs_26_0 proc_thermal proc_mtkcooler proc_mtktz proc_slogger proc_lk_env proc_ged sysfs_therm sysfs_power_supply sysfs_fps sysfs_ccci sysfs_mmc1 sysfs_ssw sysfs_vcorefs_pwrctrl sysfs_md32 sysfs_scp sysfs_sspm sysfs_devinfo sysfs_dcm sysfs_dcs proc_icusb iso9660 rawfs fuseblk proc_mrdump_rst proc_battery_cmd debugfs_binder debugfs_blockio debugfs_fuseio debugfs_usb debugfs_fb debugfs_cpuhvfs debugfs_usb20_phy debugfs_dynamic_debug debugfs_wakeup_sources debugfs_shrinker_debug debugfs_dmlog_debug debugfs_page_owner_slim_debug debugfs_rcu debugfs_ged debugfs_gpu_mali_midgard debugfs_gpu_mali_utgard debugfs_gpu_img debugfs_ion debugfs_ion_mm_heap)) (typeattributeset contextmount_type (oemfs_26_0 app_fusefs_26_0)) @@ -2009,6 +2009,8 @@ (roletype object_r MTK_SMI_device) (type mtk_cmdq_device) (roletype object_r mtk_cmdq_device) +(type mtk_mdp_device) +(roletype object_r mtk_mdp_device) (type mtk_rrc_device) (roletype object_r mtk_rrc_device) (type ebc_device) @@ -8174,6 +8176,7 @@ (allow hal_graphics_composer_default debugfs_tracing_26_0 (file (write))) (allow hal_graphics_composer_default debugfs_tracing_26_0 (file (open))) (allow hal_graphics_composer_default mtk_cmdq_device (chr_file (ioctl read open))) +(allow hal_graphics_composer_default mtk_mdp_device (chr_file (read write open ioctl))) (allow hal_graphics_composer_default mtk_hal_power_hwservice (hwservice_manager (find))) (allow hal_graphics_composer_default mtk_hal_power (binder (call transfer))) (allow mtk_hal_power hal_graphics_composer_default (binder (transfer)))