82 Commits

Author SHA1 Message Date
Jimmy-YJ.Huang
4484f0511a [ALPS03737981] power: hal version upgrade.
[Detail]
hal version upgrade from V1.1 to V2.0

MTK-Commit-Id: 0a7d23e9f8fa3f982b4029292021e91176d66bf0

Change-Id: Ia51920ab3def49ff88d3c483d64cdcd730b8fdd7
CR-Id: ALPS03737981
Feature: System Performance
2020-01-18 09:43:07 +08:00
Chang-An Chen
dae8e38414 Merge "[ALPS03892700] partition: move mtk mount point to /mnt/vendor" into alps-trunk-p0.basic
Change-Id: I68e8369083ba3d6cad7a35ed0141a2765a1b161a
MTK-Commit-Id: c6307813909f1dff6c87a80debee2950c16efd90
2020-01-18 09:41:55 +08:00
Chang-An Chen
48a77a4a2c [ALPS03892700] partition: move mtk mount point to /mnt/vendor
[Detail]
Move MTK mount point to /mnt/vendor

MTK-Commit-Id: b82563f14020ab90a563ec3c9ce14e6c3bbe7531

Change-Id: I8699303125d48589baf0f2b768cf66b848da7357
CR-Id: ALPS03892700
Feature: eMMC Boot Up
2020-01-18 09:41:46 +08:00
Larry Liang
2e97184a4b Merge "[ALPS03841705] modify aee_core_forwarder selinux rule" into alps-trunk-p0.basic
Change-Id: I4bad1d381c0ec3b1e76f1bc7a5ae7ae68ad8add9
MTK-Commit-Id: b01515bb610c7a0c60117c97d4f98b5c9f882071
2020-01-18 09:40:46 +08:00
mtk11285
07c11d89ba [ALPS03841705] modify aee_core_forwarder selinux rule
[Detail]
transfer aee_core_forwarder form /vendor/bin to /system/bin,
so modify aee_core_forwarder selinux rule.

[Solution]

MTK-Commit-Id: 5a583b375a0d33032e8004e1818f05c75363e4f5

Change-Id: I9ff1d0b5d521ce2f09780146f6b75c5378d03d4d
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:40:34 +08:00
Denis Hsu
977ad3f552 [ALPS03891225] Modify vold related policy
[Detail]
1. remove md_ctrl.te because we dont use md_ctrl in P.
2. remove debugfs_tracing policy
3. remove nvdata, protect_f, protect_s policy

MTK-Commit-Id: d4e5c9893970f0b214b518cba5f9300f130eace9

Change-Id: Iaafc30124fd69ef2b989b9e4e51d71a37d9571e9
CR-Id: ALPS03891225
Feature: Multi-Storage
2020-01-18 09:40:17 +08:00
Timo Liao
197ea4ad2a [ALPS03890927] battery: fix sepolicy violation
[Detail]
1. fix data between core and vendor violator
2. remove fuelgauged_static.te
3. remove fg daemon access nvram sepolicy
4. add label for battery

MTK-Commit-Id: 1443b78b112739594e0633526c6966e4871bd125

Change-Id: I931a18bfb8ac963e71311ceace8a28b4a495e881
Signed-off-by: Timo Liao <timo.liao@mediatek.com>
CR-Id: ALPS03890927
Feature: Fuel Gauge
2020-01-18 09:39:17 +08:00
Browse Zhang
db6998fe2a [ALPS03503758] Revert "[ALPS03503758]P migration selinux build failed fix"
This reverts commit c2f372432b08f78b8e5b9f7cc08b1b436bfe7161.

MTK-Commit-Id: 95e449825c77815d477a926f0244165934aef748

Change-Id: Ic2c4ee2de46803679c01b0bc83bbef3f9d585b32
CR-Id: ALPS03503758
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:39:10 +08:00
Browse Zhang
340e51e71c [ALPS03503758] P migration selinux build failed fix
For /proc/uid_procstat/set from UsageStatsService

MTK-Commit-Id: c2f372432b08f78b8e5b9f7cc08b1b436bfe7161

Change-Id: I45b7bbfbd2c0ab7e098983d40722e4274e8e783a
CR-Id: ALPS03503758
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:39:04 +08:00
Archilis Wang
2cd382c5d0 Merge "[ALPS03885737] Correct agps sepolicy" into alps-trunk-p0.basic
Change-Id: I230be47b417acda0389d0f6bd62c426c8eebe125
MTK-Commit-Id: 7bedf66ca5fe633252754247a93a73d551e6985b
2020-01-18 09:38:28 +08:00
Archilis Wang
9afa8ed220 [ALPS03885737] Correct agps sepolicy
Adjust the policy for sdcard

MTK-Commit-Id: 40655afcc8e97b13642f5164987134d506579680

