Commit Graph

56 Commits

Author SHA1 Message Date
Arian
4fd1fd2a1c
Revert "davinci: sepolicy: Unlabel audio_hw_socket"
This reverts commit af13479df1.

Change-Id: I532e78d5d5da2a1d2ebdf6723e92e603c4d1b7e1
2021-06-18 18:32:31 +02:00
Arian
6d05622ab1
sm6150-common: livedisplay: Uprev to 2.1
Change-Id: Icd9d97078cb339aaff04d7e0a52ce8b9b97d35de
2021-06-18 18:32:31 +02:00
Arian
afb4a21c3f
sm6150-common: livedisplay: Renamed AntiFlicker node
Change-Id: I9951abe702730435f840bf041b8cbcf3839fae79
2021-06-18 18:32:31 +02:00
Arian
83f9791ee2
sm6150-common: livedisplay: Add anti flicker support
Change-Id: Ieb91a3efe0fc124e120f95f5ec197aa3c5cecb14
2021-06-18 18:32:31 +02:00
raghavt20
32e23fe941
sm6150-common: fingerprint: Label fpc and fpdump data dirs
Change-Id: Ib522a7e573465ce0cd9bc982d1264947e731da22
2021-06-18 18:32:30 +02:00
Arian
a8c1391091
sm6150-common: fingerprint: Allow to build without fingerprintextension
Change-Id: Ib51286dafaf0633ba959332ecdb5ad277c6714bf
2021-04-25 15:23:51 +02:00
Arian
e76fb5010d
sm6150-common: Rename fingerprint service
Change-Id: I09992ec66ba4b65bb60a23faa74929d385f199fa
2021-04-25 15:23:51 +02:00
raghavt20
b60968e459
sm6150-common: sepolicy: Label new white LED path 2021-04-25 15:23:51 +02:00
raghavt20
0aa378102c
sm6150-common: Transform davinci into common tree
* The following things are left in devices, because they're device specific
  - voip compress properties
  - HVDCP properties
  - audio configs
  - power profile
  - rounded corner configuration
  - partition configuration
  - FOD
  - camera motor
  - NFC
  - board-info
  - fstab
  - ipa and graphics firmware
  - shipping and manifest target level

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I8bef29041f8f239361b999fc8ab1a43cc2ebb86b
2021-04-25 15:18:14 +02:00
Arian
7a82c42b90
davinci: sepolicy: Correct nq-nci wakeup label
Change-Id: I763fd9bee30364c8effdfdf52aa992dc024426c6
2021-04-25 15:17:23 +02:00
Arian
b072100106
davinci: sepolicy: Label ds28e16 and bq2597x-standalone wakeup nodes
Change-Id: I2a45e5c2e43f0f75e7baf48c4ef69a8b30177642
2021-04-25 15:17:23 +02:00
Arian
cc1a74162f
davinci: sepolicy: Label fts wakeup nodes
Change-Id: I2b450eca304ccaa53a3eda17e9fe6a885e516bda
2021-04-25 15:17:23 +02:00
Arian
83d1b8ef21
davinci: sepolicy: Label goodix wakeup nodes
Change-Id: Iaf4b8331f48bd73fb418eccd1a4687c8bdd36401
2021-04-25 15:17:09 +02:00
Arian
a02dd0dd72
davinci: sepolicy: Remove qcom PMIC devices wakeup nodes
* They are already labelled from qcom sepolicy

