96 Commits

Author SHA1 Message Date
Aayush Gupta
901eb61127 non_plat: Label ipsec_mon binary and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I0bb583b380590ef753fbdd949e92a34f505b6ce1
2020-12-31 23:28:10 +05:30
Aayush Gupta
9a3e56224e non_plat: Introduce new label for setting mtk specific camera properties
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1ce016d9e3a9cb7cda1170c830c7edd327528610
2020-12-28 00:39:45 +05:30
Vinay Gannevaram
b8d409439e sepolicy : Add rule to set property for wlan driver/fw ver info
wlan driver/fw version are set at property at enforcing mode.
Add rules to allow to set wlan driver/fw version info

CRs-Fixed: 2460816
Change-Id: Ic0bb570cd53fe450512496c5864f432ce3219bbe
2020-12-26 16:28:02 +05:30
Sheldon Wang
1482d6d9af [ALPS04817575] Add system property only for MTK system image
[Solution]
When run VTS test, theres no WOS module due to its AOSP system image.
So we need to skip the edpg related function.

MTK-Commit-Id: 8f8e5faded18d6bcee1eb96dba37a2d708f3995f

Change-Id: I9cee39eea1dd75bccf6cc442f16ed3fe4e72ae95
CR-Id: ALPS04817575
Feature: WiFi Calling Service
2020-01-18 10:21:38 +08:00
Leo Hsieh
a61938f39c [ALPS04740849] Add sepolicy for 3-apk
Add sepolicy ro.vendor.mtk_nn.option for 3-apk.

MTK-Commit-Id: fab2092fdc76055e29ff31c900da0bee29f7ac5e

Change-Id: I0b44a239fb76f3cde51fa0e992023fbf34e4a57f
CR-Id: ALPS04740849
Feature: NeuroPilot
2020-01-18 10:19:23 +08:00
gtk_qingyunmei
060eb640e1 [ALPS04707246] porting hdmi hidl service
Refactoring hdmi service as hidl service,so that
other process can call hdmi services API.
Add Selinux permission for hdmi hidl service.

MTK-Commit-Id: 0ecef9e52ce92b52413fbecd2b5be492806b8f53

Change-Id: I7f1c5f48d4ae9777acc80436a4af801f32969fac
CR-Id: ALPS04707246
Feature: [Module]Settings
2020-01-18 10:17:54 +08:00
Ben Lai
49506ee5cc [ALPS04669137] wlan: Add support for saps property
Add support for saps property.

MTK-Commit-Id: f5047d8b7abbc4f4adce38301741a91ba53895ca

Change-Id: I9bfaccde83cbd3032714ff09baf974622b67eeae
CR-Id: ALPS04669137
Feature: Wi-Fi Tethering
2020-01-18 10:17:46 +08:00
mtk14318
0a8da1b15e [ALPS04417009] Enable SELinux Property
vendor.debug.sf.hdr_enable

MTK-Commit-Id: 166ff42973f20061b1a449115ca4b7a6e5663a68

Change-Id: I04b02f334dd51821698a9875e010a92d4d6a1c2b
CR-Id: ALPS04417009
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:17:01 +08:00
chun-yi lin
8700268780 [ALPS04331131] Wlan: wlan_assistant selinux
For Meta mode, we use the property to notify meta tool that NVRAM
has read. Set the selinux rule for this property.

MTK-Commit-Id: 0cafb33d13392e6a676930814e3df3ba27fb146b

Change-Id: I62ca6e004861720eb43b90ace6f5fff85da49298
Signed-off-by: Facer Pei <facer.pei@mediatek.com>
CR-Id: ALPS04331131
Feature: [Module]Wi-Fi Driver
(cherry picked from commit bf9cdf5f2598cecdc0b5f4fd1b1016b9fd77dfd6)
(cherry picked from commit a846ce17a1eedc26d31b6c82b2583f58cd8e53f5)
(cherry picked from commit 8f6643f055c69d5b45e17048ce9a76311d6fdd92)
2020-01-18 10:14:46 +08:00
Ian-Y Chen
9fcf99ba09 [ALPS04328846] power: refine sepolicy
[Detail]
1. Add prefix PERFMGR for performance related ioctl
2. Add property permission for PowerHAL

