Commit graph

581 commits

Author SHA1 Message Date
Kunlei Zhang
d47fe32f67 sm8350-common: Add feature support to set power mode for voice call
Add support to set power mode for voice call

Change-Id: I052f094c62a25cd75da3c7cca172b85a4f46ced4
2021-06-01 23:23:38 +01:00
dianlujitao
a3a36f3a02 sm8350-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
2021-06-01 23:23:38 +01:00
Lokesh Gidra
c0ab297b6f sm8350-common: Use 6GB dalvik-heap config
We are currently using 2GB dalvik-heap config.

Bug: 145823510
Test: MPTS
Change-Id: I086d4a5c09634c3c7bd51ec5d08dcaa1551511b4
2021-06-01 23:23:38 +01:00
LuK1337
aade89e9d0 sm8350-common: Switch MDM remote fs symlinks to MSM
Apparently 8350 has MSM baseband rather than MDM, who'd have thought?

Change-Id: Ie70a0c5dce177f293ccc0ff1b46a642527f85549
2021-06-01 23:23:38 +01:00
LuK1337
1be5e11fdb sm8350-common: Don't pass OEM_TARGET_PRODUCT to kernel build cmdline
Not needed on this platform.

Change-Id: I6cbb2772b8a79a7d50be113e493ae9743238cc8e
2021-06-01 23:23:38 +01:00
Aaron Kling
4c99525ebc sm8350-common: Copy selected modules to recovery
Change-Id: Ic85408521bb5a2d40d9bfadff849c7b266b6f10d
2021-06-01 23:23:38 +01:00
Bruno Martins
1c1195097b sm8350-common: Bring up DSDS radio
Change-Id: I290532f7a9f3477b0a13f73d6818a16134df1caa
2021-06-01 23:23:38 +01:00
Bruno Martins
f49155a32c sm8350-common: sepolicy: Fix haptics nodes path
Change-Id: I54cb741b145ff144162c82f84aad46628b408004
2021-06-01 23:23:38 +01:00
Bruno Martins
f4e7375e13 sm8350-common: sepolicy: Re-label health sysfs nodes
Change-Id: I648046582f54a254d61c6c76ec5747357bdeca59
2021-06-01 23:23:38 +01:00
LuK1337
b6e726035c sm8350-common: Update wlan symlinks
Change-Id: I4f0ae4ee4a9b5e39325405c9388466438b5b8535
2021-06-01 23:23:38 +01:00
LuK1337
32f0124324 sm8350-common: Regenerate config.fs
Change-Id: I6eb871c6a13593a8f3684b7af95f2c41eadd3bd5
2021-06-01 23:23:38 +01:00
LuK1337
4773fa9758 sm8350-common: Duplicate all audio configs to vendor/etc/audio/sku_lahaina
Change-Id: Ie14049e44c0f97729b96a171f29c25470ae162fa
2021-06-01 23:23:38 +01:00
LuK1337
2deb022492 sm8350-common: Use correct FRP block device
Change-Id: I54495530fa383b81efc70e94f4bb46a56a07ef6d
2021-06-01 23:23:38 +01:00
LuK1337
892d7c1b59 sm8350-common: Build libhidltransport.vendor
Needed for composer HAL.

Change-Id: I3cf443297bc558b29c3033fce403394c412461b9
2021-06-01 23:23:38 +01:00
LuK1337
448b981fac sm8350-common: Use correct kernel linker
Change-Id: I1d1064a5176182acce7921e94485a1090d931660
2021-06-01 23:23:38 +01:00
LuK1337
81398e09df sm8350-common: Set correct userdata size
Change-Id: I9d06a1d089fa8da2b024e0d0fbd85424a8c9c7b5
2021-06-01 23:23:38 +01:00
Christian Oder
c7065c61ee sm8350-common: Add reserved partition sizes for product, system and system_ext
Change-Id: Ib856284f6b6c9ed3511ef691c72f58f7e6f5a901
2021-06-01 23:23:38 +01:00
LuK1337
ad5b0c461d sm8350-common: Declare super and its partitions size
Partitions size is calculated using this formula: (super / 2 - 4M).

Change-Id: I8d211f9885f3bbebfc221ae320f83b9478677034
2021-06-01 23:23:38 +01:00
LuK1337
c85c37e576 sm8350-common: Fix host_init_verifier errors
Change-Id: I6d6ca2bd57ef36916e17cc91fea13839d03d02a8
2021-06-01 23:23:38 +01:00
LuK1337
044ba4df05 sm8350-common: rootdir: Strip out unnecessary SKU customization
I'd rather never wake up to wake_up_samurai.ogg.

