1138 Commits

Author SHA1 Message Date
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
Gang Wei
02e754b7b6 Merge "[ALPS03909621] Move meta_tst" into alps-trunk-p0.basic
Change-Id: I28162c4b313d21df86b0bfda80b1337ea199c36c
MTK-Commit-Id: 58be940053deb6195b5a32c8b4bc142422077661
2020-01-18 09:54:02 +08:00
Dian Wang
604717a659 [ALPS03909621] Move meta_tst
[Detail] Move meta_tst from system to vendor

[Solution]
mark not allowed sepolicy

MTK-Commit-Id: c577af5726938689d27f3f9cf94dbdd3d49037e4

Change-Id: I5f4e682abeeb0b84dfd938e697234c36edac4ae3
CR-Id: ALPS03909621
Feature: SP META Tool
2020-01-18 09:53:55 +08:00
Black Chen
09bc130b33 Merge "[ALPS03938413] FM Radio: Add sepolicy for fm_hidle_service" into alps-trunk-p0.basic
Change-Id: I43653126871ab0627f11b77478f7ae513a88d997
MTK-Commit-Id: 244106274b5592bbbb771975a4b0bdfb5e118cba
2020-01-18 09:53:50 +08:00
Mason Lai
364e2c8274 [ALPS03938413] FM Radio: Add sepolicy for fm_hidle_service
[Detail]
Add sepolicy for fm_hidle_service.

MTK-Commit-Id: 13358f71839220423a732b81b0e3c1d2e4210cb8

Change-Id: I761732065bbcec7fa398ab481b7921509232e693
CR-Id: ALPS03938413
Feature: [Module]FM Radio Driver
2020-01-18 09:53:45 +08:00
Bo Shang
2049228bfd [ALPS03938824] MTKLogger cant start modem log
revert code

MTK-Commit-Id: bd9f5e9d378074d75b691d9a7d1d6db913e0f743

Change-Id: I13df8d2f18bb34d3f6aac4a024dd3ce84b963c7b
CR-Id: ALPS03938824
Feature: Modem Log Tool
2020-01-18 09:53:42 +08:00
bo.shang
1228b041a5 [ALPS03938824] MTKLogger cant start modem log
SElinux opened and selinux error caused many fail

[Solution] Add permission for setpropty

MTK-Commit-Id: d866e6798a30826ae8fc2f163541f7701481c0d0

Change-Id: I8f1513896afb4a751d1838200e03e41be8763d1d
CR-Id: ALPS03938824
Feature: Modem Log Tool
2020-01-18 09:53:36 +08:00
Dengwei Xu
3fc78ea571 Merge "[ALPS03939119] MTKlogger start network log fail" into alps-trunk-p0.basic
Change-Id: Ifd48fc37bbb2f241f375ddd0d0b6c46b54ec99a0
MTK-Commit-Id: 29c7d20a2917ced2e24666a162bb3eaad4ec0821
2020-01-18 09:53:35 +08:00
bo.shang
06cc7d74f4 [ALPS03939119] MTKlogger start network log fail
Root cause: SElinux error

[Solution] Add permission

MTK-Commit-Id: 70e0e5269742da491f639e9fdb620c0824b0d97f

Change-Id: I13dd8542b51d36789c6d83c7eebfb8cec8105782
CR-Id: ALPS03939119
Feature: Network Log Tool
2020-01-18 09:53:33 +08:00
Zhen Jiang
4126641b3d Merge "[ALPS03936313] NE occured on ccci_fsd" into alps-trunk-p0.basic
Change-Id: I17630775b3ee14ec713c209858f7de16d2294cd2
MTK-Commit-Id: 5efa3ba3617ed9c0182c2f7de00a9318bf063377
2020-01-18 09:53:29 +08:00
mtk13799
9b9fbdfcf9 [ALPS03936313] NE occured on ccci_fsd
[Detail]ccci_fsd cannot open nvdata for selinux rule

[Solution]add selinux rules

MTK-Commit-Id: 187a7abec272b2e4201d7897d6608e5fafbc9070

Change-Id: Idd88dfc3d27d68584ca32be1e0128f21a29a7524
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03936313
Feature: Modem Interface Driver
2020-01-18 09:53:24 +08:00
Guoyi Qu (曲国毅)
6f75c3664a Merge "[ALPS03895823] add permission " into alps-trunk-p0.basic
Change-Id: Id5fca575ebdd697c78620e030e28a3c2068fb3dd
MTK-Commit-Id: 99bd62a4ee43423ded3f0a3990f3bd012a8f0cd9
2020-01-18 09:53:22 +08:00