1172 Commits

Author SHA1 Message Date
Juan Rong
a533597f9f [ALPS04725620] [EM] usb/power selinux issue
Add usb/power path to selinux

MTK-Commit-Id: ad55ebdcbc2f2abd48f74cc7d2ea5b26f2051fcc

Change-Id: I20287cef1ffc4961cf522fbda2ae47236059c564
CR-Id: ALPS04725620
Feature: Engineering Mode
2020-01-18 10:18:25 +08:00
Eric Chung
4485486a29 [ALPS04685444] GPU: Add selinux policy for gpuservice
Add selinux policy for gpuservice

MTK-Commit-Id: 88c5d084a571a32f04b801761114e0e0c652822e

Change-Id: I66c3b1be9c8bdc600e0064f9a81f1bf4fe58f984
CR-Id: ALPS04685444
Feature: Vulkan
(cherry picked from commit b7975c41efa9c83e13c25f4580b1f099f170d7af)
2020-01-18 10:18:21 +08:00
Shanshan Guo
580f64da2c [ALPS04696074] SEPolicy: move contexts to genfs_contexts
[Detail]
DoRestoreCon will spent more time in Coldboot for sys,proc & debugfs
if their contexts in file_contexts.
Genfscon can reduces time consumption.

[Solution]
Move contexts of sys,proc & debugfs from file_contexts to
genfs_contexts.

MTK-Commit-Id: a5b022f46a3285fa5ab48d418762497d49739948

Change-Id: I4619946e9f7f8f0bcb7503b737bdfac4c014edd1
CR-Id: ALPS04696074
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:18:20 +08:00
Ben Lai
cea90a2052 [ALPS04717735] Rename wifi saps interface property name
Rename wifi saps interface property name to "ro.vendor.wifi.sap.interface"

MTK-Commit-Id: 247972295f200bae29ff47c82a050e5f076af88d

Change-Id: I1e0e1937be60542fc6dad02420d31f76101e7c54
CR-Id: ALPS04717735
Feature: Wi-Fi Tethering
2020-01-18 10:18:20 +08:00
mtk06389
f697fb2b40 [ALPS04723934] SEPolicy: Remove phased-out guiext rules
Remove guiext rules because guiext has been phased out

MTK-Commit-Id: 0684124257af5ca2c55c48473e1568710ce098d4

Change-Id: I8aae89d8dd2388fb9f13a55331de46284e9b97ee
CR-Id: ALPS04723934
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
(cherry picked from commit c8b973fb79f79bff081dae58d665d235bfffc23a)
2020-01-18 10:18:20 +08:00
bo.shang
c6f62897b6 [ALPS04721702] Save log into data partition
1. Add SELinux permission

MTK-Commit-Id: 49d711749e59016b1e46233c4569c9d22d957f3d

Change-Id: If172698697fa5005f4548328665ea6c4739315c8
CR-Id: ALPS04721702
Feature: Modem Log Tool
2020-01-18 10:18:19 +08:00
Shanshan Guo
e045492863 [ALPS04723438] SEPolicy: Remove unused sepolicies of vendor_app
Remove unused sepolicies of vendor_app.

MTK-Commit-Id: 54bf7fcfcdbc902f7ab59247a5d29c04b20ffbee

Change-Id: I9018da7029b4bff0468237142108624262fa64b9
CR-Id: ALPS04723438
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:18:18 +08:00
Freddy Hsin
a380459549 [ALPS04707932] uncrypt: add permission for bcb setting
uncrypt needs misc access right to update bcb

MTK-Commit-Id: d3ef46374d3942f0321613bc9f9979a11d1cadc2

Change-Id: I4b6d5e741d4b7aa55186e6b8c44caa11f3209439
CR-Id: ALPS04707932
Feature: [Android Default] SIU (SD Image Update)
(cherry picked from commit c4550748a1461c467ecdc4ff73e7bb06fdd38643)
2020-01-18 10:18:18 +08:00
MY Chuang
0cd0041269 Merge "[ALPS04701006] mrdump: fix avc denied condition" into alps-trunk-q0.basic
Change-Id: I274442aef8fa2325b018e4cbb7fd76ed466ffc21
MTK-Commit-Id: bcbbc656d11f8783aa62e624f6b75245fa749131
2020-01-18 10:18:17 +08:00
MY Chuang
57a8f660be [ALPS04701006] mrdump: fix avc denied condition
1. fix some avc denied condition caused by mrdump_tool.
2. merge the rule about mrdump in one area.

