660 Commits

Author SHA1 Message Date
Dengwei Xu
2bc7f54330 Merge "[ALPS03914002] Add property sepolicy rules" into alps-trunk-p0.basic
Change-Id: I0e7fb630495ca6513f7614d113c94a21723ca9cb
MTK-Commit-Id: 629998dd52937c731060dce948583eca2c9b7cee
2020-01-18 09:47:09 +08:00
yuhui.zhang
d442f052ed [ALPS03914002] Add property sepolicy rules
[Detail]
Add property sepolicy rules for EM

MTK-Commit-Id: 33df3c32e9e188bb4f236aac89468a932c35aa5b

Change-Id: Iac21945023892e8cfa9bec9e21bbaf70cbe547dc
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 09:46:58 +08:00
Legis Lu (呂立偉)
de90e85c3b Merge "[ALPS03917508] remvoe neverallow rule for Android P" into alps-trunk-p0.basic
Change-Id: Ie8d54070935a6337bfc1184a6c1a21077ef81d4f
MTK-Commit-Id: 85fdde1234a3f01af13aba9554a1458dcdb9bc9e
2020-01-18 09:46:53 +08:00
Legis Lu
923a563374 [ALPS03917508] remvoe neverallow rule for Android P
Update the rule of MM feature to follow Android P

MTK-Commit-Id: c1c04c0eb241b562ee73a0aaf250a8604c2a2093

Change-Id: Iac8c86c545cf53d7e837884fb34335a80ebb749e
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
CR-Id: ALPS03917508
2020-01-18 09:46:52 +08:00
Hongxu Zhao
ad28808c22 Merge "[ALPS03909938] sensor: merge sensor code" into alps-trunk-p0.basic
Change-Id: I8f52bbf569e23406d8b8555328dffbf258aeef9c
MTK-Commit-Id: be820753fd3017ef14aa260b12100e31c49b5396
2020-01-18 09:46:41 +08:00
Chang-An Chen
7cfd97a03f [ALPS03841317] add mnt_vendor mount policy
[Detail]
Add policy for mnt_vendor mount

MTK-Commit-Id: 551e110f1e6b3b7840b53152630bdbacb86b0851

Change-Id: I182f4a7ba56ca0d7dc8c152a3e3161f3e8f63638
CR-Id: ALPS03841317
Feature: eMMC Boot Up
2020-01-18 09:46:41 +08:00
Qiangming Xia
11b0934173 [ALPS03909938] sensor: merge sensor code
[Detail] Merge sensor code to P

MTK-Commit-Id: 62fa3d9f1b1a2004298003749f883ba3f693aac2

Change-Id: I72dc1f819fee5076b7524235810361aa0f01b6ba
Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com>
CR-Id: ALPS03909938
Feature: Sensor Hub
2020-01-18 09:46:33 +08:00
Max Huang
67aec004b6 Merge "[ALPS03906515] wmt: fix coredump feature" into alps-trunk-p0.basic
Change-Id: I4b8707452b181801cc7489af7aa07265dbf1f110
MTK-Commit-Id: cd264e39bc11bdd42052611c3f8b51f649509321
2020-01-18 09:46:26 +08:00
Danny Shih
0d9d373fc0 [ALPS03906515] wmt: fix coredump feature
[Detail]
1. add sepolicy for stp_dump conf path
2. add file/dir create permission

MTK-Commit-Id: 4634b563cab478ad8129b232df5d70e421eb45b4

Change-Id: I081c46777977847c97ca60ea4569519e1b3c967c
Feature: [Module]WMT Driver
Signed-off-by: Danny Shih <danny.shih@mediatek.com>
CR-Id: ALPS03906515
2020-01-18 09:46:24 +08:00
Xihou Li
7a2b47e958 [ALPS03873094] Rename mtk system properties
[Detail]
Due to new vendor system property rule, rename:
"ro.mtk_md_mims_support" to "ro.vendor.md_mims_support"

MTK-Commit-Id: 044ed790c998cc742f0beea6c8602a0adfed08f8

Change-Id: I7ebadeae292a6a814e05eb1032a7ef65938fc309
CR-Id: ALPS03873094
Feature: VoLTE (Voice over LTE)
2020-01-18 09:46:17 +08:00
ZH Chen
ce3a0f44e7 [ALPS03614388] Sepolicy: Add ttyS to sepolicy
[Detail]
Add ttyS to sepolicy

MTK-Commit-Id: f51e0700ff76c53befa5c15f1bfa6d1726905fed

