129 Commits

Author SHA1 Message Date
lena wang
271faac986 [ALPS04607956] SIM:Add IMSI to sensitive property
IMSI belongs to sensitive information and is not allowed to print.
Add IMSI property to sensitive group and it is not printed in
mtklogger property files.

MTK-Commit-Id: 9c0bde9784ce5f9f4a88ee6827faf864c248682a

Change-Id: If3721c66fc69f86424ed98193aecd600019071f8
CR-Id: ALPS04607956
Feature: SIM
2020-01-18 10:16:21 +08:00
Ethan Lau (劉榮茂)
51644f6ec8 Merge "[ALPS04653648] Factory Mode: fix SElinux policy" into alps-trunk-q0.basic
Change-Id: I957bd048bf6649c4484b2012f64f4a9a10290c19
MTK-Commit-Id: feac521370436d73d3fd9443694aa1ac42ff94be
2020-01-18 10:15:06 +08:00
Jenny Hsu
5985a06909 [ALPS04653648] Factory Mode: fix SElinux policy
[Detail] Add whitelist for SELinux avc denied problem

MTK-Commit-Id: 69c17be2893ecc73c0b486728899d56c11587a08

Change-Id: I2fbf51c12e68b134d6ee7a95421dba0706894147
CR-Id: ALPS04653648
Feature: Factory Mode
2020-01-18 10:15:04 +08:00
chun-yi lin
8700268780 [ALPS04331131] Wlan: wlan_assistant selinux
For Meta mode, we use the property to notify meta tool that NVRAM
has read. Set the selinux rule for this property.

MTK-Commit-Id: 0cafb33d13392e6a676930814e3df3ba27fb146b

Change-Id: I62ca6e004861720eb43b90ace6f5fff85da49298
Signed-off-by: Facer Pei <facer.pei@mediatek.com>
CR-Id: ALPS04331131
Feature: [Module]Wi-Fi Driver
(cherry picked from commit bf9cdf5f2598cecdc0b5f4fd1b1016b9fd77dfd6)
(cherry picked from commit a846ce17a1eedc26d31b6c82b2583f58cd8e53f5)
(cherry picked from commit 8f6643f055c69d5b45e17048ce9a76311d6fdd92)
2020-01-18 10:14:46 +08:00
Qian Dong
cb1094e975 Merge "[ALPS04577521] remove ro.vendor.mtk_wmv_playback_support property" into alps-trunk-q0.basic
Change-Id: I8954fa076a07fda6e6c60d8af769142e4f2e5092
MTK-Commit-Id: 3f108f6389ae686aeea3af05a452aef5dc398386
2020-01-18 10:13:47 +08:00
Yuxiu Zhang
db6b8b4297 [ALPS04577521] remove ro.vendor.mtk_wmv_playback_support property
AP(MediaFile.java) do not need it from Android Q

MTK-Commit-Id: 796885860cf7c950e2ac5ebc4e0b3ee6996171c0

Change-Id: I7ca0d4827a88118e84b7c33687b1e7ca6897a185
CR-Id: ALPS04577521
Feature: ASF Playback
2020-01-18 10:13:45 +08:00
Ian-Y Chen
9fcf99ba09 [ALPS04328846] power: refine sepolicy
[Detail]
1. Add prefix PERFMGR for performance related ioctl
2. Add property permission for PowerHAL

MTK-Commit-Id: 91ef99a47ee2de3c48426298c9a67d5e4dd10a6b

Change-Id: I5979aefc7fb110ee540425bc53896babdcac08bd
CR-Id: ALPS04328846
Feature: [Module]PowerHAL
2020-01-18 10:13:32 +08:00
Chinwen Chang
3203c8f38a [ALPS04455690] Whitelist some lmkd properties that go into /vendor/build.prop
Add whitelist for the following properties,
      ro.lmk.use_minfree_levels
      ro.lmk.low
      ro.lmk.medium
      ro.lmk.critical
      ro.lmk.kill_timeout_ms
      ro.lmk.swap_free_low_percentage

