636 Commits

Author SHA1 Message Date
Chunlan Wang
572aa85017 [ALPS03932298] Factory Mode: resolve neverallow error
[Solution]
New Android not allow system process modify vendor
properties, factory mode move to vendor partition,
so remove the workaround

MTK-Commit-Id: bac8727b1a70a637eb7386213b7bf2bee2096b22

Change-Id: I360a493f770fae96f94199ae436d5e29bf752f70
CR-Id: ALPS03932298
Feature: Factory Mode
2020-01-18 10:00:05 +08:00
Light Hsieh
f798441035 [ALPS03957630] Selinux: rules for meta_clr_emmc and mke2fs
[Detail]
Because Android P impose so many restrictions, it is difficult for
meta mode or factory mode to format partitions. A new design is
adopted as follows:
1. Meta mode or factory mode write all 0 to first 4KB of target
   partition.
2. When entering kernel booting, the partition mount process in the
   original init flow find that XXX partition is wiped and automatically
   format XXX partition.
In step-1 described above, selinux rules shall be added for meta_tst or
  factory.
In step-2 described above, selinux rules shall be added for mke2fs.

MTK-Commit-Id: 7e9bbd418ca6353ba89ecffdc016c78504583bf3

Change-Id: I3dd869c57107b0ebebf3134f69c50744df8f8ff9
CR-Id: ALPS03957630
Feature: SP META Tool
2020-01-18 10:00:04 +08:00
Jason Su
1abdec9b46 Merge "[ALPS03950289] Remove mnld system property set permissions" into alps-trunk-p0.basic
Change-Id: Ie41cc8187236e4f785ad98cec7b76c0ae5061d82
MTK-Commit-Id: 7f85b6d7d135beedfd2046211b5087d6a4836c6e
2020-01-18 10:00:00 +08:00
Jason Su
da5c66b125 [ALPS03950289] Remove mnld system property set permissions
[Detail]
For new neverallow rule, remove platoform app writting vendor
system property permissions.

MTK-Commit-Id: 0df6bfa09a5f6f1243935659d4b5de56728cdd0c

CR-Id: ALPS03950289
Feature: Location AOSP
Change-Id: Id31442a20bd8f577dd20ac15b9d25f07725a0ec8
2020-01-18 09:59:58 +08:00
Zhen Jiang
5b8eb619af Merge "[ALPS03881723] remove unused sepolicy rules" into alps-trunk-p0.basic
Change-Id: I40552734e72e8661a68033586ae395900ac9325d
MTK-Commit-Id: 50823de40c83dcddeed18362046e1cbf8d44e0d6
2020-01-18 09:59:57 +08:00
mtk81216
034f9b1f2f [ALPS03881723] remove unused sepolicy rules
[Detail]
remove pppoe related sepolicy rules

[Solution]
remove pppoe related sepolicy rules

MTK-Commit-Id: 8ff59c04a6130f8e31bbb7e9feff7826be5ebd81

Change-Id: I8f14dae292c98ace27b78b577032285fc6076a02
CR-Id: ALPS03881723
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:59:55 +08:00
Gang Wei
3eb53db80f Merge "[ALPS03888283] usb close and bootprof" into alps-trunk-p0.basic
Change-Id: I74272efa2fbc552fc3d17a858b1e2c0cd545d029
MTK-Commit-Id: e022b6ddc1bfe0c931d9f998e620e2a944832eac
2020-01-18 09:59:52 +08:00
Dian Wang
37801d6a65 [ALPS03888283] usb close and bootprof
[Detail] modify sepolicy

[Solution]
modify sepolicy for read and write system and proc/bootprof

MTK-Commit-Id: 2df7f3b055778e043c9cc2ad75a2c9a7abcb7ad6

Change-Id: I3c4f4dd2435a2b2dee72c54d60e9e1adf2ec671f
CR-Id: ALPS03888283
Feature: SP META Tool
2020-01-18 09:59:47 +08:00
Chang-An Chen
862cd6725f [ALPS03869354] fix tpd auto test fail in factory mode
[Detail]
Fix tpd auto test fail in factory mode due to sysfs nodes
are not allowed to read directly.

[Solution]
update touch setting sysfs policy and add to factory mode

MTK-Commit-Id: d8733ca0938653098f5ec1f5462c1723d8f67894

