Commit graph

1000 commits

Author SHA1 Message Date
LuK1337
1a1d988411 dre: Switch to common device_framework_matrix.xml
Change-Id: Idc99a59a377bb3284634a62c0a1ae545bcd4e1e2
2024-08-29 13:44:45 -05:00
LuK1337
952a90ce17 dre: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.
 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2024-08-24 21:15:25 -05:00
Yumi Yukimura
c55f76d555 dre: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5
2024-08-22 18:01:06 -05:00
George Chang
2a4dfa5de9 Switch NFC from HIDL to AIDL
Bug: 216290344
Test: atest NfcNciInstrumentationTests
Test: atest VtsAidlHalNfcTargetTest
Merged-In: I33d07604e87a2d9466a3a857e281ee4b611330a8
Change-Id: I33d07604e87a2d9466a3a857e281ee4b611330a8
2024-08-22 18:00:58 -05:00
Bruno Martins
e2db1ff35b dre: Convert packages disallowed to use aux cameras to prop
Change-Id: I02a4711bfb5f4cebf87d6f2d8a02f47f00c2d62f
2024-08-22 17:59:41 -05:00
Albert Tang
dd72fc6451 dre: Update from OOS 11.C.33
Change-Id: Id444227ff609885d4757e80cc6bcc7a425b0c8e7
2024-08-20 11:17:36 -05:00
Suren Baghdasaryan
c747af4dc8 dre: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Change-Id: I12fe7186af1ee5db6f19d485987e78ae0792c606
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2024-08-19 17:12:23 -05:00
Michael Bestas
d62372d358 dre: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
2024-08-19 17:12:23 -05:00
Jprimero15
6509c10017 dre: Add Natural and Boosted Color Modes
Change-Id: I934d5932d640f84d63871bb40d0836f68af0c389
2024-08-19 17:12:23 -05:00
LuK1337
da8871005f dre: Build erofs odm, vendor and vendor_dlkm images
Making these partitions erofs saves ~674MB, which lets us reserve
significantly more space on /product.

Change-Id: I88984f6137c0bc9f01da742a7a485445c2162157
2024-08-19 17:12:23 -05:00
LuK1337
e14a490f4a dre: Patch configs to drop NFC logging levels
Co-authored-by: Georg Veichtlbauer <georg@vware.at>
Change-Id: I42bcd622dea35dd69f4fc6bb72a4767ca69af5c3
2024-08-19 17:12:23 -05:00
Georg Veichtlbauer
f77ae41e15 dre: Convert ADSP AVS config symlink to install_symlink target
Change-Id: I058d05bbed239cc07a6e3094adb37422ce44716e
2024-08-19 17:12:23 -05:00
Paul Crowley
d8c4a9a0e5 dre: Remove wait_for_keymaster and all references
No longer needed now init listens for property changes on a
separate thread.

Bug: 186580823
Test: Cuttlefish boots successfully
Change-Id: Ief3a546d2154231d18957c2f703bd128966d7288
2024-08-19 17:12:23 -05:00
basamaryan
55045b7e42 dre: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-08-19 17:12:23 -05:00
Bruno Martins
3a3034953e dre: Unset BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qualcomm targets can now build hermetic partitions.

Change-Id: I241105e01d85fea983b34846ca675666ac07541b
2024-07-16 00:53:25 -05:00
Nolen Johnson
9fd9918f3d dre: overlay-lineage: Drop default HardwareKeys overlay
Change-Id: I0b11c55b159f8b04b2cae526ffb1b144cbaaa897
2024-07-12 10:54:03 -05:00
Bruno Martins
2c57242638 dre: Declare EGL libs as symlinks during extraction
Change-Id: I4b2f3e79b5e518889d9771bf8990e27babca8b61
2024-07-12 10:54:03 -05:00
Bruno Martins
3ee0c84ab0 dre: Mark CNE symlink target as required package
Change-Id: I0bfe65ba61b6aa9916fe6459be2a84d772939a2f
2024-07-12 10:54:03 -05:00
Bruno Martins
bb9e49c038 dre: Declare IMS libs as symlinks during extraction
Change-Id: Ia1b8097d28dd4888232fe383b830515b1b9bafaa
2024-07-12 10:54:03 -05:00
Bruno Martins
871f99d6c7 dre: Convert WiFi firmware symlinks to install_symlink targets
The last bit that was preventing building hermetic images.

Change-Id: I75bb7de4593a7992f6015317cf97e088beeba0cb
2024-07-12 10:53:51 -05:00
Bruno Martins
7620c53bcf dre: Move to new RFS install_symlink targets
Change-Id: I9560fd0da00958d9349a0881b5a5f64a2c02e495
2024-07-11 11:21:34 -05:00
Michael Bestas
e9f6f8d910 dre: Drop COMMON_LUNCH_CHOICES
As of 14 QPR2 this is broken, let's remove it instead of updating it
every 3 months. breakfast is the way to go.

