93 Commits

Author SHA1 Message Date
Robbin Chiu
8ef11ef3fe [ALPS03951556] WMT: Move stp_dump to system image
[Solution]
Move stp_dump to system image to follow SEPolicy rules

MTK-Commit-Id: f3e5e4f43b6c506109caf2e01d1a61ee0223300e

Change-Id: I1252c1e5b682f97ff36a66d070b33368be05fd0f
CR-Id: ALPS03951556
Feature: [Module]WMT Driver
Signed-off-by: Robbin Chiu <robbin.chiu@mediatek.com>
2020-01-18 10:05:30 +08:00
Josh-YC Liu
2b842de393 [ALPS04021258] PQ: Add interface for ccorr matrix setting
Update PQ HIDL to V2.2 for new interface

MTK-Commit-Id: e60153d9d5671fcdd20fd1cec41f7ae7e44a6a44

Change-Id: Ia4bacd07084508b87b8ab5e1f24d3b5c93383079
CR-Id: ALPS04021258
Feature: Display Quality Enhancement
2020-01-18 10:05:13 +08:00
mtk11285
c5319bb896 [ALPS04022196] delete hal_dumpstate_impl.te
[Detail] phase out the feature of dumpstate hal service

MTK-Commit-Id: 01cf5ccf1d3b626c8efc1d1d08aa008a6864ba34

Change-Id: I0dd5aaa157d2a91feb5af63f0b5588549c20f8ed
CR-Id: ALPS04022196
Feature: Android Exception Engine(AEE)
2020-01-18 10:05:09 +08:00
mtk13799
2c1de8f2ba [ALPS04021339] Add selinux rule for md3/ccci_cfg path
[Detail]Add selinux rule for md3/ccci_cfg path

MTK-Commit-Id: 61510aaac5bcb07473b33fcb604cd4a39c690b71

Change-Id: Ia996a27ac3d92f7ca0b24d0ce0d8ffb48a68b5d3
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS04021339
Feature: Modem Interface Driver
2020-01-18 10:05:06 +08:00
Yanghui Li
a129b64e9e [ALPS04007267] sepolicy: change libm4u.so file label.
[Detail]
libGLES_mali.so depends on libm4u.so on mali GPU.
Surfaceflinger needs libGLES_mali.so, but it cant access normal vendor lib.

[Solution]
Change libm4u.so file label from u:object_r:vendor_file:s0 to u:object_r:same_process_hal_file:s0.

MTK-Commit-Id: cb147e1fb1711d5fea686b3f11d90b60829f1953

Change-Id: I73a0bab2188aa7d2f7f7c488f8377bc8b34af24c
CR-Id: ALPS04007267
Feature: OpenGL|ES
(cherry picked from commit baec3fff9cc025f8131f0fb461400591b8156632)
2020-01-18 10:04:33 +08:00
haohsiang.hsu
b69f0cbf9c [ALPS03783870] Add policy for update boot partition
[Detail]
Add poilcy for update_engine and vbmeta so that A/B
system update can work well.

MTK-Commit-Id: de7ad7a48111b4e02f042600c6e65484d03ac87f

Change-Id: I79346615ad1be4c5ea33343c1fce73c22be1f82f
CR-Id: ALPS03783870
Feature: Secure Boot
2020-01-18 10:04:29 +08:00
Christopher Chen
cf8b0fcdd5 [ALPS03595410] VPU: patch sync from o1.mp1
[Detail] sync from o1.mp1

[Solution]
1. add sepolicy for debug file

MTK-Commit-Id: 17203252c8bbb77792b32aa5f04ede3408e18e0d

Change-Id: I5fb01a274e2a795612c7c64038b2cb9b49802129
CR-Id: ALPS03595410
Feature: [Android Default] Camera Application Basic Functions
(cherry picked from commit 2cdafad54592601280163dc9ee8f581661657755)
2020-01-18 10:04:27 +08:00
Chang-An Chen
5ea20dfd23 Merge "[ALPS03875899] Add update dtbo permission" into alps-trunk-p0.basic
Change-Id: I8cc5a2f98e3aaebb2fb47e116382525016e6181b
MTK-Commit-Id: 6325e5e61e7b3a94659fc56940c36bdbc03b2137
2020-01-18 10:04:26 +08:00
haohsiang.hsu
ed2182abf9 [ALPS03875899] Add update dtbo permission
[Detail]
Add A/B system updates dtbo partition permission

MTK-Commit-Id: 8f3d181b1373f1454619641100e9994a93fab2fd

