553 Commits

Author SHA1 Message Date
Dom Lin
f0be2264f5 Merge "[ALPS03894499] Modify SELinux policy" into alps-trunk-p0.basic
Change-Id: I3dfd8d985ec7e86a3cace143296434e7ef97e16a
MTK-Commit-Id: 9c6815b0936f900f579a85947be0674836f1aefb
2020-01-18 09:41:25 +08:00
ILEX Lin
85b71fe67d [ALPS03894499] Modify SELinux policy
[Detail]
Remove "allow radio debugfs_tracing:file write"

MTK-Commit-Id: 793d7934f1412512906eaba15bf7c86357a350bc

Change-Id: I02065c831a4dfb0bb26a267469f8a48b2562ed2e
CR-Id: ALPS03894499
Feature: NFC Chipset Capability
2020-01-18 09:41:15 +08:00
Larry Liang
f9ccc3b4ea Merge "[ALPS03841705] remove unuse selinux rule" into alps-trunk-p0.basic
Change-Id: If10189a5f8f50b9dd1cd3f9eafab6eb45abb5b31
MTK-Commit-Id: ffdde889a9b9d4233902fc634a6ab071f2e38c0c
2020-01-18 09:41:08 +08:00
mtk11285
33f97ac789 [ALPS03841705] remove unuse selinux rule
[Detail] remove unuse selinux rule

MTK-Commit-Id: 83678f3c246610d78ddac840511df45153e9121e

Change-Id: Ibc862ad2b990bcf77642e271f45ad0e1d1fa9574
CR-Id: ALPS03841705
Feature: Android Exception Engine(AEE)
2020-01-18 09:41:02 +08:00
Eddie Hung (洪正鑫)
4149e289a1 Merge "[ALPS02941470] SELinux poilcy porting" into alps-trunk-p0.basic
Change-Id: Idbbcfbd34c469a31675a644cb73aad348e2697c6
MTK-Commit-Id: 773b815da5eaa505b8f7aa2bf39f87caaedb67c3
2020-01-18 09:40:54 +08:00
chihhao.chen
a9b55cd784 [ALPS02941470] SELinux poilcy porting
[Detail]
Remove redundant rules

MTK-Commit-Id: 9da4c1f0093221b9aa09893dcd6eaaf42c05cb9a

Change-Id: I6ad20f128418bd729c0ecbd2bd5cf9e80b211aa0
CR-Id: ALPS02941470
Feature: [Android Default] ADB (Android Debug Bridge)
2020-01-18 09:40:49 +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
636a543a21 Merge "[ALPS03891225] Modify vold related policy" into alps-trunk-p0.basic
Change-Id: I80bcd27ca3f7cb2ef2ad0aa1521ff6b7c09fc42b
MTK-Commit-Id: 0b44547d98de2938b70ae9dcdfb1ba4595d1561c
2020-01-18 09:40:23 +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
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
Peng QI
a2739588f2 Merge "[ALPS03893095] Selinux: MTK BT HAL" into alps-trunk-p0.basic
Change-Id: If66b0db98642b59fca39ad6f579e2a4f3e2f3c91
MTK-Commit-Id: f0220d29d1a6d04933839f97a09e94143d958097
2020-01-18 09:40:01 +08:00
Peng Qi
9e04bd90cc [ALPS03893095] Selinux: MTK BT HAL
[Detail]
AOSP has defined neverallow rules
to restrict direct access to system files.

[Solution]
Since MTK does not use "/data/misc/bluedroid/" to
store BT address. It should be alright to remove
this kind of thing.

MTK-Commit-Id: 5b3aae9aebd39c24a3846c27c7ca9fceda9513d3

Change-Id: I5a8420e9f5259259b2bd11a6da033a140f0bea7c
CR-Id: ALPS03893095
Feature: BT Chipset Capability
2020-01-18 09:39:50 +08:00
Weilun Liu (劉維倫)
2f7073ef01 Merge "[ALPS03804621] [P migration] Add property context" into alps-trunk-p0.basic
Change-Id: If1821c0dfac7705f4d3c93c29b2d00cc1d35e450
MTK-Commit-Id: 1c7ed862646c368963c9108545c206723ba7f3ae
2020-01-18 09:39:42 +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
Browse Zhang
8b54882c09 Merge "[ALPS03503758] P migration selinux build failed fix" into alps-trunk-p0.basic
Change-Id: I502b4726ed1f2aace4cff7dd346513112ed128d8
MTK-Commit-Id: 2e94fc1b0084a36d8badb3a447d21c613ef2c949
2020-01-18 09:39:32 +08:00
Browse Zhang
9416039241 [ALPS03503758] P migration selinux build failed fix
Remove data_between_core_and_vendor_violators.

