932 Commits

Author SHA1 Message Date
Miles Chuang
2555c134f1 [ALPS03873734] Follow Android P new property rules
[Detail]
Android P add new limitation for property access between
system partition and vendor partition:
1. SET and GET only by system
2. System cannot SET the property which SET/GET by vendor.
3. Allow system and vendor GET the property which SET by vendor.

[Solution]
Add new CXP HIDL to set the vendor property in vendor layer.

MTK-Commit-Id: 9a2ec20bc8a60761ed0ff15f897f67b3883f8486

Change-Id: Icaea3afb2743108d7c78eea2b6e4dad363a8052d
CR-Id: ALPS03873734
Feature: Regional Carrier Express Pack
2020-01-18 10:04:27 +08:00
Chang-An Chen
5ea20dfd23 Merge "[ALPS03875899] Add update dtbo permission" into alps-trunk-p0.basic
Change-Id: I8cc5a2f98e3aaebb2fb47e116382525016e6181b
MTK-Commit-Id: 6325e5e61e7b3a94659fc56940c36bdbc03b2137
2020-01-18 10:04:26 +08:00
haohsiang.hsu
ed2182abf9 [ALPS03875899] Add update dtbo permission
[Detail]
Add A/B system updates dtbo partition permission

MTK-Commit-Id: 8f3d181b1373f1454619641100e9994a93fab2fd

Change-Id: I2616b8783f604b2a37b16e9e80ded89af0c83347
CR-Id: ALPS03875899
Feature: A/B System Updates
(cherry picked from commit 0d38d31fa2506d0f1be7194b7d55c0a181734c4c)
2020-01-18 10:04:24 +08:00
Chaoran Zhang
47f6411005 Merge "[ALPS03951854] Add lbs_dbg SDCard policy" into alps-trunk-p0.basic
Change-Id: I57b566d96ca2709bd8d005c2ab7c92947c69f153
MTK-Commit-Id: ae7d06f471a69157dc0709272000c45a56308875
2020-01-18 10:04:22 +08:00
Chaoran Zhang
6b44fd145f [ALPS03951854] Add lbs_dbg SDCard policy
Add lbs_dbg SDCard policy

MTK-Commit-Id: c67c8b7574d9afdf515bc4018ab6603d48b9f8fc

Change-Id: Ifc351a47255a2b688a8fc66d4e78db172efb4013
CR-Id: ALPS03951854
Feature: GNSS Co-Clock
2020-01-18 10:04:19 +08:00
Weiqi Fu (付玮祺)
f31617cda3 Merge "[ALPS03951701] sensor: data/vendor/sensor path" into alps-trunk-p0.basic
Change-Id: I5a007064b43c3d6e3cfa3a7da89dc24b2925998a
MTK-Commit-Id: 7a912a525f42ba5a99409c82480d603329d9ec33
2020-01-18 10:04:18 +08:00
hongxu.zhao
7b8ea7e69c [ALPS03951701] sensor: data/vendor/sensor path
modify path data/vendor/sensor path

MTK-Commit-Id: 82c649202267f9b52065b7563e3e9f2d544a2fe7

Change-Id: Ib7efe28f28c8a07f7796ad8f6f82bab937ffef32
CR-Id: ALPS03951701
Feature: Sensor Hub
2020-01-18 10:04:16 +08:00
Juju Sung
1457d484c4 Merge "[ALPS03998186] Treble: Fix selinux issue for booting with GSI" into alps-trunk-p0.basic
Change-Id: I820b3784907771fec7f06ed07d771daf3de30c9e
MTK-Commit-Id: d1df5b415bc9376c099e38d7ccaa6db58bd64fdb
2020-01-18 10:04:14 +08:00
Sam-KY Lin
da660a3653 [ALPS03998186] Treble: Fix selinux issue for booting with GSI
[Detail]
SEPolicy rule that put in plat_private folder will be placed in system image.
So, It will be overwrited after flashing GSI.

[Solution]
Move MTK rules to non_plat folder instead which will be placed in
vendor image.