Change-Id: Id52e643546b2e3e0a3eab8690188004c7a2386df
2021-06-01 23:23:38 +01:00
LuK1337
9f55e268e1 sm8350-common: Enable AUDIO_FEATURE_ENABLED_GKI
Change-Id: I4f909077d75bf188e57767614486e9ca1021707e
2021-06-01 23:23:38 +01:00
Smita Ghosh
efd421db40 sm8350-common: gpt-utils: Add OTA support for below partition
1. shrm
2. cpucp

Change-Id: I14e8c4b3399f403fbec857bcbb073f54ced24339
2021-06-01 23:23:38 +01:00
David Ng
e0dcecf95c sm8350-common: gpt-utils: Add vm-bootsys OTA handling
Add vm-bootsys to list of partitions needed for A/B update handling.

Change-Id: Ifa1e94df5dd19b1c09088c4b1c435a2aaa84cc62
2021-06-01 23:23:38 +01:00
LuK1337
0607afb434 sm8350-common: Steal kernel modules setup from device/google/redbull
Change-Id: Iaf73f9492b3003d5f73ab7aeaf80084bc2c5a4f8
2021-06-01 23:23:38 +01:00
LuK1337
fc371392fe sm8350-common: Set sys.usb.controller while in recovery
Change-Id: I019236408bb481cfac51f089aaeccd49b609e8b2
2021-06-01 23:23:38 +01:00
Jack Pham
1cdeaf4f5e sm8350-common: init.recovery.qcom.rc: Force USB to peripheral mode
On some newer platforms USB relies on PMIC to notify it of
cable connection status, but the PMIC driver has relocated
to ADSP FW. Since ADSP is not expected to be loaded in
recovery or fastbootd mode, USB may not get notified and
hence won't start up. Force the USB to start in peripheral
mode since the whole purpose of recovery/fastbootd is to
interact with a USB connection anyhow.

Currently the command assumes that there is a sysfs "mode"
param located at /sys/class/udc/${ro.boot.usbcontroller}/device/..
which is true for dwc3-msm based driver on most QC SoCs.

