211 Commits

Author SHA1 Message Date
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
Larry Liang
2e97184a4b Merge "[ALPS03841705] modify aee_core_forwarder selinux rule" into alps-trunk-p0.basic
Change-Id: I4bad1d381c0ec3b1e76f1bc7a5ae7ae68ad8add9
MTK-Commit-Id: b01515bb610c7a0c60117c97d4f98b5c9f882071
2020-01-18 09:40:46 +08:00
mtk11285
07c11d89ba [ALPS03841705] modify aee_core_forwarder selinux rule
[Detail]
transfer aee_core_forwarder form /vendor/bin to /system/bin,
so modify aee_core_forwarder selinux rule.

[Solution]

MTK-Commit-Id: 5a583b375a0d33032e8004e1818f05c75363e4f5

Change-Id: I9ff1d0b5d521ce2f09780146f6b75c5378d03d4d
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:40:34 +08:00
Denis Hsu
977ad3f552 [ALPS03891225] Modify vold related policy
[Detail]
1. remove md_ctrl.te because we dont use md_ctrl in P.
2. remove debugfs_tracing policy
3. remove nvdata, protect_f, protect_s policy

MTK-Commit-Id: d4e5c9893970f0b214b518cba5f9300f130eace9

Change-Id: Iaafc30124fd69ef2b989b9e4e51d71a37d9571e9
CR-Id: ALPS03891225
Feature: Multi-Storage
2020-01-18 09:40:17 +08:00
Timo Liao
197ea4ad2a [ALPS03890927] battery: fix sepolicy violation
[Detail]
1. fix data between core and vendor violator
2. remove fuelgauged_static.te
3. remove fg daemon access nvram sepolicy
4. add label for battery

MTK-Commit-Id: 1443b78b112739594e0633526c6966e4871bd125

Change-Id: I931a18bfb8ac963e71311ceace8a28b4a495e881
Signed-off-by: Timo Liao <timo.liao@mediatek.com>
CR-Id: ALPS03890927
Feature: Fuel Gauge
2020-01-18 09:39:17 +08:00
Browse Zhang
db6998fe2a [ALPS03503758] Revert "[ALPS03503758]P migration selinux build failed fix"
This reverts commit c2f372432b08f78b8e5b9f7cc08b1b436bfe7161.

MTK-Commit-Id: 95e449825c77815d477a926f0244165934aef748

Change-Id: Ic2c4ee2de46803679c01b0bc83bbef3f9d585b32
CR-Id: ALPS03503758
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:39:10 +08:00
Browse Zhang
340e51e71c [ALPS03503758] P migration selinux build failed fix
For /proc/uid_procstat/set from UsageStatsService

MTK-Commit-Id: c2f372432b08f78b8e5b9f7cc08b1b436bfe7161

Change-Id: I45b7bbfbd2c0ab7e098983d40722e4274e8e783a
CR-Id: ALPS03503758
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:39:04 +08:00
Archilis Wang
2cd382c5d0 Merge "[ALPS03885737] Correct agps sepolicy" into alps-trunk-p0.basic
Change-Id: I230be47b417acda0389d0f6bd62c426c8eebe125
MTK-Commit-Id: 7bedf66ca5fe633252754247a93a73d551e6985b
2020-01-18 09:38:28 +08:00
Archilis Wang
9afa8ed220 [ALPS03885737] Correct agps sepolicy
Adjust the policy for sdcard

MTK-Commit-Id: 40655afcc8e97b13642f5164987134d506579680

Change-Id: I338ea9b4b6b452b3e59230e692a7ff1850a63c6d
CR-Id: ALPS03885737
Feature: A-GPS
2020-01-18 09:38:17 +08:00
Yuxian Xu
af8b6473d2 [ALPS03886572] Mobile Log selinux rule porting
[Detail]
Mobile Log selinux rule porting:
1. fix the violation on P
2. relable some kernel interfaces.

MTK-Commit-Id: 4108ed13f3e7693c3642b6f073c5444f133b3c38

