Commit Graph

241 Commits

Author SHA1 Message Date
Demon000
95126a384e
davinci: fod: Switch to in-kernel handling of changes
Change-Id: I242a57b42bb455835bbc0777878a93bca6b986e7
2020-10-13 18:25:13 +02:00
Patrick Tjin
d24f1a797c
davinci: Add nosdcard characteristic to device
Bug: 30895189
Change-Id: Ic2e040dc8d811ca84c910d42f6f7db35526802ff
2020-10-13 18:25:13 +02:00
Michael Bestas
9313cc0a61
davinci: Remove android.hidl.base@1.0 shims
* Patch the 2 remaining blobs that depend on it.
* They already need libhidltransport.so so there's
  no real need for the shims anymore.

Change-Id: I00f185fd4d1d8798893cf82abf9d64fcb68c3301
2020-10-13 18:25:13 +02:00
Arian
f31e4ef583
davinci: Define vendor security patch level
Change-Id: If74e5a645a24cf4312056a07cf662018b1f5a37c
2020-10-13 18:25:13 +02:00
Joey
e551c833be
davinci: Build Trust HAL
Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df
Signed-off-by: Joey <joey@lineageos.org>
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
Arian
5de047f6e9
davinci: Build livedisplay
Change-Id: I6ca5443d061fe4139b0bab07a5ee1ba2a77e8de9
2020-10-10 21:43:31 +02:00
Fabian Leutenegger
d376352a80
davinci: Add assert for davinci & davinciin
Change-Id: Ibd97c7a9a790c9bf757e8cd34eb01fa2f43752b6
2020-10-10 21:43:31 +02:00
Arian
c5bf912891
davinci: init: Use variables for the region specific properties
Change-Id: I67df78d83007f872fd22c9b177e82234ef494523
2020-10-10 21:43:31 +02:00
Arian
3e024ca758
davinci: init: Always set the ro.build props
* ro.build. properties are set at runtime if not set
  already (after libinit runs) in android 10 hence
  ro.build.fingerprint wasn't set since the prop did
  not contain a value while libinit ran.

Change-Id: I213c4c2c730c294c42a5d4db70359e7b49d7947e
2020-10-10 21:43:31 +02:00
LuK1337
68956aa31a
davinci: init: Override everything ^.^
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I8b617e57ef5345cb55e697c29a63c036512ed0af
2020-10-10 21:43:31 +02:00
AbhiShek Aggarwal
cce805e116
davinci: Add custom init to set proper variants
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I04f09a14cf41c89b3135c53e3089d5c3e703aae0
2020-10-10 21:43:31 +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
22ecf03acd
davinci: Switch to enforcing
Change-Id: Id959ed770c96e63146b0009c4065b8b1b2d3513c
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
Demon000
56783f283f
davinci: sepolicy: Label used camera props
Change-Id: Icf0f65f3a03323f38e4c6a954c508b894440b609
2020-10-10 21:43:31 +02:00
Demon000
bed948fb95
davinci: sepolicy: Add camera rules
Change-Id: Ifade6b81926206a8e7ab0ae0ff8d8dc657de294e
2020-10-10 21:43:31 +02:00
Demon000
167d382728
davinci: sepolicy: Add audio rules
Change-Id: I5da3edd3525831412d5eec131dcfa02dc88053ab
2020-10-10 21:43:31 +02:00
Demon000
a9d5dfade7
davinci: sepolicy: Allow nv_mac to create mac files
Change-Id: Ia7ed6c06d3ba4e2b3205c860dd57ac24026f96f8
2020-10-10 21:43:31 +02:00
Demon000
f4d2442601
davinci: sepolicy: Label nv_mac
Change-Id: I866c90cd4c248a04ced3d8f48438076827b7af9c
2020-10-10 21:43:31 +02:00
Arian
83c32c77e0
davinci: sepolicy: Label lights HAL
Change-Id: I92198544629ac299e1c753825d15e224fb76cceb
2020-10-10 21:43:30 +02:00
Arian
942836a618
davinci: Include local sepolicy
Change-Id: I3d2143498837970a01e2a288e3dbae152d4135fb
2020-10-10 21:43:16 +02:00
Demon000
5129977612
davinci: rootdir: Remove sleep_disabled switch during boot
Change-Id: I59f5f96e5aaf381f9cb2b3697983484ec3086aea
2020-08-06 21:28:09 +02:00
Demon000
32489ca7d2
davinci: rootdir: Cleanup qcom post boot script
Change-Id: Icd291176eef59d30856a3bb8755f79d294a060c6
2020-08-06 21:28:09 +02:00
Arian
f1260fc759
davinci: rootdir: Cleanup init.qcom.sh
* Only keep modem config copy

Change-Id: I5fe0ee43ea5c27b8903a8236a1a528a7f5ab784d
2020-08-06 21:28:09 +02:00
Arian
aa57d3d050
davinci: Add init.recovery.qcom.rc
Change-Id: Ib6904420afbb15f81b6a238225f75165d1f09257
2020-08-06 21:28:09 +02:00
Wang Han
3eefee6e89
davinci: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2020-08-06 21:28:09 +02:00
Arian
bf9b868b7f
davinci: rootdir: Cleanup ueventd.rc
Change-Id: I82f91760460dc00610a654a0f2a9e4bfcaafa96f
2020-08-06 21:28:09 +02:00
Demon000
cce942315f
davinci: rootdir: Cleanup init.qcom.usb.rc
Change-Id: If34bb86511ba660d095586f311690f24250b1f7d
2020-08-06 21:28:09 +02:00
TheScarastic
f3f6c69d93
davinci: rootdir: Set default thermal mode to evaluation
Change-Id: I4f08455abbb3391d46f10a3821a3699e82947e74
2020-08-06 21:28:09 +02:00
Hai Shalom
76b173c3c7
davinci: rootdir: Add supplicant 1.2 to init.qcom.rc
Add missing supplicant 1.2 to init.qcom.rc to davinci project.

Bug: 129693419
Test: lshal
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host
Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
2020-08-06 21:28:09 +02:00
LuK1337
66573bbfea
davinci: Drop SSR blobs and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2020-08-06 21:28:09 +02:00
Demon000
1a7135d93a
davinci: rootdir: Cleanup init.qcom.rc
Change-Id: I075233b71275788fd398c1046765445470b8ee06
2020-08-06 21:28:09 +02:00
Arian
25be117b7b
davinci: rootdir: Import camera motor to init.target.rc
Change-Id: I0190d6b2127c8c52cb079cbd3a5ec772dc9a2fc8
2020-08-06 21:28:09 +02:00
Demon000
1fce149484
davinci: rootdir: Remove unused panel info script
Change-Id: I5d6e076002829c16b17bce6c0acc7687e71aa43d
2020-08-06 21:28:09 +02:00
Arian
b89ad972ad
davinci: rootdir: Cleanup on charger
* Don't enable adb
* Actually mount persist
* Don't split on charger to init.qcom.rc and init.target.rc

Change-Id: Ia4d6d1e417056a6b87358e384bd7a0bedcca1d63
2020-08-06 21:28:09 +02:00