MTK-Commit-Id: c0d93f9196903a772ff1b318f153701714d28d80

Change-Id: I23082aac2d7b522a9f78426796b94de145374ed5
Signed-off-by: MY Chuang <my.chuang@mediatek.com>
CR-Id: ALPS04701006
Feature: Memory RAM Dump (MRDUMP)
2020-01-18 10:18:16 +08:00
lena wang
3e9bfe06e1 Merge "[ALPS04714586] Allow factory to access AOSP property" into alps-trunk-q0.basic
Change-Id: I114bdf787c5f78279a3886ba0b68a7dac92e3758
MTK-Commit-Id: 97721d5dd9e14795782a72623be3778467c5f3c1
2020-01-18 10:18:14 +08:00
Guobao Wang
2b5f5ceb7d [ALPS04714586] Allow factory to access AOSP property
Add SELINUX permission to allow factory to access AOSP property
persist.radio.multisim.config

MTK-Commit-Id: c73e634717213512f3a41c9850b7a4320f53b74c

Change-Id: I2a1f4437da9944b9c63876a9caa5549cbe29af27
CR-Id: ALPS04714586
Feature: Factory Mode
2020-01-18 10:18:12 +08:00
Sophie Wang
68185175ee Merge "[ALPS04714861] dumpstate: add selinux policy" into alps-trunk-q0.basic
Change-Id: I3ec6585e2f1009c1d895e0f29986ab96bedebfcd
MTK-Commit-Id: 5554d71b82cbce1eac8369783ba1aea0a64ca566
2020-01-18 10:18:11 +08:00
Huan Tang
943a2db478 [ALPS04714861] dumpstate: add selinux policy
1.relabel mmcblk1 to sysfs_devices_block in sysfs
2.allow dumpstate access sysfs_devices_block

MTK-Commit-Id: 359f985388d45abc8b47a95ef71fccf72259ee35

Change-Id: I1e83b8f6f6bdba20965b7f976f9589363d28c48d
CR-Id: ALPS04714861
Feature: Android Exception Engine(AEE)
2020-01-18 10:18:08 +08:00
Jonas Lai
8d8e513025 [ALPS04314391] sepolicy: aee_aedv/dumpstate access to camerahalserver
Allow aee_aedv/dumpstate to dump debug info from camerahalserver.

- SELinux : avc:  denied  { find } for
  interface=android.hardware.camera.provider::ICameraProvider
  sid=u:r:aee_aedv:s0 pid=23819 scontext=u:r:aee_aedv:s0
  tcontext=u:object_r:hal_camera_hwservice:s0
  tclass=hwservice_manager permissive=0

MTK-Commit-Id: 18210cf3984bd62caa334f28e45bb0f99500bac8

Change-Id: I291450101bd0ea94fca47b592cb1ef7ffb7f1ae4
CR-Id: ALPS04314391
Feature: [Android Default] Camera Application Basic Functions
2020-01-18 10:18:07 +08:00
Cheng-H Chen
3ae2121560 Merge "[ALPS04709027] ST SE HAL for ST54H (SPI) support" into alps-trunk-q0.basic
Change-Id: Ied52d15185f1d63bfc940b1f9464e1b5322a2b3c
MTK-Commit-Id: 3a71afeb9fac13a84110a03ecb2ece426ce6d237
2020-01-18 10:18:06 +08:00
Megad Lu
3be9ba0bce [ALPS04709027] ST SE HAL for ST54H (SPI) support
[Detail]
New ST NFC stack for Android compatible with native SecureElement service.
Added also SE HAL for ST54H (SPI) support.
SE HAL files are for internal reference only.

MTK-Commit-Id: 1ad8ab131a2acbdf66133db290e4206627a5f50b

Change-Id: Ief43e503b7147ab96185100ae3c02ecb2ce82640
CR-Id: ALPS04709027
Feature: NFC Chipset Capability
2020-01-18 10:18:02 +08:00
Cheng-H Chen
d78668baa8 Merge "[ALPS04707214] ST NFC HAL 1.2" into alps-trunk-q0.basic
Change-Id: I1178c94aae2eda7d2dd1c8383d1f2fe272d185fd
MTK-Commit-Id: b9d80ecb9b047afd398522623c08cd114dd59669
2020-01-18 10:18:00 +08:00
Megad Lu
4d4cdb7208 [ALPS04707214] ST NFC HAL 1.2
[Detail]
Update for the ST NFC HAL version to 1.2.

MTK-Commit-Id: 7c7f8db4cc98b778cddfddae6679947a6b663270