Change-Id: I5f7a01defdf987dbf4bd48f77bc70344c212a623
2021-06-01 23:23:38 +01:00
LuK1337
ad131f888d sm8350-common: sepolicy: Fix build errors
Change-Id: I41717ff4b31f8abe1abc17bcb9ff5392991a351d
2021-06-01 23:23:38 +01:00
LuK1337
e4018d2d38 sm8350-common: No recovery partition for us :(
Change-Id: I437d711fead0245146b64a9fefca4453d714c236
2021-06-01 23:23:38 +01:00
LuK1337
57fdd7ddaa sm8350-common: gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2021-06-01 23:23:38 +01:00
Nirmal Kumar
36a609b71f sm8350-common: gpt-utils: Add UFS BSG IOCTL for slot switch
- Use Opensource UFS BSG framework by replacing existing UFS IOCTL implementation.

Change-Id: Idc5ef9658dc93f2d7b351361b59f87cb21c7f7d9
2021-06-01 23:23:38 +01:00
Bruno Martins
002ca5194d sm8350-common: Update wifi configs from OOS 11.2.5.5
Change-Id: Ie0fb31f5bfe4781319544d76ea5b0de085d2bed8
2021-06-01 23:23:38 +01:00
Bruno Martins
bd25594773 sm8350-common: Update gps configs from OOS 11.2.5.5
Change-Id: I041079a26ccfe243343854ae0bb8c9184c656d1b
2021-06-01 23:23:31 +01:00
Zhou Song
5bf0dcf7fe sm8350-common: Add support for BT LC3 codec
Add format support for LC3 codec of BT device.

Change-Id: I3e14fcf226ef3c24b657ece41ed5ed8e004e34e8
2021-06-01 22:29:59 +01:00
Vignesh Kulothungan
9c00d0f7ba sm8350-common: Add support for native dsd
Add new mixport in policy configuration to support
native dsd playback. Add routes from dsd mix port to
headphone/headset devices.
Add mixer control path for headphones-dsd device.
Add RX_CDC_DMA_RX_5 as backend interface for headphones dsd.

Change-Id: I77a94a57eb27aacd8e08db9191e54b692aa1cc36
2021-06-01 22:29:59 +01:00
Zhou Song
ae172d641b sm8350-common: Adjust haptics usecases definitions
Adjust definitions for haptics usecases for better
maintenance.

Change-Id: I50cd85c5e00b742a03e8667d85d4020100795e26
2021-06-01 22:29:59 +01:00
Meng Wang
edfe327f27 sm8350-common: Update mixer control and be for haptics devices
Update mixer control and be for haptics devices.

Change-Id: Id7475b35d3a6b6bd67543006ff7d9d1b416b70f6
2021-06-01 22:29:59 +01:00
Meng Wang
7a2990ca39 sm8350-common: Add haptics support
Add haptics support.

Change-Id: I35e3ac85addf1be7f46dbbb34ed176428aa70710
2021-06-01 22:29:59 +01:00
Zhou Song
d8977f9f0e sm8350-common: Add dedicated hearing aid proxy configs
Add hearing aid configs in HAL.

Change-Id: Iaaec0b4d097fca67d35cb1e098c23f51b331837f
2021-06-01 22:29:58 +01:00
Bruno Martins
2947ddf81e sm8350-common: Update audio and media configs from OOS 11.2.5.5
Note that media_codecs.xml, media_codecs_performance.xml and
media_profiles_vendor.xml are now plain copies of media_codecs_lahaina.xml,
media_codecs_performance_lahaina.xml and media_profiles_lahaina.xml,
respectively.

Change-Id: I420d583f014ba4fd13f3e8f9629f36f7d158c957
2021-06-01 22:29:40 +01:00
Bruno Martins
b2e66f9cc7 sm8350-common: Update init scripts from OOS 11.2.5.5
Change-Id: Ia4e798ae3c5cbdb7246669b833c75e7058efa523
2021-06-01 21:43:16 +01:00
Bruno Martins
7c98da93ba sm8350-common: Remove useless or unused init scripts
Change-Id: I579319d620b14aab0decd49587d58a20262576ae
2021-06-01 17:40:16 +01:00
Will McVicker
f6f7e210d6 sm8350-common: Add support for vendor_boot
This enables boot header v3 which creates a vendor_boot images that
holds the vendor kernel modules.

Signed-off-by: Will McVicker <willmcvicker@google.com>
Fixes: 151949371
Test: boot, verify vendor_boot ramdisk is loaded, check lsmod
Change-Id: Ia1b7df306d3a9f0e2f1f3ec8e7c2547da0b07596
2021-06-01 11:29:04 +02:00
Bruno Martins
f9ba3937a7 sm8350-common: Import common fstab from OOS
Change-Id: I30d05c1b4f02137a109e30ffd491435acf0b3df3
2021-06-01 11:29:04 +02:00
Bruno Martins
7c0842401b sm8350-common: Populate initial common blobs list
Change-Id: I7c92ac6198463913907d8ee4a0faf998f5573a68
2021-06-01 11:29:04 +02:00
Leo Liou
8aed92f399 sm8350-common: Inherit the virtual a/b config
For devices launching with virtual A/B, inherit the virtual A/B
device base configuration.

Bug: 146466421
Bug: 149155051
Test: boot to home, check system property of virtual_ab
Test: Run full storage-qa test
Change-Id: I8ebbbe897dc9278f43e37a6a9599b89d68419b27
Signed-off-by: Leo Liou <leoliou@google.com>
2021-06-01 11:12:31 +02:00
Daniel Rosenberg
5d0602d85a sm8350-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2021-06-01 11:12:31 +02:00
Bruno Martins
410e7ff323 sm8350-common: Initial common device tree conversion
Change-Id: I0d7188b3fa82dddf3f9fb9523d716a8f15f46184
2021-06-01 11:12:31 +02:00
Bruno Martins
2bee5a8ca6 sm8250-common: Move "proprietary" seccomp policies to vendor
Also discard unused qspm.policy as we don't ship qspm.

Change-Id: Icc1b978d373de8b0b7bc3e483c088c2cdeb5d325
2021-06-01 10:56:16 +02:00
Bruno Martins
191c30fbd9 sm8250-common: Prepend "system/" before paths where necessary
Change-Id: I29a61453565d0b2a27c601b8e58edbe1bad3ec9a
2021-06-01 10:40:49 +02:00
Bruno Martins
70bd2661d2 sm8250-common: Ditch rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2021-06-01 10:23:44 +02:00