Change-Id: I3fb6a46cfbf02fe050174501a2606404a53bb2ad
CR-Id: ALPS03869354
Feature: [Android Default] CapTouch
2020-01-18 09:59:45 +08:00
Josh Hsiao
ff3021c46e Merge "[ALPS03867358] Thermal: P Migration" into alps-trunk-p0.basic
Change-Id: I19192c394506733341594063d5b9cac84368f57a
MTK-Commit-Id: 5eaf1d7332596595ff116296a2efbe5efa25d604
2020-01-18 09:59:44 +08:00
jerry-sc.wu
dbcc1e21fa [ALPS03867358] Thermal: P Migration
[Detail]
System cannot execute vendor in Android P.
Need Remove violated policies.

[Solution]
Remove related violated policys.

MTK-Commit-Id: 5b111d320a150b06e8900b374c1f55a29ca38e5d

Change-Id: Ia36502819979925df3846d8c13c7a8bba89ed077
CR-Id: ALPS03867358
Feature: Thermal Management
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
2020-01-18 09:59:39 +08:00
Ting-Fang Hou
9034dfa5e7 [ALPS03918481] Audio: Eable audio factory permission
[Detail]
Eable audio factory permission

MTK-Commit-Id: 208dd7a107b82f0224f663345830ecea98ff90c6

Change-Id: Ife089a2bb7c94e4571fabea0ce2ff4811ced7b34
CR-Id: ALPS03918481
Feature: Factory Mode
2020-01-18 09:59:34 +08:00
Josh Hsiao
7a3f9b9cc0 Merge "[ALPS03946757] Thermal: Add permission" into alps-trunk-p0.basic
Change-Id: I1462cb40ec93cfc0293baf2d3bb9c095343880de
MTK-Commit-Id: 82833fac68b459f3d602416900a6c4aa3aacbe4d
2020-01-18 09:59:33 +08:00
jerry-sc.wu
6926cdca23 [ALPS03946757] Thermal: Add permission
[Detail]
Google add a new tag in Android P
system/sepolicy/vendor/hal_thermal_default.te

Need to add mtktz and /proc/stat grant permission for thermal HAL.

[Solution]
Add grant permission in both
devicemediateksepolicybasicnon_plathal_thermal_default.te
devicemediateksepolicybasicnon_platmerged_hal_service.te

MTK-Commit-Id: b4e6eb391c134c4c4580fd352a0aa8fec56b0a5a

Change-Id: Ifb0aa31bf47d105429be2dad60477747f1009a5d
Signed-off-by: jerry-sc.wu <jerry-sc.wu@mediatek.com>
CR-Id: ALPS03946757
Feature: Thermal Management
2020-01-18 09:59:31 +08:00
Larry Liang
15bfb4a0bb Merge "[ALPS03948310] add sepolicy" into alps-trunk-p0.basic
Change-Id: I5020d798c93d11eba50c46052ba7b01179d8c4b6
MTK-Commit-Id: 6f79512ef5aa48ce04ad975bd09b84554435b225
2020-01-18 09:59:29 +08:00
mtk11285
5c7942168d [ALPS03948310] add sepolicy
[Detail]
1. add sepolicy for aeev
2. add sepolicy for dumpstate hal service

[Solution]

MTK-Commit-Id: c9a341625f9f299341a0ba5ec02db3ffb2cf7edc

Change-Id: Ida4c75fc762293005b1f7942dd23efb9540d5e13
CR-Id: ALPS03948310
Feature: Android Exception Engine(AEE)
2020-01-18 09:59:28 +08:00
Sandeep Bora
c0d6527be8 Merge "[ALPS03870695] Bootanimation property renaming" into alps-trunk-p0.basic
Change-Id: I40202dfe7e1cc5c9a9890f7e99c709e5f2f41f59
MTK-Commit-Id: c03e4dc157bce35a44f09f807ce34041bb45ba79
2020-01-18 09:59:26 +08:00
lokesh
19d6da61af [ALPS03870695] Bootanimation property renaming
[Detail] Change persist.bootanimation to persist.vendor.bootanimation
in property_contexts file

[Solution] As we have renamed the system property name to
persist.vendor.bootanimation.xx , we need to make changes in
property_contexts file to ensure effect of this renaming and to
avoid vts fail.

MTK-Commit-Id: 42a2213dcbd87a6acb5823a5b64b89d7207579cf

Change-Id: Ie7ea4a9df3fc1607c648288c527e94660fbea50e
CR-Id: ALPS03870695
Feature: Boot Animation
2020-01-18 09:59:21 +08:00
Lili Lin
da04582187 Merge "[ALPS03934986] Add mtk_default_prop" into alps-trunk-p0.basic
Change-Id: I0fdb58e1905438be99c2b0d3e093df1eff9dbaba
MTK-Commit-Id: 7b841d1194001cac2e4b25b983d90693e578fc84
2020-01-18 09:59:16 +08:00
Chang-An Chen
8729873c5d [ALPS03869354] start merge_hal_service for light hidl
[Detail]
start merge_hal_service for light hidl for ago projects

