635 Commits

Author SHA1 Message Date
Charles Yen
c2beb52c6a [ALPS03915523] AAL:Android P Property Change
Add AAL debug property permission.

MTK-Commit-Id: 5bea45fd17ce1ac20a8a27c4eb7a76f0d4a11377

Change-Id: Ib8b57f6f9bc60b583af6eeed7e134530677599d6
CR-Id:ALPS03915523
Feature:Ambient Light Adaptive Luma
2020-01-18 09:59:07 +08:00
chien-wei hsu
dd694722fa [ALPS03902666] Sepolicy: audio prop need prefix vendor
[Detail]
audio prop need prefix vendor
vendor.streamout.     u:object_r:audiohal_prop:s0
vendor.streamin.      u:object_r:audiohal_prop:s0
vendor.a2dp.          u:object_r:audiohal_prop:s0

new property of vendor.audiohal for general purpose.
vendor.audiohal.     u:object_r:audiohal_prop:s0

MTK-Commit-Id: b5097d4763935f129a8bb15d222d12d72a5bd6c7

Change-Id: I0e0809a1e490218c007087e71850f2dcc0ebf007
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 09:59:02 +08:00
Chang-An Chen
7d98ad0f0f Merge "[ALPS03869354] Fix factory mode backlight and vibrator test fail" into alps-trunk-p0.basic
Change-Id: I4cae156e47e9c84f32c0a27b40e6d3cf2ec15b40
MTK-Commit-Id: dba6607b2cbc0405f5b6ebe6af8a1ee5a6370eb2
2020-01-18 09:59:02 +08:00
Chang-An Chen
73f8a63b8b [ALPS03869354] Fix factory mode backlight and vibrator test fail
[Detail]
1. Backlight level test in factory mode fail due to no sepolicy
applied, and sysfs_leds is not allow to add to factory.te.
2. Vibrator test fail due to no corresponding selinux policy.

[Solution]
1. Using hidl for backlight in factory mode.
2. Add vibrator policy.

MTK-Commit-Id: 9470dca00da2fecfb373af94aae3502714d31ea3

Change-Id: I42cd45951054a267449e79f559b3761fce34d497
CR-Id: ALPS03869354
Feature: [Android Default] Backlight
2020-01-18 09:59:00 +08:00
Kaiwen Liu
36c7c80659 [ALPS03951738] Use mtk_uce_support to switch on/off
Abandon mtk_uce_ua_support usage

MTK-Commit-Id: 5f79d13d2fd01ce0c507ac37265ef632927b7a08

Change-Id: I0ce1cc044e4c5f4693f9d64dd2a07b2034a1574e
CR-Id: ALPS03951738
Feature: UCE, User Capability Exchange
2020-01-18 09:58:56 +08:00
yuhui.zhang
77655e590e [ALPS03914002] Remove unused sepolicy
[Detail]
Remove unused sepolicy for EM

MTK-Commit-Id: daf75aeacea74a466f5a5b4bef81173cccf6dc23

Change-Id: I8d6b7924a82e6897eb0ae85273455d73094eb109
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 09:58:52 +08:00
Josh-YC Liu
5d5bbcef2d Merge "[ALPS03951976] PQ:Add PQ Property Permission" into alps-trunk-p0.basic
Change-Id: I215e2c8583bb46c1e7a658f74141dab701072cd7
MTK-Commit-Id: 2f81d395e66430a5b0c2a3ce5736c70bb2f79ce7
2020-01-18 09:58:52 +08:00
Charles Yen
072a14dd6e [ALPS03951976] PQ:Add PQ Property Permission
Add pq/aal property label & permission.

MTK-Commit-Id: 7ff05d937adde3f2d3c59029e140a640f23212b9

Change-Id: Ib6d9763bb00df0e40c6d77306d5faece7b5d1a00
CR-Id:ALPS03951976
Feature:MiraVision
2020-01-18 09:58:47 +08:00
Neng Kou
ca08f4d6f0 Merge "[ALPS03949661] Add SeLinux policy for lmkd socket" into alps-trunk-p0.basic
Change-Id: Idea0e40cc0f4a33ce61f476f0ea32d6e633cf5a1
MTK-Commit-Id: 504c784ceef96330c50a57b9b9ed397f267c718f
2020-01-18 09:58:44 +08:00
Qinghua Liu
39710d2b84 [ALPS03949661] Add SeLinux policy for lmkd socket
[Detail]
 Let lmkd visit systemServer, it will connect with duraspeed socket

