78 Commits

Author SHA1 Message Date
Joey Huab
0d8bb72a4d pyxis: Set status_bar_header_height_keyguard to status_bar_height_default value 2025-01-27 01:44:37 +09:00
Rodney Etienne
a65dfa39af pyxis: fix up dependencies 2024-10-16 16:07:34 -04:00
Rodney Etienne
a7be9126f4 pyxis: fix path to bcr 2024-07-11 19:19:49 -04:00
Rodney Etienne
9a434df6ac Pyxis:Disable Smart Pixels on UDFPS
With SmartPixels enabled, UDFPS does not work well.
 The higher the percentage of pixels to be disabled,
 the worse UDFPS works.

 Fix this by disabling SmartPixels when UDFPS is working.
2024-06-06 15:47:35 -04:00
Rodney Etienne
b82ac7d6b9 Pyxis: Enable 60 fps video in aperture 2024-06-05 21:14:24 -04:00
Rodney Etienne
42dd1da2b2 pyxis: Initialize for Evolution X 9.x 2024-05-16 20:55:58 -04:00
RODNEY ETIENNE
1cefe54ba3 pyxis: Initialize for Evolution X 9.x 2024-05-09 16:28:09 -04:00
RODNEY ETIENNE
faf2691aa2 pyxis: Correct Copyright 2024-04-22 10:05:57 -04:00
RODNEY ETIENNE
1219c6881f pyxis: Bring up for Evo X A14 2024-04-21 18:39:10 -04:00
Ivan Vecera
159d335d0c pyxis: Adjust BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE
Many pyxis users flashes stock camera that has to be placed in system partition.
After I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89 the partition is too small.

Change-Id: Id75b04f5b778a60ed01e7f6def87442dee193869
2024-04-13 18:04:25 +02:00
Ivan Vecera
b9e958318a pyxis: Build and use TAS2562 audio amplifier HAL
Change-Id: I9d15020c0ac4725d2cd4a3cc39c9feac64437654
2024-03-04 17:20:41 +01:00
Ivan Vecera
28834f085e pyxis: Switch to OSS audio HAL
With previous changes to audio configuration we are able to switch
to OSS audio HAL. TAS2562 amplifier HAL enablement is covered by
subsequent patch.

Change-Id: Ic78e05f809c12cfeeefd59ec5156455a955a61e0
2024-03-04 17:19:49 +01:00
Ivan Vecera
2ca662713b pyxis: audio: Remove unused mixer path overlays
Change-Id: I0b031b095d391ee69fc7ffc3e167c5c525150815
2024-03-01 19:01:17 +01:00
Ivan Vecera
6134079652 pyxis: audio: Add dummy hph-*-mode paths
Add dummy mixer paths for hph-highquality-mode and hph-lowpower-mode
to avoid errors like:
E audio_route: unable to find path 'hph-lowpower-mode'
E audio_route: unable to find path 'hph-highquality-mode'

Change-Id: Id78ad0ff317d10295bf1650e11fd99eb3910be2a
2024-02-29 12:45:11 +01:00
Arian
8227e98d3c pyxis: audio: Add handset backend
Change-Id: Ia9653281b88fb7cfff878665dec7649bf7d37735
2024-02-29 12:45:11 +01:00
Ivan Vecera
e5e07326b1 pyxis: audio: Apply cleaned Xiaomi changes to audio mixer paths
Changes coming from stock mixer_paths_mtp.xml and
mixer_paths_overlay_static.xml

* Add initial values for PRI_MI2S mixer controls
* Use PRI_MI2S_RX instead of INT4_MI2S_RX for speaker
* Clean-up speaker paths

Change-Id: I9b07da45eebc60cfac22b4cb4ea4be21e88057c7
2024-02-29 12:45:11 +01:00
Ivan Vecera
ed82487bcd pyxis: audio: Apply cleaned Xiaomi changes to audio platform info
* Update ACDB IDs for devices
* Change interface for SPEAKER from INT4_MI2S_RX to PRI_MI2S
* Change interface for HANDSET from INT4_MI2S_RX to INT0_MI2S_RX
* Skip changes not supported in OSS audio HAL

