79 Commits

Author SHA1 Message Date
NikitaSavc
b360ce4179 sapphire: rootdir: Drop legacy init.qcom.post_boot.sh
* It's not using for 5.4/5.10/5.15 QCOM kernel family

Change-Id: I4d165a95f597df47f4d2ec07199b5dac0a347b61
Signed-off-by: NikitaSavc <micraftur@gmail.com>
2024-09-09 19:14:10 +06:00
Kelly Rossmoyer
bdd913983f sapphire: enable adaptive suspend
This CL adds build properties enabling Adaptive Suspend's short
suspend backoff with a short suspend threshold of 2 seconds and
a max backoff time of 40s.  This is the same configuration that
was deployed on the previous generation of devices.

The plan is to monitor suspend behavior, screen-off uptime,
wakeup rates, and the distribution of screen-off mA on
these devices in comparison to those same attributes on late
UDC builds, which will inform whether we ship or revert.

from https://android.googlesource.com/device/google/gs201/+/refs/heads/main/device.mk#1114

Bug: 208947015
Test: booted with a test kernel and used alarmtimer mods to
exercise high-frequency wakeup behavior

Change-Id: Icf75c4dd705050833df5e48aaf0c28afa5754adb
2024-09-08 18:50:14 +06:00
Bruno Martins
bd7dd664ac sapphire: Convert WiFi firmware symlink to install_symlink target
The last bit that was preventing building hermetic images.

Change-Id: I618780b1c10c14ab8a00a7a9135a52386d156d39
2024-09-07 22:00:58 +00:00
Bruno Martins
fad2012a6c sapphire: Move to new RFS install_symlink targets
Change-Id: I9560fd0da00958d9349a0881b5a5f64a2c02e495
2024-09-07 22:00:58 +00:00
chrisl7
3bd6820bc1 sapphire: rootdir: Configure zram 2024-09-05 17:02:25 +06:00
Adithya R
858a1ec7e9 sapphire: rootdir: Dynamically set IRQ affinity for KGSL and MSM_DRM
- Introduce a new shell script to set IRQ affinity, since different
  kernels can have different IRQ numbers.

Change-Id: I61d2350e6b40f096714148c568489579bc4d2371
Co-Authored-By: Alex Naidis <alex.naidis@paranoidandroid.co>
Co-Authored-By: Jake Weinstein <jake@aospa.co>
2024-09-05 02:03:48 +06:00
chrisl7
612ce5258c sapphire: rootdir: Add xiaomi perf changes 2024-09-05 02:03:45 +06:00
althafvly
5759b5e1b7 sapphire: Build fastcharge implementation
Change-Id: I3e6994d2c2f419dc8ce98a060204fda3dd16df81
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
2024-09-01 14:13:16 +06:00
AdarshGrewal
184a97491f sapphire: Include MiuiCamera if exists
Signed-off-by: artemscine <artempemine@gmail.com>
2024-08-31 16:41:11 +06:00
Mohammad Kibria
6dbf556de4 sapphire: sm6225-common -> sapphire 2024-08-31 16:41:11 +06:00
boedhack99
ca257cfff9 sm6225-common: Initial common device tree conversion
Change-Id: Ib858571b81c6d85b743f74a31ceb9a7d13d9af99
2024-03-08 15:05:23 +07:00
johnmart19
9bf75ece03 topaz: Compile out android.hardware.bluetooth.audio@2.0-impl and 2.1 versions
- Qualcomm Bluetooth stack was compiled to be used for android.hardware.bluetooth.audio@2.0-impl and @2.1-impl
Match appropriate environment to have correct fallbacks for system
- Also this is matching Miui stock environment
- Upstreams are good when hardware have appropriate drivers, but when it is not - don't forget to keep fallbacks.

Change-Id: If93710d01eae963220e93e7022c4492bb06ee79c
2024-02-27 20:17:32 +07:00
boedhack99
bf772acd5e topaz: Don't build QTI BT audio
Change-Id: Id301313b8947ade4084b74ba5fe6ed24e7c20045
2024-02-27 20:17:32 +07:00
boedhack99
d9b5c97ac2 topaz: audio: Import key list values configs
* why is missing in topaz,xiaomi??
* Import from sapphire V14.0.6.0.TNGMIXM
* Android 14 come with new tags bengal_515 DIVAR.QSSI14,adapt it for graph code pair

Change-Id: Iada1e52e1fb64995b94834d16a639dffb260b5fd
2024-02-27 20:17:32 +07:00
boedhack99
a871d5a508 topaz: Update mixer_paths from topaz V816.0.2.0.UMGMIXM
* reverts commits c06c3a3725.