MTK-Commit-Id: c23b6831f425df0b4bb60486dbd7c92b048d3159

Change-Id: I8e9f64a19852fa72076e813cb529c94dc50248ae
CR-Id: ALPS03503758
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:39:27 +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
mtk33297
56f34167cf [ALPS02333452] Android p selinux change
[Detail]
Android has defined neverallow rules
to restrict direct access to system files.
We need to have a custom label for each policy.

[Solution]
Define custom label for drmserver

MTK-Commit-Id: 996de9ff486db13908f6d58b476613957d4f336d

Change-Id: I34c8d86c1baf9daa02e29323007e4136c6048b31
CR-Id: ALPS02333452
Feature: OMA DRM V1.0
2020-01-18 09:38:57 +08:00
Bo Ye (叶波)
a0c381a5c3 Merge "[ALPS03825066] Resolve build error" into alps-trunk-p0.basic
Change-Id: I1ce2ce669828181b405fe640eda280592732d776
MTK-Commit-Id: b077564d3665292ca9d6cb3e9278450e5d46736e
2020-01-18 09:38:56 +08:00
mtk12101
c7ac9f171a [ALPS03825066] Resolve build error
[Detail]
1.Google add new neverallow rule for untrusted apps
2.The file/dir in /proc must associate with proc_type

[Solution]
1.Remove rules which violate google neverallow rules
about untrusted apps
2.Add proc_type attribute for file/dir on /proc

MTK-Commit-Id: b94412725e3a7b18db9573056c2fb43367989ed5

Change-Id: I89de16a65f05d052969c794604b9c372ed1ce7e1
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:38:47 +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
dengwei.xu
05776353bd [ALPS03830074] EM telephony property selinux
[Detail]
The Basic EM selinux modify

MTK-Commit-Id: 6b4156244ced418aa502dc771ae63d47015c4e66

Change-Id: I01f8927774f3fac7a477a510d4a7d2c265e01f4a
CR-Id: ALPS03830074
Feature: Engineering Mode
2020-01-18 09:38:35 +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
Amit Singh
ca7b506c0b Merge "[ALPS02333452] Android p selinux change" into alps-trunk-p0.basic
Change-Id: I90ba07ad5f680d5354c5a72fec25b3999655e405
MTK-Commit-Id: 38a69e8e53734da023668e63f0885aed14a21fcc
2020-01-18 09:38:15 +08:00
mtk33297
1cbaa678fe [ALPS02333452] Android p selinux change
[Detail]
Android has defined neverallow rules
to restrict direct access to system files.
We need to have a custom label for each policy.

[Solution]
Define custom label for drmserver

MTK-Commit-Id: c84c43b87a6ac2651a0562b8818bc66516e4a50b

Change-Id: Ide4fc49628508aee77e67f3213749210430153a3
CR-Id: ALPS02333452
Feature: OMA DRM V1.0
2020-01-18 09:38:07 +08:00
Zhen Jiang
43c391097f Merge "[ALPS03886692] Delete illegal rules" into alps-trunk-p0.basic
Change-Id: If77297abb8511d3ead3baf0451e949ae683f9d2b
MTK-Commit-Id: 32969d05b433fa31ce01691599692edada73b38c
2020-01-18 09:37:59 +08:00
mtk13799
e3378ef109 [ALPS03886692] Delete illegal rules
[Detail]Delete illegal rules

MTK-Commit-Id: c1921fd0b224dd0c88a5cf417c4a89eb824bf217

