117 Commits

Author SHA1 Message Date
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
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
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
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
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
Kaiwen Liu
36c7c80659 [ALPS03951738] Use mtk_uce_support to switch on/off
Abandon mtk_uce_ua_support usage

MTK-Commit-Id: 5f79d13d2fd01ce0c507ac37265ef632927b7a08

Change-Id: I0ce1cc044e4c5f4693f9d64dd2a07b2034a1574e
CR-Id: ALPS03951738
Feature: UCE, User Capability Exchange
2020-01-18 09:58:56 +08:00
Charles Yen
072a14dd6e [ALPS03951976] PQ:Add PQ Property Permission
Add pq/aal property label & permission.

MTK-Commit-Id: 7ff05d937adde3f2d3c59029e140a640f23212b9

Change-Id: Ib6d9763bb00df0e40c6d77306d5faece7b5d1a00
CR-Id:ALPS03951976
Feature:MiraVision
2020-01-18 09:58:47 +08:00
Chien-Wei Hsu
20efb87465 Merge "[ALPS03902666] Sepolicy: remove violate properties setting" into alps-trunk-p0.basic
Change-Id: Ib554a618de5b4d747bde2cc3e4dde77effdbee34
MTK-Commit-Id: 65696211d98ec125f1b7d533cc2686d12af93dbe
2020-01-18 09:58:34 +08:00
chien-wei hsu
d1522f4166 [ALPS03902666] Sepolicy: remove violate properties setting
[Detail]
1.Property new change
neverallow coredomain from writing vendor properties
(allow audioserver_28_0 audiohal_prop (property_service (set)))
(allow audioserver_28_0 mtk_thermal_config_prop (property_service (set)))

audio_hal property which prefix is af. use to audiodump.
it will replace by the audio_prop which property prefix is vendor.af

before, mtk_thermal_config_prop use to set powerhal.
And we use it by HIDL now, so this permission can remove.

[Solution]
remove violate properties setting.

MTK-Commit-Id: 2942812bb4a57655898d407f84162fbdae9c3fc9

Change-Id: I1a01ddd8b83fa7eb0c499f67400660b738e9b986
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 09:58:29 +08:00
Muyi Lan
80f841d0dd [ALPS03809072] Set rat config property permission
[Detail]
Set permission for property "ro.vendor.mtk_protocol1_rat_config".

MTK-Commit-Id: 6bf36e9b4dc41769abb6d54a204877df82aa3804

Change-Id: Ie0b31f15e65381d4094bdf2095f8047db1be21fd
CR-Id: ALPS03809072
Feature: Telephony feature switch dynamically
2020-01-18 09:58:25 +08:00
Jason Su
8e687077cb Merge "[ALPS03950289] Add permission to access GPS properties" into alps-trunk-p0.basic
Change-Id: I731a490bda9197204316e3ec6e3c96b2c21f9aa2
MTK-Commit-Id: b8c35170a68804f5db06878e636d4f64debab6a8
2020-01-18 09:58:15 +08:00
Jason Su
b2d6377d9c [ALPS03950289] Add permission to access GPS properties
[Detail]
Add selinux permissions to access GPS vendor system peroperties.

MTK-Commit-Id: aa97b76d646e13029488cae3aa0feb73a389675c

Change-Id: Icd41d074b1b620f70e5a68c3c02719f773cf2b2f
CR-Id: ALPS03950289
Feature: Location AOSP
2020-01-18 09:58:10 +08:00
Guoyi Qu
4b9b0ea2a2 [ALPS03934599] property set issue
Change property name for new rule in P branch

MTK-Commit-Id: f6085b301d89b12bf36fd0d8fe2cea8144204bad

Change-Id: I0b9945db11eae1a1a59d201389ba001a18a3fc50
CR-Id: ALPS03934599
Feature: Connsys Log Tool
2020-01-18 09:57:59 +08:00
Stella Yang
e74283f1a5 Merge "[ALPS03878966] Declare label for mtk_ril_mode" into alps-trunk-p0.basic
Change-Id: Ic553ed91687447da5ae9a064e32fdd04afcc3763
MTK-Commit-Id: 7df057e68500af6a428ff2d925ffd5586ae3b2e2
2020-01-18 09:56:33 +08:00
stella yang
0c41f7d408 [ALPS03878966] Declare label for mtk_ril_mode
[Detail]
1. Add label: mtk_ril_mode_prop
2. Add ro.vendor.mtk_ril_mode into the label