Change-Id: I9d9092fa60c8b8085dd1a169f9a8979dd27286f2
2024-02-27 20:17:32 +07:00
boedhack99
807e30d115 Revert "topaz: update audio HIDL to v7.1"
This reverts commit c27b6a91c1.
2024-02-27 17:15:38 +07:00
boedhack99
b9b39578a0 topaz: Add bootctrl to soong namespaces
Change-Id: I2ce7707a01a5b719d1816a2c7ea82d18dc8f44b6
2024-02-27 16:55:56 +07:00
Bruno Martins
e0940b8ef4 topaz: Enable extended compress format
It's enabled in kalama platform, as observed in stock libtinycompress.

Change-Id: I3183faced679ab433ed1ce30ac7df6c7c511e476
2024-02-27 16:55:12 +07:00
boedhack99
102df3f2d8 topaz: Move some audio configs to device tree
Change-Id: Ib6a7eb4940325a0b4962529b71c19efa4bece3bd
2024-02-06 22:04:05 +07:00
boedhack99
734ff5c65e topaz: Switch to copy audio policy common from source
Change-Id: Ie703cc35e6a11f7ea34a397b54145b56045b4346
2023-12-19 16:12:42 +07:00
boedhack99
d12a1e20bc topaz: Move RIL patched to vendor blobs
Change-Id: Ie0472890720802fd8f6d8a9401991270db4282cf
2023-12-18 01:10:40 +07:00
Kumar Anurag Singh
5763f9469c topaz: configs: Update policy config
For hidl 7.0 update configs as per new schema.

Change-Id: Icf4182cfaf74ae7ea80dfb91370ea81a3ccac746
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
2023-12-16 00:21:15 +07:00
boedhack99
e8c9975b3a topaz: Build missing wifi NDK libs for prebuilt libcne
* Android 14 come with clean cc/configs/vndk.go
* Let's build now

12-15 05:50:04.823  1458  1458 F linker  : CANNOT LINK EXECUTABLE /system/vendor/bin/cnd: library android.hardware.wifi.supplicant-V1-ndk.so not found: needed by /vendor/lib64/libcne.so in namespace (default)

Change-Id: I526f0b7978cb6f9148eeceffd52bb8ed26208107
2023-12-15 10:33:24 +07:00
boedhack99
7c6f6f1733 topaz: Drop legacy usb hal gaming mode
Change-Id: I7187cee19b33270622a2cd9fa21ef0014a50d3ed
2023-12-15 00:07:57 +07:00
Bruno Martins
112b8438c0 topaz: Migrate to common data-ipa-cfg-mgr
Change-Id: I8e16b81461390eb7491fc51e604ba08a53c7d364
2023-12-14 10:09:37 +07:00
Blaster4385
ebce9615d0 topaz: Override first API level in init
*  basically the same as 7cd25ca.

Change-Id: If75fbd753ba5020b29835ace7832e9d0bfd8ad42
2023-12-12 12:18:49 +07:00
Adithya R
14a97ef288 topaz: Lower shipping API level to 31
Shipping API >=33 devices cannot pass safetynet as hardware
attestation is enforced.

Change-Id: I76e847b8aac2c9229c8f0abcbeb0d72735f9738b
2023-12-12 12:18:49 +07:00
boedhack99
559fe2d305 topaz: Switch to use prebuilt USB hals
Change-Id: I7af677b5e677a92884f118a98b475765177f809e
2023-12-12 12:17:52 +07:00
boedhack99
c1911f9bef topaz: Use stock prebuilt USB scripts
Change-Id: I96e6790f60cd02e074fa29be4a7ba0ad6da450e1
2023-12-12 12:15:51 +07:00
Dyneteve
3eb1cd8aab topaz: overlay: Import regulatory info
Check the device variant with ro.boot.hwc

Signed-off-by: ralph950412 <ralph950412@gmail.com>
2023-12-10 00:39:54 +07:00
Agatha senpai
9bdf7d35e2 topaz: overlay: Import Settings overlay from stock 2023-12-10 00:39:54 +07:00
Pranav Vashi
b199af1324 topaz: Do not build atrace HAL
Change-Id: I71b9f8055408f6ff60e40842d488b9850358720f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2023-12-04 15:47:23 +07:00
SGCMarkus
b0be438faf topaz: Add security.rkp-V3 dependency to keymint service
The symbol _ZN4aidl7android8hardware8security7keymint29IRemotelyProvisionedComponent10descriptorE
was moved from android.hardware.security.keymint-V2-ndk to android.hardware.security.rkp-V3-ndk.

