1032 Commits

Author SHA1 Message Date
Cheng-H Chen
5925ad4321 [ALPS03908242] Add SEPolicy
[Detail]
System properties like init.svc.vendor.* cannot be dumped
in mobilelog. It is because moblelogd doesnt have permission to
access them. The status of VoLTE-stack cannot be shown in
mobilelog.

[Solution]
Add get permission to access those system properties

MTK-Commit-Id: 73a911ef7934cdb4640809343f64c9815c43f1be

Change-Id: I6c11e5a397826c45ca83cb19ce6cb114aee59f53
CR-Id:ALPS03908242
Feature:VoLTE (Voice over LTE)
2020-01-18 10:02:51 +08:00
Lili Lin
c5d80a4090 Merge "[ALPS03959715] move audio-daemon to vendor" into alps-trunk-p0.basic
Change-Id: I4e6c31878331055f1559aa372d7d1f7106424419
MTK-Commit-Id: 7b461a24341a10035f24ce91c6751d04307f47ba
2020-01-18 10:02:49 +08:00
Lili Lin
56b7e390c4 [ALPS03959715] move audio-daemon to vendor
1. Per customer request, move audio-daemon to vendor partition.
2. Implement GetVolumeIndex

MTK-Commit-Id: 4f61171696528b80f9973cb1e3820c9f91116755

Change-Id: Id82b004a39b1217b543c42b9f66de72fb1f76a59
CR-Id: ALPS03959715
Feature: Audio Tuning Tool
2020-01-18 10:02:48 +08:00
Larry Liang
6f6b3997d7 Merge "[ALPS03976171] fix: Mobilelog writing vendor property" into alps-trunk-p0.basic
Change-Id: Ic7959bd0dbdc53fdf61707d46ce351d3dd619476
MTK-Commit-Id: 6c5be9940d67844542ed09b2374d3b18b9b7cf91
2020-01-18 10:02:45 +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
Denis Hsu
71e3aaeba5 Merge "[ALPS03891225] Add policy for nvram" into alps-trunk-p0.basic
Change-Id: I1b101e17f496c8566046de546be2361495821818
MTK-Commit-Id: b34091511b4bb872c7c8ca6111aa83a523dfe09d
2020-01-18 10:02:42 +08:00
Denis Hsu
a488de6a7f [ALPS03891225] Add policy for nvram
Allow to access boot mode for nvram

MTK-Commit-Id: 42ba22047669fe5e19c2ad7919807f2dd5323950

Change-Id: Id3118a6666a068330bdeb2d4663c478aa94cd307
CR-Id: ALPS03891225
Feature: Multi-Storage
2020-01-18 10:02:40 +08:00
Dean Chiang
965f58f54d [ALPS03899621] Add SEpolicy rule for MTK IHostapd
Add SEpolicy rule for MTK IHostapd

MTK-Commit-Id: f1c25f14e716a04414d16d78376aa8bc1a496bc8

Change-Id: Ib1ff39ad1c318f72dd8fe4b685c3692b3137349d
CR-Id: ALPS03899621
Feature: Wi-Fi Hotspot Manager
(cherry picked from commit ca1f132c2ec1b336424daf1ac8cb7af5cae78a14)
2020-01-18 10:02:38 +08:00
Justin Hsieh
a67cd8a97a Merge "[ALPS03885057] Add label for MTK USB HIDL 1.1" into alps-trunk-p0.basic
Change-Id: I32fa299a59aa7b5294e298be7eaf20edb8f0f8e9
MTK-Commit-Id: 7287b09d79ce953c2dabb254aa13ee89619a0395
2020-01-18 10:02:38 +08:00
Eddie Hung
6a0e7e04f2 [ALPS03885057] Add label for MTK USB HIDL 1.1
[Detail]
Add label and sepolicy for "android.hardware.usb@1.1-service-mediatek"

MTK-Commit-Id: 7d1f78831d049318d4623d33065136303639d856

Change-Id: I72d88642485097ef42bdf38938e22eeaae1eb2e3
CR-Id: ALPS03885057
Feature: USB TYPE-C
2020-01-18 10:02:32 +08:00
Lili Lin
590d94440a [ALPS03934986] Remove vendor.sys.boot.reason
vendor.sys.boot.reason is set by system process, not vendor_init
thus remove it from mtk_default_prop

MTK-Commit-Id: f0df9ebeb7cff07aa134559b4e4dedef66417302