MTK-Commit-Id: 91ef99a47ee2de3c48426298c9a67d5e4dd10a6b

Change-Id: I5979aefc7fb110ee540425bc53896babdcac08bd
CR-Id: ALPS04328846
Feature: [Module]PowerHAL
2020-01-18 10:13:32 +08:00
Robbin Chiu
7238f50dd0 [ALPS04419955] WMT: stp_dump moving to vendor
[Solution]
Set SEPolicy for stp_dump

MTK-Commit-Id: 5caf8dd3780faaf3c8933406756ef7298560590c

Change-Id: I3f2ac66941eb5f54f4b2079fbeef15e1ebe1e2b6
Signed-off-by: Robbin Chiu <robbin.chiu@mediatek.com>
CR-Id: ALPS04419955
Feature: [Module]WMT Driver
2020-01-18 10:12:09 +08:00
Sammy-CY Yang
1888305f75 [ALPS04409296] add BT enable SAP profile policy
Enable BT SAP profile by properties rather than static resource overlay in Andorid Q.
Add the selinux rule for this property.

MTK-Commit-Id: 32eeec317227518f6be67c8bacc1aef03a413568

Change-Id: Ide8429240862eb79b24a352272ceaeae3fd09b2a
CR-Id: ALPS04409296
Feature: BT AOSP
2020-01-18 10:10:23 +08:00
Ju-Yi Cheng
2a4126739f [ALPS04384473] Remove relabel graphics_debug_prop
[Detail] No need to relabel graphics_debug_prop since
no process need to setproperty in runtime

MTK-Commit-Id: d7f0964bc3a857471cd9891ec64dcb225c886d0f

Change-Id: I59baa11790e0dea1652097c6fe0127a25406d046
CR-Id: ALPS04384473
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:10:07 +08:00
Miles Chuang
6594dfe902 [ALPS04385399] Separate sepolicy for BASIC/BSP project
[Detail]
Separate sepolicy for BASIC/BSP project
So we need to modify CXP Selinux setting.
1. Move type definition "usp_srv_prop" from bsp to basic.
2. Remove type "usp_prop" which phased out.

MTK-Commit-Id: e6e9cd8c817fafcdf1f4083be515e781f7658f10

Change-Id: I3c95f5bf2bc2992a141a141dbaa6a5cfe0ed3407
CR-Id: ALPS04385399
Feature: Regional Carrier Express Pack
2020-01-18 10:09:55 +08:00
Shanshan Guo
427c135bd6 [ALPS04340791] SEPOLICY: workaround fix BASIC build error
[Detail]
Only BASIC Sepolicy need to be applyed for BASIC,
we separate basic/bsp sepolicy for BASIC.
This workaround is for fixing the build errors that
cause by the declarations were defined in bsp/ dir
and neverallow rules.

MTK-Commit-Id: f1ed54e84b85f73e20dcc8c2ac5f0c42fddedc77

Change-Id: I568873fcc272d04b018efc4be00924b751bb3775
CR-Id: ALPS04340791
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:09:28 +08:00
Juan Rong
ae82eac4a3 [ALPS04202940] Xcap: use raw url
set/get property for whether xcap use raw url

MTK-Commit-Id: d6f9cdb5a6752582a5effd143ea77e6ca44c2ca6

Change-Id: I093c419181606cd8adb41449b02ff9c5cfa42b51
CR-Id: ALPS04202940
Feature: IMS SS
(cherry picked from commit 8e45ece0df6b2d8619f461afde28dcbb163dbab2)
2020-01-18 10:07:53 +08:00
Che-Jui Chang
8b4db85b56 [ALPS04115707] vow: add voice recognizes property in sepolicy
add policy so that can get property

