318 Commits

Author SHA1 Message Date
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
Iris Chang
4ab7553919 Merge "[ALPS03800946] Remove data_between_core_and_vendor_violators" into alps-trunk-p0.basic
Change-Id: I82c81a0dd1482265175253fd6bf2825d941c74cf
MTK-Commit-Id: 46e7678936d83a74b8b07ad14815905718119c25
2020-01-18 09:49:41 +08:00
SW Integrator
700750af5e [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: 6a75842a96d8997bca10caf6ca4d5b4e7e8f68a4

Change-Id: I5e840fdf6b61d44860429a7e5c7e24c9a48a9c75
CR-Id: ALPS03800946
Feature: Treble
2020-01-18 09:49:26 +08:00
Leon Tseng
cfab913757 Merge "[ALPS03919865] CCT mtk.client.appmode property" into alps-trunk-p0.basic
Change-Id: I85636c7b31af39d94784d362c9790ec652fb6590
MTK-Commit-Id: 53d45b6ab6f35b5e2da71fa34cb9b0b7ee1b7b76
2020-01-18 09:49:23 +08:00
mtk04179
5d38942dee [ALPS03919865] CCT mtk.client.appmode property
allow CCT to set property, and run "MtkEng" mode

MTK-Commit-Id: 1e9d617b4ea425b5201cefc5c44c0a8fe1fc33d6

Change-Id: Icd7312b1dee132110ba4009d31ecb1c365ec8573
CR-Id: ALPS03919865
Feature: Camera Calibration Tuning (CCT) Tool
(cherry picked from commit 71736e24765ee35e4aaa91ac770bda610574fa17)
(cherry picked from commit 4d38e06e9dfbdaec65b725ba7ff6b5671ca82636)
2020-01-18 09:49:21 +08:00
Shan Zhang (张山)
89cad29a6a Merge "[ALPS03869840] SF : Add sepolicy for graphics" into alps-trunk-p0.basic
Change-Id: I7ab0283ff78b16549b566421719c282932bebc32
MTK-Commit-Id: 6eb9be880b8c73fb961b7dce249083b3297d6a90
2020-01-18 09:49:19 +08:00
mtk14318
0c22318021 [ALPS03869840] SF : Add sepolicy for graphics
[Detail]
More strictly selinux policy that system process cannot access vendor partition,
unless label the specific vendor lib to same_process_hal_file

[Solution]
Add same-process HAL files and their dependencies

MTK-Commit-Id: 3cb98800bc3a8cda80905c0cba6a4aad1799833a

Change-Id: I0b7f9c536117944f1350bee70a06f02d3db0bfb4
CR-Id: ALPS03869840
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 09:49:10 +08:00
Larry Liang
dc82c27ed1 Merge "[ALPS03841705] AEE porting on Android P about selinux" into alps-trunk-p0.basic
Change-Id: I7b925410c8272b6cfa1311648f27ed858dec58a5
MTK-Commit-Id: 8250a3df471855f88e94a03603ca7aabe3839496
2020-01-18 09:49:06 +08:00
mtk11285
a76cdd9cee [ALPS03841705] AEE porting on Android P about selinux
[Detail]
1. add some rules
2. transfer aee_core_forwarder domain form kerenl to aee_core_forwarder

MTK-Commit-Id: 7ad2c5df75565153ccec471f0eb2224c912515cd

Change-Id: I9b576e3937d04b5848baeb156718d0469fa05a75
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:48:59 +08:00
Chuanghua Zhao
631c50a10a Merge "[ALPS03923695] Modify systemserver selinux rule" into alps-trunk-p0.basic
Change-Id: If8bc499d4026331db3395821d8c3bc7eeccc0673
MTK-Commit-Id: b785c570c1b61892dd9c96c0ebf9c0eb461a21fd
2020-01-18 09:48:51 +08:00
Chuanghua Zhao
34fd142b88 [ALPS03923695] Modify systemserver selinux rule
[Detail]
1>.Android P remove proc selinux rule.
2>.Need add proc_bootprof for bootprof feature.

MTK-Commit-Id: db58a2ce3a8da459758983b8a1b439c3e5d59d87

Change-Id: Ibd30a2fa55cf2d5463ab320d4c7d9e64f02bb90f
CR-Id: ALPS03923695
Feature: [Module]SystemServer
2020-01-18 09:48:47 +08:00
Bo Ye (叶波)
fd5582fcf8 Merge "[ALPS03825066] Fix boot fail" into alps-trunk-p0.basic
Change-Id: I815bbbcb83e97367c2e0e59494826e83e6c38cc4
MTK-Commit-Id: 96cdedafea2eacc5c66fc4365e0768cd9c3f518c
2020-01-18 09:48:40 +08:00
mtk12101
9cbf8fb766 [ALPS03825066] Fix boot fail
[Detail] System processes have no permission to access
vendor_default_prop

[Solution] Add get vendor_default_prop rule for system
processes

MTK-Commit-Id: ad4fb4d8ae4fb38767c16b82ce9d8351f5f59702

Change-Id: I31cf13db6b50a3cff193aa0a34bc1130e5b18942
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:48:37 +08:00
Ian-Y Chen (陳尹)
dfcdfed451 Merge "[ALPS03798641] power: control display idle time" into alps-trunk-p0.basic
Change-Id: If25d82e96f7e40efd1d1e25518ac3fd044f8b799
MTK-Commit-Id: 50b973ac6248d7bd03643ed258e27ca8a0c049b8
2020-01-18 09:48:34 +08:00
Ian-Y Chen
d14992cf3a [ALPS03798641] power: control display idle time
[Detail] Add SE policy to access display driver

[Solution] Add permission of debugfs_fb

MTK-Commit-Id: 3691d65b9791e45b5920e7b1961c16344d3807ca

Change-Id: I3e5e557c53bdf3d48ac387f5be939de0449a960a
CR-Id: ALPS03798641
Feature: [Module]PowerHAL
2020-01-18 09:48:26 +08:00
Michael Hsiao
2376a2348f Merge "[ALPS03889880] Audio: HIDL 4.0" into alps-trunk-p0.basic
Change-Id: I2c30bf4a4648141a6b7bb9126ec2421d8113f68c
MTK-Commit-Id: 9293bca835b685eb52aa78dd59792d9898598027
2020-01-18 09:48:20 +08:00
Caroline Yang
833b333821 [ALPS03902348] GPU: Add sepolicy for graphics
[Detail]
More strictly selinux policy that system process cannot access vendor partition,
unless label the specific vendor lib to same_process_hal_file

[Solution]
Add same-process HAL files and their dependencies

MTK-Commit-Id: 142626c1bf5c65f7781d3c75969cacd86afa938a

Change-Id: I4f6f1be7eef4f013578fe06512ba32e43d107ddf
CR-Id: ALPS03902348
Feature: OpenGL|ES
2020-01-18 09:48:20 +08:00
Michael Hsiao
f48a67f511 [ALPS03889880] Audio: HIDL 4.0
[Detail]
Upgrade audio HIDL to 4.0 for Android P
1. Declare mtk_hal_audio use android.hardware.audio@4.0-service-mediatek library in file_contexts

MTK-Commit-Id: e5444d746bb48ab4b119ecc2c267cd953427fd5b

Change-Id: I280c86d1414475d5eb2c0aacc8a049f462aac34d
CR-Id: ALPS03889880
Feature: Phone Sound
2020-01-18 09:48:12 +08:00
Chang-An Chen
ef0ff9c117 Merge "[ALPS03869354] refine vibrator sysfs label" into alps-trunk-p0.basic
Change-Id: Icc4b82d34b13cbb295ed766531cc6fdca4bd9a5e
MTK-Commit-Id: e51dd72260ca4f70bf3eb17b31ff7f5c3290a44c
2020-01-18 09:48:07 +08:00
Chang-An Chen
5e3fcfb472 [ALPS03869354] refine vibrator sysfs label
[Detail]
Refine vibrator sysfs label, using aosp defined device
Moreover, move it to basic folder due to its basic used

MTK-Commit-Id: 41053b65c8c26973005988d1ad14208fff98fde6

Change-Id: I9ed6ece496ea1ffff9f777fb1f90c76638ad979f
CR-Id: ALPS03869354
Feature: [Android Default] Backlight
2020-01-18 09:48:04 +08:00
Lili Lin
cf19167a30 Merge "[ALPS03881723] vendor_init: Fix bootup denial" into alps-trunk-p0.basic
Change-Id: Iad6c262c6e666ee204d4b6633a3b44feaade58b9
MTK-Commit-Id: 8a3030b0dd7a5840fd8ae5282531c2ddfa8d8088
2020-01-18 09:48:02 +08:00