This is just a temp solution because those properties should be
put in system/sepolicy/public/property_contexts, but it is not
ready currently. Once it is ready for those properties, this
patch will be rolled back.

MTK-Commit-Id: bc8b76b56605d264af1727cd234a5406da372744

Change-Id: Id8db6725e9dfeeeebd401c8922fe8004c5f5c5b4
CR-Id: ALPS04455690
Feature: Memory Optimization
2020-01-18 10:12:59 +08:00
Muyi Lan
19d36b81a9 [ALPS03809072] Add vendor partition property
Due to we might replace system image to GSI image,
we need to maintain another vendor partition properties
to avoid unexpected errors.

MTK-Commit-Id: 2e80c29b78d158be175d350c14ee804a57e1ad41

Change-Id: I6da5eb3479bb93cbb9c0bdd41fd4c69bffb5dd15
CR-Id: ALPS03809072
Feature: Telephony feature switch dynamically
2020-01-18 10:10:48 +08:00
Sammy-CY Yang
1888305f75 [ALPS04409296] add BT enable SAP profile policy
Enable BT SAP profile by properties rather than static resource overlay in Andorid Q.
Add the selinux rule for this property.

MTK-Commit-Id: 32eeec317227518f6be67c8bacc1aef03a413568

Change-Id: Ide8429240862eb79b24a352272ceaeae3fd09b2a
CR-Id: ALPS04409296
Feature: BT AOSP
2020-01-18 10:10:23 +08:00
Ju-Yi Cheng
2a4126739f [ALPS04384473] Remove relabel graphics_debug_prop
[Detail] No need to relabel graphics_debug_prop since
no process need to setproperty in runtime

MTK-Commit-Id: d7f0964bc3a857471cd9891ec64dcb225c886d0f

Change-Id: I59baa11790e0dea1652097c6fe0127a25406d046
CR-Id: ALPS04384473
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:10:07 +08:00
lena wang
2759cfde98 [ALPS04288147] Sepolicy:SIM On/off feature
Add property access right for APP usage.

MTK-Commit-Id: f01ca106779bea2c9699fbecbc4c3de94e0ab3e9

Change-Id: I1652ead60b4b517a3a3d04aabe1d61bb7a49933c
CR-Id: ALPS04288147
Feature: SIM
(cherry picked from commit 620f4ace14bc12b95e9345b8f73dcffc372b2171)
(cherry picked from commit d447535fbc6e972fb64696481de5cb8bf3dfc546)
2020-01-18 10:08:39 +08:00
Josh-YC Liu
985027f9bf [ALPS04306526] AAL: add AAL vendor partition property
Add vendor property for AAL.

MTK-Commit-Id: a7d55ae905f951254aab9e902be4b7ec09e8a04f

Change-Id: I1c651cb5657cdbeb2b91960f90f9c02508fa2364
CR-Id: ALPS04306526
Feature: Ambient Light Adaptive Luma
(cherry picked from commit 0fbccdc8421acd6544153f2527c492220979cade)
2020-01-18 10:08:23 +08:00
Juan Rong
ae82eac4a3 [ALPS04202940] Xcap: use raw url
set/get property for whether xcap use raw url

MTK-Commit-Id: d6f9cdb5a6752582a5effd143ea77e6ca44c2ca6

Change-Id: I093c419181606cd8adb41449b02ff9c5cfa42b51
CR-Id: ALPS04202940
Feature: IMS SS
(cherry picked from commit 8e45ece0df6b2d8619f461afde28dcbb163dbab2)
2020-01-18 10:07:53 +08:00
Che-Jui Chang
8b4db85b56 [ALPS04115707] vow: add voice recognizes property in sepolicy
add policy so that can get property

MTK-Commit-Id: b94dbc087fd5d1b50ea27bd23f968b19c1f85eae