MTK-Commit-Id: b94dbc087fd5d1b50ea27bd23f968b19c1f85eae

Change-Id: I36523eaf9db7379500ac8fbd700f3d92dfb2a77e
Signed-off-by: Che-Jui Chang <che-jui.chang@mediatek.com>
CR-Id: ALPS04115707
Feature: MagiEar-Voice Wakeup
2020-01-18 10:07:27 +08:00
Tim Chang
7df888a9d5 [ALPS04056430] WMT:Move coredump mode property to system partition
Allow system process to set the property,
"persist.vendor.connsys.coredump.mode"

MTK-Commit-Id: c066127efb1903b15e97498ae32b28af2efc091e

Change-Id: Ia818c7e517e4da479bb7ad1c4fdbc382a1423659
CR-Id: ALPS04056430
Feature: [Module]WMT Driver
2020-01-18 10:07:23 +08:00
dengwei.xu
19c5ed689f [ALPS03992559] EM hidl V1.1 selinux
Add the selinux labels

MTK-Commit-Id: 924bb82662abe532ec2e7d883e944547eda8efb2

Change-Id: I9a1e602f33dd1f76970f4d128cd6e25bb9643aea
CR-Id: ALPS03992559
Feature: Engineering Mode
2020-01-18 10:07:11 +08:00
dengwei.xu
dbd6c0abd4 [ALPS04083174] EM telephony RF reset - selinux
Add the selinux support

MTK-Commit-Id: 31d37971bece408a6fa08d20009db9bb9bb94346

Change-Id: I7d965a3cd40e8526317596c188fb07acdb37b0f8
CR-Id: ALPS04083174
Feature: Engineering Mode
2020-01-18 10:06:50 +08:00
Junjie Hu
6e969c94aa [ALPS03907306] malloc debug unwind backtrace switch
[Detail]user can setprop by adb shell to switch unwind
backtrace runtime

MTK-Commit-Id: a2754d46b96648f748fde4677ec031dbe78ed984

Change-Id: Ida29eb32bdbb843593b3500eabc90c98e9278aea
CR-Id: ALPS03907306
Feature: Android Exception Engine(AEE)
2020-01-18 10:06:35 +08:00
yu.chen
5967cb46f7 [ALPS03894758] Enable Fullscreen modes systemproperty
[Detail]
enable ro.vendor.fullscreen_switch

MTK-Commit-Id: a8a6a1df9e4abd965da8524b04d54195a9e155c6

Change-Id: I81aedc738c173ed0540a6b1fadceb7919c482f1f
CR-Id: ALPS03894758
Feature: Fullscreen Switch
2020-01-18 10:06:24 +08:00
louis.peng
83cba54243 [ALPS04055044] Set supplementary service vendor property through HIDL
[Detail]
Add API to set vendor property in RILD

MTK-Commit-Id: 48b137c317e4baf195b87f767702b1b4956e7696

Change-Id: I4d03c4affb0f1a2a96b8a8cea867b46750d2132a
CR-Id: ALPS04055044
Feature: IMS SS
2020-01-18 10:06:16 +08:00
mtk14318
99dcd98d32 [ALPS04034495] Latch unsignaled buffer
[Detail]
Read latch unsignaled buffer by vendor property.

[Solution]
Read latch unsignaled buffer by vendor property.

MTK-Commit-Id: 62e601385bce5a890d9d46ce81318e4d5c19e643

Change-Id: I5737f589a3d3bb48ad5a30ee2ef670de602b30c3
CR-Id: ALPS04034495
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:05:54 +08:00
mtk13799
a38199a49e [ALPS04030563] add antutu blocking property in selinux
[Detail] selinux permission denied for "ro.vendor.net.upload.benchmark.default"

[Solution] add "ro.vendor.net.upload.benchmark.default" property in selinux

MTK-Commit-Id: 67b0ca896cbaed21ecc0343528caa5829ec3a5e4

