652 Commits

Author SHA1 Message Date
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
Chuanghua Zhao
4cf86a27c9 [ALPS03923695] Add read rule for bootprof.
[Detail]
Add read rule for bootprof log in systemserver.

MTK-Commit-Id: f48bdd8c28acc10d9f1f4463b3f15cb342d7ce49

Change-Id: Iec34c82a36f6b66601ca44fbe978a38a6c483600
CR-Id: ALPS03923695
Feature: [Module]SystemServer
2020-01-18 09:52:11 +08:00
Guoyi Qu (曲国毅)
8bb758be40 Merge "[ALPS03895823] add permission" into alps-trunk-p0.basic
Change-Id: Idabeaaafbb3891e2f2207195280f9cbea8f6b1fd
MTK-Commit-Id: b2be9e708d14bde1098be8d66ed2091d040569f8
2020-01-18 09:52:05 +08:00
Guoyi Qu
cc1878d818 [ALPS03895823] add permission
add selinux permission

MTK-Commit-Id: 1affee10dae13bf61a55a10ca332e2b8e904aa4a

Change-Id: I56379c52bfb40e7827a10570464d309080603f3d
CR-Id: ALPS03895823
Feature: Connsys Log Tool
2020-01-18 09:52:01 +08:00
Denis Hsu
d0d4b0cbb5 Merge "[ALPS03841839] Add policy for using nvram function" into alps-trunk-p0.basic
Change-Id: I416088d35348af0176c0dbe409969700a4945079
MTK-Commit-Id: 08f1090f103d60139545422ba9bc95647e6140a1
2020-01-18 09:51:59 +08:00
Denis Hsu
6878563342 [ALPS03841839] Add policy for using nvram function
[Detail]
The P version change nvdata path to /mnt/vendor/nvdata.
If want to open fstab when using nvram function,
it needs search policy.

[Solution]
allow xxx mnt_vendor_file:dir search

MTK-Commit-Id: a34d6ff7cf3b1545014a45f5052f7dbddf93808a

Change-Id: I2730d51963d3859008b4a53f06329ef0a23eb8f4
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:51:51 +08:00
Xianpu Liang (梁献普)
9d09ef7e86 Merge "[ALPS03868216] wlan_assistant: allow to write nvram to driver" into alps-trunk-p0.basic
Change-Id: I18ed46bd6239893ba6b40043f64b99e8687d8e9e
MTK-Commit-Id: e94b9234714ce272cf8bb27b34c94a13cd687eed
2020-01-18 09:51:47 +08:00
Xianpu Liang
db3a89cdca [ALPS03868216] wlan_assistant: allow to write nvram to driver
Wlan driver has no permission to read nvram and wifi.cfg, wifi_fw.cfg,
so need to read that in wlan_assistant, and then write it to wlan
driver

MTK-Commit-Id: 1df286414a6fefe023069318bd4e7f14606d9fe1

Change-Id: I5e8adcfeb17b043fedec5bd2d65b25fc58f59bae
CR-Id: ALPS03868216
Feature: [Module]Wi-Fi HAL
2020-01-18 09:51:44 +08:00
Denis Hsu
2ec7a38162 Merge "[ALPS03841839] Copy fstab failed in nvram daemon" into alps-trunk-p0.basic
Change-Id: Ic9a533c6778d35dcb787bc3fcd4fff5ca987ddd3
MTK-Commit-Id: f2bc4cd47bc31cb7ed6bf48b7c0ec1f1da1fbd50
2020-01-18 09:51:36 +08:00
Denis Hsu
72de9ef514 [ALPS03841839] Copy fstab failed in nvram daemon
[Detail]
We change the nvram path to /mnt/vendor/nvdata in P.
It needs add search policy for fstab copying.

[Solution]
allow nvram_daemon mnt_vendor_file:dir search;

MTK-Commit-Id: 0695da89e80b8c635be5764c5d1ba4088c38a445

Change-Id: I7ee2bd8bc6c16ac8c904e04d1f2a00da421f551e
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:51:33 +08:00
Larry Liang
a308bd06d8 Merge "[ALPS03841705] relable the ro.* property of AEE" into alps-trunk-p0.basic
Change-Id: If2ed9f9583e7d466ff1917401fcf69dd7f05227d
MTK-Commit-Id: 6111bda13a76ef18e5974b6c815258882bcba7bd
2020-01-18 09:51:31 +08:00
mtk11285
75d22d6e40 [ALPS03841705] relable the ro.* property of AEE
[Detail] relable the ro.* property of AEE