Change-Id: I97d2e0148460b7123f9738f74867e7d35f9e1d50
2021-04-25 15:14:02 +02:00
Arian
7fd5f40474
davinci: sepolicy: Remove not existing spi_master wakeup label
Change-Id: I1a080a051091393b8e36b679597de2b72e162e9b
2021-04-25 15:08:23 +02:00
Arian
c4e7c12ddb
davinci: sepolicy: Remove not existing smb5 power_supply wakeup label
Change-Id: I360fbc5e42a42904b5df51644e29e629b80471f0
2021-04-25 15:07:54 +02:00
Arian
f2c79ad3c3
davinci: sepolicy: Remove usb-pdphy wakup labels
Change-Id: I4bff74c4c680042e3b37b796840716dfc9cd6e7f
2021-04-25 15:04:12 +02:00
Arian
4de93cd175
davinci: sepolicy: Remove google power supply wakeup labels
Change-Id: Id8495351a4ef366fb38cd3a5e8def9111f7ad51c
2021-04-25 14:53:41 +02:00
Adam Shih
3d03327784
davinci: sepolicy: Use prefix to label wakeup nodes
Bug: 161136421
Test: Boot with no system_suspend logs
Change-Id: I92706be9cd806397f62f887b20f589be1dcdd777
2021-04-25 14:52:26 +02:00
Cyan_Hsieh
e5fb6c7b71
davinci: sepolicy: Label symlinks from /sys/class/wakeup
Bug: 145905081
Bug: 155590308
Bug: 160131365
Change-Id: Iece91f90915fc783edd185d6162f319b95fb1c06
2021-04-25 14:52:07 +02:00
Adam Shih
89ea5715e8
davinci: sepolicy: Give system_suspend access to wakeup nodes
Bug: 145905081
Bug: 155590308
Test: reboot and see no error
Change-Id: Id13526831495c397ed39da84a662c9d845b3543f
2021-04-25 14:51:18 +02:00
Arian
4c5bfa0185
davinci: sepolicy: Update mi_thermald property label
Change-Id: Ib0944a93ab4a43c8386de989894b3f6ee38d8088
2021-04-25 14:49:59 +02:00
daniml3
1e749669de
davinci: sepolicy: Add vendor prefix to avoid naming colision
Change-Id: I44e851a1957aac4abc17a367db2da543c0bab81c
2020-12-30 02:02:56 +01:00
LuK1337
b9e3c08b9f
davinci: sepolicy: Switch away from hal_attribute() macro
Change-Id: I0cf3c3e9ce42254915b142c10b846db6c7a52e63
2020-12-30 02:02:56 +01:00
Arian
af13479df1
davinci: sepolicy: Unlabel audio_hw_socket
Change-Id: Ic5e5f477651282537040bb2e7d1aabfa48518697
2020-12-30 01:47:16 +01:00
jhenrique09
027a842a58
davinci: parts: Implement popup motor calibration
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: If1f6c757cbf521fd27f7124284f40ea602f53ba8
2020-11-28 18:12:03 +01:00
Arian
91911144f8
davinci: sepolicy: Drop unused fingerprint sepolicy rules
Change-Id: I5dd29315c94d971eb5162bd1ed24f2fecf3de305
2020-11-28 18:12:03 +01:00
Arian
ae4d15e750
davinci: sepolicy: Label panel_info sysfs node
Change-Id: I4cda61bd146effa1e1be4e24219048089dec3d62
2020-11-28 18:12:02 +01:00
Arian
e68fa0e063
davinci: sepolicy: Label new LED paths
Change-Id: Ibbb21ac80ddfa1d7c65968130493632ee47bd30c
2020-11-28 18:12:02 +01:00
Arian
ce26567d62
davinci: sepolicy: Use add_service macro for remosaic_daemon
Change-Id: I2ca58c07d6bd01778b7b79da904abe54713aaaba
2020-11-28 18:12:02 +01:00
PIPIPIG233666
86032a20b5
davinci: fod: Add support for Xiaomi's touchfeature
Change-Id: I15a4a3d777d784abe04e88372647fc9abff78626
Signed-off-by: Arian <arian.kulmer@web.de>
2020-10-13 18:25:13 +02:00
Demon000
86826edb8d
davinci: fod: Set nit value on sysfs notification
Change-Id: I78069d10677c6704b0bb080ecf76ecbbfd0b2212
2020-10-13 18:25:13 +02:00
Demon000
95126a384e
davinci: fod: Switch to in-kernel handling of changes
Change-Id: I242a57b42bb455835bbc0777878a93bca6b986e7
2020-10-13 18:25:13 +02:00
Bruno Martins
bcc47bc18f
davinci: Implement SunlightEnhancement LiveDisplay HAL
Change-Id: I17b0215ad78d86989c146291552c5e6e7b6a689d
2020-10-13 18:24:30 +02:00
Nvertigo
6156c1202c
davinci: sepolicy: Fix OTA auto-flashing with encrypted f2fs.
If userdata is on f2fs and encrypted (stock config for userdata),
  /cache/recovery/block.map is not created due to this denial:

  05-01 13:43:47.512  6538  6538 W uncrypt : type=1400 audit(0.0:10): avc: denied { sys_admin } for capability=21 scontext=u:r:uncrypt:s0 tcontext=u:r:uncrypt:s0 tclass=capability permissive=0

  Without block.map the automatic flashing of the OTA without user
  interaction fails, and the user needs to manually mount data, and
  flash the OTA manually.

