151 Commits

Author SHA1 Message Date
Aayush Gupta
e4a9991131 non_plat: Label xcap binary and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I127160acbcffcee0c055f7a78d62acc37741d2cf
2021-01-03 10:56:00 +05:30
Aayush Gupta
965100d2a9 non_plat: Label epdg_wod and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I87460bad635dd0e7dbbb8790457f5d23f8a87a97
2021-01-03 10:56:00 +05:30
Aayush Gupta
c4bd4e850c non_plat: Label volte_stack binary and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1ff3478844f876405a378f19ecd095daf7629708
2021-01-03 10:56:00 +05:30
Aayush Gupta
23c3e00542 non_plat: Label volte_ua binary and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I3681ff0ed7a1de2499b8d53fd5d355cacff3a33a
2021-01-03 10:55:55 +05:30
Aayush Gupta
a76a7cc1d2 non_plat: Label volte_ism_93 and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I2ca62b8caed4c7b9e6994e4705df492028ed148d
2021-01-03 10:07:32 +05:30
Aayush Gupta
1e1ffa249d non_plat: Label volte_md_status and grant required permissions
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Ia41f71d07852bcb357cc26c0cb82d67c53cf19e9
2021-01-03 10:06:17 +05:30
Aayush Gupta
9a3e56224e non_plat: Introduce new label for setting mtk specific camera properties
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1ce016d9e3a9cb7cda1170c830c7edd327528610
2020-12-28 00:39:45 +05:30
Vinay Gannevaram
b8d409439e sepolicy : Add rule to set property for wlan driver/fw ver info
wlan driver/fw version are set at property at enforcing mode.
Add rules to allow to set wlan driver/fw version info

CRs-Fixed: 2460816
Change-Id: Ic0bb570cd53fe450512496c5864f432ce3219bbe
2020-12-26 16:28:02 +05:30
Sheldon Wang
1482d6d9af [ALPS04817575] Add system property only for MTK system image
[Solution]
When run VTS test, theres no WOS module due to its AOSP system image.
So we need to skip the edpg related function.

MTK-Commit-Id: 8f8e5faded18d6bcee1eb96dba37a2d708f3995f

Change-Id: I9cee39eea1dd75bccf6cc442f16ed3fe4e72ae95
CR-Id: ALPS04817575
Feature: WiFi Calling Service
2020-01-18 10:21:38 +08:00
Juju Sung
939dbae537 [ALPS04823486] selinux: export fingerprint property
coredump tool needs to expose system and vendor image
fingerprint to know the relative version info.

MTK-Commit-Id: e8794c35f056dfeb20c0dff8b8aa506bd938fbd6

Change-Id: I009e10ccc8838b032d2192055fe1defcf81cebee
CR-Id: ALPS04823486
Feature: Android Exception Engine(AEE)
2020-01-18 10:21:25 +08:00
Juju Sung
f98ad21ce5 [ALPS04767749] selinux: export fingerprint property
coredump tool needs to expose system and vendor image
fingerprint to know the relative version info.

MTK-Commit-Id: bb82be1edc85daa3838c5917597d1c25e57bc434

Change-Id: Id29698199ac9081c56ad51f244b75732c9e18894
CR-Id: ALPS04767749
Feature: Android Exception Engine(AEE)
2020-01-18 10:21:07 +08:00
Gang Xu
667f0f00df [ALPS04785930] Add ICCID to sensitive property
ICCID 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: 9a8e54973852a5afc01083ffe6ef2b7ac91d9347

Change-Id: I6e8a799bc5299deca730add0d0dfee77550b2a63
CR-Id: ALPS04785930
Feature: Mobile Data Service
2020-01-18 10:20:28 +08:00
Leo Hsieh
a61938f39c [ALPS04740849] Add sepolicy for 3-apk
Add sepolicy ro.vendor.mtk_nn.option for 3-apk.

MTK-Commit-Id: fab2092fdc76055e29ff31c900da0bee29f7ac5e