Change-Id: I7494ab54756b26dfe83fc5883904a2ba1a623c8a
2024-02-29 12:45:11 +01:00
Ivan Vecera
0084eedc86 pyxis: audio: Remove references to non-existing mixer controls
These controls are not exposed on pyxis.

Change-Id: I9ca75fbff2489327e52574c913067e0008946d5c
2024-02-29 12:45:11 +01:00
Ivan Vecera
7b9afeadfa pyxis: audio: Fix typo in mmap-record path
Resolves:
W audio_route: Control 'MultiMedia16 Mixer INT3_MI2S_TX ' doesn't exist - skipping

Fixes: 62bf5e0c9 ("configs: add support for MMAP IRQ mode streams")
Change-Id: I6109d8f2aa1625a2af9ee3e713cced04dd35da8f
2024-02-29 12:45:11 +01:00
Ivan Vecera
6f2a82c818 pyxis: audio: Remove duplicated mixer paths
Fixes: f8f6a0ca5 ("configs: Add mixer controls for call screen support")
Change-Id: If96cc6aed03ca5dc458c2cdc82beeb0df73df61e
2024-02-29 12:45:11 +01:00
Ivan Vecera
084f0e5be3 pyxis: audio: Fix mixer control name in 'audio-playback-voip display-port'
The correct control name is 'DISPLAY_PORT Mixer MultiMedia10'

Fixes: 994ecaca3 ("configs: sdm670: add support for VoIP over audio path in sdm670")
Change-Id: I0f3a439b45abaca07c946c9e78c2cd0e4aafb0d0
2024-02-29 12:45:11 +01:00
Ivan Vecera
5c917591bb pyxis: audio: Fix dual-mic device names
Platform msm8974 uses SND_DEVICE_IN_{HANDSET,SPEAKER}_DMIC_STEREO
and not SND_DEVICE_IN_{HANDSET,STEREO}_STEREO_DMIC. Fix them.

Fixes: d39232d3c ("configs: Initial config files for msmpeafowl")
Change-Id: I72724747e6c51280eb86a74596471fcab038c449
2024-02-29 12:45:11 +01:00
Ivan Vecera
2609777dcc pyxis: audio: Add missing HDMI mixer paths
Add missing HDMI mixer-paths.

Resolves:
W audio_route: unable to find sub path 'deep-buffer-playback hdmi'
W audio_route: unable to find sub path 'deep-buffer-playback hdmi'
W audio_route: unable to find sub path 'low-latency-playback hdmi'
W audio_route: unable to find sub path 'low-latency-playback hdmi'
W audio_route: unable to find sub path 'audio-ull-playback hdmi'
W audio_route: unable to find sub path 'audio-ull-playback hdmi'
W audio_route: unable to find sub path 'compress-offload-playback hdmi'
W audio_route: unable to find sub path 'compress-offload-playback hdmi'
W audio_route: unable to find sub path 'compress-offload-playback2 hdmi'
W audio_route: unable to find sub path 'compress-offload-playback2 hdmi'
...
W audio_route: unable to find sub path 'compress-offload-playback8 hdmi'

Fixes: d39232d3c ("configs: Initial config files for msmpeafowl")
Change-Id: Iff62fd87b152b8faf5cb8ce9a5c3bed846841201
2024-02-29 12:45:11 +01:00
Ivan Vecera
18799ce27f pyxis: audio: Remove unused compress-offload-playback9 paths
Commit 62bf5e0c9 ("configs: add support for MMAP IRQ mode streams")
reuses PCM ID 33 for MMAP playback/record use-case but left
corresponding mixer-paths. Remove them.