Change-Id: I6b0afee632d794dd1fc2138cf442c046a5b662d1
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS04030563
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 10:05:50 +08:00
Dian Wang
e375cf72b0 [ALPS04017538] P meta ATM porting
[Detail] te file modify

MTK-Commit-Id: cd03794b7dad769d35ed200fde6bcc269ab8f17a

Change-Id: Ic81fe56fc38c55b91ed415321c93213f25d6ff21
CR-Id: ALPS04017538
Feature: SP META Tool
(cherry picked from commit 7ba5340de00022ceb3daa2922f4d3305ab13fedc)
2020-01-18 10:05:42 +08:00
yu.chen
054e883e20 [ALPS04014599] Enable App Resolution Tuner systemproperty
[Detail]
enable ro.vendor.app_resolution_tuner
persist.vendor.dbg.disable.art

MTK-Commit-Id: 6602d8315e245d601a27bb01f7f24685736a42c2

Change-Id: I1907fa852ce7c00a8349c3cf97587fee1bd037b3
CR-Id: ALPS04014599
Feature: APP Resolution Tuner
2020-01-18 10:05:29 +08:00
yu.chen
9611223a28 [ALPS04027708] Enable ANR systemproperty
[Detail]
Enable ANR systemproperty
persist.vendor.dbg.anrflow
persist.vendor.anr.
vendor.anr.autotest

MTK-Commit-Id: eb6a6e8f3803b41347567178f7649ef5c9d2f80e

Change-Id: Ibb530a1d9f5ceca67e39fe2c6980e6807e457b86
CR-Id: ALPS04027708
Feature: ANR Debugging Mechanism Enhancements
2020-01-18 10:05:22 +08:00
yuhui.zhang
3215feaff6 [ALPS04013705] EM: use wmt_prop for wcn core dump
[Detail]
Use default wmt_prop for EM wcn core dump settings

MTK-Commit-Id: f0442dcc10ce57fc961038e346cb442212d19dd8

Change-Id: I72f73131b32f382330df6178a0d388b11953c68a
CR-Id: ALPS04013705
Feature: Engineering Mode
2020-01-18 10:05:02 +08:00
mtk13858
d7105292b6 [ALPS04013134] CCCI:fix android p selinux issue v2
[Detail]
fix code defect to avoid vts fail

MTK-Commit-Id: 8910b5c642fd4ebb0910eda3f6b49c38f91f4483

Change-Id: I95cd0a11b4bc9d8145b7017ffbf4b171751ef32c
Signed-off-by: mtk13858 <derong.liu@mediatek.com>
CR-Id: ALPS04013134
Feature: Modem Interface Driver
2020-01-18 10:04:57 +08:00
mtk13858
d2412a883b [ALPS04013134] CCCI:fix android p selinux issue
[Detail]
1.add label to property init.svc.emdlogger1
2.allow ccci_mdinit access get sys boot mode

MTK-Commit-Id: bc7ec844660c91ba7bb5bdc25ec176d3d2a2ec14

Change-Id: I32df4b62b474eca193f9a719e9b559597acc1ab6
Signed-off-by: mtk13858 <derong.liu@mediatek.com>
CR-Id: ALPS04013134
Feature: Modem Interface Driver
2020-01-18 10:04:45 +08:00
Josh-YC Liu
1990000501 [ALPS04010443] AAL: add set property in SELinux
Add new AAL API for set function with property.

MTK-Commit-Id: 9fa5437f96066104e04ebb655e39d24db2935080

Change-Id: Iab58a2ecd919ceadd9b8586d2b52720c176ded01
CR-Id: ALPS04010443
Feature: Ambient Light Adaptive Luma
2020-01-18 10:04:41 +08:00
Juan Rong
de37c93d5f [ALPS03886705] EM:hardware-testing property hild
hardware-testing usb/uartusbswitch need hild to set property