Change-Id: I0b44a239fb76f3cde51fa0e992023fbf34e4a57f
CR-Id: ALPS04740849
Feature: NeuroPilot
2020-01-18 10:19:23 +08:00
Juan Rong
a533597f9f [ALPS04725620] [EM] usb/power selinux issue
Add usb/power path to selinux

MTK-Commit-Id: ad55ebdcbc2f2abd48f74cc7d2ea5b26f2051fcc

Change-Id: I20287cef1ffc4961cf522fbda2ae47236059c564
CR-Id: ALPS04725620
Feature: Engineering Mode
2020-01-18 10:18:25 +08:00
Ben Lai
cea90a2052 [ALPS04717735] Rename wifi saps interface property name
Rename wifi saps interface property name to "ro.vendor.wifi.sap.interface"

MTK-Commit-Id: 247972295f200bae29ff47c82a050e5f076af88d

Change-Id: I1e0e1937be60542fc6dad02420d31f76101e7c54
CR-Id: ALPS04717735
Feature: Wi-Fi Tethering
2020-01-18 10:18:20 +08:00
gtk_qingyunmei
060eb640e1 [ALPS04707246] porting hdmi hidl service
Refactoring hdmi service as hidl service,so that
other process can call hdmi services API.
Add Selinux permission for hdmi hidl service.

MTK-Commit-Id: 0ecef9e52ce92b52413fbecd2b5be492806b8f53

Change-Id: I7f1c5f48d4ae9777acc80436a4af801f32969fac
CR-Id: ALPS04707246
Feature: [Module]Settings
2020-01-18 10:17:54 +08:00
Ben Lai
49506ee5cc [ALPS04669137] wlan: Add support for saps property
Add support for saps property.

MTK-Commit-Id: f5047d8b7abbc4f4adce38301741a91ba53895ca

Change-Id: I9bfaccde83cbd3032714ff09baf974622b67eeae
CR-Id: ALPS04669137
Feature: Wi-Fi Tethering
2020-01-18 10:17:46 +08:00
Wenxiang Zhong
2dfa9329c1 [ALPS04697845] add performance tuning properties
Add performance tuning properties ro.vendor.mtk_perf_plus
selinux policy

MTK-Commit-Id: 8aa76802ecb3d6fdfa33485ef7db0fc18818d877

Change-Id: Ib2c5bbcab4e6556ae6028568ccfef5e62f6e5b17
CR-Id: ALPS04697845
Feature: System Performance
2020-01-18 10:17:05 +08:00
mtk14318
0a8da1b15e [ALPS04417009] Enable SELinux Property
vendor.debug.sf.hdr_enable

MTK-Commit-Id: 166ff42973f20061b1a449115ca4b7a6e5663a68

Change-Id: I04b02f334dd51821698a9875e010a92d4d6a1c2b
CR-Id: ALPS04417009
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 10:17:01 +08:00
Harvey Liu
81bde14096 Merge "[ALPS04682095] Factory Mode: fix SElinux policy" into alps-trunk-q0.basic
Change-Id: I7ccd9cbbb58599b6ac3728d39ba1cae4fc52f205
MTK-Commit-Id: 9e50666bedfd55e9d06dfb8ca3c7316302ef3fc3
2020-01-18 10:16:35 +08:00
Jenny Hsu
5208b37972 [ALPS04682095] Factory Mode: fix SElinux policy
[Detail] Add whitelist for SELinux avc denied problem

MTK-Commit-Id: 09661f9080a79ab4793477bb1d2f58ca82c8c517

Change-Id: Ibdacde2da8c49e5f7d7744c2c5781b0bcf03cccc
CR-Id: ALPS04682095
Feature: Factory Mode
2020-01-18 10:16:33 +08:00
Chinwen Chang
b26257b43e [ALPS04682095] revert "[ALPS04455690] Whitelist some lmkd properties that go into /vendor/build.prop"
This reverts commit bc8b76b56605d264af1727cd234a5406da372744

MTK-Commit-Id: 70d80baace23b335bad1fe838af8662e4145feaa

Change-Id: Idfe9cf773b3434596d97e0c0412468635ef624c3
CR-Id: ALPS04682095
Feature: Memory Optimization
2020-01-18 10:16:29 +08:00
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