Fixes: 62bf5e0c9 ("configs: add support for MMAP IRQ mode streams")
Change-Id: Ie893a87f0c6d411876db6fcc8ff2e9a86da2af23
2024-02-29 12:45:11 +01:00
Ivan Vecera
c39cb671a4 pyxis: audio: Import audio configs from LA.UM.9.8.c26-00600-SDM710.0
Change-Id: Ic3fc6370f2fdfd7ed40d0d37faa9e3ae5548d5cc
2024-02-29 12:45:11 +01:00
Sebastiano Barezzi
21e441debb pyxis: Fix indentation in extract-files.sh
Change-Id: I75ef4a01267d550c7736b4f157d77372d9a6494d
2024-02-12 15:37:50 +01:00
Omkar Chandorkar
c49cbe78ee pyxis: overlay: Move UDFPS enroll radius to settings
- required after LineageOS/android_packages_apps_Settings@af35c7c

Change-Id: I79ecd91513df0d195e1d15d20b4438d1b283743f
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-02-10 17:55:27 +01:00
Ivan Vecera
6e13e66541 pyxis: Switch to stock camera device libs
Change-Id: I6f08d85c2e4652722ce2d6d0df0c74e469030506
2024-01-31 16:44:07 +01:00
Ivan Vecera
64e72dc99e pyxis: Add panel property
Fingerprint HAL looks for sys.panel.touch_vendor:
E [GF_HAL][ExtModuleCreator]: Failed to getprop sys.panel.touch_vendor

On stock ROM this property is set by init.panel_info.sh which is not
shipped. But on Pyxis the value is always '3' so we can add it
statically into system.prop.

Change-Id: I9a70656f2b410d622976abb72e324aa3333aa390
2024-01-22 12:33:41 +01:00
Ivan Vecera
cb1a92db21 pyxis: Use custom image for udfps pressed icon
Custom icon for udfps pressed state extracted from stock ROM
provides much more reliable enrollment as well as authentication
itself.

Change-Id: I3d4089bd6b230ba8f53a8a14f4906b02a4799f90
2023-03-12 15:06:48 +01:00
Mike Ma
64d3b58e44 pyxis: overlay: Power profile audio & video support
Add power consumed by audio and video hardware to power profile.
Attribute these power to specific app.
Bug: 70531798
Test: PowerProfileTest
Test: BatteryStatsHelperTest
Test: PowerCalculatorTest

Change-Id: I4811efa14ce97983258cd59bfd328181fe95baf4
2023-02-20 15:59:22 +01:00
Ivan Vecera
ffd6ff2854 pyxis: Remove unneeded camera libraries
Remove 64bit variants of camera libraries that are used only
by camera HAL.

Change-Id: I2d976faf330eaff85d7051b05640c566bfb49cfc
2023-02-03 18:01:58 +01:00
Ivan Vecera
0fbbcf81e0 pyxis: Update build fingerprint
Change-Id: I72c6607e61e29325ecbeed2a499f2a42168e4e12
2023-02-03 13:10:53 +01:00
Ivan Vecera
7475ac8c2f pyxis: Update blobs from V12.5.3.0.RFCEUXM
Change-Id: I305ee9158296bc1d6405bd19c6061891228ab90a
2023-01-26 15:23:58 +01:00
Ivan Vecera
df34ea5a64 pyxis: Force build scudo free 32 bit variant of libc
After playing with gcam port, stream configurations for certain
modes I found that camera blobs are not compatible with scudo and
such usage leads to crashes of camera provider like [1].
Switch to scudo-free libc variant resolves this issues. As the
camera blobs are 32bit it is not needed to switch to scudo-free
libc system wide.

[1] https://pastebin.com/W5shnvEM

Change-Id: I5465b79b8c009550cd8a78666c86c5b4d0b242ae
2023-01-16 13:10:17 +01:00
Ivan Vecera
b7b32d5734 pyxis: Fix adding missing properties
Commit 13d9cc5 ("pyxis: Add missing camera properties") added missing
camera properties but the new system.prop file wasn't added to
BoardConfig.mk.