Change-Id: I6ecb84e8b730d4c641a8bd8769043dfbfb817b83
2020-10-10 21:43:31 +02:00
Arian
28af42ef6e
davinci: sepolicy: Label properties to avoid denials
Change-Id: Id07b6977e6ef19bd2c9d6867e06073c8364c57d3
2020-10-10 21:43:31 +02:00
Michael Bestas
51b7479a3d
davinci: sepolicy: Silence harmless QCOM denials
Change-Id: Iad1e2c0e654a4a46da76a57ece63dc4f35761d50
2020-10-10 21:43:31 +02:00
Arian
c41825b8c2
davinci: sepolicy: Label hwc and hwversion properties
Change-Id: I2c433eb307d63e0ca8fa4e4da664c649cdd0c4c2
2020-10-10 21:43:31 +02:00
Demon000
a4562cf819
davinci: sepolicy: Label property used by ril
Change-Id: I05e3a823cdfbbd995791769ea3774ebd064f6f12
2020-10-10 21:43:31 +02:00
Demon000
50625df1c3
davinci: sepolicy: Label manufacturer prop used by camera hal
Big brained Xiaomi checks if this device is a Xiaomi device before
giving access to auxiliary cameras.

Change-Id: Ife6587148824cd6b68e634ca0b999d4f380b20ce
2020-10-10 21:43:31 +02:00
Arian
f73820a339
davinci: sepolicy: Add motor rules
Change-Id: Ia076f82c816d0ff3ced950fcb1e2982e9ca668ff
2020-10-10 21:43:31 +02:00
Arian
fe196ce3ab
davinci: sepolicy: Allow adsprpcd to read sysfs_graphics
Change-Id: I14787d37700d6bf5d3ec34025ad67a66e5060222
2020-10-10 21:43:31 +02:00
Arian
68573e21ac
davinci: sepolicy: Allow power hal to write to input event
Change-Id: I003620c57059e0916c95ff9d025f4d668082b2c5
2020-10-10 21:43:31 +02:00
Arian
8abb2a34a1
davinci: sepolicy: Allow bluetooth HAL to read the mac address
Change-Id: I2e1a7c635ce8a5eedb1e4ec6cd55d31705ee47d3
2020-10-10 21:43:31 +02:00
Arian
264db02b15
davinci: sepolicy: Allow sensors HAL to set persist sensors properties
Change-Id: Ie1ed422961f922f1239f10eb2e752106cf3f7778
2020-10-10 21:43:31 +02:00
Demon000
566fe95ed5
davinci: sepolicy: Add sensors rules
Change-Id: I1e52fc7e35f4517c80cfc6ddc819d2b585ae7238
2020-10-10 21:43:31 +02:00
Demon000
a17f9fcea7
davinci: sepolicy: Create mi_thermald sepolicy
Change-Id: I0848568bd68c51a981273ead7e103703ff31393f
2020-10-10 21:43:31 +02:00
Demon000
11e6180f9b
davinci: sepolicy: Give NFC full access to NFC data files
Change-Id: I7a1dfea2e99a875eed5bc501db2175cb4955b90c
2020-10-10 21:43:31 +02:00
Demon000
279eba00ff
davinci: sepolicy: Allow radio to read vendor audio prop
Change-Id: Ibb6e15b51c6a06761bc7e534ff8eb3a70fba8321
2020-10-10 21:43:31 +02:00
Demon000
6ce7df4ba6
davinci: sepolicy: Add fingerprint rules
Change-Id: Id8b275e2d8666799eb1529cc66bc1d386710d3a4
2020-10-10 21:43:31 +02:00