Commit Graph

58 Commits

Author SHA1 Message Date
Arian
727405d31d
sm6150-common: parts: Implement doze modes and auto brightness
Change-Id: I03888d1997b09cb539952dfed935a7ace5e3444c
2021-07-03 21:23:14 +02:00
Arian
8cf1d5dda3
sm6150-common: power: Use xiaomi-touch to handle dt2w
Change-Id: I73f95e32daf9e2c702662ac2c2c8182e6b8eb214
2021-06-25 19:22:00 +02:00
Arian
cf3b3272ae
davinci: sepolicy: Label idle_state sysfs nodes
Change-Id: Iad52c65df63f858c0019155d47ccbb1ee46b5984
2021-06-25 12:31:35 +02:00
Arian
c1baef0dd8
sm6150-common: sepolicy: Address power HAL denials
Change-Id: I7327bd54c0d12fde03472695a5598d2a3d22f716
2021-06-21 23:43:39 +02:00
Arian
3d1697d76f
sm6150-common: rootdir: Enable PowerHAL hint processing
Change-Id: I4de6ec81eaf002c094df53ff26ed24db02972dfe
2021-06-21 23:43:39 +02:00
Bruno Martins
7e0b1d8983
sm6150-common: Migrate to Xiaomi power HAL AIDL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2021-06-21 23:43:14 +02:00
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
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
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