Change-Id: I8c36bc8566c2310d3d01c998d6c003f199bd204c
Signed-off-by: mtk13799 <xin.huang@mediatek.com>
CR-Id: ALPS03886692
Feature: [Android Default]Dedicated APN for Tethering
2020-01-18 09:37:56 +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
Gang Wei
35d89a9938 Merge "[ALPS03888283] Modify meta_tst.te" into alps-trunk-p0.basic
Change-Id: I615b124ec98c451ed086df1b3eadb60465aba93a
MTK-Commit-Id: 945a876118d041bb24f90c90e625c44a41a6f7fb
2020-01-18 09:37:38 +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
Jun Wen (文军)
d5a95d96e9 Merge "[ALPS03869735] Properties rename in Android P" into alps-trunk-p0.basic
Change-Id: Ie7fdfef92893d27b3409d52698a816f47a0a265d
MTK-Commit-Id: 54cd04a9c1e95bc388e7a2475b898574b01e1c70
2020-01-18 09:37:25 +08:00
Lei Shi
37ed25d0f9 [ALPS03869735] Properties rename in Android P
Rename persist.radio.last_iccid_sim to
persist.vendor.radio.last_iccid_sim.

MTK-Commit-Id: 6db1504ac7d3acd22bfa500dd65dd2905c5e8297

Change-Id: I91d63f59e2676e406fbac16593f4c1b571ab0bc5
CR-Id: ALPS03869735
Feature: Mobile Telephony Network
2020-01-18 09:37:21 +08:00
yuhui.zhang
cfa692cd89 [ALPS03860173] Update em_svr te file
[Detail]
Update em_svr te file on Android P rules

MTK-Commit-Id: 209e5983cf99919666577929b0c4861131c8c9f7

Change-Id: Ifc5c86499abbf712c3388776a993178f8d14df32
CR-Id: ALPS03860173
Feature: Engineering Mode
2020-01-18 09:37:16 +08:00
Jih-Cheng Chiu (邱日成)
664c95ece8 Merge "[ALPS03869840] P migration: Remove label aosp prop" into alps-trunk-p0.basic
Change-Id: I1ddf6448644d16bb3b6af3904a3a0e083de58335
MTK-Commit-Id: 252f87ac42bc933aa35c0c2bf3d6e894026973a1
2020-01-18 09:37:06 +08:00
Ju-Yi Cheng
80531326ac [ALPS03869840] P migration: Remove label aosp prop
[Detail] Vendor partition shouldnt access aosp defined property
which is not in whitlist. So remove the related changes of labeled
aosp property.
  This reverts commit 9d534a80d67e7457a1411b8b36249898ed4c6986.
  This reverts commit 901fb42d2e3856a139b90420922f558d7231ea7d.
  This reverts commit 41dc8fb567b409e149e59f4f514268ca5883c7ab.

[Solution] Remove label of ro.sf.lcd_density.

MTK-Commit-Id: 02cf063b8407a9d9242f064c86767200e9c0ac0a

Change-Id: I02dcc2fa3fda95c498f0ef70d9aa6bd9224d3b02
CR-Id: ALPS03869840
Feature: [Module]SurfaceFlinger/HWComposer
2020-01-18 09:37:01 +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
Ming-Pei Hsu
9a23d8ea96 Merge "[ALPS03845186] SIM related system properties rename" into alps-trunk-p0.basic
Change-Id: I0a6551f62ac28f9d6e007cf08a0623dca2148c6e
MTK-Commit-Id: 56d9e1fc63fa70dcb7d1c7f6fe08f17aa5ececdf
2020-01-18 09:36:26 +08:00
ming-pei.hsu
d2c84d6a69 [ALPS03845186] SIM related system properties rename
Add vendor keyword for MTK added system properties.

MTK-Commit-Id: c0b0f66cffe90e543b71c07dd8d1f07b6a30288c

Change-Id: I06af970436e0df87d9eae478f6540411028f996f
CR-Id: ALPS03845186
Feature: SIM
2020-01-18 09:36:22 +08:00
Chaoran Zhang
b586fe6d85 Merge "[ALPS03866092] add dev policy for fw_log_gps" into alps-trunk-p0.basic
Change-Id: I7ffb1e0dd33801c960a32f100a3acb2295625c85
MTK-Commit-Id: 8540fee4700e776b3f9067f79cc9879f02fbff49
2020-01-18 09:36:14 +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
Lili Lin
04af79e76b Merge "[ALPS03881723] Workaround build error" into alps-trunk-p0.basic
Change-Id: Icbca2e3a8f9d7b91377b15de2bab913d213c109d
MTK-Commit-Id: d3da42caa59407e610b7763595c51ed443d72cbd
2020-01-18 09:36:05 +08:00