Change-Id: I36523eaf9db7379500ac8fbd700f3d92dfb2a77e
Signed-off-by: Che-Jui Chang <che-jui.chang@mediatek.com>
CR-Id: ALPS04115707
Feature: MagiEar-Voice Wakeup
2020-01-18 10:07:27 +08:00
Tim Chang
7df888a9d5 [ALPS04056430] WMT:Move coredump mode property to system partition
Allow system process to set the property,
"persist.vendor.connsys.coredump.mode"

MTK-Commit-Id: c066127efb1903b15e97498ae32b28af2efc091e

Change-Id: Ia818c7e517e4da479bb7ad1c4fdbc382a1423659
CR-Id: ALPS04056430
Feature: [Module]WMT Driver
2020-01-18 10:07:23 +08:00
dengwei.xu
19c5ed689f [ALPS03992559] EM hidl V1.1 selinux
Add the selinux labels

MTK-Commit-Id: 924bb82662abe532ec2e7d883e944547eda8efb2

Change-Id: I9a1e602f33dd1f76970f4d128cd6e25bb9643aea
CR-Id: ALPS03992559
Feature: Engineering Mode
2020-01-18 10:07:11 +08:00
Juju Sung
8326dd2700 [ALPS04085967] AGO: System property error
[Detail]
It has restriction in properties used by system and vendor,
we add property context to let system/vendor can read it.

MTK-Commit-Id: fbc82035b5138ce6c7a0db51281bb96251409982

Change-Id: Ie69f589782a430fa583311764c0a0029b54162fa
CR-Id: ALPS04085967
Feature: Memory Optimization
2020-01-18 10:06:50 +08:00
dengwei.xu
dbd6c0abd4 [ALPS04083174] EM telephony RF reset - selinux
Add the selinux support

MTK-Commit-Id: 31d37971bece408a6fa08d20009db9bb9bb94346

Change-Id: I7d965a3cd40e8526317596c188fb07acdb37b0f8
CR-Id: ALPS04083174
Feature: Engineering Mode
2020-01-18 10:06:50 +08:00
Junjie Hu
6e969c94aa [ALPS03907306] malloc debug unwind backtrace switch
[Detail]user can setprop by adb shell to switch unwind
backtrace runtime

MTK-Commit-Id: a2754d46b96648f748fde4677ec031dbe78ed984

Change-Id: Ida29eb32bdbb843593b3500eabc90c98e9278aea
CR-Id: ALPS03907306
Feature: Android Exception Engine(AEE)
2020-01-18 10:06:35 +08:00
yu.chen
5967cb46f7 [ALPS03894758] Enable Fullscreen modes systemproperty
[Detail]
enable ro.vendor.fullscreen_switch

MTK-Commit-Id: a8a6a1df9e4abd965da8524b04d54195a9e155c6

Change-Id: I81aedc738c173ed0540a6b1fadceb7919c482f1f
CR-Id: ALPS03894758
Feature: Fullscreen Switch
2020-01-18 10:06:24 +08:00
louis.peng
83cba54243 [ALPS04055044] Set supplementary service vendor property through HIDL
[Detail]
Add API to set vendor property in RILD

MTK-Commit-Id: 48b137c317e4baf195b87f767702b1b4956e7696

Change-Id: I4d03c4affb0f1a2a96b8a8cea867b46750d2132a
CR-Id: ALPS04055044
Feature: IMS SS
2020-01-18 10:06:16 +08:00
mtk14318
99dcd98d32 [ALPS04034495] Latch unsignaled buffer
[Detail]
Read latch unsignaled buffer by vendor property.

[Solution]
Read latch unsignaled buffer by vendor property.

MTK-Commit-Id: 62e601385bce5a890d9d46ce81318e4d5c19e643

Change-Id: I5737f589a3d3bb48ad5a30ee2ef670de602b30c3
CR-Id: ALPS04034495
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:05:54 +08:00
mtk13799
a38199a49e [ALPS04030563] add antutu blocking property in selinux
[Detail] selinux permission denied for "ro.vendor.net.upload.benchmark.default"

