412 Commits

Author SHA1 Message Date
Youxiu Wang
5d374974d1 [ALPS03878056] Rename mtk system properties
1) Due to new vendor system property rule, rename:
"ro.mtk_md_mims_support" to "ro.vendor.md_mims_support"
2) Remove unused property:ctl.viarild

MTK-Commit-Id: 0196b9a913c715908b9c0b2027d793d8085d531d

Change-Id: Ic0b7bc07000fbd9c079f743e5f1e998daafb1468
CR-Id: ALPS03878056
Feature: DSDS (Dual SIM Dual Standby) Framework
2020-01-18 10:01:03 +08:00
Shan Zhang
f470594348 Merge "[ALPS03916902] Add hidl 1.1 clearkey to pass vts" into alps-trunk-p0.basic
Change-Id: If1cd31929ceafaf2db1dc1397af17ab2d3fddbf4
MTK-Commit-Id: 2080d0e6b852a01b3a3d7b5f15006d44fab58bb6
2020-01-18 10:01:02 +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
Nan Zhao (赵楠)
cfce19b40d Merge "[ALPS03809072] Set rat config property permission" into alps-trunk-p0.basic
Change-Id: Idb4b7276b07ae40d7969e52978e9f70bd1b1b04b
MTK-Commit-Id: 7a1b52200cf44f84cd64078eaba2558ae5244dc5
2020-01-18 10:00:57 +08:00
Muyi Lan
40d70a34e7 [ALPS03809072] Set rat config property permission
[Detail]
Set permission for property "ro.vendor.mtk_disable_cap_switch".

MTK-Commit-Id: 253c3301a18932b0b262668bd5cf9c5c1b9d2230

Change-Id: If741b4a391407d1b712fecf8e67e277fbdbbb8aa
CR-Id: ALPS03809072
Feature: SIM Switch
2020-01-18 10:00:55 +08:00
lena wang
52478b8187 Merge "[ALPS03856250] SIM: Revise property permission" into alps-trunk-p0.basic
Change-Id: Ie04a5ee4e11cba7f9e0e89ea8c5ceb987506efc0
MTK-Commit-Id: eb49a7211477fc012f1b34a73933aa1b7f776952
2020-01-18 10:00:53 +08:00
lena wang
3988ce4bc2 [ALPS03856250] SIM: Revise property permission
Change set_prop to get_prop to avoid breaking neverallow rule.

MTK-Commit-Id: 484857faf4481c9b0f815520e3cb1f558d72df3b

Change-Id: I7fc44f080bd887a2218d542feb10533151c4604a
CR-Id: ALPS03856250
Feature: SIM
2020-01-18 10:00:51 +08:00
Light Hsieh
e6ff16fef8 Merge "[ALPS03810368] Sepolicy: define rule for ro.vendor.mtk_emmc_support" into alps-trunk-p0.basic
Change-Id: I7c10e951d1dec4814710124e3cc61a79d1610099
MTK-Commit-Id: 902e7c029f21d97da238d48e30b097e643570a05
2020-01-18 10:00:49 +08:00
Xihou Li
2291d42fbc [ALPS03974117] Move md_mims prop to volte group(selinux)
[Detail]
Move "ro.vendor.md_mims_support" property to
"mtk_volte_prop" group(selinux).

MTK-Commit-Id: f1df6ee4b33dffa4ab82913aa347af36095d4e45

Change-Id: I4c8fed9e9b462633efaf4916b66b41c338b75614
CR-Id: ALPS03974117
Feature: VoLTE (Voice over LTE)
2020-01-18 10:00:49 +08:00
Light Hsieh
54e28a0403 [ALPS03810368] Sepolicy: define rule for ro.vendor.mtk_emmc_support
[Detail]
Define rule for ro.vendor.mtk_emmc_support

MTK-Commit-Id: ecb6dcb6823b088fea26b80aa12d2f6bfbc507bf