Change-Id: I88aaa49b470ff98fcbd0d3720c641b74ca42bdeb
CR-Id: ALPS03614388
Feature: Headset Cable/Button Detection and Reaction
(cherry picked from commit 7e314d2dbea64a05f626115e5beccce53bb2a07f)
2020-01-18 09:46:05 +08:00
mtk10721
0db3e13890 [ALPS03911067] Fix sepolicy rules
[Detail] As title

[Solution] As title

MTK-Commit-Id: 97369eddd804591eaa5678ce60ab2c72e0f1393d

Change-Id: Iae55b41b436943d772ee8e4af9d5506c796132a1
CR-Id:ALPS03911067
Feature: Camera Application
2020-01-18 09:46:04 +08:00
Long Yang
c1564d4dd2 Merge "[ALPS03853366] Fix kisd sepolicy issue for android p[1/3]" into alps-trunk-p0.basic
Change-Id: Id7b550f47c0afcf7a1b7625275f9b898ffeac428
MTK-Commit-Id: 8077b66089b85bef61e63e73d4d827112a17c415
2020-01-18 09:46:03 +08:00
mtk14717
dd229ac506 [ALPS03853366] Fix kisd sepolicy issue for android p[1/3]
[Detail]
Move kisd from system to vendor and add keymanage hidl
[Solution]
Modify related sepolicy in device/mediatek/sepolicy/basic

MTK-Commit-Id: c1826ac0bdcc18a4e6d3298e73514801a35a09ad

Change-Id: Iee4b65ba5addc5a21de53e76d3bb092e2f37ab01
CR-Id: ALPS03853366
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:45:51 +08:00
Peng QI
7941a87b15 Merge "[ALPS03866092] BT HCI snoop log (2/2)" into alps-trunk-p0.basic
Change-Id: I57b57fd88223366357b717fb7aa9d9b2b2e31872
MTK-Commit-Id: d968e2163fad3e6912b3f9e937aa5b8a00cb8714
2020-01-18 09:45:49 +08:00
Peng Qi
bf77ac2d12 [ALPS03866092] BT HCI snoop log (2/2)
[Detail]
1. Add selinux right for MTKLogger to able to connect Bluetooth
via socket
2. Add selinux right for Bluetooth to set debug property for
MTKLogger state check

MTK-Commit-Id: db60d64b8ed91dfee48588fb5a32f2bedc2ba604

Change-Id: I31c5abb153c2bcd44a2dafca0f1f669e7310c3fe
CR-Id: ALPS03866092
Feature: BT AOSP
2020-01-18 09:45:40 +08:00
mkt15300
59d02b5260 [ALPS03852480] add sepolicy for mediacodec getattr proc_thermal
[Detail]
Add sepolicy for mediacodec since SW decoder would control CPU freq and will need to getattr proc_thermal

MTK-Commit-Id: 5ce3aa68771bdb3af46a43b1c3455d365256c99c

Change-Id: I4ca98c4ae7b06e616e19f582190826beec490a04
CR-Id: ALPS03852480
Feature: VP9 Decoder
(cherry picked from commit f173ea13c62696f30465a4cb23061e1512c0ae1f)
2020-01-18 09:45:32 +08:00
Ping-Hsun Wu
76068b3e34 Merge "[ALPS03598446] add selinux policy for mdp" into alps-trunk-p0.basic
Change-Id: I2ebb968ac2ec21c06a01da46b37379a8147fac02
MTK-Commit-Id: d54a54ba3f2d6f68124bce78c3c4a6ed32d46301
2020-01-18 09:45:31 +08:00
mtk12968
02f57d1f7c [ALPS03598446] add selinux policy for mdp
[Detail]add a mtk_mdp_device lable and a allow rule for VP

[Solution]add a mtk_mdp_device lable and a allow rule for VP

MTK-Commit-Id: d015c8eba69f036e0f4770e045b1c99bd4d6c8c5

Change-Id: I9b72360ae4a31d849d8e6ada94d4ee8c49f36b1b
CR-Id: ALPS03598446
Feature: [Module]MDP Driver
(cherry picked from commit e10343315224b4b166767bc7e19fa0b14cc06892)
2020-01-18 09:45:24 +08:00
Chaoran Zhang
48c9944e4d Merge "[ALPS03872369] Fix GPS SElinux issue" into alps-trunk-p0.basic
Change-Id: Ib5b593019f4fa41df6c367273b7110cfe1115e88
MTK-Commit-Id: de2148c92e412a42886ffb4f85773448977b3c36
2020-01-18 09:45:18 +08:00
Chaoran Zhang
82fdc764f3 [ALPS03872369] Fix GPS SElinux issue
[Detail]
Fix GPS SElinux issue
[Solution]
Fix GPS SElinux issue