[Solution] add "ro.vendor.net.upload.benchmark.default" property in selinux

MTK-Commit-Id: 67b0ca896cbaed21ecc0343528caa5829ec3a5e4

Change-Id: I6b0afee632d794dd1fc2138cf442c046a5b662d1
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS04030563
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 10:05:50 +08:00
Dian Wang
463b53426b [ALPS03888283] ATM porting
[Detail] Add ro.boot.atm sepolicy

MTK-Commit-Id: 16037a392ffd3b08f48aafd95a75d37d0fcc1ecf

Change-Id: If6fc10a09449846703a364046ea3fcc49db8b581
CR-Id: ALPS03888283
Feature: SP META Tool
(cherry picked from commit 1164607d54a309472fbcb7bbb76cfd4a22eebbf4)
2020-01-18 10:05:39 +08:00
mtk13799
e70ad0b767 [ALPS03886692] add selinux rule for viarild
[Detail]add selinux rule for viarild

MTK-Commit-Id: 6181cc61cd3ee8a97c823b56f4e376a94179598f

Change-Id: I1c87b7d57519ac2a3468aa30af47dc583a8db411
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03886692
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 10:05:30 +08:00
yu.chen
054e883e20 [ALPS04014599] Enable App Resolution Tuner systemproperty
[Detail]
enable ro.vendor.app_resolution_tuner
persist.vendor.dbg.disable.art

MTK-Commit-Id: 6602d8315e245d601a27bb01f7f24685736a42c2

Change-Id: I1907fa852ce7c00a8349c3cf97587fee1bd037b3
CR-Id: ALPS04014599
Feature: APP Resolution Tuner
2020-01-18 10:05:29 +08:00
yu.chen
9611223a28 [ALPS04027708] Enable ANR systemproperty
[Detail]
Enable ANR systemproperty
persist.vendor.dbg.anrflow
persist.vendor.anr.
vendor.anr.autotest

MTK-Commit-Id: eb6a6e8f3803b41347567178f7649ef5c9d2f80e

Change-Id: Ibb530a1d9f5ceca67e39fe2c6980e6807e457b86
CR-Id: ALPS04027708
Feature: ANR Debugging Mechanism Enhancements
2020-01-18 10:05:22 +08:00
yuhui.zhang
3215feaff6 [ALPS04013705] EM: use wmt_prop for wcn core dump
[Detail]
Use default wmt_prop for EM wcn core dump settings

MTK-Commit-Id: f0442dcc10ce57fc961038e346cb442212d19dd8

Change-Id: I72f73131b32f382330df6178a0d388b11953c68a
CR-Id: ALPS04013705
Feature: Engineering Mode
2020-01-18 10:05:02 +08:00
mtk33201
5542a95d19 [ALPS03872441] Adding ro.vendor.mtk_exchange_support to property_contexts
Sepolicy denied reading the System property ro.vendor.mtk_exchange_support "Access denied finding property "ro.vendor.mtk_exchange_support""

Adding this property to property_contexts in sepolicy/basic/non_plat as per the guidelines for property defined in PRODUCT_PROPERTY_OVERRIDES.

MTK-Commit-Id: df2d79e0b9c73fe974073a94f02eb27678546043

Change-Id: I10daf364fd044249a2467520d87e8ec49c4829f7
CR-Id: ALPS03872441
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:04:58 +08:00
mtk13858
d7105292b6 [ALPS04013134] CCCI:fix android p selinux issue v2
[Detail]
fix code defect to avoid vts fail

MTK-Commit-Id: 8910b5c642fd4ebb0910eda3f6b49c38f91f4483

Change-Id: I95cd0a11b4bc9d8145b7017ffbf4b171751ef32c
Signed-off-by: mtk13858 <derong.liu@mediatek.com>
CR-Id: ALPS04013134
Feature: Modem Interface Driver
2020-01-18 10:04:57 +08:00
mtk13858
d2412a883b [ALPS04013134] CCCI:fix android p selinux issue
[Detail]
1.add label to property init.svc.emdlogger1
2.allow ccci_mdinit access get sys boot mode