Change-Id: If37ce094f1bb06365061bde36f225aa06fc6f424
CR-Id: ALPS03810368
Feature: eMMC Boot Up
2020-01-18 10:00:47 +08:00
Bo Shang
03c7d5af23 Merge "[ALPS03973363] move to system image" into alps-trunk-p0.basic
Change-Id: I2fa6d2e6e6189d5ae052bba262c0bbd5f0a530d5
MTK-Commit-Id: 7a05d7192293d7a71d870446a0bbf0d0d8fdc1dd
2020-01-18 10:00:45 +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
Weilun Liu (劉維倫)
7ffcd67a25 Merge "[ALPS03804621] [P migration] Remove old property label" into alps-trunk-p0.basic
Change-Id: Ie819063e841169b9615336955f2bc846c9c3c25b
MTK-Commit-Id: 87e607929f078b635829d1a0e00d8c7090355dbb
2020-01-18 10:00:40 +08:00
Allen Chu
561fad2a70 [ALPS03804621] [P migration] Remove old property label
We never use persist.ril.* at Android P. So, remove it.

MTK-Commit-Id: 6a1943658ce7647e6efd65234252d69e83be1a47

Change-Id: I49d35e81192dfd9707687400bc3f0885cde16940
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:00:38 +08:00
Max Huang
4bd500e79a Merge "[ALPS03921589] WMT: Fix SEPolicy issue" into alps-trunk-p0.basic
Change-Id: Ib8642ecdde9afe3de0994c1d3411c58645274533
MTK-Commit-Id: 6c0b723b626ef4d021b307659015d59f94f75561
2020-01-18 10:00:36 +08:00
Robbin Chiu
d4bdbf2593 [ALPS03921589] WMT: Fix SEPolicy issue
[Solution]
Fix SEPolicy issue for Factory mode and META mode

MTK-Commit-Id: 403b617503f8705fe4286fd48ce751a4a8e7c58f

Change-Id: Ib73481a5f77f08507724730d8430a48f8a57e9fa
CR-Id: ALPS03921589
Feature: [Module]WMT Driver
Signed-off-by: Robbin Chiu <robbin.chiu@mediatek.com>
2020-01-18 10:00:35 +08:00
Gang Wei
7705d638a7 Merge "[ALPS03888283] Power off usb status" into alps-trunk-p0.basic
Change-Id: I6333667fd00053f0df5881c5455c8e1cee538270
MTK-Commit-Id: 53f601458b188bffd7464e74467116afa6271060
2020-01-18 10:00:33 +08:00
Dian Wang
0db5966ac0 [ALPS03888283] Power off usb status
[Detail] Power off after usb plug out

[Solution]
Modify meta_tst.te

MTK-Commit-Id: 65137c0258d35d8f2998f6269173f00b686ee29a

Change-Id: Ib876b440249f9d3b6e9d42c1d95ef15f6ca386ef
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 10:00:31 +08:00
Dengwei Xu
f845853c01 Merge "[ALPS03914002] EM:Remove unused property lable" into alps-trunk-p0.basic
Change-Id: I9fdb3fa2334c2b47c846ecb71b0b33124d88018c
MTK-Commit-Id: 1acf8d001ce5ceb909a98822a42eeab989614e11
2020-01-18 10:00:30 +08:00
yuhui.zhang
c2c4d55858 [ALPS03914002] EM:Remove unused property lable
[Detail]
Remove property lable for following items
1. Old bt ssp property
2. Wifi log property

MTK-Commit-Id: 35a20d1cc097301f05a69e00bc209b597f3d6539

Change-Id: Iffa2a958cce998b7e020696ceb99667f1b7b5891
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 10:00:23 +08:00
Guoyi Qu (曲国毅)
c431a4aa8a Merge "[ALPS03966863] Relabel log vendor property" into alps-trunk-p0.basic
Change-Id: If6a3d3a3ce83c72565c7997c5f8b00c428587bc4
MTK-Commit-Id: a47e200f6e205b39949bc965110ad5ade7950576
2020-01-18 10:00:22 +08:00
bo.shang
da4b44cc8b [ALPS03966863] Relabel log vendor property
modify netlog, mdlog and mtklogger selinux file

