79 Commits

Author SHA1 Message Date
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
Hongxu Zhao
ad28808c22 Merge "[ALPS03909938] sensor: merge sensor code" into alps-trunk-p0.basic
Change-Id: I8f52bbf569e23406d8b8555328dffbf258aeef9c
MTK-Commit-Id: be820753fd3017ef14aa260b12100e31c49b5396
2020-01-18 09:46:41 +08:00
Qiangming Xia
11b0934173 [ALPS03909938] sensor: merge sensor code
[Detail] Merge sensor code to P

MTK-Commit-Id: 62fa3d9f1b1a2004298003749f883ba3f693aac2

Change-Id: I72dc1f819fee5076b7524235810361aa0f01b6ba
Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com>
CR-Id: ALPS03909938
Feature: Sensor Hub
2020-01-18 09:46:33 +08:00
Max Huang
67aec004b6 Merge "[ALPS03906515] wmt: fix coredump feature" into alps-trunk-p0.basic
Change-Id: I4b8707452b181801cc7489af7aa07265dbf1f110
MTK-Commit-Id: cd264e39bc11bdd42052611c3f8b51f649509321
2020-01-18 09:46:26 +08:00
Danny Shih
0d9d373fc0 [ALPS03906515] wmt: fix coredump feature
[Detail]
1. add sepolicy for stp_dump conf path
2. add file/dir create permission

MTK-Commit-Id: 4634b563cab478ad8129b232df5d70e421eb45b4

Change-Id: I081c46777977847c97ca60ea4569519e1b3c967c
Feature: [Module]WMT Driver
Signed-off-by: Danny Shih <danny.shih@mediatek.com>
CR-Id: ALPS03906515
2020-01-18 09:46:24 +08:00
ZH Chen
ce3a0f44e7 [ALPS03614388] Sepolicy: Add ttyS to sepolicy
[Detail]
Add ttyS to sepolicy

MTK-Commit-Id: f51e0700ff76c53befa5c15f1bfa6d1726905fed

Change-Id: I88aaa49b470ff98fcbd0d3720c641b74ca42bdeb
CR-Id: ALPS03614388
Feature: Headset Cable/Button Detection and Reaction
(cherry picked from commit 7e314d2dbea64a05f626115e5beccce53bb2a07f)
2020-01-18 09:46:05 +08:00
mtk12968
02f57d1f7c [ALPS03598446] add selinux policy for mdp
[Detail]add a mtk_mdp_device lable and a allow rule for VP

[Solution]add a mtk_mdp_device lable and a allow rule for VP

MTK-Commit-Id: d015c8eba69f036e0f4770e045b1c99bd4d6c8c5

Change-Id: I9b72360ae4a31d849d8e6ada94d4ee8c49f36b1b
CR-Id: ALPS03598446
Feature: [Module]MDP Driver
(cherry picked from commit e10343315224b4b166767bc7e19fa0b14cc06892)
2020-01-18 09:45:24 +08:00
Chaoran Zhang
b1c632cd74 [ALPS03872369] Fix GPS SELinux issue
[Detail]
Fix GPS SELinux issue
[Solution]
Fix GPS SELinux issue

MTK-Commit-Id: 1fb50aea5455f9c9f45e9193a8c07c57f0f636f2

Change-Id: I312c3cd8051b2705d74db7797683ba072b22e167
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:44:18 +08:00
Roger Chang
f28d86070e Merge "[ALPS03859804] Remove wide_dhcpv6_data_file" into alps-trunk-p0.basic
Change-Id: Idd38455f0310fc3bec21936e111214eb9d867ece
MTK-Commit-Id: 277df8d30a5eac6da3fa06a5c7d285ed56779122
2020-01-18 09:43:54 +08:00
Jungo Lin
4fbf2c5f2c [ALPS03859804] Remove wide_dhcpv6_data_file
Remove dhcpv6 selinux policy rules since it is unused.

MTK-Commit-Id: b9f566aa5b211b09ef163185b743b324fc06e2bb

Change-Id: Id9cdd914076655514bc7486bf80f0664f1002e82
CR-Id: ALPS03859804
Feature: [Module]IP Networking
2020-01-18 09:43:46 +08:00
Joen Chen (陳建豪)
71e08e3ea3 Merge "[ALPS03869840] Modify for SELinux violation" into alps-trunk-p0.basic
Change-Id: I1111f5d3f674e14ece4dc77587dd6072d6fe9d90
MTK-Commit-Id: c8fe918b45da1ec529a1d0a449549946efdb13b3
2020-01-18 09:43:44 +08:00
mtk14318
02365e1543 [ALPS03869840] Modify for SELinux violation
[Detail]
Because p has new SELinux policy,
we need to fix the violation part.

[Solution]
Mark the violation part.

MTK-Commit-Id: 9935b37d96538a2696ac34e0ef8e0f4c480d3167

Change-Id: Ia0fac8c2b94d2acfc29dec20dd29dca85f9f9cf0
CR-Id: ALPS03869840
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 09:43:36 +08:00
Jimmy-YJ.Huang
4484f0511a [ALPS03737981] power: hal version upgrade.
[Detail]
hal version upgrade from V1.1 to V2.0

MTK-Commit-Id: 0a7d23e9f8fa3f982b4029292021e91176d66bf0

Change-Id: Ia51920ab3def49ff88d3c483d64cdcd730b8fdd7
CR-Id: ALPS03737981
Feature: System Performance
2020-01-18 09:43:07 +08:00
Chang-An Chen
dae8e38414 Merge "[ALPS03892700] partition: move mtk mount point to /mnt/vendor" into alps-trunk-p0.basic
Change-Id: I68e8369083ba3d6cad7a35ed0141a2765a1b161a
MTK-Commit-Id: c6307813909f1dff6c87a80debee2950c16efd90
2020-01-18 09:41:55 +08:00
Chang-An Chen
48a77a4a2c [ALPS03892700] partition: move mtk mount point to /mnt/vendor
[Detail]
Move MTK mount point to /mnt/vendor

MTK-Commit-Id: b82563f14020ab90a563ec3c9ce14e6c3bbe7531

Change-Id: I8699303125d48589baf0f2b768cf66b848da7357
CR-Id: ALPS03892700
Feature: eMMC Boot Up
2020-01-18 09:41:46 +08:00