352 Commits

Author SHA1 Message Date
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
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
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
Lili Lin
b2a7714479 Merge "[ALPS03881723] Workaround to fix build break" into alps-trunk-p0.basic
Change-Id: Id481d8251583392004084ea3968afe7145293cc4
MTK-Commit-Id: b495c47d6585c9d8aa2689a7172ba5792c0c7c94
2020-01-18 09:56:18 +08:00
Lili Lin
05f5d87b88 [ALPS03881723] Workaround to fix build break
[Detail] Googles new commit
neverallow coredomain from writing vendor properties
cause build break

cdb1624c27

[Solution] Declare system_writes_vendor_properties_violators as workaround

MTK-Commit-Id: 2b19515d2d98945b0aadfbc9043352ae927497f3

Change-Id: I7be59b6811f6c75ea47da205be902417311fe1d0
CR-Id: ALPS03881723
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:56:13 +08:00
Tingting Lei
237a1c8db4 Merge "[ALPS03943817] Add sepolicy for mtk_hal_bluetooth to access nvram" into alps-trunk-p0.basic
Change-Id: Ie801a6a4f93feb63315011d995145913ba49e504
MTK-Commit-Id: de4d45f00da7859463643872bac4c75fc1ffe379
2020-01-18 09:56:10 +08:00
Tingting Lei
a8806ea9b3 [ALPS03943817] Add sepolicy for mtk_hal_bluetooth to access nvram
[Detail]
BT vendor lib cannot read the valid BD address from nvram
since selinux violation.
Android P version changes nvdata path to /mnt/vendor/nvdata.
If want to open fstab when using nvram function, it needs
search policy.

[Solution]
allow mtk_hal_bluetooth mnt_vendor_file:dir search

MTK-Commit-Id: 24997cbec894555c537930fe9f10122c450a5e4f

Change-Id: I9279614b100a2675ca88264899125ed549d3301f
CR-Id: ALPS03943817
Feature: BT AOSP
2020-01-18 09:56:07 +08:00
Guoyi Qu (曲国毅)
570e1867d0 Merge "[ALPS03943443] Modem Log start USB logging fail" into alps-trunk-p0.basic
Change-Id: I54d5f747ba455c7b14eefbd8ff83096005e390f1
MTK-Commit-Id: d0ef866415599566461fd4ae5f995e3c96091038
2020-01-18 09:56:02 +08:00
bo.shang
276c0764fc [ALPS03943443] Modem Log start USB logging fail
Fix SELinux errors:
   1. Set vendor property
   2. Set USB property

[Solution] Add permission

MTK-Commit-Id: f9bea7ca32b8ca70e6f015d786753a43491810aa

Change-Id: I3e7cfc80eb34c3430a059b57afa1474ee49e75b1
CR-Id: ALPS03943443
Feature: Modem Log Tool
2020-01-18 09:55:57 +08:00
Yuhui Zhang
9bfd115a97 Merge "[ALPS03886705] EmCamera:sytemproperty name change" into alps-trunk-p0.basic
Change-Id: I85ab713b378de0567d6d5b4eff6287578a9d553b
MTK-Commit-Id: bf2a23c717ea1964fe3e8627170e4bd0db2890a7
2020-01-18 09:55:55 +08:00
Juan Rong
e405561d06 [ALPS03886705] EmCamera:sytemproperty name change
[Detail]
P migration: System property name change,
related SELinux need change too.

MTK-Commit-Id: f71582111ca7952637d39f49d8dccebdc933e299

Change-Id: Id0afb83774b37a23dfdcb8c85ccbd79310ad20e3
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 09:55:49 +08:00
Wy Chuang
ad31bd41ee Merge "[ALPS03890927] battery: fix selinux policy" into alps-trunk-p0.basic
Change-Id: Ibc73628e76d8440f5cdf7536e994d9002a2558a7
MTK-Commit-Id: 817c08f14b8ab97bc1b8543cdb247f521e7cb8e1
2020-01-18 09:55:45 +08:00
Timo Liao
da81d68ea4 [ALPS03890927] battery: fix selinux policy
[Detail]
fix selinux policy

MTK-Commit-Id: 17d51da9d602ae8e9fed3d331352c7952dc92098

Change-Id: Id96cebd12ae9a9aec60089868951e26c569e8916
Signed-off-by: Timo Liao <timo.liao@mediatek.com>
CR-Id: ALPS03890927
Feature: Fuel Gauge
2020-01-18 09:55:43 +08:00
Huilong Yin (尹会龙)
1296a92564 Merge "[ALPS03929399] Rename CT VoLTE system property" into alps-trunk-p0.basic
Change-Id: I699b7353ae350f0dc3e3896e2df58f364860a0d8
MTK-Commit-Id: a5549d4f14a810100a1c5c200e73208300e29d54
2020-01-18 09:55:38 +08:00
guoyi.zhao
aa8c0897c5 [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: ae81ce0aabd412c630a4ebed0ba4a9a44121f8b6

Change-Id: I3142c30c2dcfe114cdaaf59d3b8bbfb565e50519
CR-Id: ALPS03929399
Feature: CTC VoLTE
2020-01-18 09:55:37 +08:00
Guoyi Qu (曲国毅)
9773d53cee Merge "[ALPS03895823] add permission " into alps-trunk-p0.basic
Change-Id: I0299f9af7b8b67367b34922b91941365021a90c0
MTK-Commit-Id: ab3690730a03cdd5a36db4ca401c35b1e40dd605
2020-01-18 09:55:34 +08:00
Guoyi Qu (曲国毅)
96730076c4 [ALPS03895823] add permission
add selinux permission

MTK-Commit-Id: fbe9ca497a35c93dda78f7f1ad05922ccb811ae3

Change-Id: I8e68ab52f968536e92676bd13b41b17f4054bc56
CR-Id: ALPS03895823
Feature: Connsys Log Tool
2020-01-18 09:55:28 +08:00
Dom Lin
9e164ef782 Merge "[ALPS03894499] ST NFC HAL 1.1" into alps-trunk-p0.basic
Change-Id: I3666acb4ccefc175c8504155b4d9c551d788a146
MTK-Commit-Id: 3c6932703defdb39e4557261772f0d4f87c917cb
2020-01-18 09:55:20 +08:00