MTK-Commit-Id: 9f11854e582d88eba22388a2ffc59a41da906898

Change-Id: I5b782c80ae2df464cb574f9733757687e374402d
CR-Id: ALPS03966863
Feature: Network Log Tool
2020-01-18 10:00:20 +08:00
Yuru Zhu (朱禹儒)
7ecc25987c Merge "[ALPS03604577] CAT need read information from Aee" into alps-trunk-p0.basic
Change-Id: If570225c455e101ed5f4406c15061d63693bf043
MTK-Commit-Id: debf9754c2af34bb1c2498733baddba2006bb686
2020-01-18 10:00:14 +08:00
yuru.zhu
9251f38572 [ALPS03604577] CAT need read information from Aee
[Solution] Add se-linux permission for CAT to read aee information

MTK-Commit-Id: a87c38a1401857ea639edbfff339d58f5808466c

Change-Id: I08cce3f4388692a09db58f4d909b95fcb822cd6a
CR-Id: ALPS03604577
Feature: MTKLogger
2020-01-18 10:00:12 +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
1b5890dfe1 Merge "[ALPS03932298] Factory Mode: resolve neverallow error" into alps-trunk-p0.basic
Change-Id: If1c77d4e5b5dfba7aeffea5c6f1566cb19113e39
MTK-Commit-Id: b2e7e8f1f4f0d3a03a85465db2926a01ef2819b1
2020-01-18 10:00:07 +08:00
Chunlan Wang
572aa85017 [ALPS03932298] Factory Mode: resolve neverallow error
[Solution]
New Android not allow system process modify vendor
properties, factory mode move to vendor partition,
so remove the workaround

MTK-Commit-Id: bac8727b1a70a637eb7386213b7bf2bee2096b22

Change-Id: I360a493f770fae96f94199ae436d5e29bf752f70
CR-Id: ALPS03932298
Feature: Factory Mode
2020-01-18 10:00:05 +08:00
Light Hsieh
f798441035 [ALPS03957630] Selinux: rules for meta_clr_emmc and mke2fs
[Detail]
Because Android P impose so many restrictions, it is difficult for
meta mode or factory mode to format partitions. A new design is
adopted as follows:
1. Meta mode or factory mode write all 0 to first 4KB of target
   partition.
2. When entering kernel booting, the partition mount process in the
   original init flow find that XXX partition is wiped and automatically
   format XXX partition.
In step-1 described above, selinux rules shall be added for meta_tst or
  factory.
In step-2 described above, selinux rules shall be added for mke2fs.

MTK-Commit-Id: 7e9bbd418ca6353ba89ecffdc016c78504583bf3

Change-Id: I3dd869c57107b0ebebf3134f69c50744df8f8ff9
CR-Id: ALPS03957630
Feature: SP META Tool
2020-01-18 10:00:04 +08:00
Jason Su
1abdec9b46 Merge "[ALPS03950289] Remove mnld system property set permissions" into alps-trunk-p0.basic
Change-Id: Ie41cc8187236e4f785ad98cec7b76c0ae5061d82
MTK-Commit-Id: 7f85b6d7d135beedfd2046211b5087d6a4836c6e
2020-01-18 10:00:00 +08:00
Jason Su
da5c66b125 [ALPS03950289] Remove mnld system property set permissions
[Detail]
For new neverallow rule, remove platoform app writting vendor
system property permissions.

MTK-Commit-Id: 0df6bfa09a5f6f1243935659d4b5de56728cdd0c

CR-Id: ALPS03950289
Feature: Location AOSP
Change-Id: Id31442a20bd8f577dd20ac15b9d25f07725a0ec8
2020-01-18 09:59:58 +08:00
Zhen Jiang
5b8eb619af Merge "[ALPS03881723] remove unused sepolicy rules" into alps-trunk-p0.basic
Change-Id: I40552734e72e8661a68033586ae395900ac9325d
MTK-Commit-Id: 50823de40c83dcddeed18362046e1cbf8d44e0d6
2020-01-18 09:59:57 +08:00
mtk81216
034f9b1f2f [ALPS03881723] remove unused sepolicy rules
[Detail]
remove pppoe related sepolicy rules