MTK-Commit-Id: 68167f299e05a9fc8a11f4d7579c1a62fe2e7575

Change-Id: I3df9fb88b7871506272ec7f020ce2d5ecdf85272
CR-Id: ALPS03878966
Feature: WiFi Calling Service
2020-01-18 09:56:30 +08:00
Guoyi Qu (曲国毅)
570e1867d0 Merge "[ALPS03943443] Modem Log start USB logging fail" into alps-trunk-p0.basic
Change-Id: I54d5f747ba455c7b14eefbd8ff83096005e390f1
MTK-Commit-Id: d0ef866415599566461fd4ae5f995e3c96091038
2020-01-18 09:56:02 +08:00
bo.shang
276c0764fc [ALPS03943443] Modem Log start USB logging fail
Fix SELinux errors:
   1. Set vendor property
   2. Set USB property

[Solution] Add permission

MTK-Commit-Id: f9bea7ca32b8ca70e6f015d786753a43491810aa

Change-Id: I3e7cfc80eb34c3430a059b57afa1474ee49e75b1
CR-Id: ALPS03943443
Feature: Modem Log Tool
2020-01-18 09:55:57 +08:00
Yuhui Zhang
9bfd115a97 Merge "[ALPS03886705] EmCamera:sytemproperty name change" into alps-trunk-p0.basic
Change-Id: I85ab713b378de0567d6d5b4eff6287578a9d553b
MTK-Commit-Id: bf2a23c717ea1964fe3e8627170e4bd0db2890a7
2020-01-18 09:55:55 +08:00
Juan Rong
e405561d06 [ALPS03886705] EmCamera:sytemproperty name change
[Detail]
P migration: System property name change,
related SELinux need change too.

MTK-Commit-Id: f71582111ca7952637d39f49d8dccebdc933e299

Change-Id: Id0afb83774b37a23dfdcb8c85ccbd79310ad20e3
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 09:55:49 +08:00
guoyi.zhao
aa8c0897c5 [ALPS03929399] Rename CT VoLTE system property
[Detail]
Rename CT VoLTE system property and allow other module to access
persist.vendor.mtk_ct_volte_support.

MTK-Commit-Id: ae81ce0aabd412c630a4ebed0ba4a9a44121f8b6

Change-Id: I3142c30c2dcfe114cdaaf59d3b8bbfb565e50519
CR-Id: ALPS03929399
Feature: CTC VoLTE
2020-01-18 09:55:37 +08:00
bo.shang
8e36e3b63b [ALPS03939381] Relabel Modem log property
[Solution] Add permission for emdlogger and netdiag

MTK-Commit-Id: 14c95f115ab3347144b53fdfadb968697c689456

Change-Id: I591f884fbd7bccbbfd7fd28b5e05f4ea2b2e3181
CR-Id: ALPS03939381
Feature: Modem Log Tool
2020-01-18 09:54:24 +08:00
bo.shang
43da9dd22e [ALPS03939381] Label mdlogger property
change to debug to vendor.

MTK-Commit-Id: 7e44c1459207e6d1ec904ab2cc5224f19cc29ade

Change-Id: I996979da0f2827d9627a7bc69b6b65c3f590aa82
CR-Id: ALPS03939381
Feature: Modem Log Tool
2020-01-18 09:54:14 +08:00
mtk13799
9b9fbdfcf9 [ALPS03936313] NE occured on ccci_fsd
[Detail]ccci_fsd cannot open nvdata for selinux rule

[Solution]add selinux rules

MTK-Commit-Id: 187a7abec272b2e4201d7897d6608e5fafbc9070

Change-Id: Idd88dfc3d27d68584ca32be1e0128f21a29a7524
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03936313
Feature: Modem Interface Driver
2020-01-18 09:53:24 +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
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
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
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
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
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
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
yuhui.zhang
d442f052ed [ALPS03914002] Add property sepolicy rules
[Detail]
Add property sepolicy rules for EM

MTK-Commit-Id: 33df3c32e9e188bb4f236aac89468a932c35aa5b

Change-Id: Iac21945023892e8cfa9bec9e21bbaf70cbe547dc
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 09:46:58 +08:00
Xihou Li
7a2b47e958 [ALPS03873094] Rename mtk system properties
[Detail]
Due to new vendor system property rule, rename:
"ro.mtk_md_mims_support" to "ro.vendor.md_mims_support"

MTK-Commit-Id: 044ed790c998cc742f0beea6c8602a0adfed08f8