MTK-Commit-Id: 51e15fadc8dbb29d3cd5578589666fed1b853162

Change-Id: Iaa127d47e737e82abe721a937d4373cc38978808
CR-Id: ALPS03949661
Feature: DuraSpeed
2020-01-18 09:58:42 +08:00
Yuhui Zhang
bba348679c Merge "[ALPS03951067] EM: selinux for battery" into alps-trunk-p0.basic
Change-Id: I4342759b16e0ad30995bafd00a4ea968b39792b9
MTK-Commit-Id: 5b6314aa27cee914dcb494aff1f13d9d1b38a6b3
2020-01-18 09:58:40 +08:00
Juan Rong
4fef319c9b [ALPS03951067] EM: selinux for battery
[Detail]
allow EM access battery info

MTK-Commit-Id: cdcee8fe601a984182ded4522acadfe6b70dec66

Change-Id: Ic55a779d3d6883d1dd0828258ff3bf084c8d7706
CR-Id: ALPS03951067
Feature: Fuel Gauge
2020-01-18 09:58:35 +08:00
Chien-Wei Hsu
20efb87465 Merge "[ALPS03902666] Sepolicy: remove violate properties setting" into alps-trunk-p0.basic
Change-Id: Ib554a618de5b4d747bde2cc3e4dde77effdbee34
MTK-Commit-Id: 65696211d98ec125f1b7d533cc2686d12af93dbe
2020-01-18 09:58:34 +08:00
chien-wei hsu
d1522f4166 [ALPS03902666] Sepolicy: remove violate properties setting
[Detail]
1.Property new change
neverallow coredomain from writing vendor properties
(allow audioserver_28_0 audiohal_prop (property_service (set)))
(allow audioserver_28_0 mtk_thermal_config_prop (property_service (set)))

audio_hal property which prefix is af. use to audiodump.
it will replace by the audio_prop which property prefix is vendor.af

before, mtk_thermal_config_prop use to set powerhal.
And we use it by HIDL now, so this permission can remove.

[Solution]
remove violate properties setting.

MTK-Commit-Id: 2942812bb4a57655898d407f84162fbdae9c3fc9

Change-Id: I1a01ddd8b83fa7eb0c499f67400660b738e9b986
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 09:58:29 +08:00
Diangang Qin
db64e86a91 Merge "[ALPS03809072] Set rat config property permission" into alps-trunk-p0.basic
Change-Id: I502f65db202f4fcad0cb1303443727a4561501c2
MTK-Commit-Id: 5118fd2a20f1b662b5cc590c04fe30ad6e0258cb
2020-01-18 09:58:27 +08:00
Muyi Lan
80f841d0dd [ALPS03809072] Set rat config property permission
[Detail]
Set permission for property "ro.vendor.mtk_protocol1_rat_config".

MTK-Commit-Id: 6bf36e9b4dc41769abb6d54a204877df82aa3804

Change-Id: Ie0b31f15e65381d4094bdf2095f8047db1be21fd
CR-Id: ALPS03809072
Feature: Telephony feature switch dynamically
2020-01-18 09:58:25 +08:00
Stanley Chu
04cfd4136d Merge "[ALPS03866203] pidmap: Add SELinux policy for Android P" into alps-trunk-p0.basic
Change-Id: I0817c4598a66bba6365e5a3b60d1227d15b22a0c
MTK-Commit-Id: af3963de74153a8ad057979afc7c3d0a199e4107
2020-01-18 09:58:23 +08:00
Stanley Chu
f98f18c9c8 [ALPS03866203] pidmap: Add SELinux policy for Android P
[Detail]
Add SELinux policy for Android P:
Allow aee_aedv and dumpstate to read pidmap proc file.

MTK-Commit-Id: 16f120df6c33e20cdb0ce7f8c2040356ffecf02a

Change-Id: If1aa665003f70a2621687fcf291433d80f0d54d3
CR-Id: ALPS03866203
Feature: Android Exception Engine(AEE)
2020-01-18 09:58:17 +08:00
Jason Su
8e687077cb Merge "[ALPS03950289] Add permission to access GPS properties" into alps-trunk-p0.basic
Change-Id: I731a490bda9197204316e3ec6e3c96b2c21f9aa2
MTK-Commit-Id: b8c35170a68804f5db06878e636d4f64debab6a8
2020-01-18 09:58:15 +08:00
Jason Su
b2d6377d9c [ALPS03950289] Add permission to access GPS properties
[Detail]
Add selinux permissions to access GPS vendor system peroperties.