Change-Id: I338ea9b4b6b452b3e59230e692a7ff1850a63c6d
CR-Id: ALPS03885737
Feature: A-GPS
2020-01-18 09:38:17 +08:00
Yuxian Xu
af8b6473d2 [ALPS03886572] Mobile Log selinux rule porting
[Detail]
Mobile Log selinux rule porting:
1. fix the violation on P
2. relable some kernel interfaces.

MTK-Commit-Id: 4108ed13f3e7693c3642b6f073c5444f133b3c38

Change-Id: I1fac185779510f10b9b94bdf6ec40573237d846a
CR-Id: ALPS03886572
Feature: Mobile Log Tool
2020-01-18 09:37:45 +08:00
Dian Wang
73695bfcce [ALPS03888283] Modify meta_tst.te
[Detail] Modify meta_tst.te for Android P

[Solution]
Add comport type and uart info sepolicy

MTK-Commit-Id: b2f1a2b46f1bc8135b98dd306ff4353b3ba5383f

Change-Id: Ib40eb5e5a9512d7d33b25b191e04eab9684fe121
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 09:37:36 +08:00
YC Shen
0b44149daf Merge "[ALPS03883958] wlan: phaseout wifi2agps" into alps-trunk-p0.basic
Change-Id: I27811d7d767ae0b752b22860a4823ca28f1eb537
MTK-Commit-Id: 88a5c2177930425b8602c2fa2dcbaed9e0c1fe21
2020-01-18 09:37:00 +08:00
Herman Yang
428f9561fd [ALPS03883958] wlan: phaseout wifi2agps
Remove .te and file permission used by wifi2agps

MTK-Commit-Id: 461c08d098a31cfb6dc6b5c8655ede3cc47e8292

Change-Id: Ib737729c94dc0e6427ac9f510c79923aff58d7ce
CR-Id: ALPS03883958
Feature: [Module]wpa_supplicant
2020-01-18 09:36:49 +08:00
Guoyi Qu
a6ef7466fe [ALPS03866092] connsys log support
Selinux:porting code to P branch

MTK-Commit-Id: 507ec96911d24544a769fec4126a8582eb7246c9

Change-Id: I5104eb3e3de8a13e060f4af2db6c88f4dd669429
CR-Id: ALPS03866092
Feature: Connsys Log Tool
2020-01-18 09:36:45 +08:00
Siyuan Jiang (江思源)
e7d66802f0 Merge "[ALPS03866092] Add sepolicy for /dev/fw_log_bt" into alps-trunk-p0.basic
Change-Id: I9e26ba1f321d7a2b85dc38a39687e50794795277
MTK-Commit-Id: 259641ddbb2bc15920d2f2bb0a8830b25dda52da
2020-01-18 09:36:44 +08:00
Siyuan Jiang
e90468349d [ALPS03866092] Add sepolicy for /dev/fw_log_bt
[Detail]
Create sepolicy definition for /dev/fw_log_bt

MTK-Commit-Id: 4ef13c078eb67716e42948ec72d1bc26a5e207eb

Change-Id: Iad81acd8ceb6f3e3a21e719209e6c91e9e28c517
CR-Id: ALPS03866092
Feature: BT Chipset Capability
2020-01-18 09:36:31 +08:00
Chaoran Zhang
7fdca91eee [ALPS03866092] add dev policy for fw_log_gps
[Detail]
add dev policy for fw_log_gps
[Solution]
add dev policy for fw_log_gps

MTK-Commit-Id: 4435dfa949ec7886ca9015a93bcf175568ab1621

Change-Id: I88a56ee23d456e5d43036fba79acd34ce024d35d
CR-Id: ALPS03866092
Feature: MTKLogger
(cherry picked from commit aa7953e06029de4ad0bcc0e615aef842eedc6460)
(cherry picked from commit ffa21f0c868c50daeff539f7be970d5398d8c3e6)
2020-01-18 09:36:07 +08:00
Vink Shen
bb8ea108ab Merge "[ALPS03852714] Trustonic TEE: Fix persistent partition path" into alps-trunk-p0.basic
Change-Id: I30c9855e625ece1891141d98fdeb486cf45a1274
MTK-Commit-Id: e93f930503be15d3a640d9770e60bbe4db9f2b8a
2020-01-18 09:35:04 +08:00
Vink Shen
acf2d42d84 [ALPS03852714] Trustonic TEE: Fix persistent partition path
[Detail] Fix persistent partition path for Android P

MTK-Commit-Id: b49324e4ff63196b8051882cbe439ecb8ca44d2d

Change-Id: I7b22f6d7f07b26bf3f0e787ee372b7bd52b16fe5
CR-Id: ALPS03852714
Feature: Trustonic TEE (Trusted Execution Environment)
2020-01-18 09:34:53 +08:00
Elvin Lin
c25696d051 [ALPS03861775] Remove the sysfs_power_supply label
[Detail]
Since Android P, battery-related information should be declared as native
sysfs_batteryinfo, which can be accessed by healthd and other processes
asking for battery information.

[Solution]
1. Remove sysfs_power_supply.
2. Change the usage from sysfs_power_supply to sysfs_batteryinfo.

