672 Commits

Author SHA1 Message Date
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
Guoyi Qu (曲国毅)
151cc668f5 [ALPS03895823] add permission
add selinux permission

MTK-Commit-Id: b689138429baa1e73f6ebfb3106d121831bc023e

Change-Id: Ia67aee4df0fc8bcd3bb92eaf37b329f2d867b65f
CR-Id: ALPS03895823
Feature: Connsys Log Tool
2020-01-18 09:53:17 +08:00
Guoyi Qu (曲国毅)
7c346aab63 Merge "[ALPS03921396] emdlogger SELinux error" into alps-trunk-p0.basic
Change-Id: I5e5f12436d4d6984d8725ce1fdd82da6840581f4
MTK-Commit-Id: b35204130c2bdd173178550fcd11c7c476e4115a
2020-01-18 09:53:12 +08:00
bo.shang
38ae679b9b [ALPS03921396] emdlogger SELinux error
1. Fix emdlogger selinux avc error on P

[Solution] Modify SELinux file

MTK-Commit-Id: dc981c59fc3c45b273ae31cb14269ada31ae668e

Change-Id: Iaaf4198be65ad728b95497e2767e1b4c254b18d2
CR-Id: ALPS03921396
Feature: Modem Log Tool
2020-01-18 09:53:08 +08:00
Weilun Liu (劉維倫)
f5eb772682 Merge "[ALPS03804621] [P migration] Add property context" into alps-trunk-p0.basic
Change-Id: I31b7a5a28db5d9197186e84b3849014799118c94
MTK-Commit-Id: 7b5bd74e707d28f63dbf65676f0e5cc6aac4437e
2020-01-18 09:53:06 +08:00
Weilun Liu
e1c4fb0172 [ALPS03804621] [P migration] Add property context
[Detail]
add vendor_radio_prop permission for muxd

MTK-Commit-Id: bc55291872089af6ded78ff0ab81c329346b3730

Change-Id: Ie4b9415f2ab7a511af78e1f795ed9fdd531b4524
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 09:53:03 +08:00
Gang Wei
7329e46829 Merge "[ALPS03909621] Move Meta_tst" into alps-trunk-p0.basic
Change-Id: Ibfa3d0a31255ba9b169240a03a76da62745bbfe9
MTK-Commit-Id: 76130225cb40ea0864147ec339a75163409f8c79
2020-01-18 09:53:01 +08:00
Dian Wang
0fce80f644 [ALPS03909621] Move Meta_tst
[Detail] Move meta_tst from system to vendor

[Solution]
modify sepolicy

MTK-Commit-Id: 8c8bd1670f4a1ef1bce11e8791d6561acb50bf56

Change-Id: Ia003185b640bf1113323095ac86178ef0658f142
CR-Id: ALPS03909621
Feature: SP META Tool
2020-01-18 09:52:54 +08:00
Larry Liang
414d985a6b Merge "[ALPS03841705] AEE porting on Android P about selinux" into alps-trunk-p0.basic
Change-Id: I5f57fbeca5c38a70e55a6a8d1d6e5e0cd51e9d98
MTK-Commit-Id: ccfbd36043a9be458e28c37d69ec2ce8ffaf5937
2020-01-18 09:52:49 +08:00
mtk11285
c058e72a5b [ALPS03841705] AEE porting on Android P about selinux
[Detail] add some rules

MTK-Commit-Id: 350fa2869fe9390bcb7ca562af5230a2ad711640

Change-Id: Ib4966ae42233270eb7a65ab036903791767b5ec8
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:52:43 +08:00
Denis Hsu
9e7a03c4ac Merge "[ALPS03841839] Allow meta to use nvram hal" into alps-trunk-p0.basic
Change-Id: I9648f65574bb729652ce8bbb6914bdd3d1e43660
MTK-Commit-Id: 19a089e63cdfe23ad4bc5e4060a059cc0e1d36d9
2020-01-18 09:52:41 +08:00
Denis Hsu
aa4849e450 [ALPS03841839] Allow meta to use nvram hal
[Detail]
Allow meta to use nvram hal for accessing nvram

[Solution]
Add policy:
allow meta_tst nvram_agent_binder_hwservice:hwservice_manager find;

MTK-Commit-Id: 991c9043c122fe1d7944e3646169ce36bc2cb8b9

Change-Id: Iaa9aef7a4e7355d668b9222fad3c999d3b24d4d4
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:52:34 +08:00
Chaoran Zhang
268ce212d3 [ALPS03872369] Fix Selinux build error
[Detail]
Fix Selinux build error
[Solution]
Fix Selinux build error

MTK-Commit-Id: cf6e6ec49bba170b544c2cfd25d046b50f0fcf32

Change-Id: I5e34dbfc1c9d7a7a26016bc2a7d808f436c89f40
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:52:30 +08:00
Peter Wang
2c7dd5ac57 Merge "[ALPS03901606] eMMC&UFS : Combo feature" into alps-trunk-p0.basic
Change-Id: I4c2f71a7849a30d85ece28c9b145249f9db056c1
MTK-Commit-Id: 52337831adf6f4f1f3fe2ab268936646e789de8d
2020-01-18 09:52:29 +08:00
Peter Wang
8183941448 [ALPS03901606] eMMC&UFS : Combo feature
[Detail]
1. Change type name from sysfs_boot to sysfs_boot_mode
2. Add type name sysfs_boot_type

MTK-Commit-Id: 54d5bb31fc8ad1d9ac2e931fe5dc01ef4c1083cf

Change-Id: I445ecdf5a5e334a49ccc1d747daa87f6be351d20
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
CR-Id: ALPS03901606
Feature: UFS Booting
2020-01-18 09:52:26 +08:00
Chaoran Zhang
c704b1a944 [ALPS03872369] Add GPS selinux
[Detail]
Add GPS selinux
[Solution]
Add GPS selinux

MTK-Commit-Id: 66e2cd1edfce9e203187445df36a97925e4f8e6a

Change-Id: I01dcf53bd08428f0b860aab26044e16dcdf154ed
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:52:15 +08:00
SW Integrator
38f6afbf14 [ALPS03800946] Remove vold_socket
[Detail]
Remove vold_socket because its not allowed

[Solution]
Remove marked code

MTK-Commit-Id: 8c940b5494f7631fce98a251f2d0ba857f9346df

Change-Id: I50c1d6cfd21f4877b0c1f08bd3f3bacb2c47885e
CR-Id: ALPS03800946
Feature: Treble
2020-01-18 09:52:12 +08:00