MTK-Commit-Id: 91e5023b67f0ce18e5e364adce5da5413c71fc69

Change-Id: I372b059e44c4bbfd6d4a92a790846b2228213b88
CR-Id: ALPS03998186
Feature: Treble
2020-01-18 10:04:12 +08:00
Yuhui Zhang
c7fd91bdb5 Merge "[ALPS03992559] EM HIDL - selinux" into alps-trunk-p0.basic
Change-Id: I4fd3bd2554bf61653f45af1c5aa73d58c35ef65e
MTK-Commit-Id: c2b6c5d2327253281e4dc125e045e6752b348fe4
2020-01-18 10:04:10 +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
Larry Liang
e2b7fd0b00 Merge "[ALPS03997871] allow MobileLog exec logcat -L" into alps-trunk-p0.basic
Change-Id: I366928a1a654959932a1bc39a77530f3f5c7a8ce
MTK-Commit-Id: 9d2d735377baa0a913c902f58108a7af5c10e6a3
2020-01-18 10:04:06 +08:00
Yuxian Xu
000e69e1bc [ALPS03997871] allow MobileLog exec logcat -L
Mobile_log_d exec logcat -L to get last Android Log

MTK-Commit-Id: e51d67ff3d1024ec236d26f66d5286a1aed6fb75

Change-Id: Id2f2aceb501a5324ff642f34455080ccbd54bf34
CR-Id: ALPS03997871
Feature: Mobile Log Tool
2020-01-18 10:04:04 +08:00
Hua Tian (田华)
cfd3f022a1 Merge "[ALPS03861807] Revise code" into alps-trunk-p0.basic
Change-Id: I021df5471270aacefdb99434a73a1ad1ef8d0e3a
MTK-Commit-Id: 90c5001ee3cd5ccec6df93d7970a97d241e43bfa
2020-01-18 10:04:02 +08:00
Wei Fu
969ca69f47 [ALPS03861807] Revise code
Restore audio command handling back to atcid to
simplify code.

MTK-Commit-Id: d23f20fd117efde5d22ea8abcc467617cc5b0ab0

Change-Id: I0abb4f9a5cc0facf44a27107a1cd90ce575c389e
CR-Id: ALPS03861807
Feature: [Module]ATCI (AT Command Interface)
2020-01-18 10:04:01 +08:00
Chaoran Zhang
7afa1c5c3f Merge "[ALPS03872369] Add lbs_dbg selinux policy" into alps-trunk-p0.basic
Change-Id: I39eb95ac7b36d54feecc0a96d51f7d6850977d99
MTK-Commit-Id: 3086d4d417da03478e366f08e6c4de5f90512550
2020-01-18 10:03:59 +08:00
Chaoran Zhang
c30a82525d [ALPS03872369] Add lbs_dbg selinux policy
[Detail]
Add lbs_dbg selinux policy

MTK-Commit-Id: c316e3908f5d5ddbf8f543ef08a4759159b798ba

Change-Id: Id6311f353df61ca0fa9a108c832d790b228a5bba
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 10:03:58 +08:00
vijayan amalraj
40572596a5 Merge "[ALPS03870695] Relabel bootanim property" into alps-trunk-p0.basic
Change-Id: I0c26cfe4925744e3739235bad745074d7eed4e7e
MTK-Commit-Id: 7b943156f070463cbef136367a8a97f3b2ddaba8
2020-01-18 10:03:56 +08:00
lokesh
a7ac10eabf [ALPS03870695] Relabel bootanim property
modify bootanim and mtkbootanim selinux file

MTK-Commit-Id: 499216aca19a337156ad7b83beb93dae5dc0f009

Change-Id: Ifccc14d4f8d410789e01730aa4be82c423a19975
CR-Id: ALPS03870695
Feature: Boot Animation
(cherry picked from commit 05973051a0e2ae272a9ecfd511e088a33f9f54b1)
2020-01-18 10:03:55 +08:00
yuhui.zhang
ba25c399b3 [ALPS03914002] EM: Remove unused property rule
[Detail]
Some function will move to vendor hidl, so related sepolicy rules in radio.te could be removed.

