549 Commits

Author SHA1 Message Date
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
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
ILEX Lin
1909efba0f [ALPS03894499] ST NFC HAL 1.1
[Detail]
Android P requires HAL for NFC to implement android.hardware.nfc@1.1 interface.

[Solution]
New service implementation android.hardware.nfc@1.1-service-st providing this
interface. The new HAL has a separate configuration file.

MTK-Commit-Id: 4a0ec3094c9f6187cef6f4b2a4d109db5e0c1ea3

Change-Id: Ic19f9f79daf3fc7414c52b2c7894203d7c2f5fbc
CR-Id: ALPS03894499
Feature: NFC Chipset Capability
2020-01-18 09:55:18 +08:00
Chunhui Li (李春辉)
e6b5f81450 Merge "[ALPS03890586] add setgid for aee_core_forwarder" into alps-trunk-p0.basic
Change-Id: I6f2031b1be24e98a4f1d00de10047940c1b80229
MTK-Commit-Id: 8747457876b6db5be283287fd100edf122681795
2020-01-18 09:55:16 +08:00
Ji Zhang
3dd4f888c5 [ALPS03890586] add setgid for aee_core_forwarder
[Detail]
Add setgid selinux rule for aee_core_forwarder to make it can add
group to avoid dac_override

MTK-Commit-Id: e25e5ae4c8f3b760c112efd8c8809d5e9790b967

Change-Id: I90a4af9b3fe86d7699f1fa3adbd9f402c4de88ac
CR-Id: ALPS03890586
Feature: Android Exception Engine(AEE)
2020-01-18 09:55:08 +08:00
Denis Hsu
98edd581fd Merge "[ALPS03841839] Fix update wifi MAC in engineer mode" into alps-trunk-p0.basic
Change-Id: I1543f89f4342060304b3e00f23454f1302be6c17
MTK-Commit-Id: 17d21b7302de5e7afcd8df238a412e2d04a15555
2020-01-18 09:55:07 +08:00
Denis Hsu
ad7720ff99 [ALPS03841839] Fix update wifi MAC in engineer mode
[Detail]
The function was blocked by selinux violation.

[Solution]
allow nvram_agent_binder mnt_vendor_file:dir search;

MTK-Commit-Id: fcafa58e058948d5b8e5244a5a1d06cf88d1e12c

Change-Id: I05a7809fdb7b5daf2890116e4591793c1c9c3dcc
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:55:06 +08:00
Guoyi Qu (曲国毅)
78d28f71c8 Merge "[ALPS03939381] Remove no use selinux code" into alps-trunk-p0.basic
Change-Id: I71a06653a217f8445ed3108af0cc7247c262cb13
MTK-Commit-Id: d9f521a7211cdfefd1fdde600022d4997804ac5a
2020-01-18 09:55:04 +08:00
bo.shang
084ccf58c9 [ALPS03939381] Remove no use selinux code
[Solution] set_prop is enough

MTK-Commit-Id: c2278dad320b9a85dde95ac70d97d2e6a54ae19c

Change-Id: I52279612a7bcc98376736c3fb646f59b02cf8f15
CR-Id: ALPS03939381
Feature: Modem Log Tool
2020-01-18 09:54:56 +08:00
mtk11285
27697efd23 [ALPS03841705] temp solution about getting user load DB
[Detail]
copy /data/vendor/mtklog/aee_exp/db.* to /sdcard/mtklog/aee_exp

MTK-Commit-Id: cf04e73ff27d6d1b2fba34ea3be11e5b2b095c0a

Change-Id: Iba2dcf15d6738ab309eaae5077e1875b4147cc52
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:54:52 +08:00
jianying duan
0d61a38231 [ALPS03940737] add selinux permission to mediaextractor.te
[Detail]

mediaextractor cannot read sdcard.

[Solution]

add selinux permission to mediaextractor.te

MTK-Commit-Id: 7a89ca1914626a10008eafc2af6b3b38b9661918

Change-Id: I93db44bb28d442a0a58544dcb89963ede449206b
CR-Id: ALPS03940737
Feature: [Android Default] MPEG4/3GP Playback
2020-01-18 09:54:45 +08:00
Eddie Hung
db291e3ad3 Merge "[ALPS03940710] add label for usb hidl" into alps-trunk-p0.basic
Change-Id: Ifd17e518fa4ba237d1c9b04be5762a6c8493a7e5
MTK-Commit-Id: 541efed4e54b21f44b78d04078719c39442039a7
2020-01-18 09:54:45 +08:00
Eddie Hung
0cf1cb02d9 [ALPS03940710] add label for usb hidl
[Detail]
Add label "sysfs_dual_role_usb20" for access
usb20 dual role path.