MTK-Commit-Id: 1cb1aeb24cf5ac34663fa60d41f6e3bd8738d1ff

Change-Id: Iecfea38a24fa237873859b52a82a7e52086f55d3
CR-Id: ALPS03869354
Feature: [Android Default] Backlight
2020-01-18 09:59:16 +08:00
Lili Lin
8c75cd68e6 [ALPS03934986] Add mtk_default_prop
1. We have too many config properties set by PRODUCT_PROPERTY_OVERRIDES,
and these properties usually are not sensitive and allow all processes to read.
2. Since Android P, properties should follow naming rule to add "vendor",
and then this will cause properties to be labeled as vendor_default_prop.
By default, coredomain is not granted to read vendor_default_prop.
Actually these properties are read widely from system/vendor processes.
3. So we introduce "mtk_default_prop" type that grant read access to
all processes, including system and vendor.

MTK-Commit-Id: 18077a2cb14b7b1ddadb7000e8abb565f0fd49e3

Change-Id: Ia378db3dbb9d0bf388139be3419e013228c79d6e
CR-Id: ALPS03934986
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
2020-01-18 09:59:13 +08:00
Josh-YC Liu
0cfc3abf3d Merge "[ALPS03915523] AAL:Android P Property Change" into alps-trunk-p0.basic
Change-Id: I703e901e2f4b00107ab12b8da9acacdec477bd5f
MTK-Commit-Id: e18f31051d892d8f6e821d4443b500518e152ff3
2020-01-18 09:59:08 +08:00
Charles Yen
c2beb52c6a [ALPS03915523] AAL:Android P Property Change
Add AAL debug property permission.

MTK-Commit-Id: 5bea45fd17ce1ac20a8a27c4eb7a76f0d4a11377

Change-Id: Ib8b57f6f9bc60b583af6eeed7e134530677599d6
CR-Id:ALPS03915523
Feature:Ambient Light Adaptive Luma
2020-01-18 09:59:07 +08:00
chien-wei hsu
dd694722fa [ALPS03902666] Sepolicy: audio prop need prefix vendor
[Detail]
audio prop need prefix vendor
vendor.streamout.     u:object_r:audiohal_prop:s0
vendor.streamin.      u:object_r:audiohal_prop:s0
vendor.a2dp.          u:object_r:audiohal_prop:s0

new property of vendor.audiohal for general purpose.
vendor.audiohal.     u:object_r:audiohal_prop:s0

MTK-Commit-Id: b5097d4763935f129a8bb15d222d12d72a5bd6c7

Change-Id: I0e0809a1e490218c007087e71850f2dcc0ebf007
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 09:59:02 +08:00
Chang-An Chen
7d98ad0f0f Merge "[ALPS03869354] Fix factory mode backlight and vibrator test fail" into alps-trunk-p0.basic
Change-Id: I4cae156e47e9c84f32c0a27b40e6d3cf2ec15b40
MTK-Commit-Id: dba6607b2cbc0405f5b6ebe6af8a1ee5a6370eb2
2020-01-18 09:59:02 +08:00
Chang-An Chen
73f8a63b8b [ALPS03869354] Fix factory mode backlight and vibrator test fail
[Detail]
1. Backlight level test in factory mode fail due to no sepolicy
applied, and sysfs_leds is not allow to add to factory.te.
2. Vibrator test fail due to no corresponding selinux policy.

[Solution]
1. Using hidl for backlight in factory mode.
2. Add vibrator policy.

MTK-Commit-Id: 9470dca00da2fecfb373af94aae3502714d31ea3

Change-Id: I42cd45951054a267449e79f559b3761fce34d497
CR-Id: ALPS03869354
Feature: [Android Default] Backlight
2020-01-18 09:59:00 +08:00
Kaiwen Liu
36c7c80659 [ALPS03951738] Use mtk_uce_support to switch on/off
Abandon mtk_uce_ua_support usage

MTK-Commit-Id: 5f79d13d2fd01ce0c507ac37265ef632927b7a08

Change-Id: I0ce1cc044e4c5f4693f9d64dd2a07b2034a1574e
CR-Id: ALPS03951738
Feature: UCE, User Capability Exchange
2020-01-18 09:58:56 +08:00
yuhui.zhang
77655e590e [ALPS03914002] Remove unused sepolicy
[Detail]
Remove unused sepolicy for EM