Change-Id: I2616b8783f604b2a37b16e9e80ded89af0c83347
CR-Id: ALPS03875899
Feature: A/B System Updates
(cherry picked from commit 0d38d31fa2506d0f1be7194b7d55c0a181734c4c)
2020-01-18 10:04:24 +08:00
Weiqi Fu (付玮祺)
f31617cda3 Merge "[ALPS03951701] sensor: data/vendor/sensor path" into alps-trunk-p0.basic
Change-Id: I5a007064b43c3d6e3cfa3a7da89dc24b2925998a
MTK-Commit-Id: 7a912a525f42ba5a99409c82480d603329d9ec33
2020-01-18 10:04:18 +08:00
hongxu.zhao
7b8ea7e69c [ALPS03951701] sensor: data/vendor/sensor path
modify path data/vendor/sensor path

MTK-Commit-Id: 82c649202267f9b52065b7563e3e9f2d544a2fe7

Change-Id: Ib7efe28f28c8a07f7796ad8f6f82bab937ffef32
CR-Id: ALPS03951701
Feature: Sensor Hub
2020-01-18 10:04:16 +08:00
Sam-KY Lin
da660a3653 [ALPS03998186] Treble: Fix selinux issue for booting with GSI
[Detail]
SEPolicy rule that put in plat_private folder will be placed in system image.
So, It will be overwrited after flashing GSI.

[Solution]
Move MTK rules to non_plat folder instead which will be placed in
vendor image.

MTK-Commit-Id: 91e5023b67f0ce18e5e364adce5da5413c71fc69

Change-Id: I372b059e44c4bbfd6d4a92a790846b2228213b88
CR-Id: ALPS03998186
Feature: Treble
2020-01-18 10:04:12 +08:00
Larry Liang
d8cf16da5c Merge "[ALPS03948310] vendor/system property split" into alps-trunk-p0.basic
Change-Id: Ia637f2179d40633488434149a982230c723c890f
MTK-Commit-Id: bb1ce00e682dae46d83ec3c5dc52e86a81026bb1
2020-01-18 10:03:15 +08:00
mtk11285
eb025d3be3 [ALPS03948310] vendor/system property split
[Detail]
1. vendor/system property split
2. add selinux rule about aee hidl service

MTK-Commit-Id: 4e654c789c95ca8851d8aaae2c643a08a00bb4e0

Change-Id: Ifc8eed74558a3ae83789798e99e21eafead2089b
CR-Id: ALPS03948310
Feature: Android Exception Engine(AEE)
(cherry picked from commit 8b81da18cfa29378d01ebf5be9b39e641a202c64)
2020-01-18 10:03:12 +08:00
Lili Lin
56b7e390c4 [ALPS03959715] move audio-daemon to vendor
1. Per customer request, move audio-daemon to vendor partition.
2. Implement GetVolumeIndex

MTK-Commit-Id: 4f61171696528b80f9973cb1e3820c9f91116755

Change-Id: Id82b004a39b1217b543c42b9f66de72fb1f76a59
CR-Id: ALPS03959715
Feature: Audio Tuning Tool
2020-01-18 10:02:48 +08:00
Justin Hsieh
a67cd8a97a Merge "[ALPS03885057] Add label for MTK USB HIDL 1.1" into alps-trunk-p0.basic
Change-Id: I32fa299a59aa7b5294e298be7eaf20edb8f0f8e9
MTK-Commit-Id: 7287b09d79ce953c2dabb254aa13ee89619a0395
2020-01-18 10:02:38 +08:00
Eddie Hung
6a0e7e04f2 [ALPS03885057] Add label for MTK USB HIDL 1.1
[Detail]
Add label and sepolicy for "android.hardware.usb@1.1-service-mediatek"

MTK-Commit-Id: 7d1f78831d049318d4623d33065136303639d856

Change-Id: I72d88642485097ef42bdf38938e22eeaae1eb2e3
CR-Id: ALPS03885057
Feature: USB TYPE-C
2020-01-18 10:02:32 +08:00
Caroline Yang
a24956b5ac [ALPS03967218] GPU: Add sepolicy for vulkan
[Detail]
Add selinux policy to access libufwriter.so and others.

MTK-Commit-Id: 604468612ad0339636fa83c390cb0eec6e0ea4e1

Change-Id: I32465ca7815a219c59ba9d03b210d8519e5a7b69
CR-Id: ALPS03967218
Feature: OpenGL|ES
2020-01-18 10:01:49 +08:00
Juan Rong
d18a53f680 [ALPS03886705] EM:hardware-testing SELinux
[Detail]
Fix EM hardware-testing SELinux issue
 1. power->PMU read
 2. power->debug_log
 3. audio->detect headset
 4. memory->flash
 5. touchscreen->settings
 6. AAL get/set prop

MTK-Commit-Id: 5a00b957045b7a83722c4f6d2f926b38d9625342

Change-Id: I781c756404015997d130a342d123f8cdb8f33810
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 10:01:41 +08:00
Jackie Lin
9aba419353 [ALPS03916902] Add hidl 1.1 clearkey to pass vts
Google add hidl 1.1 clearkey implementation on Android P, and legacy
 clearkey still exist on AOSP, on the new version 4778823 vts, it will
 check both legacy and hidl clearkey funtions. So it need add to support
 both types clearkey implementation to pass new vts on Android P.