MTK-Commit-Id: d3a00d0323f1ea56c68c75a3c07e5db649ccf328

Change-Id: Id4038cd4b01622bd955d4845eae9493693ef33b6
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:51:24 +08:00
Larry Liang
4375968bf1 Merge "[ALPS03886572] Relabel MobileLog properties" into alps-trunk-p0.basic
Change-Id: I4e981b725e87a345646d096a841e069cbd4bc88b
MTK-Commit-Id: 873616587e28451e523ec38a6a8c46201dea7692
2020-01-18 09:51:21 +08:00
Yuxian Xu
e5092c50cd [ALPS03886572] Relabel MobileLog properties
[Detail]
 Relabel MobileLog properties

MTK-Commit-Id: 55ea56fb0008719e0081ff362b3f0867107aaf38

Change-Id: I5546316e039fa28b74946a54dee84fdddfefb2d1
CR-Id: ALPS03886572
Feature: Mobile Log Tool
2020-01-18 09:51:19 +08:00
Lili Lin
98a7fdc4b2 [ALPS03934986] Fix Selinux issue
[Detail]
Command chown system system /mnt/vendor/nvcfg action=post-fs-data (/vendor/etc/init/hw/init.mt6739.rc:138) took 1ms and failed: lchown() failed: Permission denied

[Solution] Add unlabeled permission for vendor_init

MTK-Commit-Id: 511397f101d5d63593199c212888e674e661199d

Change-Id: Ia22badf945b52f76be3176f3081ada35aaada17b
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:51:11 +08:00
Joen Chen (陳建豪)
3b302c45bc Merge "[ALPS03869840] Add selinux for graphic debug prop" into alps-trunk-p0.basic
Change-Id: If7c4b3f2a04b5197a8270db779678f4542169c64
MTK-Commit-Id: a63971f7ccc36d66902ff8a680ae70597d970f6f
2020-01-18 09:51:10 +08:00
Ju-Yi Cheng
8f98a88a89 [ALPS03869840] Add selinux for graphic debug prop
[Detail]
Relable vendor defined debug property for android P
and label the following property:
1. vendor.debug.sf
2. vendor.debug.hwc
3. vendor.debug.bq

MTK-Commit-Id: 597f4da4e53b1d45c556895e0d85bdb3c6cd80a1

Change-Id: Iaa311f9049a519bd891a45f2b2ca73a61861e353
CR-Id: ALPS03869840
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 09:51:06 +08:00
Iris Chang
e2ea841311 Merge "[ALPS03800946] Remove data_between_core_and_vendor_violators" into alps-trunk-p0.basic
Change-Id: I1021279410554b5dd41f3a8c973f3be9c89792b9
MTK-Commit-Id: be76ffac1a04dc45498efde6887fd1cf94a885a6
2020-01-18 09:51:04 +08:00
Iris Chang
47b92ae93a [ALPS03800946] Remove data_between_core_and_vendor_violators
[Detail]
data_between_core_and_vendor_violators is used temporarily. We should
follow Android P SELinux rule to write sepolicy.

[Solution]
Remove data_between_core_and_vendor_violators from files which already
fix SELinux build errors

MTK-Commit-Id: b371583759e781b0fb353f08d27cf7e425ff40fe

Change-Id: Ibdd1d2c175eea0abc502728d3effc5ee1564ee75
CR-Id: ALPS03800946
Feature: Treble
2020-01-18 09:51:00 +08:00
Larry Liang
2caa4a71e0 Merge "[ALPS03902348] GPU: Add sepolicy for graphics" into alps-trunk-p0.basic
Change-Id: I2e6489a91998e0da00d6091de1844f8d0ce915e0
MTK-Commit-Id: af3b62b53a36714d2531c64a5f9c46bf73fcbdea
2020-01-18 09:50:57 +08:00
Caroline Yang
b7ae0ec0c2 [ALPS03902348] GPU: Add sepolicy for graphics
[Detail]
Add libladder.so for libGLESv1_CM_mtk/libGLESv2_mtk

MTK-Commit-Id: 9e5a69ae64012ac6c9a384715b62f2ee3baa8600

Change-Id: Ieb511eac2875db21da0644692a8551993cefbab6
CR-Id: ALPS03902348
Feature: OpenGL|ES
2020-01-18 09:50:54 +08:00