Change-Id: I30f90a4a792572ad48cf52b253b93eccae3b2c15
2023-01-12 08:20:06 +01:00
Ivan Vecera
fb2870c1b3 pyxis: Allow an user to customize notification LED colors
Mi 9 Lite has RGB notification LED but an user is not allowed to configure
custom colors due to absence of flags LIGHTS_RGB_NOTIFICATION_LED and
LIGHTS_RGB_BATTERY_LED in config_deviceLightCapabilities.
Add these flags to fix this issue.

Tested: Manually in Settings
Change-Id: Ieb1c4c88be01cf294d1e8b5ff0b8a59e32623269
2023-01-02 09:54:10 +01:00
LuK1337
08347da256 pyxis: overlay-lineage: Configure aux camera for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
2022-12-30 18:46:26 +01:00
Alexander Koskovich
d8978d4156 pyxis: Set USB product string to 'Xiaomi Mi 9 Lite'
Change-Id: Idda062aaa38e16d7ba65356dbca8b467fbff14c1
2022-12-25 18:20:08 +01:00
David Su
be16f6b69a pyxis: Don't sign Wifi RROs with platform cert
Preinstalled overlays needn't be signed with the same cert
as the package it overlays, simply being preinstalled is
enough. Sign with the default cert instead for now, which
provides fewer special privileges.

Bug: 162195999
Test: verify values still overlaid correctly
Change-Id: I017491fd383551c5aadf8648edb900e0c12a27b8
2022-12-25 18:20:08 +01:00
Glen Kuhne
3a9be83783 pyxis: Set default hotspot ssid
Added a device specific overlay that changes the default name
from "AndroidAp" to customized name

Test: Builds, manually verified name change
Bug: 36368950
Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf
2022-12-25 18:20:03 +01:00
LuK1337
f11717101a pyxis: Set a default Settings.Global.DEVICE_NAME
Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2022-11-16 11:32:20 +01:00
Sal Savage
0e1c95ec68 pyxis: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
2022-11-16 11:31:31 +01:00
Bruno Martins
19f4454651 pyxis: overlay: Set BT controller voltage in the power profile
This was usually set in frameworks/base, but the overlay has been
deprecated in Android 13.

Change-Id: Ie1dc66c34e562179003e6294241bd5900859248a
2022-11-16 11:30:22 +01:00
Ivan Vecera
5226c650e4 pyxis: Allow stock camera to skip stream size check
Necessary to take photos in 48MP mode. See [1]

[1] https://review.lineageos.org/q/topic:twelve-camera-privapp

Change-Id: I112506ac96d21eef206198553bdf9a21afdf50ff
2022-10-13 15:33:24 +02:00
Ivan Vecera
01b288db69 pyxis: Add stock camera provider
Stock legacy camera provider remaps auxilliary camera ids according
their purpose (ultrawide, bokeh, virtual processing...). These ids
are used by stock camera app to implement special camera modes and
features.

Tested: Using stock camera, built-in default camera and open camera
Change-Id: I4938db5906047c15cc682bdd84af13e22fb54738
2022-10-13 15:18:21 +02:00
Ivan Vecera
50a920a983 pyxis: Add prebuilt protobuf from sdk29
Vendor library libswregistrationalgo.so (32bit only) is linked
against unversioned libprotobuf-cpp-full.so so ship prebuilt
protobuf from sdk29 and patch the affected library to use it.

Change-Id: Ia1016e962d9e99f2586230e77141792362cb11d4
2022-10-12 16:17:59 +02:00
Ivan Vecera
13d9cc554a pyxis: Add missing camera properties
Change-Id: I109a2ffcb2f96c524e29de1e504a46246a102def
2022-10-12 13:59:23 +02:00
Ivan Vecera
8dbeeee00c pyxis: Add missing 64bit camera libraries
Change-Id: Id5ce22e3afbe74fd108e0939e09d6e30ebf20271
2022-10-06 16:27:41 +02:00
Ivan Vecera
fe1d1a4c68 pyxis: Support UDFPS on AOD
Change-Id: If732c1fc78f6515aeaf95c2b6d8744326b25ebba
2022-09-19 19:07:56 +02:00