19 Commits

Author SHA1 Message Date
Juju Sung
12bc2025e2 [ALPS04239425] Sepolicy: fix undefined type declration
[Detail]
Unknown type:untrusted_v2_app,alarm_device,qtaguid_proc,mtd_device
Duplicated type:proc_slabinfo

MTK-Commit-Id: 11ccfcffb994452eb58a697e94a8da748ac73933

Change-Id: I2e847041d14d6b6613044cfaa98f242b7fd9381a
CR-Id: ALPS04239425
Feature: Build System
2020-01-18 10:08:05 +08:00
Miles Chuang
1609d21594 [ALPS04125055] Set SBP ID to nvdata for CCCI requirement
[Detail]
From android P, CCCI will not wait for the data partition ready
for the nvram data, so that CCCI cannot read the persist property
during the boot up phase.

[Solution]
Carrier express set SBP ID to nvdata for CCCI requirement.

MTK-Commit-Id: 2c460ca4aadbd0b130a5478337b8eb8ad6cbdb3c

Change-Id: I1bc3f8f012cb5e2bf2ef1b1d72d9543c7554bbd0
CR-Id: ALPS04125055
Feature: Regional Carrier Express Pack
2020-01-18 10:07:41 +08:00
Youxiu Wang
621240d3cc [ALPS04130289] Restrict rild access to sdcard
Restrict RILD access to sdcard:
Change access permission from sdcard_type to sdcardfs

MTK-Commit-Id: a2a8dca8bb51197bc3388fdcb59ff94d99003d82

Change-Id: Ifb921bd31db7db183934f287d606201206625415
CR-Id: ALPS04130289
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:07:36 +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
Dom Lin
e72359ca8a [ALPS04013153] Implement android.hardware.secure_element@1.0 for UICC
Implement android.hardware.secure_element@1.0 for MTK UICC.

MTK-Commit-Id: d47f7e07b9396583e71a51c4b5da0282d9abf73b

Change-Id: Ib5ebb2543a100f95d9fb2cab8f5aef9c511d463d
CR-Id: ALPS04013153
Feature: NFC Open Mobile API
2020-01-18 10:06:13 +08:00
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
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
mtk12101
722798a334 [ALPS03982747] Remove unused sepolicy rules
Some rules is no need any more, need to remove it.

MTK-Commit-Id: 49685f1299d990a7195a2d54b955517d8f2cc699

Change-Id: I4a590ad781589cf94989ce72c88751ac10b82eae
CR-Id: ALPS03982747
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:02:25 +08:00
Allen Chu
561fad2a70 [ALPS03804621] [P migration] Remove old property label
We never use persist.ril.* at Android P. So, remove it.

MTK-Commit-Id: 6a1943658ce7647e6efd65234252d69e83be1a47

Change-Id: I49d35e81192dfd9707687400bc3f0885cde16940
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 10:00:38 +08:00
Weilun Liu
c47dc96d58 [ALPS03804621] [P migration] Add property context
[Detail]
add vendor_radio_ipo_prop permission for fusionrild

MTK-Commit-Id: 252e468ec1f6261cb1f6ea8967a188c1e09e4c90

Change-Id: I1a4e9f52cf257f47c71bca9bf60c62a5cd119e50
CR-Id: ALPS03804621
Feature: [Module]Telephony power on
2020-01-18 09:54:15 +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
Lili Lin
59f0ec9f6e [ALPS03881723] Workaround build error
[Detail] enable PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE = true, will cause build error

[Solution] Mark rules that violate AOSP neverallow rules

MTK-Commit-Id: c850c6f1fcb8de76235ea2be51becb7a2ccc6190

Change-Id: Ib9a80f4495d6db588133f929c9ea70e7215ad2aa
CR-Id: ALPS03881723
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:35:54 +08:00
Ming-Pei Hsu
5e4495d7ce Merge "[ALPS03875603] Relabel telephony switch property" into alps-trunk-p0.basic
Change-Id: I668eca7c355690a730642773663585b2ad981479
MTK-Commit-Id: c1738190079af936773914e5c8a08349459c5e7f
2020-01-18 09:34:12 +08:00
ming-pei.hsu
9fcff12f5c [ALPS03875603] Relabel telephony switch property
Relabel global telephony configuration properties.

MTK-Commit-Id: 2666cdeb888a5c7c0e87358766d60857cd3dc896

Change-Id: I317dd786e6ea32087a6866adeb415e35bc5017e1
CR-Id: ALPS03875603
Feature: Telephony feature switch dynamically
2020-01-18 09:34:04 +08:00
mtk12101
b46f5159b8 [ALPS03825066] Fix build error
[Detail]
1.Google neverallow to modify the /proc and /sys folder
2.vendor & system process can not access each file

[Solution]
1.Change the type of sysfs_file to common file
2.Mark the rules which violate the neverallow rules

MTK-Commit-Id: 326790e7af9c782f3dace5c667b4b07860370933

Change-Id: Ifa61d2561078d3b6cde612806607d35d6cfdc4d6
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:33:28 +08:00
Allen Chu
6c3fdf8a05 [ALPS03804621] [P Migration] Fix SEPolicy violated
[Detail] Remove read/write system_data and radio_data
         declaration

MTK-Commit-Id: 35a543208e84f95989f7f01f9c2ed766c5aab457

Change-Id: I135686e96cf214ca67523256aaa21e96f4fca3f0
CR-Id: ALPS03804621
Feature: DSDS (Dual SIM Dual Standby) Framework-Common Framework(RIL)
2020-01-18 09:30:03 +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
mtk12101
bbecfaa68b [ALPS03825066] Resolve vendor violates
[Detail] Google add new neverallows rules on android P,
some rule violate the rules

[Solution] Remove the rules which violate google new rules

MTK-Commit-Id: ff683b4eee0a6dd95ff25fbb6c7d1fc3a79c604d

Change-Id: Iead494212c6adcec234eaef14c83d1f8c7a49deb
CR-Id: ALPS03825066
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:29:34 +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