Change-Id: I1c3544d570631d9d46a617203e68466ed529820b
CR-Id: ALPS04707214
Feature: NFC Chipset Capability
2020-01-18 10:17:58 +08:00
sin_mingfeilv
53d88ba13c Merge "[ALPS04707246] porting hdmi hidl service" into alps-trunk-q0.basic
Change-Id: I61666a22c7485f1c2ec593231fe990fb95f32281
MTK-Commit-Id: 9f37e2e99eb79b990663e7a15a56a20c814562b4
2020-01-18 10:17:57 +08:00
gtk_qingyunmei
060eb640e1 [ALPS04707246] porting hdmi hidl service
Refactoring hdmi service as hidl service,so that
other process can call hdmi services API.
Add Selinux permission for hdmi hidl service.

MTK-Commit-Id: 0ecef9e52ce92b52413fbecd2b5be492806b8f53

Change-Id: I7f1c5f48d4ae9777acc80436a4af801f32969fac
CR-Id: ALPS04707246
Feature: [Module]Settings
2020-01-18 10:17:54 +08:00
Hua Tian (田华)
753142662c Merge "[ALPS04709387] Support to catch MCUPM log" into alps-trunk-q0.basic
Change-Id: I9d160429e50304a82ec83b4c7133126d52ea8eb4
MTK-Commit-Id: 4b4e661646a1ff87863669fd53af94707835bc3c
2020-01-18 10:17:53 +08:00
hua.tian
608a6fd139 [ALPS04709387] Support to catch MCUPM log
Add SELINUX rule for MCUPM log.

MTK-Commit-Id: 9fb8d206f37f0fb00581f4417473974c014ff0dd

Change-Id: I7a935534d4975e444b556d133ff222a4c144b5ca
CR-Id: ALPS04709387
Feature: Mobile Log Tool
2020-01-18 10:17:51 +08:00
Jia-Hua Yang
c0ac513d46 [ALPS04668607] NLO: Add define for nlop device
Add define for nlop device.

MTK-Commit-Id: 1312261b0c1b3c20ea8f2d6259e4b46257dc947f

Change-Id: Iee00cf9779af3455ff0235fe5482d41b0d7cb8da
CR-Id: ALPS04668607
Feature: Network Latency Optimization
2020-01-18 10:17:49 +08:00
bo.shang
5eaf34477d [ALPS04710092] Save network log save log in data
1. Add SElinux permission to save log in data

MTK-Commit-Id: 80d74125ac0c04cb560b2b71bafe89e0d9d7441f

Change-Id: I6f17f70e3530257331331b92bdf095749d64283f
CR-Id: ALPS04710092
Feature: Network Log Tool
2020-01-18 10:17:49 +08:00
CS Kuo
103246ae55 Merge "[ALPS04669137] wlan: Add support for saps property" into alps-trunk-q0.basic
Change-Id: I2c6c3b8b764d252e34369a71bdd01a73861245c4
MTK-Commit-Id: a322ccd8fb13bafcd3589663ecd544a6fd1a82da
2020-01-18 10:17:48 +08:00
Ben Lai
49506ee5cc [ALPS04669137] wlan: Add support for saps property
Add support for saps property.

MTK-Commit-Id: f5047d8b7abbc4f4adce38301741a91ba53895ca

Change-Id: I9bfaccde83cbd3032714ff09baf974622b67eeae
CR-Id: ALPS04669137
Feature: Wi-Fi Tethering
2020-01-18 10:17:46 +08:00
Guoyi Qu
b4c0ed52b3 Merge "[ALPS04707995] CTS fail fix" into alps-trunk-q0.basic
Change-Id: I9041039776d47e42e064ac126e154b24492c6769
MTK-Commit-Id: 88ff0b09dbbcc96c825f95a69d2172193ca856c4
2020-01-18 10:17:45 +08:00
Guoyi Qu
e1861f520b [ALPS04707995] CTS fail fix
Move defination to private folder

MTK-Commit-Id: e9fcc4d4a929c928dd475887e6a100a85d641815

Change-Id: I34fc6d2f3c96f8ab9d53f840da53465f7b79e9cf
CR-Id: ALPS04707995
Feature: Connsys Log Tool
2020-01-18 10:17:40 +08:00
Larry Liang
30cede8986 Merge "[ALPS04642542] update sepolicy rules for dumping kmemleak file" into alps-trunk-q0.basic
Change-Id: I8d39195bf5e8f73101d1fa350c4124fba4ff1165
MTK-Commit-Id: 3331b590249be0d60f51d699767152445d7cd3ce
2020-01-18 10:17:38 +08:00
Huaiming Li
fc904e056e [ALPS04642542] update sepolicy rules for dumping kmemleak file
add new sepolicy rules for dumping kmemleak file into manual DB