MTK-Commit-Id: aa97b76d646e13029488cae3aa0feb73a389675c

Change-Id: Icd41d074b1b620f70e5a68c3c02719f773cf2b2f
CR-Id: ALPS03950289
Feature: Location AOSP
2020-01-18 09:58:10 +08:00
Dian Wang
8288536631 Merge "[ALPS03932298] Factory Mode: move to vendor partition" into alps-trunk-p0.basic
Change-Id: I2c2e1e7afbfe33b1e2aea0711e348144c937791a
MTK-Commit-Id: 5e99f1dde2a1da9773da54015647205db6f5108f
2020-01-18 09:58:09 +08:00
Chunlan Wang
c93290f067 [ALPS03932298] Factory Mode: move to vendor partition
[Solution]
Factory mode should build in vendor partiton, so move
factory from system partition to vendor partition

MTK-Commit-Id: c55354593a97aed3af9d0b2584037d03d3d2669c

Change-Id: I5a607b60f9ac974380c5e440a6fa0c51797d6b1b
CR-Id: ALPS03932298
Feature: Factory Mode
2020-01-18 09:58:07 +08:00
Guoyi Qu
4b9b0ea2a2 [ALPS03934599] property set issue
Change property name for new rule in P branch

MTK-Commit-Id: f6085b301d89b12bf36fd0d8fe2cea8144204bad

Change-Id: I0b9945db11eae1a1a59d201389ba001a18a3fc50
CR-Id: ALPS03934599
Feature: Connsys Log Tool
2020-01-18 09:57:59 +08:00
Guoyi Zhao (赵国义)
2e09db7248 Merge "[ALPS03929399] Rename CT VoLTE system property" into alps-trunk-p0.basic
Change-Id: Ic8caf4ca885ac4e9b30b01de01ef7d4a10e35091
MTK-Commit-Id: bbc48a501e953823959a03533091b0fb9611ee1c
2020-01-18 09:57:58 +08:00
guoyi.zhao
134a7ddb7f [ALPS03929399] Rename CT VoLTE system property
[Detail]
Rename CT VoLTE system property and allow other module to access
persist.vendor.mtk_ct_volte_support.

MTK-Commit-Id: bc5a52b6998d941aa12c7532f095d1a8c67d663f

Change-Id: I33881fd6684dc76e148ac4917e5c146f949e24f7
CR-Id: ALPS03929399
Feature: [China Telecom]VoLTE Customization
2020-01-18 09:57:56 +08:00
Eddie Hung
afc85abc82 Merge "[ALPS03885057] Revise USB property permission" into alps-trunk-p0.basic
Change-Id: I3c81798ce456c0ee276c50dc4ea7b44600d66bc6
MTK-Commit-Id: fab83e8bd239f1166d67de09dc59152128d18fb1
2020-01-18 09:57:51 +08:00
Eddie Hung
62813bbe3e [ALPS03885057] Revise USB property permission
[Detail]
1. remove set vendor usb property
2. add set system usb property

MTK-Commit-Id: 993587b76581472ff751db17bb4f7210926c6342

Change-Id: Ib7da63617e3ac0c0f3fb271ef082db602d39ca37
CR-Id: ALPS03885057
Feature: Modem Log Tool
2020-01-18 09:57:49 +08:00
Dengwei Xu
e6294bbe3f Merge "[ALPS03914002] Add sepolicy rule for EM" into alps-trunk-p0.basic
Change-Id: I5c768f5071bb72fb6f9381e7bfada2d5560b010e
MTK-Commit-Id: 458bba642d58b96a046575e9e696a854e4599f77
2020-01-18 09:57:48 +08:00
yuhui.zhang
7952f3fc53 [ALPS03914002] Add sepolicy rule for EM
[Detail]
1. Add SEPolicy rule for battery log
2. Add SEPolicy rule for EM setting property

MTK-Commit-Id: e59cf4c98b75739a0e2e58f098174747951bda5d

Change-Id: Ic6cc12fe0a26d2fad5dd6196d598a21fd96b25cb
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 09:57:40 +08:00
Choo Chiu (xxx)
416e317c75 Merge "[ALPS03943803] Add sepolicy for NVRAM" into alps-trunk-p0.basic
Change-Id: I519fbbe7f7b6ed822bcdc37d616a851600f92092
MTK-Commit-Id: 1209c54a3ea3487b664691fac4cd88d46003f913
2020-01-18 09:57:37 +08:00
Yang Chang
91238a62a4 [ALPS03943803] Add sepolicy for NVRAM
[Detail] As title