MTK-Commit-Id: 229c445c3da9c4300c2586b9888a3205fe824484

Change-Id: I5488b591fc55526c7c6ae1c2516dc851ae4deb24
CR-Id: ALPS03916902
Feature: Google Widevine Level3
(cherry picked from commit c28dee0c4ab1cd7c6327f073ec9229e18b1166d3)
2020-01-18 10:01:00 +08:00
Guoyi Qu
0dfb2a6abc [ALPS03973363] move to system image
Move connsyslog to system image as
limitation to access phone storage in
andriod new version.

MTK-Commit-Id: 0ea895cbf9dcb98a392cce5d98dd38ef839ac452

Change-Id: I68a37f21635b0ffeaddcda6ab5f59f8202c86709
CR-Id: ALPS03973363
Feature: Connsys Log Tool
2020-01-18 10:00:42 +08:00
gang.wei
eb106c91f1 [ALPS03965269] Single bin modem
[Detail] Meta support modem image all
in one on Android P

[Solution] read modem file from one image

MTK-Commit-Id: ea673a44ce9e9236ca444a3694635e19cd1ab823

Change-Id: Icca87ff8aa8d6841ecdec5b9adb773608bf16f8f
CR-Id: ALPS03965269
Feature: Modem META Tool
(cherry picked from commit 8da06ac19ca027f8c54a13a7504555be2d1c230e)
2020-01-18 10:00:11 +08:00
Dian Wang
37801d6a65 [ALPS03888283] usb close and bootprof
[Detail] modify sepolicy

[Solution]
modify sepolicy for read and write system and proc/bootprof

MTK-Commit-Id: 2df7f3b055778e043c9cc2ad75a2c9a7abcb7ad6

Change-Id: I3c4f4dd2435a2b2dee72c54d60e9e1adf2ec671f
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 09:59:47 +08:00
mtk11285
5c7942168d [ALPS03948310] add sepolicy
[Detail]
1. add sepolicy for aeev
2. add sepolicy for dumpstate hal service

[Solution]

MTK-Commit-Id: c9a341625f9f299341a0ba5ec02db3ffb2cf7edc

Change-Id: Ida4c75fc762293005b1f7942dd23efb9540d5e13
CR-Id: ALPS03948310
Feature: Android Exception Engine(AEE)
2020-01-18 09:59:28 +08:00
Chunlan Wang
c93290f067 [ALPS03932298] Factory Mode: move to vendor partition
[Solution]
Factory mode should build in vendor partiton, so move
factory from system partition to vendor partition

MTK-Commit-Id: c55354593a97aed3af9d0b2584037d03d3d2669c

Change-Id: I5a607b60f9ac974380c5e440a6fa0c51797d6b1b
CR-Id: ALPS03932298
Feature: Factory Mode
2020-01-18 09:58:07 +08:00
Dean Chiang
e13ddf727b [ALPS03945159] Add sepolicy for MTK wifi hidl
Add sepolicy for MTK wifi hidl.

MTK-Commit-Id: d88eefe1d29e7b73ad58a032cec50b5d675e3edf

Change-Id: Ibdacf7752bb434ff678e1573c21484d98d367005
CR-Id: ALPS03945159
Feature: Wi-Fi Tethering
2020-01-18 09:57:13 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Josh-YC Liu
d6abd2289c Merge "[ALPS03918515] PQ: Add interface for ESS level setting" into alps-trunk-p0.basic
Change-Id: I3e5a71d745eb0f81f897857fd9f7c51463048e5d
MTK-Commit-Id: fc1e61c284e7fe6a7307b4da3171bf66f35ef109
2020-01-18 09:47:32 +08:00
Josh-YC Liu
52633f48f9 [ALPS03918515] PQ: Add interface for ESS level setting
Update PQ HIDL to V2.1 for new interface

MTK-Commit-Id: 38656bea091f541427d3f6716a5b7de0391379be

Change-Id: I2ef7b138615f75043ba73e1e4da977fa7315976a
CR-Id: ALPS03918515
Feature: Display Quality Enhancement
(cherry picked from commit 4e623eba416b467b28a7dd3ba30e6791044623a5)
2020-01-18 09:47:27 +08:00
Elvin Lin
3af6d2d836 [ALPS03861775] modify sysfs_batteryinfo
[Detail]
1. Remove the battery_node label.
2. Modify the path for sysfs_batteryinfo from
   /sys/devices/platform/battery/power_supply to
   /sys/devices/platform/battery to let fuelgauged
   use it.
3. Add the sysfs_vbus and sysfs_pump_express label.

MTK-Commit-Id: 8603797a37fbb115f08a7c46a4292acbb34e1d05

Change-Id: I5a02d30d79a3564ef429f6dfe93f8df48004640b
CR-Id: ALPS03861775
Feature: Charger
2020-01-18 09:47:11 +08:00