MTK-Commit-Id: bc7ec844660c91ba7bb5bdc25ec176d3d2a2ec14

Change-Id: I32df4b62b474eca193f9a719e9b559597acc1ab6
Signed-off-by: mtk13858 <derong.liu@mediatek.com>
CR-Id: ALPS04013134
Feature: Modem Interface Driver
2020-01-18 10:04:45 +08:00
Chunlan Wang
9a7b03369b [ALPS03972298] Meta Mode: Add permisson to get RSC version
[Solution]
Meta Mode will support to query RSC version

Conflicts:
	non_plat/property_contexts

MTK-Commit-Id: db231d2c6ea5ed34f20cc93b135925b117bd98f3

Change-Id: Ib9fb54bbd7355bfd50c5a3527e835ff63693c38d
CR-Id: ALPS03972298
Feature: Factory Mode
(cherry picked from commit a504e618d593ef19cfd0738048db935289515fc1)
2020-01-18 10:04:45 +08:00
Josh-YC Liu
1990000501 [ALPS04010443] AAL: add set property in SELinux
Add new AAL API for set function with property.

MTK-Commit-Id: 9fa5437f96066104e04ebb655e39d24db2935080

Change-Id: Iab58a2ecd919ceadd9b8586d2b52720c176ded01
CR-Id: ALPS04010443
Feature: Ambient Light Adaptive Luma
2020-01-18 10:04:41 +08:00
Juan Rong
de37c93d5f [ALPS03886705] EM:hardware-testing property hild
hardware-testing usb/uartusbswitch need hild to set property

MTK-Commit-Id: 18147a06185f3315cfa6bd0790b7539063910c4a

Change-Id: Id2bafe2df4ef44d1b0e4eaac2fe5b10483a080ab
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 10:04:36 +08:00
dengwei.xu
4f6395a554 [ALPS04001212] EM telephony system write property
Add the system write and system read property selinux rights

MTK-Commit-Id: 432c666c3d1275c3c7d7f0d88b4fcf69650314bf

Change-Id: I835af9bfdf0b0ac039a4b04498b36f3feb791a12
CR-Id: ALPS04001212
Feature: Engineering Mode
2020-01-18 10:04:30 +08:00
lena wang
3f037eeb36 [ALPS03856250] SIM:add policy for system set prop
Config property "vendor.gsm.sim.operator.default-name" as:
1. system image could set but vendor image cant.
2. System could read.

MTK-Commit-Id: 79e9cc75b8937a0eeb1e0a34af2095fad7182388

Change-Id: Ib14716449080c17dbd98e681215e1d89d96029a8
CR-Id: ALPS03856250
Feature: SIM
(cherry picked from commit ef7ae758c93dc94fec1f7f23c877d86a254d035d)
2020-01-18 10:04:28 +08:00
dengwei.xu
12c8c8e1f4 [ALPS03992559] EM HIDL - selinux
Add selinux support for HIDL

MTK-Commit-Id: f58b6fd1c6c053780475ad44ac648f6231af0d94

Change-Id: I77a9bdffbcb8b837e78055ef8bfb9b9d328232b2
CR-Id: ALPS03992559
Feature: Engineering Mode
2020-01-18 10:04:08 +08:00
chien-wei hsu
f7e5d73400 [ALPS03902666] Sepolicy: add prop to audiohal_prop
[Detail]
because some prop need set permission, so it need to
be audiohal_prop.

add:
persist.vendor.audiohal.
persist.vendor.vow.

MTK-Commit-Id: aae5137ad5c16096557f7cd5d44697e9d6274486

Change-Id: I8a4e2d6e8462d980e5c933e9469c3043461233de
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 10:03:23 +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
590d94440a [ALPS03934986] Remove vendor.sys.boot.reason
vendor.sys.boot.reason is set by system process, not vendor_init
thus remove it from mtk_default_prop