[Solution]
remove pppoe related sepolicy rules

MTK-Commit-Id: 8ff59c04a6130f8e31bbb7e9feff7826be5ebd81

Change-Id: I8f14dae292c98ace27b78b577032285fc6076a02
CR-Id: ALPS03881723
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:59:55 +08:00
Gang Wei
3eb53db80f Merge "[ALPS03888283] usb close and bootprof" into alps-trunk-p0.basic
Change-Id: I74272efa2fbc552fc3d17a858b1e2c0cd545d029
MTK-Commit-Id: e022b6ddc1bfe0c931d9f998e620e2a944832eac
2020-01-18 09:59:52 +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
Chang-An Chen
862cd6725f [ALPS03869354] fix tpd auto test fail in factory mode
[Detail]
Fix tpd auto test fail in factory mode due to sysfs nodes
are not allowed to read directly.

[Solution]
update touch setting sysfs policy and add to factory mode

MTK-Commit-Id: d8733ca0938653098f5ec1f5462c1723d8f67894

Change-Id: I3fb6a46cfbf02fe050174501a2606404a53bb2ad
CR-Id: ALPS03869354
Feature: [Android Default] CapTouch
2020-01-18 09:59:45 +08:00
Josh Hsiao
ff3021c46e Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic
Change-Id: I19192c394506733341594063d5b9cac84368f57a
MTK-Commit-Id: 5eaf1d7332596595ff116296a2efbe5efa25d604
2020-01-18 09:59:44 +08:00
jerry-sc.wu
dbcc1e21fa [ALPS03867358] Thermal: P Migration
[Detail]
System cannot execute vendor in Android P.
Need Remove violated policies.

[Solution]
Remove related violated policys.

MTK-Commit-Id: 5b111d320a150b06e8900b374c1f55a29ca38e5d

Change-Id: Ia36502819979925df3846d8c13c7a8bba89ed077
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
2020-01-18 09:59:39 +08:00
Ting-Fang Hou
9034dfa5e7 [ALPS03918481] Audio: Eable audio factory permission
[Detail]
Eable audio factory permission

MTK-Commit-Id: 208dd7a107b82f0224f663345830ecea98ff90c6

Change-Id: Ife089a2bb7c94e4571fabea0ce2ff4811ced7b34
CR-Id: ALPS03918481
Feature: Factory Mode
2020-01-18 09:59:34 +08:00
Josh Hsiao
7a3f9b9cc0 Merge "[ALPS03946757] Thermal: Add permission" into alps-trunk-p0.basic
Change-Id: I1462cb40ec93cfc0293baf2d3bb9c095343880de
MTK-Commit-Id: 82833fac68b459f3d602416900a6c4aa3aacbe4d
2020-01-18 09:59:33 +08:00
jerry-sc.wu
6926cdca23 [ALPS03946757] Thermal: Add permission
[Detail]
Google add a new tag in Android P
system/sepolicy/vendor/hal_thermal_default.te

Need to add mtktz and /proc/stat grant permission for thermal HAL.

[Solution]
Add grant permission in both
devicemediateksepolicybasicnon_plathal_thermal_default.te
devicemediateksepolicybasicnon_platmerged_hal_service.te

MTK-Commit-Id: b4e6eb391c134c4c4580fd352a0aa8fec56b0a5a

Change-Id: Ifb0aa31bf47d105429be2dad60477747f1009a5d
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
CR-Id: ALPS03946757
Feature: Thermal Management
2020-01-18 09:59:31 +08:00
Larry Liang
15bfb4a0bb Merge "[ALPS03948310] add sepolicy" into alps-trunk-p0.basic
Change-Id: I5020d798c93d11eba50c46052ba7b01179d8c4b6
MTK-Commit-Id: 6f79512ef5aa48ce04ad975bd09b84554435b225
2020-01-18 09:59:29 +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
Sandeep Bora
c0d6527be8 Merge "[ALPS03870695] Bootanimation property renaming" into alps-trunk-p0.basic
Change-Id: I40202dfe7e1cc5c9a9890f7e99c709e5f2f41f59
MTK-Commit-Id: c03e4dc157bce35a44f09f807ce34041bb45ba79
2020-01-18 09:59:26 +08:00
lokesh
19d6da61af [ALPS03870695] Bootanimation property renaming
[Detail] Change persist.bootanimation to persist.vendor.bootanimation
in property_contexts file