Change-Id: I39b14ee6863396eb5296b1a0a4e171a369dd994b
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:02:31 +08:00
Simfex Chiu
cd9eee157d [ALPS03958900] wlan_assistant: add permission for /data/vendor
[Detail]
need permission for /data/vendor

[Solution]
Add required permission into .te

MTK-Commit-Id: 9ae9e38fc9496da574627daeaec32c8552da2a99

Change-Id: I27202f4f4d29c4d37c3d87affbe6df051ff11c39
Signed-off-by: Simfex Chiu <simfex.chiu@mediatek.com>
CR-Id: ALPS03958900
Feature: [Module]Wi-Fi HAL
2020-01-18 10:02:31 +08:00
Bo Ye (叶波)
abfa4c86f1 Merge "[ALPS03982747] Remove unused sepolicy rules" into alps-trunk-p0.basic
Change-Id: I127c376830d260a088486f0cacbbc13c5345827f
MTK-Commit-Id: c65e9c65b1ac4650b64a5bb39717f813a54ffb83
2020-01-18 10:02:30 +08:00
mtk12101
722798a334 [ALPS03982747] Remove unused sepolicy rules
Some rules is no need any more, need to remove it.

MTK-Commit-Id: 49685f1299d990a7195a2d54b955517d8f2cc699

Change-Id: I4a590ad781589cf94989ce72c88751ac10b82eae
CR-Id: ALPS03982747
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:02:25 +08:00
dengwei.xu
57ee420c72 [ALPS03984881] EM telephony SIB capture support
Add the new selinux rights support

MTK-Commit-Id: 31147b1027de480ab0b3379a008813351049e342

Change-Id: Ia07ca66917911ce7e8a7e6d76c9c4137c1cd5cf2
CR-Id: ALPS03984881
Feature: Engineering Mode
2020-01-18 10:02:13 +08:00
Edison Liu
51167c8474 [ALPS03908752] partition:fix sysenv issue
[Detail]
add sepolicy for sysenv get device path by fstab

MTK-Commit-Id: 3b4654113dec0bebfd1ba6f4b90fd501ccc6513d

Change-Id: I8cfdaf572363f8ac9ce5276eb4ddff525dd7c841
CR-Id: ALPS03908752
Feature: eMMC Boot Up
(cherry picked from commit 9a53df024a1c1a1cba9a94373b867a50956225d4)
2020-01-18 10:02:13 +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
Yuru Zhu (朱禹儒)
d6cf9b5e92 Merge "[ALPS03866092] Add FP for ConnSYS Log" into alps-trunk-p0.basic
Change-Id: I5c011916e81a73c7341f2940de689a4908d07463
MTK-Commit-Id: 8853626ae5990a9f9ae5d4d58ab1c29bc4d06cce
2020-01-18 10:02:05 +08:00
Peng Qi
5391d4ae6c [ALPS03866092] Add FP for ConnSYS Log
Need to apply selinux access right for connsys
log feature system property

Test: make, read check by MTKLogger

MTK-Commit-Id: cabc0581448be6b267e44f87b36e216905fd4045

Change-Id: I2fb5ea65dad6ba87dc63f7922eb3384cfb96b485
CR-Id: ALPS03866092
Feature: MTKLogger
2020-01-18 10:02:02 +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
3f2caa03c0 Merge "[ALPS03934986] Remove un-renamed properties" into alps-trunk-p0.basic
Change-Id: I6843a0e036f9bc48c6d80dd54274523476615665
MTK-Commit-Id: 818d32015903cc353d6c0527366676cdcd07b20e
2020-01-18 10:01:56 +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
Bo Ye (叶波)
9d00211693 Merge "[ALPS03982747] Remove unnecessary violators" into alps-trunk-p0.basic
Change-Id: Ica641d2d92d092e75411c0799ef537fb7cb0a39f
MTK-Commit-Id: 7b77d3aa7fc7974b50ab9e4b20122cb944eeabeb
2020-01-18 10:01:52 +08:00
mtk12101
6c68a34641 [ALPS03982747] Remove unnecessary violators
Remove violators of system_executes_vendor_violators
in all .te files for Google rule.

MTK-Commit-Id: 2ea1f525e8cd6ef3cda981b2a47eabc4582fe767