[Solution] As title

MTK-Commit-Id: 2e0d48205919bc075721a6470a4102a95cf841de

Change-Id: I88e7bdf77940d7d89379af3d73996d998235f093
CR-Id: ALPS03943803
Feature: [Android Default] Camera Application Basic Functions
2020-01-18 09:57:35 +08:00
Ming-Pei Hsu
d7a2d9d4bc Merge "[ALPS03845186] Revise system app permission" into alps-trunk-p0.basic
Change-Id: I0aa6b77f23113c8136ca77680d2430df2e130159
MTK-Commit-Id: 58d77ca0caa5e629c34da84c6a0e4f0dd04122fa
2020-01-18 09:57:30 +08:00
ming-pei.hsu
23c057dc71 [ALPS03845186] Revise system app permission
Change set_prop to get_prop to avoid broken neverallow rule.

MTK-Commit-Id: a4efbfa70f98f2b2b4b02cc4a0d993e1a5940fa8

Change-Id: I3f39a92e2849575c3d89ff6d12b5c15ffe690aad
CR-Id: ALPS03845186
Feature: SIM
2020-01-18 09:57:29 +08:00
Denis Hsu
756781b45f Merge "[ALPS03943904] Act storagemanagerd as vold context" into alps-trunk-p0.basic
Change-Id: Iad441b1c1dae1037468921f9fb4ea0260abc0f67
MTK-Commit-Id: 773b91887f849e607c7a27d460eb8935e8e09c60
2020-01-18 09:57:27 +08:00
Denis Hsu
0b03f73f0c [ALPS03943904] Act storagemanagerd as vold context
[Detail]
In order to meet selinux limitation, storagemanagerd act as
vold context to mount storages

[Solution]
Add the following line in file_contexts.
/system/bin/storagemanagerd u:object_r:vold_exec:s0

MTK-Commit-Id: 0b309fd0afc84f3da0ea91a324dca6f824366537

Change-Id: I68e568b8e7d37d218ae88e82cdd509c32abaea66
CR-Id: ALPS03943904
Feature: Mobile Log Tool
2020-01-18 09:57:15 +08:00
Dean Chiang
e13ddf727b [ALPS03945159] Add sepolicy for MTK wifi hidl
Add sepolicy for MTK wifi hidl.

MTK-Commit-Id: d88eefe1d29e7b73ad58a032cec50b5d675e3edf

Change-Id: Ibdacf7752bb434ff678e1573c21484d98d367005
CR-Id: ALPS03945159
Feature: Wi-Fi Tethering
2020-01-18 09:57:13 +08:00
Bo Ye
4e5abd9e9a [ALPS03885471] Remove ATM policies from system app
System APP cannot set vendor property, and these
    polices is not used. Just remove these policies.

MTK-Commit-Id: 0805ff18c4d4f90b2e9d2fdb97e1eff810ae5096

Change-Id: Ib07ef6d587d688246884fff6505434b7b7bc708c
CR-Id: ALPS03885471
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:57:12 +08:00
Gang Wei
0c1f751044 Merge "[ALPS03928691] Factory Mode:add the permission to get com type" into alps-trunk-p0.basic
Change-Id: I2e70edb5039cd1adc38462967e52a7add9b01a19
MTK-Commit-Id: 5a8bf03a769c8f4970e9e8e57f95e78e70d36387
2020-01-18 09:57:09 +08:00
Chunlan Wang
2010ade935 [ALPS03928691] Factory Mode:add the permission to get com type
[Solution]
Factory mode need to get com type is USB or UART, so add the
permission in factory.te

MTK-Commit-Id: aff8a941116fde70abd5c492fa084e74d927629e

Change-Id: I0b9206bda110b9dde77168db73a8378c4a571851
CR-Id: ALPS03928691
Feature: Factory Mode
2020-01-18 09:57:07 +08:00
Gang Wei
15e56cfea1 Merge "[ALPS03888283] Update meta sepolicy" into alps-trunk-p0.basic
Change-Id: I0cc0ab81121d631141771dee30d6e741ff7976c7
MTK-Commit-Id: 1daedf249aa4edbdc0c6eafdbc5544c627c29b51
2020-01-18 09:57:06 +08:00
Dian Wang
12ec9305c2 [ALPS03888283] Update meta sepolicy
[Detail] modify meta_tst.te and file.te