MTK-Commit-Id: 5713190900415312f7904cdf6d46a891996d5786

Change-Id: I10099570afdb48f0806d6979a3fb11b9b9e59fbe
CR-Id: ALPS03861775
Feature: Charger
2020-01-18 09:34:44 +08:00
Black Chen
975daae102 [ALPS03866092] wlan: add sepolicy for /dev/fw_log_wifi
[Detail]
Create sepolicy definition for /dev/fw_log_wifi

[Solution]
N/A

MTK-Commit-Id: 28b450dc71b48735fef6b58ade1f97bc8d81da8f

Change-Id: If932821d83e6999a3068a7520ea987b7a2ce09f8
Signed-off-by: Black Chen <black-ch.chen@mediatek.com>
CR-Id: ALPS03866092
Feature: Connsys Log Tool
(cherry picked from commit 39d8afbc1344efe75a4c591fec4e8eab78db1c61)
2020-01-18 09:33:04 +08:00
Danny Shih
633ed5a00e [ALPS03866092] Debug Utility: add sepolicy for /dev/fw_log_wmt
[Detail]
Create sepolicy definition for /dev/fw_log_wmt

MTK-Commit-Id: ffee8a32646445eec5ddb80e4ca4f22b6a74f54e

Change-Id: I68560eaf5f7d8e03317aae494d1861141077a31e
Feature: Connsys Log Tool
Signed-off-by: Danny Shih <danny.shih@mediatek.com>
CR-Id: ALPS03866092
(cherry picked from commit 85aad3cfc9bd3809ea78fcb72d23cb70e8dba462)
2020-01-18 09:32:41 +08:00
Chunlan Wang
06fbbbdb00 [ALPS03861528] modify sepolicy for boot mode
[Solution]
sysfs is neverallow, so use sysfs_boot instead

MTK-Commit-Id: 8a48cfbc0a1df06330b9699da2f87243dd8155fe

Change-Id: I67a2dc04dfa5d863ceb8104695dec5d0dbc62630
CR-Id: ALPS03861528
Feature: Factory Mode
2020-01-18 09:30:46 +08:00
Vink Shen
551d01441c [ALPS03852714] Trustonic TEE: Fix persistent partition path
[Detail] Fix persistent partition path for Android P

[Solution] Move /vendor/persist to /data/vendor/persist

MTK-Commit-Id: fdfc88d4f679c6347923de9db6ec1dcc82675966

Change-Id: I53427f90670fcbb6b0ed6f12bbd1da748e9ac6ca
CR-Id: ALPS03852714
Feature: Trustonic TEE (Trusted Execution Environment)
2020-01-18 09:30:33 +08:00
Larry Liang
c5e6816987 Merge "[ALPS03841705] fix the violation during Android P migration" into alps-trunk-p0.basic
Change-Id: I0f2a4cad7e3f07a1ab2a9ba391ac1c79a14ae061
MTK-Commit-Id: f2f6adceb758cc09ae694b6e9a63407ab2aab9de
2020-01-18 09:30:18 +08:00
mtk11285
3f1078bbd4 [ALPS03841705] fix the violation during Android P migration
[Detail] fix the violation during Android P migration

MTK-Commit-Id: 7dae33f4c7435a7eeae86a738d88dc6c3e52e3c3

Change-Id: I1000b278dd411438bf43ca0bda22d83aab52616f
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:30:11 +08:00
chiayen
1f7d244f89 [ALPS03273784] Remove MPED related policy
[Detail] Remove MPED related policy

MTK-Commit-Id: 5cd7d5187a0598e591a59abd59b379317266c15d

Change-Id: If1299e27deb8bb5d01b174fd3b4daf221e3061f8
CR-Id: ALPS03273784
Feature: Fused Location
2020-01-18 09:29:47 +08:00
Bo Ye
4dc7f49e69 [ALPS03825066] Mark file context to fix build fails
Should add vendor_file_type for vendor files, and
    add core_data_file_type for system files. Vendor files
    and system files are differented by file path.

MTK-Commit-Id: 602eb35b36c658789e093e2730b16b9b5c892c0f

Change-Id: Ibacc08427f332741f12757c66ecbb8ce91b76416
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:29:36 +08:00
Bo Ye
5849c224e3 [ALPS03825066] P migration selinux build failed fix
1. Mark polices which accessing proc/sysfs file system
    2. Add violator attribute to modules violate vendor/system rule.

MTK-Commit-Id: 3954cad7a1428cda694d8428c2235a78aa6e7cc8

Change-Id: I401ae5b87eb9a03f324bef83c6678149606b15a8
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:29:36 +08:00
Chunyan Zhang
37e0caa36e import from mediatek/master to mediatek/alps-mp-o1.mp1
Change-Id: Ic78db8195c5c51f85c9c6fd3ef8333489afd6e79
MTK-Commit-Id: 848bf57127be9d01fd1df4aab95737855456afee
2020-01-18 09:29:32 +08:00