Change-Id: I3940095186b1a530e7ed442cc34658c2317b9a89
CR-Id: ALPS03982747
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:01:50 +08:00
Caroline Yang
a24956b5ac [ALPS03967218] GPU: Add sepolicy for vulkan
[Detail]
Add selinux policy to access libufwriter.so and others.

MTK-Commit-Id: 604468612ad0339636fa83c390cb0eec6e0ea4e1

Change-Id: I32465ca7815a219c59ba9d03b210d8519e5a7b69
CR-Id: ALPS03967218
Feature: OpenGL|ES
2020-01-18 10:01:49 +08:00
Weilun Liu (劉維倫)
90e11a04ce Merge "[ALPS03861873] rename service name" into alps-trunk-p0.basic
Change-Id: I25fb8056917297544c93cc6e79ca45031f37f4ab
MTK-Commit-Id: 971c4dbb943e5fa40457f1745d72127b0224f2f9
2020-01-18 10:01:48 +08:00
Weilun Liu
d03eacc0d3 [ALPS03861873] rename service name
[Detail]
We use system property to start service,
follow android P rules, we should add prefix "vendor."
into the property name

MTK-Commit-Id: fbd0d1e60f45d93dd0402747afd0a91624f7e0cf

Change-Id: I02d8dace8d0445b3adf8c4044e15fed3f5fe95ab
CR-Id: ALPS03861873
Feature: [Module]Telephony power on
2020-01-18 10:01:46 +08:00
Juan Rong
049e7472ec Merge "[ALPS03886705] EM:hardware-testing SELinux" into alps-trunk-p0.basic
Change-Id: I55b1304744365bc136958588314801688aeb6995
MTK-Commit-Id: 284dd69d48bbf9e38d524607901ffe6072faa866
2020-01-18 10:01:44 +08:00
Juan Rong
d18a53f680 [ALPS03886705] EM:hardware-testing SELinux
[Detail]
Fix EM hardware-testing SELinux issue
 1. power->PMU read
 2. power->debug_log
 3. audio->detect headset
 4. memory->flash
 5. touchscreen->settings
 6. AAL get/set prop

MTK-Commit-Id: 5a00b957045b7a83722c4f6d2f926b38d9625342

Change-Id: I781c756404015997d130a342d123f8cdb8f33810
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 10:01:41 +08:00
Josh Hsiao
0126016cad Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic
Change-Id: If817c504be657f4eb1db7bb6da9d8a3191838f53
MTK-Commit-Id: 4eb493dc29911e63a3e306b0094c9ecd00078ab0
2020-01-18 10:01:39 +08:00
jerry-sc.wu
2bb5e6af4a [ALPS03867358] Thermal: P Migration
[Detail]
Resolve build warning.
Fix "neverallow coredomain from writing vendor properties".

MTK-Commit-Id: 41ae21ce71a19a8a1abce51e33ab93b66e4fa793

Change-Id: I85f9091cbddd1503579b69b4e3b14e63a7eb2dcc
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
2020-01-18 10:01:37 +08:00
Weilun Liu (劉維倫)
a076bea25a Merge "[ALPS03804621] [P migration] Re-name property" into alps-trunk-p0.basic
Change-Id: I7d93965159193730f106a9c1267e74559dcdd8f7
MTK-Commit-Id: 60bab7e6c90807410d8680a023fbcac470987f21
2020-01-18 10:01:35 +08:00
Allen Chu
1bd3084a41 [ALPS03804621] [P migration] Re-name property
Add prefix "vendor" to property

MTK-Commit-Id: 6de1a2d7b7e019425fed6ad8c6b0aa4d380d8257

Change-Id: Ied75e3dc657fd71938c287f5eb7689cb8ec1a728
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:01:34 +08:00
Hu Wang (王胡)
3148dea42f Merge "[ALPS03875759] SELinux for dynamic enable AMS log" into alps-trunk-p0.basic
Change-Id: I28567a7a307e393757d7ab1d6a8cc7fcd2102724
MTK-Commit-Id: 53ce53eb531f2078d7ac1f1d425a9a8b8cd9a63c
2020-01-18 10:01:32 +08:00
Hu Wang
b196f4708e [ALPS03875759] SELinux for dynamic enable AMS log
Dynamic enable AMS log is blocked by SELinux.
Add ams log property policy in SELinux.

MTK-Commit-Id: f145a5c2c798d1a93e0c448108c0b476edb39b95