MTK-Commit-Id: 8294731a4889e3954a70f5d4379327d9ae0a0ec3

Change-Id: Ib6693e7b6ec3d076e64b505ce670e9c9f5b88281
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 10:03:53 +08:00
Yuhui Zhang
31c972041e Merge "[ALPS03886705] EmCamera: move to vendor partition" into alps-trunk-p0.basic
Change-Id: Icd4d1a685c2e0954e3d265ba596a75cbd3320156
MTK-Commit-Id: 35895f358d56cee9ee678df17441ee4505d3a803
2020-01-18 10:03:52 +08:00
Juan Rong
cdb72dbd48 [ALPS03886705] EmCamera: move to vendor partition
Move EmCamera to vendor partition, need modify the selinux

MTK-Commit-Id: 92c1e87c5f0901e9eb235b00853975d0cf138f90

Change-Id: I47be92abaf4020e20f756cb36bb55c602a1662f2
CR-Id: ALPS03886705
Feature: Engineering Mode
2020-01-18 10:03:50 +08:00
Denis Hsu
d0dc578513 Merge "[ALPS03891225] Create symlink, /mnt/sdcard, for meta/factory" into alps-trunk-p0.basic
Change-Id: Id2eb7a378d7b073c2570ca27bf75e530c4f8f0ab
MTK-Commit-Id: b70f624618ed2ba719be679d1f09af4188c8f487
2020-01-18 10:03:48 +08:00
Miles Chuang
5f82c9e661 [ALPS03873734] Follow Android P new property rules
[Detail]
Android P add new limitation for property access between
system partition and vendor partition:
1. SET and GET only by system
2. System cannot SET the property which SET/GET by vendor.
3. Allow system and vendor GET the property which SET by vendor.

[Solution]
1. Add new property label mtk_cxp_vendor_prop
2. Modify CXP related SELinux setting

MTK-Commit-Id: 4cac600ed76d413b5aee7ee64a1d6af55aa499d1

Change-Id: I9498840dead36a536acd5d18470f57bf7aec0a7c
CR-Id: ALPS03873734
Feature: Regional Carrier Express Pack
2020-01-18 10:03:48 +08:00
Denis Hsu
1f069644ac [ALPS03891225] Create symlink, /mnt/sdcard, for meta/factory
Give the selinux permission,
allow vendor_init tmpfs:lnk_file create;

MTK-Commit-Id: 31f529ecd4711df63de5a8386b88813595ae4325

Change-Id: I516a4fac12df9975040109d05be1b2e89509b9b5
CR-Id: ALPS03891225
Feature: Multi-Storage
2020-01-18 10:03:40 +08:00
Peng QI
f813f60034 Merge "[ALPS03902630] Fix property type of MTK Bluetooth" into alps-trunk-p0.basic
Change-Id: Idf2fe4a50900759e88a4b8206cb59755fa0864b9
MTK-Commit-Id: 9f99849cbfe02ec3af9a5112275f8427ce6da392
2020-01-18 10:03:38 +08:00
Ruina Liu
4d3273bbcc [ALPS03902630] Fix property type of MTK Bluetooth
Google has new property limitation, neverallow coredomain
from writing vendor properties.
Change the type from mtk_core_property_type to
extended_core_property_type

MTK-Commit-Id: d430f6e975a68837ae7c95be664f9004149a6852

Change-Id: I24c634223eb40fc4f28934cdcacb26ea94b0d4f6
CR-Id: ALPS03902630
Feature: BT AOSP
2020-01-18 10:03:37 +08:00
Josh Hsiao
81bd091853 Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic
Change-Id: I0d0137459c45676d54919002df689e5d0dbf747f
MTK-Commit-Id: fc8264acf958ee33faaf0af9fa597dbb99f5382c
2020-01-18 10:03:35 +08:00
jerry-sc.wu
fafe185575 [ALPS03867358] Thermal: P Migration
[Detail]
Modify "performance first thermal policy" change
thermal policy method.