MTK-Commit-Id: bbc72864526fe28df5f9278c4250a152fbe94515

Change-Id: Ie59c50451d3e7b00500a11eab43b99004d0b543c
CR-Id: ALPS04642542
Feature: Android Exception Engine(AEE)
2020-01-18 10:17:36 +08:00
Yifei Qiao
ed15da7571 Merge "[ALPS04700799] Align keymanager sepolicy with p0.mp6" into alps-trunk-q0.basic
Change-Id: I525d8f1f9893ac348145cd8f1e063a721091f288
MTK-Commit-Id: 90ca8ed634df094a119de00fe68120697b59c085
2020-01-18 10:17:35 +08:00
Yifei Qiao
9708912e27 [ALPS04700799] Align keymanager sepolicy with p0.mp6
Align keymanager sepolicy with p0.mp6

MTK-Commit-Id: 24a187bc32e2be7663abb880c07659834d71f4b0

Change-Id: Ia98525be2155dcf3261633d1e6c25a775426068d
CR-Id: ALPS04700799
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 10:17:31 +08:00
Tehsin Lin
fe23144194 Merge "[ALPS04696977] Boot cleanup" into alps-trunk-q0.basic
Change-Id: I09561e879d0f0a6ee806d2f29e67d21e05da2a05
MTK-Commit-Id: 0f80c7aff9d129bf769c82cb4084aedfbfe33f52
2020-01-18 10:17:29 +08:00
mtk10008
41e2472935 [ALPS04696977] Boot cleanup
[Detail]
Android Q has more restrictions, for example vendor cannot access
/data unless than (/data/vendor), etc...
Clean up boot fail items

MTK-Commit-Id: 8cbf5c73063c73463d25f6f14dc344fecbb7dc77

Change-Id: I540a6f2cfbaa87e1ffefbf9968a433dea2ccc50b
CR-Id: ALPS04696977
Feature: build process
2020-01-18 10:17:25 +08:00
Huaiming Li
0e69d03d37 [ALPS04697232] fix google dumpstate avc error
[Detail]
mmcblk1 stat file avc error and proc last_kmsg avc error

[Solution]
add dumpstate sepolicy rule

MTK-Commit-Id: 4d3e60120a2049f9e6f4e7ce9e2f835c2bb993ca

Change-Id: I6e1e63eb719aa8b7b4d0a86043bd0bce637a638f
CR-Id: ALPS04697232
Feature: Android Exception Engine(AEE)
2020-01-18 10:17:23 +08:00
Peng Zhou
2994db624c Merge "[ALPS04697232] msdc: label mmc1 in sysfs" into alps-trunk-q0.basic
Change-Id: Ib12bc9c84519575922c5432a2e1e0487c4a10048
MTK-Commit-Id: d856b1ab48d980b6060ab451985418645fffb9b0
2020-01-18 10:17:23 +08:00
Huaiming Li
ae04d1f49c [ALPS04697232] msdc: label mmc1 in sysfs
label mmc1 in sysfs

MTK-Commit-Id: f779eb09ee01d25d6f6691ec14ab4fe7bc9d5d7a

Change-Id: I721f146682b32437dd6065824c87bb0d1182729f
CR-Id: ALPS04697232
Feature: [Android Default] SDCard
2020-01-18 10:17:22 +08:00
Denis Hsu
a1afe0c47b Merge "[ALPS04667690] Add policy for format as internal" into alps-trunk-q0.basic
Change-Id: I4bf5402d3eacd71d29315c3edaa3beb1cd145617
MTK-Commit-Id: 987fd4ac8e35add870490cb4e47730a8070322e8
2020-01-18 10:17:20 +08:00
Denis Hsu
315c48bc5f [ALPS04667690] Add policy for format as internal
add some policy to prevent form selinux violation
when formatting as internal.

MTK-Commit-Id: 11a1e82eea3751a833fdf92aea8b31012f948bdc

Change-Id: I44ea4c0b3eb2699a51d0cdf3881e2b4971c0c3cd
CR-Id: ALPS04667690
Feature: [Android Default] Download Manager
2020-01-18 10:17:18 +08:00
mtk10008
0ee9b429a0 [ALPS04696977] Boot cleanup
[Detail]
Remove proc_cpu_loading from basic/non_plat/init.te