MTK-Commit-Id: a8a4d1d84d26173af18eb2728fc96a8a3ad157d9

Change-Id: I9a5573cd2fad306027ba0f0ed26ca84457f39886
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:45:12 +08:00
Qiangming Xia
d01fb1d28d [ALPS03719620] vibrator: Add sepolicy rule
[Detail] Add sysfs access rules for vibrator

[Solution] Add sysfs open, read and write sepolicy
rules in hal_vibrator.te

MTK-Commit-Id: ed1f986144b0203c1ae7aaba37abab0395a6b2b7

Change-Id: Id7f177b9d3d467abbecb8bc82c6eea8ad20686d5
Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com>
CR-Id: ALPS03719620
Feature: Sensor Hub
(cherry picked from commit ecc33e156f84105aa3f4dea1c158dbc27524de56)
2020-01-18 09:45:03 +08:00
Jimmy-YJ Huang
6558fc5a6d Merge "[ALPS03737981] FPSGO: merged_hal add permission" into alps-trunk-p0.basic
Change-Id: Ica9dae2949d7d2a65fe83965e785e6e7fc1087c1
MTK-Commit-Id: acc5e4042b88679a690a6ee62c63161e158f26b0
2020-01-18 09:44:59 +08:00
Jimmy-YJ.Huang
14449e3c46 [ALPS03737981] FPSGO: merged_hal add permission
[Detail] merged_hal dont have fpsgo permission

[Solution] add permission

MTK-Commit-Id: e56babb07b17c48feab6839933472c5712c04a41

Change-Id: Ib8e69d0b44ea0605dece72c51afa01bc58f38717
CR-Id: ALPS03737981
Feature: System Performance
2020-01-18 09:44:54 +08:00
Browse Zhang
86704b8c18 [ALPS03503758] P migration selinux build failed fix
Remove dontpanic_data_file access

MTK-Commit-Id: 9f55b7e012eab9b051ed659b812da5b95865db6a

Change-Id: Ie1160eadb77a5f94e7be557e85622aac7fcb2bc7
CR-Id: ALPS03503758
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:44:46 +08:00
Chunlan Wang
8c0ef1d8e5 [ALPS03788916] fix build error
[Solution]
There are some build errors in factory.te, so fix

MTK-Commit-Id: db2e842e2fa353e987baa282d5c2026ae8395a61

Change-Id: I07d3906e8a934ae0e36b7c384208f2cfc8506a23
CR-Id: ALPS03788916
Feature: Factory Mode
2020-01-18 09:44:43 +08:00
Facer Pei
6f930d7276 Merge "[ALPS03899621] WiFi hotspot manager feature check-in" into alps-trunk-p0.basic
Change-Id: I510e7eb370f062ae840066d1efa1b985faa99d15
MTK-Commit-Id: 66c2314021d02ba40ab0a2ae9320bae6b81c427c
2020-01-18 09:44:43 +08:00
Dean Chiang
f4ebd536ea [ALPS03899621] WiFi hotspot manager feature check-in
Associate IMtkHostapd interface with hal_wifi_hostapd_hwservice

MTK-Commit-Id: 87eea14d3b0f156d954a194000d6838b7cadbf89

Change-Id: I6a55afb351bd16f8143c3df1e1e50f2128f2a14c
CR-Id: ALPS03899621
Feature: Wi-Fi Hotspot Manager
2020-01-18 09:44:30 +08:00
Chaoran Zhang
000f019f5b Merge "[ALPS03872369] Fix GPS SELinux issue" into alps-trunk-p0.basic
Change-Id: I4d4aaa624d7c033b9c8621b159eb88e8fb4b0861
MTK-Commit-Id: 2e34c10f117c7d91eb8ebf2cde8219a1c95591e1
2020-01-18 09:44:19 +08:00
Chaoran Zhang
b1c632cd74 [ALPS03872369] Fix GPS SELinux issue
[Detail]
Fix GPS SELinux issue
[Solution]
Fix GPS SELinux issue

MTK-Commit-Id: 1fb50aea5455f9c9f45e9193a8c07c57f0f636f2

Change-Id: I312c3cd8051b2705d74db7797683ba072b22e167
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:44:18 +08:00
mtk14723
681f5b91de [ALPS03900296] EM move xcap system property to bsp
[Detail]
EM move xcap system property from basic to bsp

MTK-Commit-Id: 101ad6522cf582f548e53260346a441b80acddf4