Change-Id: I7f3c40e3e8a2a848cdcb73e5232952f63681aa58
2023-12-04 15:47:23 +07:00
SGCMarkus
381ae85f85 topaz: Build older NDK versions for prebuilt blobs
Change-Id: I4adffc367b1b62225bcb801338d9bbe55f92deb6
2023-12-04 15:47:17 +07:00
LuK1337
f8a4ce29eb topaz: Build android.frameworks.sensorservice@1.0.vendor
Required by mm-pp-deps.

Change-Id: Iaf821dcbb07d7820f2fc3ff5ca9cca5e973360f2
2023-12-04 08:08:02 +07:00
LuK1337
7ce6a54af5 topaz : Change to build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2023-12-04 08:05:59 +07:00
Gabriel Biren
e8950916fe topaz: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-12-04 08:02:19 +07:00
Arvind Kumar
ffcf5d5ec4 topaz: Change fastboot hal version to 1.1
Updated the fastboot HAL to be using 1.1 for bengal_515.

Change-Id: I86d024446f5519b1d2a805f7509d2458784c25b3
2023-12-03 15:40:57 +07:00
Arvind Kumar
8f274a7254 topaz: Build default implementation of fastboot HAL
Change-Id: I747b71d373129ca1b4b4bef0c433b42f76065536
2023-12-03 15:40:47 +07:00
Sebastiano Barezzi
ccb5f61e70 topaz: Build fastbootd
Change-Id: I7d23da657e7c6220c9cc3f80734884c204f5212a
2023-12-03 15:35:11 +07:00
chrisl7
814250fa40 topaz: Switch to prebuilt fingeprint service
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Change-Id: I3f0ac432b47fefefcb4de2a7c7f09f641c006b47
2023-12-03 01:19:20 +07:00
SGCMarkus
c7e12ab785 topaz: set product characteristics to nosdcard
Change-Id: Ief0e9d2ced9ebc7fc90300be697dd98c81ea5a48
2023-12-03 00:03:46 +07:00
boedhack99
5cd1aee6aa topaz: Switch to use prebuilt audio
* This reverts commit:
  [1] cbb10a1: topaz: Build source libagmmixer.so
  [2] 60d57be: topaz: Cleanup 32bit blobs
  [3] f8d814b: topaz: Enable extended compress format
  [4] 4e528d3: topaz: Move to build default source audio
  [5] a0902ee: topaz: Move most agm and pal targets to source built

Change-Id: I52025b933c60d4d16960f7dd45ebf0d294411e1e
2023-12-03 00:03:46 +07:00
boedhack99
a1c0fc607f topaz: audio: Move some audio configs to vendor proprietary
Change-Id: Ie547fccb2fa066d032fc6d95ce6d34c63cb54369
2023-12-03 00:03:46 +07:00
YuKongA
54ecfa40e0 topaz: Drop qti-telephony-common.jar patch
Well, there's no way I can fix it easily, so let's throw it away for now.

Change-Id: I8092596720cb7953d6535fb064b391564b9688ea
2023-12-02 17:01:06 +07:00
boedhack99
bb1d9607d6 topaz: ril: Rename Ims => ims
* Follow as stock system_ext/priv-app/ims/ims.apk

Change-Id: I5c56a6fecb3faa239cd5edaed85822f1fa372334
2023-12-02 17:01:06 +07:00
YuKongA
64a28a0726 topaz: Add patch Ims and QtiTelephony apk
* Also import patched qti-telephony-common.jar
* From marble MIUI V14.0.19.0.TRMCNXM

Change-Id: I5d5024e86af644b648795a22804da5617b73643c
2023-12-02 17:01:05 +07:00
chrisl7
c7e0e07729 topaz: Build our override healthd-ext hal and label this
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Change-Id: I0538ca5cedf4661785dfd03bd8034df021593d6f
2023-12-02 17:01:05 +07:00
boedhack99
cbb10a1068 topaz: Build source libagmmixer.so
Change-Id: Iace17ce337030ac2d413bb1d4f495fe2b4cb0d45
2023-12-02 17:01:05 +07:00
Marco Zanin
c27b6a91c1 topaz: update audio HIDL to v7.1
hwservicemanager: getTransport: Cannot find entry android.hardware.audio@7.1::IDevicesFactory/default in either framework or device VINTF manifest.

Signed-off-by: Marco Zanin <mrczn.bb@gmail.com>
Change-Id: I5f099eff5b2842eaf8eb02f42b190236d0047747
2023-12-02 17:01:05 +07:00