MTK-Commit-Id: 5022209befe791a0045b155fc070d831ef5f7beb

Change-Id: Ib7ff9a04833aff10945f51f854026a29df0747ca
CR-Id: ALPS03940710
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:54:43 +08:00
Gang Wei
0180e0d953 Merge "[ALPS03940671] Fix failure in nvram editor" into alps-trunk-p0.basic
Change-Id: Ic1b17594cabfd52aaa705c907e6ba854dbc4b72a
MTK-Commit-Id: 4f59ae69d0bab555b4046b97764e1a9f2a345821
2020-01-18 09:54:35 +08:00
Denis Hsu
986ba166ed [ALPS03940671] Fix failure in nvram editor
[Detail]
The failure comes from selinux violation.

[Solution]
allow meta_tst nvram_agent_binder:binder call;

MTK-Commit-Id: a2271c526c008e8f009452953cfd5351ed51d31d

Change-Id: I10156c9954a8e7c46de302947b9c15905267aa8c
CR-Id: ALPS03940671
Feature: NVRAM Partition
2020-01-18 09:54:34 +08:00
Guowei Wang
c7143a9b62 [ALPS03938688] Add permission to write misc
[Detail]
Add permission to allow meta tst to write misc partition

MTK-Commit-Id: 30a74689b1cbcaa5cc7b4cf159b703f2d4c868da

Change-Id: I4e8258f4daef9d1b12a152b735f416ac6ede852c
CR-Id: ALPS03938688
Feature: SP META Tool
2020-01-18 09:54:29 +08:00
Guoyi Qu (曲国毅)
7ab8c5520c Merge "[ALPS03939381] Relabel Modem log property" into alps-trunk-p0.basic
Change-Id: Ie9f903f65e2fc1da6aae0750377f83bb8406df81
MTK-Commit-Id: d7cf1403e94a060bab5102e2063522a494b241da
2020-01-18 09:54:26 +08:00
bo.shang
8e36e3b63b [ALPS03939381] Relabel Modem log property
[Solution] Add permission for emdlogger and netdiag

MTK-Commit-Id: 14c95f115ab3347144b53fdfadb968697c689456

Change-Id: I591f884fbd7bccbbfd7fd28b5e05f4ea2b2e3181
CR-Id: ALPS03939381
Feature: Modem Log Tool
2020-01-18 09:54:24 +08:00
Weilun Liu (劉維倫)
9adb35d72d Merge "[ALPS03804621] [P migration] Add property context" into alps-trunk-p0.basic
Change-Id: I2b349b2e8c206ddf030a42ff52a66908eebeed5d
MTK-Commit-Id: 06999f1e3ad8c529729a561f94e04fbbeb8197bb
2020-01-18 09:54:22 +08:00
Weilun Liu
c47dc96d58 [ALPS03804621] [P migration] Add property context
[Detail]
add vendor_radio_ipo_prop permission for fusionrild

MTK-Commit-Id: 252e468ec1f6261cb1f6ea8967a188c1e09e4c90

Change-Id: I1a4e9f52cf257f47c71bca9bf60c62a5cd119e50
CR-Id: ALPS03804621
Feature: [Module]Telephony power on
2020-01-18 09:54:15 +08:00
bo.shang
43da9dd22e [ALPS03939381] Label mdlogger property
change to debug to vendor.

MTK-Commit-Id: 7e44c1459207e6d1ec904ab2cc5224f19cc29ade

Change-Id: I996979da0f2827d9627a7bc69b6b65c3f590aa82
CR-Id: ALPS03939381
Feature: Modem Log Tool
2020-01-18 09:54:14 +08:00
Denis Hsu
6a17644df7 Merge "[ALPS03915348] Upgrade nvram hal to 1.1" into alps-trunk-p0.basic
Change-Id: I1333023e0a4077dc23959bb17125914998ade08f
MTK-Commit-Id: 4b56524a589fd111a4a15070a13d296cdc43f5b9
2020-01-18 09:54:13 +08:00
Denis Hsu
bd3ad5b5b7 [ALPS03915348] Upgrade nvram hal to 1.1
[Detail]
The interface of nvram hal 1.0 was already MP in O version.
Then, we cannot modify the interface of 1.0.

We add some nvram hal api in P (backup/restore).
Thus we upgrade the hal to 1.1.

[Solution]
Use vendor.mediatek.hardware.nvram@x.x-service to register

MTK-Commit-Id: 83d35c54f75433776b2984a1e976174aaf4a840d

Change-Id: Icae8ad12c2c7bdc924100bc9c8dd513cd10ad25f
CR-Id: ALPS03915348
Feature: NVRAM Partition
2020-01-18 09:54:03 +08:00