MTK-Commit-Id: 18147a06185f3315cfa6bd0790b7539063910c4a

Change-Id: Id2bafe2df4ef44d1b0e4eaac2fe5b10483a080ab
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 10:04:36 +08:00
Lili Lin
21a818c683 [ALPS04001212] Revise "[ALPS04001212] EM telephony system write property"
Change mtk_core_property_type to extended_core_property_type
to resolve build break.

MTK-Commit-Id: 5b1eb96784b9dc89e263840466d396bda39651a7

Change-Id: Ifc31512cec1f5098f49a43eae7caa2d5cbdf4a88
CR-Id: ALPS04001212
Feature: Engineering Mode
2020-01-18 10:04:32 +08:00
dengwei.xu
4f6395a554 [ALPS04001212] EM telephony system write property
Add the system write and system read property selinux rights

MTK-Commit-Id: 432c666c3d1275c3c7d7f0d88b4fcf69650314bf

Change-Id: I835af9bfdf0b0ac039a4b04498b36f3feb791a12
CR-Id: ALPS04001212
Feature: Engineering Mode
2020-01-18 10:04:30 +08:00
lena wang
3f037eeb36 [ALPS03856250] SIM:add policy for system set prop
Config property "vendor.gsm.sim.operator.default-name" as:
1. system image could set but vendor image cant.
2. System could read.

MTK-Commit-Id: 79e9cc75b8937a0eeb1e0a34af2095fad7182388

Change-Id: Ib14716449080c17dbd98e681215e1d89d96029a8
CR-Id: ALPS03856250
Feature: SIM
(cherry picked from commit ef7ae758c93dc94fec1f7f23c877d86a254d035d)
2020-01-18 10:04:28 +08:00
dengwei.xu
12c8c8e1f4 [ALPS03992559] EM HIDL - selinux
Add selinux support for HIDL

MTK-Commit-Id: f58b6fd1c6c053780475ad44ac648f6231af0d94

Change-Id: I77a9bdffbcb8b837e78055ef8bfb9b9d328232b2
CR-Id: ALPS03992559
Feature: Engineering Mode
2020-01-18 10:04:08 +08:00
lokesh
a7ac10eabf [ALPS03870695] Relabel bootanim property
modify bootanim and mtkbootanim selinux file

MTK-Commit-Id: 499216aca19a337156ad7b83beb93dae5dc0f009

Change-Id: Ifccc14d4f8d410789e01730aa4be82c423a19975
CR-Id: ALPS03870695
Feature: Boot Animation
(cherry picked from commit 05973051a0e2ae272a9ecfd511e088a33f9f54b1)
2020-01-18 10:03:55 +08:00
Ruina Liu
4d3273bbcc [ALPS03902630] Fix property type of MTK Bluetooth
Google has new property limitation, neverallow coredomain
from writing vendor properties.
Change the type from mtk_core_property_type to
extended_core_property_type

MTK-Commit-Id: d430f6e975a68837ae7c95be664f9004149a6852

Change-Id: I24c634223eb40fc4f28934cdcacb26ea94b0d4f6
CR-Id: ALPS03902630
Feature: BT AOSP
2020-01-18 10:03:37 +08:00
mtk11285
eb025d3be3 [ALPS03948310] vendor/system property split
[Detail]
1. vendor/system property split
2. add selinux rule about aee hidl service

MTK-Commit-Id: 4e654c789c95ca8851d8aaae2c643a08a00bb4e0

Change-Id: Ifc8eed74558a3ae83789798e99e21eafead2089b
CR-Id: ALPS03948310
Feature: Android Exception Engine(AEE)
(cherry picked from commit 8b81da18cfa29378d01ebf5be9b39e641a202c64)
2020-01-18 10:03:12 +08:00
Yuxian Xu
2a22f85be4 [ALPS03976171] fix: Mobilelog writing vendor property
[Detail]
make Mobilelog its own properties only used in system partition

