From 336145916b821be60c2d91598d87dc1dd9fc1fd0 Mon Sep 17 00:00:00 2001 From: Juan Rong Date: Sat, 18 Jan 2020 10:08:58 +0800 Subject: [PATCH] [ALPS04360439] [EM]sensor move to vendor partition Move sensor to vendor partition.It needs vendor_app has permission to read/write sesor related files. MTK-Commit-Id: 6f30fb87973b05cff81ec3851192125b4eada182 Change-Id: I95fe0601e155319108bfe68b47441b76cbb0b817 CR-Id: ALPS04360439 Feature: Engineering Mode --- non_plat/radio.te | 7 ------- non_plat/vendor_app.te | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/non_plat/radio.te b/non_plat/radio.te index 139abba..bb32b94 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -17,13 +17,6 @@ allow radio surfaceflinger:fifo_file { rw_file_perms }; allow radio debugfs_usb20_phy:file { read open getattr }; allow radio debugfs_usb20_phy:dir search; -# Date : 2016/06/28 -# Operation : IT -# Purpose : for engineermode sensor can work normal -allow radio als_ps_device:chr_file { read open ioctl }; -allow radio gsensor_device:chr_file { read open ioctl }; -allow radio gyroscope_device:chr_file { read ioctl open }; - # Date : WK14.38 2016/06/28 # Operation : Migration # Purpose : for engineermode diff --git a/non_plat/vendor_app.te b/non_plat/vendor_app.te index 75e27fa..932381d 100644 --- a/non_plat/vendor_app.te +++ b/non_plat/vendor_app.te @@ -72,3 +72,10 @@ allow vendor_app media_rw_data_file:file { create_file_perms }; # eng mode camera - save iamges files and log files on external storage allow vendor_app vendor_data_file:dir { create_dir_perms }; allow vendor_app vendor_data_file:file { create_file_perms }; + +# Date : 2019/03/25 +# Operation : IT +# Purpose : for engineermode sensor can work normal +allow vendor_app als_ps_device:chr_file r_file_perms; +allow vendor_app gsensor_device:chr_file r_file_perms; +allow vendor_app gyroscope_device:chr_file r_file_perms;