Change-Id: If70507ef90c5a76c9fc66b1d4cc8d230329a5428
CR-Id: ALPS03900296
Feature: Engineering Mode
2020-01-18 09:44:13 +08:00
Max Huang
cee97683c3 Merge "[ALPS03897470] Fix SEPolicy violation" into alps-trunk-p0.basic
Change-Id: Ie1a0d05e2f5d134316bb63bc38e1720324568e82
MTK-Commit-Id: b42cd8dd4a3e60e3be509ad8dc2c273a6f5bb850
2020-01-18 09:44:03 +08:00
Robbin Chiu
23aae46327 [ALPS03897470] Fix SEPolicy violation
[Solution]
Fix SEPolicy violation for stp_dump

MTK-Commit-Id: e8a098656a9a1a2e1ad951a5ffa640baa0198d33

Change-Id: I68915511ad84819ddf155a7f4cd8fd8badac985b
CR-Id: ALPS03897470
Feature: [Module]WMT Driver
Signed-off-by: Robbin Chiu <robbin.chiu@mediatek.com>
2020-01-18 09:44:01 +08:00
Roger Chang
f28d86070e Merge "[ALPS03859804] Remove wide_dhcpv6_data_file" into alps-trunk-p0.basic
Change-Id: Idd38455f0310fc3bec21936e111214eb9d867ece
MTK-Commit-Id: 277df8d30a5eac6da3fa06a5c7d285ed56779122
2020-01-18 09:43:54 +08:00
Jungo Lin
4fbf2c5f2c [ALPS03859804] Remove wide_dhcpv6_data_file
Remove dhcpv6 selinux policy rules since it is unused.

MTK-Commit-Id: b9f566aa5b211b09ef163185b743b324fc06e2bb

Change-Id: Id9cdd914076655514bc7486bf80f0664f1002e82
CR-Id: ALPS03859804
Feature: [Module]IP Networking
2020-01-18 09:43:46 +08:00
Joen Chen (陳建豪)
71e08e3ea3 Merge "[ALPS03869840] Modify for SELinux violation" into alps-trunk-p0.basic
Change-Id: I1111f5d3f674e14ece4dc77587dd6072d6fe9d90
MTK-Commit-Id: c8fe918b45da1ec529a1d0a449549946efdb13b3
2020-01-18 09:43:44 +08:00
mtk14318
02365e1543 [ALPS03869840] Modify for SELinux violation
[Detail]
Because p has new SELinux policy,
we need to fix the violation part.

[Solution]
Mark the violation part.

MTK-Commit-Id: 9935b37d96538a2696ac34e0ef8e0f4c480d3167

Change-Id: Ia0fac8c2b94d2acfc29dec20dd29dca85f9f9cf0
CR-Id: ALPS03869840
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 09:43:36 +08:00
Jason Su
7798a42df8 Merge "[ALPS03866779] Remove acess agpsd file permission" into alps-trunk-p0.basic
Change-Id: I55a8fdf3fca407ba1e49b8080c1a9831b7839180
MTK-Commit-Id: 35a8a02603f3f644a2262c1a5595f2619b15babf
2020-01-18 09:43:25 +08:00
Jason Su
57afdb0683 [ALPS03866779] Remove acess agpsd file permission
[Detail]
Remove acess agpsd file permission.

MTK-Commit-Id: 67838f3fc62978273c79451b52cd64c9699652d0

Change-Id: Ia322f984e6fbc5484f45714eca064cbe36187a98
CR-Id: ALPS03866779
Feature: Location AOSP
2020-01-18 09:43:23 +08:00
Jimmy-YJ Huang
20ba53ed6e Merge "[ALPS03737981] power: hal version upgrade." into alps-trunk-p0.basic
Change-Id: I03191566bcfb14b50215ec745319c1123da6f368
MTK-Commit-Id: 77336a30ebe4d5546ff4fc862d0d9c752d6913b5
2020-01-18 09:43:18 +08:00
Jimmy-YJ.Huang
4484f0511a [ALPS03737981] power: hal version upgrade.
[Detail]
hal version upgrade from V1.1 to V2.0

MTK-Commit-Id: 0a7d23e9f8fa3f982b4029292021e91176d66bf0

Change-Id: Ia51920ab3def49ff88d3c483d64cdcd730b8fdd7
CR-Id: ALPS03737981
Feature: System Performance
2020-01-18 09:43:07 +08:00
Allen Chu
50e62148a7 [ALPS03804621] [P migration] Add property permission
[Detail]
Add "vendor_radio_prop" permission at te file.