Change-Id: I097bd54b894d9a49c7ce8b1ab6f343349e268fd8
2024-07-11 11:17:39 -05:00
Albert Tang
b84af64fcc dre: Update from OOS 11.C.32
Change-Id: I0f0e48bc8fa29ac439515126e0f7d7652ec71983
2024-06-21 12:00:16 -05:00
Michael Bestas
5f2f434c6f dre: overlay: Enable battery cycle count
Change-Id: I92bc8363e1c9e2ad54c29a0a30dce992e25f697d
2024-06-21 11:59:54 -05:00
Michael Bestas
0b9a253868 dre: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-06-21 11:59:43 -05:00
Chirayu Desai
4c5783bf01 dre: Disable UFFD GC
Unable to determine UFFD GC flag for kernel version "5.4.268-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true" or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03
2024-06-21 11:59:43 -05:00
Chirayu Desai
bb1d8db952 dre: Don't set BOARD_API_LEVEL
build/make/core/board_config.mk:1001: error: BOARD_API_LEVEL must not
set manully. The build system automatically sets this value..

Change-Id: If59ae9dea6cb13701d7217a1c0a355d4e07113eb
2024-06-21 11:59:43 -05:00
Albert Tang
a998c0b181 dre: Update from OOS 11.C.31
No security patch update this time.

Change-Id: I0eba8582f5fda0c4e28bebd643e3579471ac812c
2024-05-22 10:28:46 -05:00
Albert Tang
77cc831c25 dre: Update from OOS 11.C.30
Change-Id: I3ea70c166bd78801a04a59ad453f14c6ddb45475
2024-05-09 19:46:41 -05:00
Jake Weinstein
57906249ee dre: Do not balance msm_drm and kgsl_3d0 IRQs
These are critical for display performance and should not be balanced
in order to improve latency and responsiveness.

And also affine them.

Change-Id: If49ecb8757d133a7fad0d7946837b35403e57c2a
2024-04-30 11:27:50 -05:00
Bruno Martins
adef2d52a3 dre: Use the common device compatibility matrix from QCOM
Change-Id: I0c0f3ecddbe6d7b232cc0d13c78ca58094e4e720
2024-04-30 11:20:01 -05:00
Alessio Balsini
2558113d92 dre: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2024-04-30 11:18:45 -05:00
Cole Faust
509171b097 dre: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-04-17 10:31:27 -05:00
Albert Tang
f8c1356f3b dre: Import missing Perf LM libraries
Change-Id: If159e211e93016b5fb79dba9cb9109ebe13e8e0a
2024-03-17 11:27:44 -05:00
Albert Tang
7de03cce19 dre: Update from OOS 11.C.29
Change-Id: I3d4dfe3257bc5d39a0b4f381571640ff856a02d3
2024-02-24 21:42:55 -06:00
Albert Tang
cef33f952e dre: Don't store media config files locally
Change-Id: Ieb27d0c570aa2888038b4ac0cc69559ff6c8c8e7
2024-02-06 13:09:56 -06:00
Georg Veichtlbauer
29bd1b8cd2 dre: Inherit generic overlays from OPlus
Change-Id: I7ecb6c9ea6636450076918bef6dce9986342ae3e
2023-12-30 21:13:27 -06:00
Josh Wu
dcb1867a5a dre: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2023-12-30 21:13:27 -06:00
Michael Bestas
b85828b4cf dre: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2023-12-18 10:00:26 -06:00
Suren Baghdasaryan
9865abc0e6 dre: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2023-12-18 10:00:26 -06:00
Bruno Martins
330a07a092 dre: overlay: Remove obsolete config_keyboardTapVibePattern
Change-Id: Ic89566183d2cdc4a20ea83f462c56a14184621ae
2023-12-18 10:00:26 -06:00
Rick Yiu
d71c9fb394 dre: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2023-12-18 10:00:26 -06:00
Sebastiano Barezzi
0d96dca686 dre: Keep building health HIDL interface lib in vendor
* GNSS HAL needs it

Change-Id: Id2e1b2844d195d41fc67a0224e0dc39573f7702e
2023-12-18 10:00:26 -06:00
Bruno Martins
fa5ed0b1cf dre: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2023-12-18 10:00:26 -06:00
Kamal Wadhwa
a9cc222504 Remove charger service restart and modem partition mount calls for HOLI
Holi supports linux based charging and not via ADSP,
hence remove the modem partition mount logic.
This improves the entry time into power-off charging mode.

Change-Id: I69337e773f6078bc0847b7db199fc21e8c975a8a
2023-12-18 10:00:26 -06:00
basamaryan
1e0021ccc9 dre: Build libprotobuf-cpp-full-3.9.1-vendorcompat
For now this is implicitly built by lineage specific
libprotobuf-cpp-lite-3.9.1-vendorcompat lib, but in the future this
might not be the case.

Change-Id: I724e933e046cbf631c078321d55550b96ca998da
2023-12-18 10:00:26 -06:00
Bruno Martins
44a6bcdd3e dre: Migrate to restructured sepolicy_vndr
The new folder structure now looks like this:

  device/qcom/sepolicy_vndr
  ├─ legacy-um (meant for sdm845 until sm8350)
  ├─ sm8450
  └─ sm8550

SEPolicy.mk placed in the root automatically redirects devices to the
proper subfolder.

Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d
2023-12-18 10:00:26 -06:00
LuK1337
ff6a34afe0 dre: Update libstdc++.vendor target name
Change-Id: I9fb48d50df7b8b74d19bfb05b3d9c2ca169bf3e2
2023-12-18 10:00:26 -06:00
LuK1337
9725e4fb45 dre: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2023-12-18 10:00:26 -06:00
Gabriel Biren
91c1031176 dre: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-12-18 10:00:26 -06:00