Change-Id: I7ebadeae292a6a814e05eb1032a7ef65938fc309
CR-Id: ALPS03873094
Feature: VoLTE (Voice over LTE)
2020-01-18 09:46:17 +08:00
Peng QI
7941a87b15 Merge "[ALPS03866092] BT HCI snoop log (2/2)" into alps-trunk-p0.basic
Change-Id: I57b57fd88223366357b717fb7aa9d9b2b2e31872
MTK-Commit-Id: d968e2163fad3e6912b3f9e937aa5b8a00cb8714
2020-01-18 09:45:49 +08:00
Peng Qi
bf77ac2d12 [ALPS03866092] BT HCI snoop log (2/2)
[Detail]
1. Add selinux right for MTKLogger to able to connect Bluetooth
via socket
2. Add selinux right for Bluetooth to set debug property for
MTKLogger state check

MTK-Commit-Id: db60d64b8ed91dfee48588fb5a32f2bedc2ba604

Change-Id: I31c5abb153c2bcd44a2dafca0f1f669e7310c3fe
CR-Id: ALPS03866092
Feature: BT AOSP
2020-01-18 09:45:40 +08:00
mtk14723
681f5b91de [ALPS03900296] EM move xcap system property to bsp
[Detail]
EM move xcap system property from basic to bsp

MTK-Commit-Id: 101ad6522cf582f548e53260346a441b80acddf4

Change-Id: If70507ef90c5a76c9fc66b1d4cc8d230329a5428
CR-Id: ALPS03900296
Feature: Engineering Mode
2020-01-18 09:44:13 +08:00
Chaoran Zhang
5f2560e086 [ALPS03872369] Rename GPS property to "vendor.xx"
[Detail]
Rename GPS property to "vendor.xx"
[Solution]
Rename GPS property to "vendor.xx"

MTK-Commit-Id: ec44a72c9d682320199fd5d8b6e3275a8e038c6d

Change-Id: Iad18e35b9fae08ab3ac3daa300119d8b91e53786
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 09:42:47 +08:00
Gang Wei
bc6d87511e Merge "[ALPS03888283] [P Migration]Property Rename" into alps-trunk-p0.basic
Change-Id: I31c2347d1a71a7143d4a09d940fed7326f88a3ff
MTK-Commit-Id: e4216535b2264566474d3a79f2ff6b20e46d46b9
2020-01-18 09:42:05 +08:00
Dian Wang
e8b0ff9895 [ALPS03888283] [P Migration]Property Rename
[Detail] Property rename in sepolicy

[Solution]
According P property rule

MTK-Commit-Id: dccca517eb8386e9e509da7461dddd82e3cbb06d

Change-Id: I9b38830f8792d40c954f251656d5623bb6c731c6
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 09:42:02 +08:00
Henry Huang (黃健智)
4991b689c6 Merge "[ALPS03841839] nvram init property rename" into alps-trunk-p0.basic
Change-Id: I05c4129f1579d908a416fa97bb3650d01b2de842
MTK-Commit-Id: 107e79ea03725db288290347d30cdcfd8e354a18
2020-01-18 09:40:15 +08:00
henry huang
77e5a274ef [ALPS03841839] nvram init property rename
[Detail]nvram init property rename for Android P

[Solution]as detail

MTK-Commit-Id: 65ecb62d61060ac65847faf0706c752523ed3610

Change-Id: I8fd4a5a64681a92d0346dabab4d30821a232581b
CR-Id: ALPS03841839
Feature: NVRAM Partition
2020-01-18 09:40:06 +08:00
Allen Chu
64d6f4722e [ALPS03804621] [P migration] Add property context
[Detail]
Add the following prefix property to vendor_radio_prop:
vendor.ril.
ro.vendor.ril.
vendor.gsm.
persist.vendor.radio

And declare permission at te file.

MTK-Commit-Id: 2754547c48d8cb78008c8b59e01d43e8d242813a

Change-Id: I593d7d1cdaf0caa5a92c65d0f7b03591cc8cbac8
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 09:39:37 +08:00
Yuhui Zhang
931dce4dc1 Merge "[ALPS03830074] EM telephony property selinux" into alps-trunk-p0.basic
Change-Id: I9051921cd06c7ca689de719fdf8b6962b7eb8607
MTK-Commit-Id: 9013bc0156f6b26a4859067a9a1ea46299fd0f9f
2020-01-18 09:38:41 +08:00