MTK-Commit-Id: 98c61ef31a7a7a09bed1c492a9dc1e7c1f12c47e

Change-Id: Iceea093a055817f4ccc8350c3543433b83ecc2f2
CR-Id: ALPS03976171
Feature: Mobile Log Tool
2020-01-18 10:02:44 +08:00
Dengwei Xu
3a55affee9 Merge "[ALPS03914002] EM: remove unused sepolicy rules" into alps-trunk-p0.basic
Change-Id: I94b512b901b9ea9b4f78367e93b3d990f8cd3bd1
MTK-Commit-Id: 000f7d6d882c408fe8b5d8bc82f003cb8acb060a
2020-01-18 10:02:12 +08:00
yuhui.zhang
51e62850d5 [ALPS03914002] EM: remove unused sepolicy rules
[Detail]
1. Remove mnld_prop for using hidl
2. Remove bt ssp debug mode for function removing

MTK-Commit-Id: 7b69d50028b1f3543596c1cb7c55f3e0bf43d5a4

Change-Id: I34618a2f4347e56d825fe86ef7084aeaa95b0ebc
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 10:02:10 +08:00
mtk13799
15ff7150ff [ALPS03886692] property rename for Android P
[Detail]property rename for Android P

MTK-Commit-Id: b3bfff5f029e5e71dc9c47cd37102f81dd484d69

Change-Id: I2d1cbc4f2efcf554198b442b3e5a39311ed07e85
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03886692
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 10:02:05 +08:00
Dengwei Xu
db29d16fa0 Merge "[ALPS03830074] EM neverallow coredomain from writing vendor properties" into alps-trunk-p0.basic
Change-Id: I88bf383720d971ab4070bcca34a01fbbd747cd78
MTK-Commit-Id: eaa3ec3e8f8ffbbbd55affa62022a7e7e7ff3487
2020-01-18 10:02:00 +08:00
dengwei.xu
b189bd2aff [ALPS03830074] EM neverallow coredomain from writing vendor properties
Change to extend_core_property_type to avoid broken neverallow rule

MTK-Commit-Id: 4a9a5f489ea8202fd9daa9356bad00b3402d3ba4

Change-Id: I4bcf45b80eb77a30403d57841c355a24b327f8cb
CR-Id: ALPS03830074
Feature: Engineering Mode
2020-01-18 10:01:58 +08:00
mtk13799
86ea78a67a [ALPS03886692] property rename for Android P
[Detail]property rename for Android P

MTK-Commit-Id: 8cc2c773156fcfa1757a261b960f88d7a8b9d4f6

Change-Id: I42fab46ce67a240d619e0a74cb7fa8834ac74bc6
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03886692
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 10:01:57 +08:00
Lili Lin
2197275e79 [ALPS03934986] Remove un-renamed properties
Since Android P, all properties under non_plat/property_contexts
should follow naming rule to add "vendor" prefix, otherwise
VTS will fail.

MTK-Commit-Id: 4563796d8ea83f170097b1ad8fdc3bae0cbae5a1

Change-Id: I0315ae6beefc6f4dd97bf79d217c82b4b7c281e5
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:01:54 +08:00
Kaiwen Liu
6a6892c1e2 Merge "[ALPS03974555] neverallow coredomain from writing vendor properties" into alps-trunk-p0.basic
Change-Id: I8768b6599b9005b3d439e797e575c415b6e60d96
MTK-Commit-Id: 9833797552e88afb947ba1de154c8d1bf1d2e917
2020-01-18 10:01:14 +08:00
Yu-Hua.Huang
3ca7933c55 [ALPS03974555] neverallow coredomain from writing vendor properties
Remove uce property to compliance google new rule on android P

MTK-Commit-Id: d5819765a722ab16504011bdc12797e72576b6df

Change-Id: I91f011952ac7e6272700de5042fb776ad0f497f9
CR-Id: ALPS03974555
Feature: UCE, User Capability Exchange
2020-01-18 10:01:11 +08:00