1. Using call libmtcloader lib instead of using set property.
2. Add related SEPolicy.
3. Support 32 bit and 64 bit mtcloader lib.

MTK-Commit-Id: 13e96819d3e6663be61276000ae5a800de71862b

Change-Id: Ia78610485f67e94b63f0fcfbccbd7d4b4411ed31
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
2020-01-18 10:03:33 +08:00
Eddie Hung
d51b584df5 Merge "[ALPS03974529] Add policy for audio hidl service" into alps-trunk-p0.basic
Change-Id: Ieff4f111e7304c7a4ca1d264dd3590dfc207e166
MTK-Commit-Id: efa57894f27833ba4d26a25d0e84b4f33e4ff29d
2020-01-18 10:03:32 +08:00
Eddie Hung
7970815eea [ALPS03974529] Add policy for audio hidl service
[Detail]
Allow mtk audio hidl service to read "ro.audio.usb.period_us"

MTK-Commit-Id: 5f794920af51f2f7900212f8a6ba7ecb3b64c919

Change-Id: I2ace425bb53190c10b397fca92420d35af764738
CR-Id: ALPS03974529
Feature: [Android Default] USB Audio
2020-01-18 10:03:30 +08:00
Weilun Liu (劉維倫)
8d6cad2a8f Merge "[ALPS03804621] [P migration] Remove violated property declaration" into alps-trunk-p0.basic
Change-Id: I58a80383414f54ad963bf6c67b411925958fb505
MTK-Commit-Id: b279c06edc1887c80afd80dd722471a05a2ddbe4
2020-01-18 10:03:28 +08:00
Allen Chu
0097e5dc92 [ALPS03804621] [P migration] Remove violated property declaration
To avoid violating P rule, remove usp_prop declaration for permission

MTK-Commit-Id: a2df2a3547b9def24611c5ec77b631e1b51b3feb

Change-Id: I964b177f4af14020d1eeffd70ecfe95864bf09b0
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:03:26 +08:00
Chien-Wei Hsu
9c67a81ebe Merge "[ALPS03902666] Sepolicy: add prop to audiohal_prop" into alps-trunk-p0.basic
Change-Id: Id17c0a9e59f25bd5d872f2f26d7c53d34cf11c45
MTK-Commit-Id: 9fe8337ddca0bbced12fd9413392fa299c81f5cb
2020-01-18 10:03:25 +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
Michael Tsai
963022c24e Merge "[ALPS03941128] Comment unused rules" into alps-trunk-p0.basic
Change-Id: I58d89c4c3697be6997057a26cb1f89ff862b2341
MTK-Commit-Id: a0912ebe15d975381e753c1db1c29cbaffa49d94
2020-01-18 10:03:22 +08:00
Michael Tsai
51d7df5f8e [ALPS03941128] Comment unused rules
Comment for Android P

MTK-Commit-Id: 1368fff2508a51f016a815057477c056ce7627d6

Change-Id: I0be97764a2116c8a47b6ac243e318ebc86a0b47b
CR-Id: ALPS03941128
Feature: [Android Default] Camera Application Basic Functions
2020-01-18 10:03:20 +08:00
Yuru Zhu (朱禹儒)
3c967ac811 Merge "[ALPS03992062] Add log hidl system service te" into alps-trunk-p0.basic
Change-Id: Ic3591c37a0f5a9b72c20225324eb4147f09cf40a
MTK-Commit-Id: 3a8778863f98d69859cec094019967612c3ae524
2020-01-18 10:03:18 +08:00
mtk11515
bc1c6ae908 [ALPS03992062] Add log hidl system service te
[Solution] add te file for log hidl

MTK-Commit-Id: 195cb6d5dc1bccdccc67769314e99844c49e3f22

