338 Commits

Author SHA1 Message Date
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
Ji Zhang
e7cd43c12c [ALPS03890586] add rules for aee_aed
[Detail]
Add selinux rules for aed in eng/userdebug:
capability dac_override/dac_read_search

MTK-Commit-Id: d3cb23b65eb02f7b4d57d818f0bfd617b96387ed

Change-Id: Ie4e7efe212913aa7cbfb12aa471b911fbabcdae0
CR-Id: ALPS03890586
Feature: Android Exception Engine(AEE)
2020-01-18 09:50:50 +08:00
Max Huang
042172187a Merge "[ALPS03931068] WMT: fix SEPolicy issue" into alps-trunk-p0.basic
Change-Id: I01fb75512d5db57fc54d36ddf4457df4af06b2ca
MTK-Commit-Id: 206de59a21cc0c884350d14366dfdf9956f1c444
2020-01-18 09:50:49 +08:00
Robbin Chiu
cd3da1b8a8 [ALPS03931068] WMT: fix SEPolicy issue
[Solution]
Add SEPolicy rule for wmt_loader

MTK-Commit-Id: beb5ef6cba5f8328f375c24cdde2c7113412d7a5

Change-Id: Ifd74b1929ff60bdc81a51dbdcb7188f97ea6367d
CR-Id: ALPS03931068
Feature: [Module]WMT Driver
Signed-off-by: Robbin Chiu <robbin.chiu@mediatek.com>
2020-01-18 09:50:46 +08:00
mtk11285
628e0eccb8 [ALPS03841705] AEE porting on Android P about selinux
[Detail]
1. add some rules
2. temp solution for getting ro.*.mediatek.version.branch/ ro.*.mediatek.version.release property

MTK-Commit-Id: 12c4d79a10293c4611233c985c29dca94f6e24ae

Change-Id: Ice4d565664f95a456f985ed138f302fe7ac4dbff
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:50:43 +08:00
Dian Wang
39aae26920 Merge "[ALPS03909621] Move meta_tst" into alps-trunk-p0.basic
Change-Id: I8bf77adeabb1e8c9cb670d08f2e9c7547e3545c7
MTK-Commit-Id: 2d248dc848d56e791912f2ca6c3d17650b1e558f
2020-01-18 09:50:42 +08:00
Dian Wang
b84e8c94d9 [ALPS03909621] Move meta_tst
[Detail] Move meta_tst from system to vendor

[Solution]
modify sepolicy/basic

MTK-Commit-Id: 4bac131e38e71904dfc6f69a0b1ec15f46a08881

Change-Id: I571edd67cf3f59c293aa2aa674292380b86fcf38
CR-Id: ALPS03909621
Feature: SP META Tool
2020-01-18 09:50:34 +08:00
Larry Liang
6d44ebd79b Merge "[ALPS03841705] aee cant red screen on enforcing mode" into alps-trunk-p0.basic
Change-Id: I883473e40b179a8cdfc3dde7218e9c517326a083
MTK-Commit-Id: cf54f319e74f86559e4743635d28e50fe8cdec7c
2020-01-18 09:50:29 +08:00
mtk11285
2d1de9641e [ALPS03841705] aee cant red screen on enforcing mode
[Detail] aee cant red screen on enforcing mode

MTK-Commit-Id: baa0c22ec13f572616eb8d5bcfc35e1dfadf4f02

Change-Id: Ib87249d85e81d60dba28e546902956be43c7d88c
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:50:25 +08:00
Bo Ye (叶波)
0bd12824eb Merge "[ALPS03825066] Remove unused sepolicy" into alps-trunk-p0.basic
Change-Id: Ie14a2d381dd27dc74f2182a0cef352d8dbfb4988
MTK-Commit-Id: b2e957a3d1a8993787927440ba2007397dcc7ac4
2020-01-18 09:50:20 +08:00
mtk12101
b086e609ac [ALPS03825066] Remove unused sepolicy
[Detail] Because "ro.vendor.net.upload.benchmark.default"
is unlabeled property, so all use it will have name of
vendor_default_prop

[Solution] Need owner to relabel the property of
"ro.vendor.net.upload.benchmark.default"

MTK-Commit-Id: 3a772e2b252536c9bbe9829b75f3464c2df68248

Change-Id: I42f341bf01cea16a16a0e73d13e0c03b5c270dad
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:50:11 +08:00
Josh Hsiao (蕭志遠)
4abb4dacbd Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic
Change-Id: I2c62cf51cfea15252be947429e8df260130cd784
MTK-Commit-Id: 5601ea641ff6992639ec5add66a8e448327417c4
2020-01-18 09:50:03 +08:00
jerry-sc.wu
c7b0e0020f [ALPS03867358] Thermal: P Migration
[Detail]
Modiy change thermal policy method.
Using "set property" instead of call lib by individual process.

[Solution]
1. Add "on property" in init.thermal_manager.rc file.
2. Modify selinux policy.
3. Remove "on property" in project init.rc.
Using "start service" instead of "exec command" to
avoid performance issue.
4. Rename thermal property.

MTK-Commit-Id: e384dfc938d08ed9e37de6c0ca2bfbe10dfa3f2d

Change-Id: I20981a3ee6461428a29dd01fab0553b3b2a63539
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
2020-01-18 09:49:54 +08:00
Shan Zhang (张山)
c220e2dbaf Merge "[ALPS03916010] Upgrade to drm hidl 1.1" into alps-trunk-p0.basic
Change-Id: I6f733a6ec25cabd8b3245900748c87e7f34815f1
MTK-Commit-Id: f4edac22852384fb65ad155130c2bf7181676b4a
2020-01-18 09:49:50 +08:00
Jackie Lin
6cfb419058 [ALPS03916010] Upgrade to drm hidl 1.1
Google has upgraded drm hidl to version 1.1, need upgrade
 all config(device.mk, sepolicy, manifest) to new version.

MTK-Commit-Id: 50b87ab9d8654c2ea1bea22fa9a589fd85481324

Change-Id: I9a36ad250153bcbb446b790bae5942965409fab3
CR-Id: ALPS03916010
Feature: Google Widevine Level1
2020-01-18 09:49:47 +08:00