MTK-Commit-Id: 6a2ade3189d2b9613f8b19b2ebe646cef292a600

Change-Id: Ia4634123e58127d6dacaa8f98e58ed6cdfc33833
CR-Id: ALPS04696977
Feature: build process
2020-01-18 10:17:13 +08:00
mtk10008
dcf924b4d9 [ALPS04696977] Boot cleanup
[Detail]
Android Q has more restrictions, for example vendor cannot access
/data unless than (/data/vendor), etc...
Clean up boot fail items

MTK-Commit-Id: 44078402d526f7ef73ebfa31d95dbd24fa0f77af

Change-Id: I9b5b9dd2df253bad03e4b5fe1cab69404c9251ab
CR-Id: ALPS04696977
Feature: build process
2020-01-18 10:17:13 +08:00
Ian-Y Chen
7141af7483 [ALPS04328846] power: fix build error
[Detail]
Move netdagent to bsp folder

MTK-Commit-Id: f17dfe12c51ff65f807c407602a28f7cdea05687

Change-Id: I339a5401769b7b3f2803123db0fb8434c1c99d3d
CR-Id: ALPS04328846
Feature: [Module]PowerHAL
2020-01-18 10:17:12 +08:00
Ian-Y Chen
8ae5f3bd2c [ALPS04328846] power: mt6779 migration
[Detail]
1. Add VPU, MDLA debugfs permission
2. Add EARA dsbugfs permission
3. Add netdagent HIDL permission

MTK-Commit-Id: b815b51044d2be0e70d2e987d792f273b4bd19a2

Change-Id: I104264b1ab146ac7e71e337184f3407ccc58a79b
CR-Id: ALPS04328846
Feature: [Module]PowerHAL
2020-01-18 10:17:11 +08:00
Hua Tian (田华)
756000fd0e Merge "[ALPS04696977] Fix typo issue" into alps-trunk-q0.basic
Change-Id: Iabe312aabc6fa7a6eb669a024851fc1eb4ab439d
MTK-Commit-Id: aff372f08bebf69bbbbb84b0f9c6db9c7bb8cc3c
2020-01-18 10:17:11 +08:00
hua.tian
67c841f99e [ALPS04696977] Fix typo issue
Change shell to mobile_log_d

MTK-Commit-Id: d927f5e4e48ebf017bcaf08b120d6d3784723594

Change-Id: Ib565526e2e56eb26fa74a74c85dd50897ac130e8
CR-Id: ALPS04696977
Feature: Mobile Log Tool
2020-01-18 10:17:09 +08:00
Hua Tian (田华)
de2efacf7f Merge "[ALPS04696977] Fix SELINUX issue" into alps-trunk-q0.basic
Change-Id: If8dd25720afb56b2995b2cf519cb449c5bbdc559
MTK-Commit-Id: 7c1400fc40de4af1d4bb4b48a7bc1848c7fd93e8
2020-01-18 10:17:08 +08:00
hua.tian
d9c874257d [ALPS04696977] Fix SELINUX issue
Add rule to read system property.

MTK-Commit-Id: 8c5cf76aaadd4bb43ab5f55787330a9490c9af3d

Change-Id: I8d4a1e526907a7e8bc48ee7d48ed38256918c637
CR-Id: ALPS04696977
Feature: Mobile Log Tool
2020-01-18 10:17:07 +08:00
Jiaqin Wang
18cc043b42 [ALPS04689352] ADB:add allow priority
move persist.adb.nonblocking_ffs from
PRODUCT_SYSTEM_DEFAULT_PROPERTIES to
PRODUCT_PROPERTY_OVERRIDES, need add
allow priority to let adb daemon to
get/read it

MTK-Commit-Id: 0489198430c2ac2412ebebdc6e24bf8fd0797bf1

Change-Id: I9f69bddfdd307a3d13a8516076b4106f4b0bdf82
CR-Id: ALPS04689352
Feature: [Android Default] ADB (Android Debug Bridge)
2020-01-18 10:17:05 +08:00
Wenxiang Zhong
2dfa9329c1 [ALPS04697845] add performance tuning properties
Add performance tuning properties ro.vendor.mtk_perf_plus
selinux policy

MTK-Commit-Id: 8aa76802ecb3d6fdfa33485ef7db0fc18818d877

Change-Id: Ib2c5bbcab4e6556ae6028568ccfef5e62f6e5b17
CR-Id: ALPS04697845
Feature: System Performance
2020-01-18 10:17:05 +08:00