Change-Id: Ifc54914f7329201e0703f085b16552140c813cda
CR-Id: ALPS03992062
Feature: MTKLogger
2020-01-18 10:03:17 +08:00
Larry Liang
d8cf16da5c Merge "[ALPS03948310] vendor/system property split" into alps-trunk-p0.basic
Change-Id: Ia637f2179d40633488434149a982230c723c890f
MTK-Commit-Id: bb1ce00e682dae46d83ec3c5dc52e86a81026bb1
2020-01-18 10:03:15 +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
Yuru Zhu (朱禹儒)
1cc7505c70 Merge "[ALPS03965031] MTKLogger can not access aee data vendor" into alps-trunk-p0.basic
Change-Id: I3bee72169906a52a6273e003afc9615e791ae79d
MTK-Commit-Id: 6829da562f17f1010914e3994a85457acef22ceb
2020-01-18 10:03:10 +08:00
yuru.zhu
765e08b32c [ALPS03965031] MTKLogger can not access aee data vendor
[Solution] Add permission to access aee data vendor

MTK-Commit-Id: a18e63eb8cde8f45a8c58ab6d396d482ce9e0fbb

Change-Id: I79f31a16a90a5afc0a7985044eb2e1ca7f88f3ab
CR-Id: ALPS03965031
Feature: MTKLogger
2020-01-18 10:03:08 +08:00
Weilun Liu (劉維倫)
40bac8adbc Merge "[ALPS03980649] Remove oemHook declaration of permission" into alps-trunk-p0.basic
Change-Id: Ic146d07576574f64102f3ade114527c06dc2403e
MTK-Commit-Id: ff403a82bc23eaa6471c65ac27a77f869240616a
2020-01-18 10:03:07 +08:00
Allen Chu
b2ddaec0f5 [ALPS03980649] Remove oemHook declaration of permission
Google has VTS to check deprecated HIDL. Declaring deprecated
HIDL leads to VTS fail. So, we remove each logic related
deprecated HIDL (oemHook service).

MTK-Commit-Id: f0cae5e9a9b4c1f4ed80db33dadc1b26cdd0eda6

Change-Id: Ib99d28dfc5183f1dfe20b102646223ba165ff0fa
CR-Id: ALPS03980649
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:03:05 +08:00
Chaoran Zhang
fd9d970fcd Merge "[ALPS03872369] add atci gps sepolicy" into alps-trunk-p0.basic
Change-Id: I38428e53c5d49343a8052f395deea97e5260077c
MTK-Commit-Id: 99ee7f2da1e90e5787ce9c73d162de62c94c2c66
2020-01-18 10:03:04 +08:00
Chaoran Zhang
5239216db5 [ALPS03872369] add atci gps sepolicy
For Huawei at command request, add mnld atci socket sendto policy

MTK-Commit-Id: 958e9c62d300e211b50ba35f7eb2ad58734a801a

Change-Id: If5e2e8981edde9615633a0a789a97a972bc7f44d
CR-Id: ALPS03872369
Feature: Location Chipset Capability
2020-01-18 10:03:02 +08:00
Elvin Lin
ddeb3c3e41 Merge "[ALPS03893656] factory: add power_supply and switch permission" into alps-trunk-p0.basic
Change-Id: I45bc05f2a7b30497b8a49e71642ae4492feeae35
MTK-Commit-Id: 59248eee76c2fdd98a725417a881d4af1a27d083
2020-01-18 10:03:00 +08:00
Ivan-YH Chen
1e4d3f3823 [ALPS03893656] factory: add power_supply and switch permission
[Detail]
Add power_supply and switch permission
to get online and otg status.

MTK-Commit-Id: dad1b84ca11f7cb5dfe70f03a05b80d6250bfc7a

Change-Id: I349d8313fbf567a3289a8be54b81487cd13fa36f
CR-Id: ALPS03893656
Feature: Charger
2020-01-18 10:02:55 +08:00
Stella Yang
a93a104f36 Merge "[ALPS03908242] Add SEPolicy" into alps-trunk-p0.basic
Change-Id: Ic71ee5efa3940cc23ffe986e7443e23cb764fa09
MTK-Commit-Id: 614239ade50253dd01d18e9e2710712408e9a287
2020-01-18 10:02:53 +08:00