MTK-Commit-Id: f0df9ebeb7cff07aa134559b4e4dedef66417302

Change-Id: I39b14ee6863396eb5296b1a0a4e171a369dd994b
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:02:31 +08:00
Dengwei Xu
3a55affee9 Merge "[ALPS03914002] EM: remove unused sepolicy rules" into alps-trunk-p0.basic
Change-Id: I94b512b901b9ea9b4f78367e93b3d990f8cd3bd1
MTK-Commit-Id: 000f7d6d882c408fe8b5d8bc82f003cb8acb060a
2020-01-18 10:02:12 +08:00
yuhui.zhang
51e62850d5 [ALPS03914002] EM: remove unused sepolicy rules
[Detail]
1. Remove mnld_prop for using hidl
2. Remove bt ssp debug mode for function removing

MTK-Commit-Id: 7b69d50028b1f3543596c1cb7c55f3e0bf43d5a4

Change-Id: I34618a2f4347e56d825fe86ef7084aeaa95b0ebc
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 10:02:10 +08:00
mtk13799
15ff7150ff [ALPS03886692] property rename for Android P
[Detail]property rename for Android P

MTK-Commit-Id: b3bfff5f029e5e71dc9c47cd37102f81dd484d69

Change-Id: I2d1cbc4f2efcf554198b442b3e5a39311ed07e85
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03886692
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 10:02:05 +08:00
Yuru Zhu (朱禹儒)
d6cf9b5e92 Merge "[ALPS03866092] Add FP for ConnSYS Log" into alps-trunk-p0.basic
Change-Id: I5c011916e81a73c7341f2940de689a4908d07463
MTK-Commit-Id: 8853626ae5990a9f9ae5d4d58ab1c29bc4d06cce
2020-01-18 10:02:05 +08:00
Peng Qi
5391d4ae6c [ALPS03866092] Add FP for ConnSYS Log
Need to apply selinux access right for connsys
log feature system property

Test: make, read check by MTKLogger

MTK-Commit-Id: cabc0581448be6b267e44f87b36e216905fd4045

Change-Id: I2fb5ea65dad6ba87dc63f7922eb3384cfb96b485
CR-Id: ALPS03866092
Feature: MTKLogger
2020-01-18 10:02:02 +08:00
Lili Lin
2197275e79 [ALPS03934986] Remove un-renamed properties
Since Android P, all properties under non_plat/property_contexts
should follow naming rule to add "vendor" prefix, otherwise
VTS will fail.

MTK-Commit-Id: 4563796d8ea83f170097b1ad8fdc3bae0cbae5a1

Change-Id: I0315ae6beefc6f4dd97bf79d217c82b4b7c281e5
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:01:54 +08:00
Weilun Liu (劉維倫)
90e11a04ce Merge "[ALPS03861873] rename service name" into alps-trunk-p0.basic
Change-Id: I25fb8056917297544c93cc6e79ca45031f37f4ab
MTK-Commit-Id: 971c4dbb943e5fa40457f1745d72127b0224f2f9
2020-01-18 10:01:48 +08:00
Weilun Liu
d03eacc0d3 [ALPS03861873] rename service name
[Detail]
We use system property to start service,
follow android P rules, we should add prefix "vendor."
into the property name

MTK-Commit-Id: fbd0d1e60f45d93dd0402747afd0a91624f7e0cf

Change-Id: I02d8dace8d0445b3adf8c4044e15fed3f5fe95ab
CR-Id: ALPS03861873
Feature: [Module]Telephony power on
2020-01-18 10:01:46 +08:00
Weilun Liu (劉維倫)
a076bea25a Merge "[ALPS03804621] [P migration] Re-name property" into alps-trunk-p0.basic
Change-Id: I7d93965159193730f106a9c1267e74559dcdd8f7
MTK-Commit-Id: 60bab7e6c90807410d8680a023fbcac470987f21
2020-01-18 10:01:35 +08:00