[Solution]
P Migration meta_tst get com port type/uart port info/boot mode/usb state/usb close

MTK-Commit-Id: 650d2e874dd8e73a5b79f911ba6bb6579c7819c1

Change-Id: Ie405027bcb4b567721c531a94a3a6247fa15689b
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 09:56:54 +08:00
Weiqi Fu (付玮祺)
b08dc188b0 Merge "[ALPS03946622] vibrator: Fix sepolicy issue" into alps-trunk-p0.basic
Change-Id: Ia01ee9cfb0f1a9ed5278b051f334a4ed43906c63
MTK-Commit-Id: 6cd85b8d0772affbfe5cc160052160a7e7088256
2020-01-18 09:56:52 +08:00
Linger Lee
b4490de2ae [ALPS03946137] vibrator: fix selinux issue
[Detail]
Add new path for P0

MTK-Commit-Id: ea1afedcb6f95a885827b002df7f6f2ea5328c77

Change-Id: Iea0ba7fcafaac70c8ec3980fc0a4753b7cbbbc91
CR-Id: ALPS03946137
Feature: [Module]Vibrator
2020-01-18 09:56:52 +08:00
Qiangming Xia
47417ab269 [ALPS03946622] vibrator: Fix sepolicy issue
[Detail] Vibrator has no right to access sysfs

[Solution] Add sysfs rule to vibrator te file

MTK-Commit-Id: 8c598697e8ea1c72ad9753fe706ab729ac7b47d7

Change-Id: Ib90a4681121ffe4ddbb0443c220b78f42e0de722
Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com>
CR-Id: ALPS03946622
Feature: [Module]Vibrator
2020-01-18 09:56:42 +08:00
Yuru Zhu (朱禹儒)
50bf8286c8 Merge "[ALPS03934549] MTKLogger support for LogHandler" into alps-trunk-p0.basic
Change-Id: Ifd056ef814611b604c49a78779f447a003afdc77
MTK-Commit-Id: 3e0a98839d004126e93de1276c81a61de1d22a73
2020-01-18 09:56:41 +08:00
yuru.zhu
146cf88d6f [ALPS03934549] MTKLogger support for LogHandler
[Solution] MTKLogger support for LogHandler

MTK-Commit-Id: 58a1ac0f72764fced2c0eac8421160d42d90b05c

Change-Id: I5117ffb2b12707e4819938553f580a440a9ae6a2
CR-Id: ALPS03934549
Feature: MTKLogger
2020-01-18 09:56:38 +08:00
Stella Yang
e74283f1a5 Merge "[ALPS03878966] Declare label for mtk_ril_mode" into alps-trunk-p0.basic
Change-Id: Ic553ed91687447da5ae9a064e32fdd04afcc3763
MTK-Commit-Id: 7df057e68500af6a428ff2d925ffd5586ae3b2e2
2020-01-18 09:56:33 +08:00
stella yang
0c41f7d408 [ALPS03878966] Declare label for mtk_ril_mode
[Detail]
1. Add label: mtk_ril_mode_prop
2. Add ro.vendor.mtk_ril_mode into the label

MTK-Commit-Id: 68167f299e05a9fc8a11f4d7579c1a62fe2e7575

Change-Id: I3df9fb88b7871506272ec7f020ce2d5ecdf85272
CR-Id: ALPS03878966
Feature: WiFi Calling Service
2020-01-18 09:56:30 +08:00
Simfex Chiu
a169e397eb Merge "[ALPS03940671] Wlan: add selinux policy in wlan_assistant.te" into alps-trunk-p0.basic
Change-Id: I37d4515f21cc0d679b609221064877de97fc1637
MTK-Commit-Id: c3a787ae7991ecc48ebebcd8ae02f19b4d3bfd11
2020-01-18 09:56:28 +08:00
Simfex Chiu
1c725d5df8 [ALPS03940671] Wlan: add selinux policy in wlan_assistant.te
[Detail]
selinux policy restrict access of /mnt/vendor, application
should add policy for the path

[Solution]
add new policy for /mnt/vendor

MTK-Commit-Id: a02d937c92f815a7e8f785abee7304a2f3f12cf9

Change-Id: I3221d0bcd13374e296c8d4923b4679f4904fb71f
Signed-off-by: Simfex Chiu <simfex.chiu@mediatek.com>
CR-Id: ALPS03940671
Feature: [Module]Wi-Fi HAL
2020-01-18 09:56:20 +08:00