MTK-Commit-Id: daf75aeacea74a466f5a5b4bef81173cccf6dc23

Change-Id: I8d6b7924a82e6897eb0ae85273455d73094eb109
CR-Id: ALPS03914002
Feature: Engineering Mode
2020-01-18 09:58:52 +08:00
Josh-YC Liu
5d5bbcef2d Merge "[ALPS03951976] PQ:Add PQ Property Permission" into alps-trunk-p0.basic
Change-Id: I215e2c8583bb46c1e7a658f74141dab701072cd7
MTK-Commit-Id: 2f81d395e66430a5b0c2a3ce5736c70bb2f79ce7
2020-01-18 09:58:52 +08:00
Charles Yen
072a14dd6e [ALPS03951976] PQ:Add PQ Property Permission
Add pq/aal property label & permission.

MTK-Commit-Id: 7ff05d937adde3f2d3c59029e140a640f23212b9

Change-Id: Ib6d9763bb00df0e40c6d77306d5faece7b5d1a00
CR-Id:ALPS03951976
Feature:MiraVision
2020-01-18 09:58:47 +08:00
Neng Kou
ca08f4d6f0 Merge "[ALPS03949661] Add SeLinux policy for lmkd socket" into alps-trunk-p0.basic
Change-Id: Idea0e40cc0f4a33ce61f476f0ea32d6e633cf5a1
MTK-Commit-Id: 504c784ceef96330c50a57b9b9ed397f267c718f
2020-01-18 09:58:44 +08:00
Qinghua Liu
39710d2b84 [ALPS03949661] Add SeLinux policy for lmkd socket
[Detail]
 Let lmkd visit systemServer, it will connect with duraspeed socket

MTK-Commit-Id: 51e15fadc8dbb29d3cd5578589666fed1b853162

Change-Id: Iaa127d47e737e82abe721a937d4373cc38978808
CR-Id: ALPS03949661
Feature: DuraSpeed
2020-01-18 09:58:42 +08:00
Yuhui Zhang
bba348679c Merge "[ALPS03951067] EM: selinux for battery" into alps-trunk-p0.basic
Change-Id: I4342759b16e0ad30995bafd00a4ea968b39792b9
MTK-Commit-Id: 5b6314aa27cee914dcb494aff1f13d9d1b38a6b3
2020-01-18 09:58:40 +08:00
Juan Rong
4fef319c9b [ALPS03951067] EM: selinux for battery
[Detail]
allow EM access battery info

MTK-Commit-Id: cdcee8fe601a984182ded4522acadfe6b70dec66

Change-Id: Ic55a779d3d6883d1dd0828258ff3bf084c8d7706
CR-Id: ALPS03951067
Feature: Fuel Gauge
2020-01-18 09:58:35 +08:00
Chien-Wei Hsu
20efb87465 Merge "[ALPS03902666] Sepolicy: remove violate properties setting" into alps-trunk-p0.basic
Change-Id: Ib554a618de5b4d747bde2cc3e4dde77effdbee34
MTK-Commit-Id: 65696211d98ec125f1b7d533cc2686d12af93dbe
2020-01-18 09:58:34 +08:00
chien-wei hsu
d1522f4166 [ALPS03902666] Sepolicy: remove violate properties setting
[Detail]
1.Property new change
neverallow coredomain from writing vendor properties
(allow audioserver_28_0 audiohal_prop (property_service (set)))
(allow audioserver_28_0 mtk_thermal_config_prop (property_service (set)))

audio_hal property which prefix is af. use to audiodump.
it will replace by the audio_prop which property prefix is vendor.af

before, mtk_thermal_config_prop use to set powerhal.
And we use it by HIDL now, so this permission can remove.

[Solution]
remove violate properties setting.

MTK-Commit-Id: 2942812bb4a57655898d407f84162fbdae9c3fc9

Change-Id: I1a01ddd8b83fa7eb0c499f67400660b738e9b986
CR-Id: ALPS03902666
Feature: [Module]Native AudioFlinger
2020-01-18 09:58:29 +08:00
Diangang Qin
db64e86a91 Merge "[ALPS03809072] Set rat config property permission" into alps-trunk-p0.basic
Change-Id: I502f65db202f4fcad0cb1303443727a4561501c2
MTK-Commit-Id: 5118fd2a20f1b662b5cc590c04fe30ad6e0258cb
2020-01-18 09:58:27 +08:00
Muyi Lan
80f841d0dd [ALPS03809072] Set rat config property permission
[Detail]
Set permission for property "ro.vendor.mtk_protocol1_rat_config".