[Solution] As we have renamed the system property name to
persist.vendor.bootanimation.xx , we need to make changes in
property_contexts file to ensure effect of this renaming and to
avoid vts fail.

MTK-Commit-Id: 42a2213dcbd87a6acb5823a5b64b89d7207579cf

Change-Id: Ie7ea4a9df3fc1607c648288c527e94660fbea50e
CR-Id: ALPS03870695
Feature: Boot Animation
2020-01-18 09:59:21 +08:00
Lili Lin
da04582187 Merge "[ALPS03934986] Add mtk_default_prop" into alps-trunk-p0.basic
Change-Id: I0fdb58e1905438be99c2b0d3e093df1eff9dbaba
MTK-Commit-Id: 7b841d1194001cac2e4b25b983d90693e578fc84
2020-01-18 09:59:16 +08:00
Chang-An Chen
8729873c5d [ALPS03869354] start merge_hal_service for light hidl
[Detail]
start merge_hal_service for light hidl for ago projects

MTK-Commit-Id: 1cb1aeb24cf5ac34663fa60d41f6e3bd8738d1ff

Change-Id: Iecfea38a24fa237873859b52a82a7e52086f55d3
CR-Id: ALPS03869354
Feature: [Android Default] Backlight
2020-01-18 09:59:16 +08:00
Lili Lin
8c75cd68e6 [ALPS03934986] Add mtk_default_prop
1. We have too many config properties set by PRODUCT_PROPERTY_OVERRIDES,
and these properties usually are not sensitive and allow all processes to read.
2. Since Android P, properties should follow naming rule to add "vendor",
and then this will cause properties to be labeled as vendor_default_prop.
By default, coredomain is not granted to read vendor_default_prop.
Actually these properties are read widely from system/vendor processes.
3. So we introduce "mtk_default_prop" type that grant read access to
all processes, including system and vendor.

MTK-Commit-Id: 18077a2cb14b7b1ddadb7000e8abb565f0fd49e3

Change-Id: Ia378db3dbb9d0bf388139be3419e013228c79d6e
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:59:13 +08:00
Josh-YC Liu
0cfc3abf3d Merge "[ALPS03915523] AAL:Android P Property Change" into alps-trunk-p0.basic
Change-Id: I703e901e2f4b00107ab12b8da9acacdec477bd5f
MTK-Commit-Id: e18f31051d892d8f6e821d4443b500518e152ff3
2020-01-18 09:59:08 +08:00
Charles Yen
c2beb52c6a [ALPS03915523] AAL:Android P Property Change
Add AAL debug property permission.

MTK-Commit-Id: 5bea45fd17ce1ac20a8a27c4eb7a76f0d4a11377

Change-Id: Ib8b57f6f9bc60b583af6eeed7e134530677599d6
CR-Id:ALPS03915523
Feature:Ambient Light Adaptive Luma
2020-01-18 09:59:07 +08:00
chien-wei hsu
dd694722fa [ALPS03902666] Sepolicy: audio prop need prefix vendor
[Detail]
audio prop need prefix vendor
vendor.streamout.     u:object_r:audiohal_prop:s0
vendor.streamin.      u:object_r:audiohal_prop:s0
vendor.a2dp.          u:object_r:audiohal_prop:s0

new property of vendor.audiohal for general purpose.
vendor.audiohal.     u:object_r:audiohal_prop:s0

MTK-Commit-Id: b5097d4763935f129a8bb15d222d12d72a5bd6c7

Change-Id: I0e0809a1e490218c007087e71850f2dcc0ebf007
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 09:59:02 +08:00