MTK-Commit-Id: 4ac56594f5c0082f4560d9492feb4f8e258b07ac

Change-Id: Ie29850e01334be41d29ce3de3c359937da153641
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 09:43:02 +08:00
Chaoran Zhang
7b58e8932c Merge "[ALPS03872369] Rename GPS property to "vendor.xx"" into alps-trunk-p0.basic
Change-Id: Ia62afdd9d0699208bd068a273a80ff427e71915b
MTK-Commit-Id: 7a3c0fac846f16fc84f2949f8307498a2464f9c3
2020-01-18 09:42:59 +08:00
Chaoran Zhang
5f2560e086 [ALPS03872369] Rename GPS property to "vendor.xx"
[Detail]
Rename GPS property to "vendor.xx"
[Solution]
Rename GPS property to "vendor.xx"

MTK-Commit-Id: ec44a72c9d682320199fd5d8b6e3275a8e038c6d

Change-Id: Iad18e35b9fae08ab3ac3daa300119d8b91e53786
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:42:47 +08:00
Josh Hsiao (蕭志遠)
d3a136efe9 Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic
Change-Id: Ia46712fc787f25fdb236af35b6a93b4d83b9ea50
MTK-Commit-Id: a768fea87cd4070ad92fdb58cea580660dc75e0b
2020-01-18 09:42:45 +08:00
jerry-sc.wu
cbd89e878c [ALPS03867358] Thermal: P Migration
[Detail]
In Android P, the main restriction is system and vendor cant
communicate with on-desk files.

[Solution]
1.Move thermal setting file to vendor.
2.Remove selinux violation policy.
3.Add thermal manager access vendor data file policy.

MTK-Commit-Id: e579309fd163aa58f632784ce9d594d09e673096

Change-Id: Ibdec1e275eccfbbbd697c413e70a57705e643817
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
2020-01-18 09:42:39 +08:00
Juju Sung
a37957a5f2 Merge "[ALPS03897468] kernel: remove sepolicy which violate neverallow rule" into alps-trunk-p0.basic
Change-Id: Ic4c01efe0035577d1866b3d11c8a28127777aac5
MTK-Commit-Id: f16d29fba92f0ead81e812c7d67a942c7ecf4e08
2020-01-18 09:42:32 +08:00
Sam-KY Lin
3006c81521 [ALPS03897468] kernel: remove sepolicy which violate neverallow rule
[Detail]
Google introduced new neverallow rule for restricting core_domain &
non-core_domain communication via data partition.
This patch removes MTK sepolicy rules which violate neverallow rule.

MTK-Commit-Id: 2f3ae1f106cdf28f00ee75638dd77fd8242f9746

Change-Id: If6c64eec4f3cf5760988e3c266da83d1d93e649f
CR-Id: ALPS03897468
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:42:23 +08:00
Hochi Huang
6bedf6da41 Merge "[ALPS03898061] SeLinux: remove violate setting" into alps-trunk-p0.basic
Change-Id: I917226ded146015c4f2f4308021d0812e82dcf19
MTK-Commit-Id: 089255a87efab90aeefb3118217c3bda42cd30af
2020-01-18 09:42:20 +08:00
chien-wei hsu
f1cabb065e [ALPS03898061] SeLinux: remove violate setting
[Detail]
remove workaround of data between core and vendor violator
1. remove audioserver.te violated setting
violated by allow audioserver nvdata_file:dir
violated by allow audioserver nvram_data_file:dir
violated by allow audioserver thermal_manager_data_file:dir
violated by allow audioserver mtk_audiohal_data_file:dir
violated by allow audioserver thermal_manager_data_file:file
violated by allow audioserver nvram_data_file:file
violated by allow audioserver nvdata_file:file

2. remove mtk_hal_audio.te violated setting
violated by allow mtk_hal_audio system_data_file:dir
violated by allow mtk_hal_audio media_rw_data_file:dir
violated by allow mtk_hal_audio radio_data_file:dir
violated by allow mtk_hal_audio radio_data_file:file
violated by allow mtk_hal_audio system_data_file:lnk_file
violated by allow mtk_hal_audio system_data_file:file
violated by allow mtk_hal_audio media_rw_data_file:file

audiohal_data_file is defined as core_data_file_type
it cant use in vendor partition. temporarily remove it.

MTK-Commit-Id: c0453cc6ede361322deb8f138055accc473511b8

Change-Id: I15649ad3351f1a7ee29956668862aad05efc0778
CR-Id: ALPS03898061
Feature: Phone Sound
2020-01-18 09:42:13 +08:00