Change-Id: I1fac185779510f10b9b94bdf6ec40573237d846a
CR-Id: ALPS03886572
Feature: Mobile Log Tool
2020-01-18 09:37:45 +08:00
Dian Wang
73695bfcce [ALPS03888283] Modify meta_tst.te
[Detail] Modify meta_tst.te for Android P

[Solution]
Add comport type and uart info sepolicy

MTK-Commit-Id: b2f1a2b46f1bc8135b98dd306ff4353b3ba5383f

Change-Id: Ib40eb5e5a9512d7d33b25b191e04eab9684fe121
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 09:37:36 +08:00
YC Shen
0b44149daf Merge "[ALPS03883958] wlan: phaseout wifi2agps" into alps-trunk-p0.basic
Change-Id: I27811d7d767ae0b752b22860a4823ca28f1eb537
MTK-Commit-Id: 88a5c2177930425b8602c2fa2dcbaed9e0c1fe21
2020-01-18 09:37:00 +08:00
Herman Yang
428f9561fd [ALPS03883958] wlan: phaseout wifi2agps
Remove .te and file permission used by wifi2agps

MTK-Commit-Id: 461c08d098a31cfb6dc6b5c8655ede3cc47e8292

Change-Id: Ib737729c94dc0e6427ac9f510c79923aff58d7ce
CR-Id: ALPS03883958
Feature: [Module]wpa_supplicant
2020-01-18 09:36:49 +08:00
Guoyi Qu
a6ef7466fe [ALPS03866092] connsys log support
Selinux:porting code to P branch

MTK-Commit-Id: 507ec96911d24544a769fec4126a8582eb7246c9

Change-Id: I5104eb3e3de8a13e060f4af2db6c88f4dd669429
CR-Id: ALPS03866092
Feature: Connsys Log Tool
2020-01-18 09:36:45 +08:00
Siyuan Jiang (江思源)
e7d66802f0 Merge "[ALPS03866092] Add sepolicy for /dev/fw_log_bt" into alps-trunk-p0.basic
Change-Id: I9e26ba1f321d7a2b85dc38a39687e50794795277
MTK-Commit-Id: 259641ddbb2bc15920d2f2bb0a8830b25dda52da
2020-01-18 09:36:44 +08:00
Siyuan Jiang
e90468349d [ALPS03866092] Add sepolicy for /dev/fw_log_bt
[Detail]
Create sepolicy definition for /dev/fw_log_bt

MTK-Commit-Id: 4ef13c078eb67716e42948ec72d1bc26a5e207eb

Change-Id: Iad81acd8ceb6f3e3a21e719209e6c91e9e28c517
CR-Id: ALPS03866092
Feature: BT Chipset Capability
2020-01-18 09:36:31 +08:00
Chaoran Zhang
7fdca91eee [ALPS03866092] add dev policy for fw_log_gps
[Detail]
add dev policy for fw_log_gps
[Solution]
add dev policy for fw_log_gps

MTK-Commit-Id: 4435dfa949ec7886ca9015a93bcf175568ab1621

Change-Id: I88a56ee23d456e5d43036fba79acd34ce024d35d
CR-Id: ALPS03866092
Feature: MTKLogger
(cherry picked from commit aa7953e06029de4ad0bcc0e615aef842eedc6460)
(cherry picked from commit ffa21f0c868c50daeff539f7be970d5398d8c3e6)
2020-01-18 09:36:07 +08:00
Vink Shen
bb8ea108ab Merge "[ALPS03852714] Trustonic TEE: Fix persistent partition path" into alps-trunk-p0.basic
Change-Id: I30c9855e625ece1891141d98fdeb486cf45a1274
MTK-Commit-Id: e93f930503be15d3a640d9770e60bbe4db9f2b8a
2020-01-18 09:35:04 +08:00
Vink Shen
acf2d42d84 [ALPS03852714] Trustonic TEE: Fix persistent partition path
[Detail] Fix persistent partition path for Android P

MTK-Commit-Id: b49324e4ff63196b8051882cbe439ecb8ca44d2d

Change-Id: I7b22f6d7f07b26bf3f0e787ee372b7bd52b16fe5
CR-Id: ALPS03852714
Feature: Trustonic TEE (Trusted Execution Environment)
2020-01-18 09:34:53 +08:00