[Solution]
Factory mode should build in vendor partiton, so move
factory from system partition to vendor partition
MTK-Commit-Id: c55354593a97aed3af9d0b2584037d03d3d2669c
Change-Id: I5a607b60f9ac974380c5e440a6fa0c51797d6b1b
CR-Id: ALPS03932298
Feature: Factory Mode
Change property name for new rule in P branch
MTK-Commit-Id: f6085b301d89b12bf36fd0d8fe2cea8144204bad
Change-Id: I0b9945db11eae1a1a59d201389ba001a18a3fc50
CR-Id: ALPS03934599
Feature: Connsys Log Tool
[Detail]
Rename CT VoLTE system property and allow other module to access
persist.vendor.mtk_ct_volte_support.
MTK-Commit-Id: bc5a52b6998d941aa12c7532f095d1a8c67d663f
Change-Id: I33881fd6684dc76e148ac4917e5c146f949e24f7
CR-Id: ALPS03929399
Feature: [China Telecom]VoLTE Customization
[Detail]
1. remove set vendor usb property
2. add set system usb property
MTK-Commit-Id: 993587b76581472ff751db17bb4f7210926c6342
Change-Id: Ib7da63617e3ac0c0f3fb271ef082db602d39ca37
CR-Id: ALPS03885057
Feature: Modem Log Tool
[Detail] As title
[Solution] As title
MTK-Commit-Id: 2e0d48205919bc075721a6470a4102a95cf841de
Change-Id: I88e7bdf77940d7d89379af3d73996d998235f093
CR-Id: ALPS03943803
Feature: [Android Default] Camera Application Basic Functions
[Detail]
In order to meet selinux limitation, storagemanagerd act as
vold context to mount storages
[Solution]
Add the following line in file_contexts.
/system/bin/storagemanagerd u:object_r:vold_exec:s0
MTK-Commit-Id: 0b309fd0afc84f3da0ea91a324dca6f824366537
Change-Id: I68e568b8e7d37d218ae88e82cdd509c32abaea66
CR-Id: ALPS03943904
Feature: Mobile Log Tool
System APP cannot set vendor property, and these
polices is not used. Just remove these policies.
MTK-Commit-Id: 0805ff18c4d4f90b2e9d2fdb97e1eff810ae5096
Change-Id: Ib07ef6d587d688246884fff6505434b7b7bc708c
CR-Id: ALPS03885471
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
[Solution]
Factory mode need to get com type is USB or UART, so add the
permission in factory.te
MTK-Commit-Id: aff8a941116fde70abd5c492fa084e74d927629e
Change-Id: I0b9206bda110b9dde77168db73a8378c4a571851
CR-Id: ALPS03928691
Feature: Factory Mode
[Detail] modify meta_tst.te and file.te
[Solution]
P Migration meta_tst get com port type/uart port info/boot mode/usb state/usb close
MTK-Commit-Id: 650d2e874dd8e73a5b79f911ba6bb6579c7819c1
Change-Id: Ie405027bcb4b567721c531a94a3a6247fa15689b
CR-Id: ALPS03888283
Feature: SP META Tool
[Detail] Vibrator has no right to access sysfs
[Solution] Add sysfs rule to vibrator te file
MTK-Commit-Id: 8c598697e8ea1c72ad9753fe706ab729ac7b47d7
Change-Id: Ib90a4681121ffe4ddbb0443c220b78f42e0de722
Signed-off-by: Qiangming Xia <qiangming.xia@mediatek.com>
CR-Id: ALPS03946622
Feature: [Module]Vibrator
[Detail]
selinux policy restrict access of /mnt/vendor, application
should add policy for the path
[Solution]
add new policy for /mnt/vendor
MTK-Commit-Id: a02d937c92f815a7e8f785abee7304a2f3f12cf9
Change-Id: I3221d0bcd13374e296c8d4923b4679f4904fb71f
Signed-off-by: Simfex Chiu <simfex.chiu@mediatek.com>
CR-Id: ALPS03940671
Feature: [Module]Wi-Fi HAL
[Detail]
BT vendor lib cannot read the valid BD address from nvram
since selinux violation.
Android P version changes nvdata path to /mnt/vendor/nvdata.
If want to open fstab when using nvram function, it needs
search policy.
[Solution]
allow mtk_hal_bluetooth mnt_vendor_file:dir search
MTK-Commit-Id: 24997cbec894555c537930fe9f10122c450a5e4f
Change-Id: I9279614b100a2675ca88264899125ed549d3301f
CR-Id: ALPS03943817
Feature: BT AOSP
[Detail]
P migration: System property name change,
related SELinux need change too.
MTK-Commit-Id: f71582111ca7952637d39f49d8dccebdc933e299
Change-Id: Id0afb83774b37a23dfdcb8c85ccbd79310ad20e3
CR-Id: ALPS03886705
Feature: Engineering Mode
[Detail]
Rename CT VoLTE system property and allow other module to access
persist.vendor.mtk_ct_volte_support.
MTK-Commit-Id: ae81ce0aabd412c630a4ebed0ba4a9a44121f8b6
Change-Id: I3142c30c2dcfe114cdaaf59d3b8bbfb565e50519
CR-Id: ALPS03929399
Feature: CTC VoLTE
[Detail]
Android P requires HAL for NFC to implement android.hardware.nfc@1.1 interface.
[Solution]
New service implementation android.hardware.nfc@1.1-service-st providing this
interface. The new HAL has a separate configuration file.
MTK-Commit-Id: 4a0ec3094c9f6187cef6f4b2a4d109db5e0c1ea3
Change-Id: Ic19f9f79daf3fc7414c52b2c7894203d7c2f5fbc
CR-Id: ALPS03894499
Feature: NFC Chipset Capability
[Detail]
Add setgid selinux rule for aee_core_forwarder to make it can add
group to avoid dac_override
MTK-Commit-Id: e25e5ae4c8f3b760c112efd8c8809d5e9790b967
Change-Id: I90a4af9b3fe86d7699f1fa3adbd9f402c4de88ac
CR-Id: ALPS03890586
Feature: Android Exception Engine(AEE)