MTK-Commit-Id: 6bf36e9b4dc41769abb6d54a204877df82aa3804

Change-Id: Ie0b31f15e65381d4094bdf2095f8047db1be21fd
CR-Id: ALPS03809072
Feature: Telephony feature switch dynamically
2020-01-18 09:58:25 +08:00
Stanley Chu
04cfd4136d Merge "[ALPS03866203] pidmap: Add SELinux policy for Android P" into alps-trunk-p0.basic
Change-Id: I0817c4598a66bba6365e5a3b60d1227d15b22a0c
MTK-Commit-Id: af3963de74153a8ad057979afc7c3d0a199e4107
2020-01-18 09:58:23 +08:00
Stanley Chu
f98f18c9c8 [ALPS03866203] pidmap: Add SELinux policy for Android P
[Detail]
Add SELinux policy for Android P:
Allow aee_aedv and dumpstate to read pidmap proc file.

MTK-Commit-Id: 16f120df6c33e20cdb0ce7f8c2040356ffecf02a

Change-Id: If1aa665003f70a2621687fcf291433d80f0d54d3
CR-Id: ALPS03866203
Feature: Android Exception Engine(AEE)
2020-01-18 09:58:17 +08:00
Jason Su
8e687077cb Merge "[ALPS03950289] Add permission to access GPS properties" into alps-trunk-p0.basic
Change-Id: I731a490bda9197204316e3ec6e3c96b2c21f9aa2
MTK-Commit-Id: b8c35170a68804f5db06878e636d4f64debab6a8
2020-01-18 09:58:15 +08:00
Jason Su
b2d6377d9c [ALPS03950289] Add permission to access GPS properties
[Detail]
Add selinux permissions to access GPS vendor system peroperties.

MTK-Commit-Id: aa97b76d646e13029488cae3aa0feb73a389675c

Change-Id: Icd41d074b1b620f70e5a68c3c02719f773cf2b2f
CR-Id: ALPS03950289
Feature: Location AOSP
2020-01-18 09:58:10 +08:00
Dian Wang
8288536631 Merge "[ALPS03932298] Factory Mode: move to vendor partition" into alps-trunk-p0.basic
Change-Id: I2c2e1e7afbfe33b1e2aea0711e348144c937791a
MTK-Commit-Id: 5e99f1dde2a1da9773da54015647205db6f5108f
2020-01-18 09:58:09 +08:00
Chunlan Wang
c93290f067 [ALPS03932298] Factory Mode: move to vendor partition
[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
2020-01-18 09:58:07 +08:00
Guoyi Qu
4b9b0ea2a2 [ALPS03934599] property set issue
Change property name for new rule in P branch

MTK-Commit-Id: f6085b301d89b12bf36fd0d8fe2cea8144204bad

Change-Id: I0b9945db11eae1a1a59d201389ba001a18a3fc50
CR-Id: ALPS03934599
Feature: Connsys Log Tool
2020-01-18 09:57:59 +08:00
Guoyi Zhao (赵国义)
2e09db7248 Merge "[ALPS03929399] Rename CT VoLTE system property" into alps-trunk-p0.basic
Change-Id: Ic8caf4ca885ac4e9b30b01de01ef7d4a10e35091
MTK-Commit-Id: bbc48a501e953823959a03533091b0fb9611ee1c
2020-01-18 09:57:58 +08:00
guoyi.zhao
134a7ddb7f [ALPS03929399] Rename CT VoLTE system property
[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
2020-01-18 09:57:56 +08:00
Eddie Hung
afc85abc82 Merge "[ALPS03885057] Revise USB property permission" into alps-trunk-p0.basic
Change-Id: I3c81798ce456c0ee276c50dc4ea7b44600d66bc6
MTK-Commit-Id: fab83e8bd239f1166d67de09dc59152128d18fb1
2020-01-18 09:57:51 +08:00
Eddie Hung
62813bbe3e [ALPS03885057] Revise USB property permission
[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
2020-01-18 09:57:49 +08:00
Dengwei Xu
e6294bbe3f Merge "[ALPS03914002] Add sepolicy rule for EM" into alps-trunk-p0.basic
Change-Id: I5c768f5071bb72fb6f9381e7bfada2d5560b010e
MTK-Commit-Id: 458bba642d58b96a046575e9e696a854e4599f77
2020-01-18 09:57:48 +08:00