Change-Id: I0ef3c17af2f1e5ed4e7f3cd3b4a93f4436faf6a7
CR-Id: ALPS03875759
Feature: [Module]ActivityManager
2020-01-18 10:01:30 +08:00
Aroha Lin
19669f18b8 Merge "[ALPS03952241] rename property_contexts" into alps-trunk-p0.basic
Change-Id: If753a48d661f492da54ebe8cc2378a810b2c0eec
MTK-Commit-Id: 4adae32bc2be89b20309171098166008a170c782
2020-01-18 10:01:28 +08:00
Aroha Lin
64bcf2a1af [ALPS03952241] rename property_contexts
[Detail]
Android P property_contexts need to rename
the original property

[Solution]
to rename the property

MTK-Commit-Id: ede7c62b1c35ebc0a7904758dd443a013c9b8350

Change-Id: Ia0136368510d8da03bb6a91c6fbd0217bd87018b
CR-Id:ALPS03952241
Feature:[Android Default] Camera Application Basic Functions
2020-01-18 10:01:26 +08:00
Black Chen
555f3634fa Merge "[ALPS03969178] wlan: factory and meta move to vendor partition" into alps-trunk-p0.basic
Change-Id: Ie26e31860b8f94396ab783d452e2c75e9d2bc809
MTK-Commit-Id: d3d39b8b5a55ac6d7a71861e8cdd9784ce7f66b3
2020-01-18 10:01:24 +08:00
Black Chen
7748e0c1b1 [ALPS03969178] wlan: factory and meta move to vendor partition
In P version, process needs add net permission to access socket.

MTK-Commit-Id: 4cd65a5adf83ee597402220297cf8d7b727f3da0

Change-Id: I39fbeb59e146fc508cc721ddb299fedc15a70a6b
Signed-off-by: Black Chen <black-ch.chen@mediatek.com>
CR-Id: ALPS03969178
Feature: [Module]Wi-Fi Driver
(cherry picked from commit 1569bcd159fe2472597e2bf2b3c5016f44d7756d)
2020-01-18 10:01:23 +08:00
Michael Hsiao
acc139e521 Merge "[ALPS03889880] Audio: Remove un-used permission" into alps-trunk-p0.basic
Change-Id: I55fdcffdf7d9ccf7e2189284d5a4472d828fe9c5
MTK-Commit-Id: 4d389235b31f46d2d96f7631cdfb0f0bf0890576
2020-01-18 10:01:18 +08:00
Michael Hsiao
f159454d74 [ALPS03889880] Audio: Remove un-used permission
[Detail]
Mediaserver doesnt set property to audio hal,
Remove the sepolicy permission.

MTK-Commit-Id: d4d2c9bcfc7d6e1c400673da105aacf7af9a2577

Change-Id: I1ea50f192688f9065856c710c2b7af55b9a30bef
CR-Id: ALPS03889880
Feature: [Module]Audio HAL
2020-01-18 10:01:16 +08:00
Jonas Lai
5f6e183608 [ALPS03972288] shell.te: remove mtkcam_prop
shell.te: remove mtkcam_prop

Remove the following due to the violation:
typeattribute shell system_writes_vendor_properties_violators;
set_prop(shell, mtkcam_prop)

MTK-Commit-Id: 59d4ee65c6ca6e46a6caa246fd2f68d220b3e4e3

Change-Id: Ia434883e82f0a0432c42b00da2c8b695be6988b9
CR-Id: ALPS03972288
Feature: [Android Default] Camera Application Basic Functions
2020-01-18 10:01:15 +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
Youxiu Wang
08da39faff Merge "[ALPS03878056] Rename mtk system properties" into alps-trunk-p0.basic
Change-Id: I07430a1d6d901ac3bcf606d7da36e83efc7b2eea
MTK-Commit-Id: 3b2eae727472a6fe52e274b8f0cc0ff86bd965e9
2020-01-18 10:01:10 +08:00
Youxiu Wang
5d374974d1 [ALPS03878056] Rename mtk system properties
1) Due to new vendor system property rule, rename:
"ro.mtk_md_mims_support" to "ro.vendor.md_mims_support"
2) Remove unused property:ctl.viarild

MTK-Commit-Id: 0196b9a913c715908b9c0b2027d793d8085d531d

Change-Id: Ic0b7bc07000fbd9c079f743e5f1e998daafb1468
CR-Id: ALPS03878056
Feature: DSDS (Dual SIM Dual Standby) Framework
2020-01-18 10:01:03 +08:00