Commit graph

660 commits

Author SHA1 Message Date
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
LuK1337
647b59d0c5 sm8250-common: overlay-lineage: Unset def_clock_position as 2 is default
Change-Id: Ic59ef7269eb211c6b784d6c7a003ac3083d4693c
2021-05-31 22:57:10 +02:00
Bruno Martins
6d2fb2f68b sm8250-common: overlay-lineage: Place volume panel on the left by default
Change-Id: Iffcfad9af472ada48c0dc12cf238fd959355bc6a
2021-05-31 22:56:02 +02:00
Bruno Martins
919636446c sm8250-common: Move unnecessary WFD priv-app permissions whitelist
Our apk does not have these permissions in AndroidManifest.xml.

Change-Id: I5c8adf64e83a570f8c6a90ad7f082c78b707cb07
2021-05-28 00:14:43 +02:00
LuK1337
f972f8c9fb sm8250-common: Update blobs from OOS 11.0.6.6
Change-Id: I5b0519136cbca2b94c90fbae114197f4f1d4416e
2021-05-27 14:26:19 +02:00
LuK1337
ce7f97800c sm8250-common: Decommonize voice call volume steps
Apparently there are issues on non-8T with vol steps set to 9.

Change-Id: Icc8f1dd75c67cf2cc247301ec8606326e4b6f3d5
2021-05-20 09:33:00 +02:00
Hikari-no-Tenshi
756ac6b751 sm8250-common: fod: Remove no longer needed chown/chmod and sepolicy
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Id7d6c7e1196db020673ea92f691d93ca3511dcf4
2021-05-18 16:52:03 +02:00
alk3pInjection
e57d3a223a sm8250-common: fod: Properly set dim
Matches the behavior of stock rom

Co-authored-by: Hikari-no-Tenshi <kyryljan.serhij@gmail.com>
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I76566f0cf427dcf858fae222e71090ed82eeb710
2021-05-18 16:52:03 +02:00
Art_Chen
2a0985f372 sm8250-common: fod: Return touched z-order only
OnePlus places FP layer upon the dimlayer, causing the former one
highlighted. Only return the z-order with fingerprint pressed to
target the layer we need.

Signed-off-by: alk3pInjection <webmaster@raspii.tech>
Change-Id: I4666718018aa135a7d6387d957f136f23a5a5670
2021-05-18 16:52:03 +02:00
Nauval Rizky
1a67d0fdc2 sm8250-common: doze: Introduce raise to wake gesture
* Highly inspired by iOS raise to wake

- Adapted to OnePlus sm8250 doze

sm8250-common: doze: Add min interval for raise2wake

* avoid having early wakeup
* also fix typo in acquire timeout

sm8250-common: doze: Enable pickup when raise to wake is toggled

- This is needed in order for raise to wake to function properly.

sm8250-common: doze: Fix pickup status for raise to wake

Co-authored-by: AnierinB <anierinb@evolution-x.org>
Co-authored-by: AshutoshSundresh <ashutoshsundresh@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I5df0c4f11f1b24ab813abc393960c5f03f5fab1f
2021-05-16 17:03:16 +02:00
LuK1337
bb16435fa4 sm8250-common: Relocate volume steps customization to vendor.prop
Change-Id: Ic0d0666de7899dde5afbd1cd40370ccea2837419
2021-05-04 19:45:43 +02:00
Han Wang
fad4f2f288 sm8250-common: Switch to OOS volume steps
* Call volume step is directly picked from OOS and it seems
   that OOS hardcoded media volume step to 30, which is the
   behavior that user experiences.

Change-Id: Ib306646dbde61934d8a29447cd186f54f775a407
2021-05-04 19:44:30 +02:00
LuK1337
1dc5f1546b sm8250-common: sepolicy: Label op_charger
Health HAL wants to access it.

Change-Id: I07a8c11324c0a8b9bae6e7c027aa69df7ee5b7d1
2021-05-04 19:40:51 +02:00
LuK1337
86b4e9c707 sm8250-common: vibrator: Sync with upstream
Change-Id: Ia72f93829bbeaf9c80aafa5b7d4310948029a078
2021-04-28 18:29:10 +02:00
LuK1337
2bf9eeee2f sm8250-common: overlay: Map out our display modes
Change-Id: I2755d5a938848d41382f1d3945f008d94eec1cbd
2021-04-27 18:49:50 +02:00
LuK1337
de5498efab sm8250-common: livedisplay: Rip out IDisplayModes
We are now using AOSP-ish display modes implementation.

Change-Id: Iba9d570dd7cef116e18f3e327c8ab5f5e63f2697
2021-04-27 09:35:23 +02:00
LuK1337
4c76d02e85 sm8250-common: livedisplay: Don't write to DCI_P3 node on boot_completed
Apparently on hotdogb DCI_P3=0 looks really bad...

Change-Id: If63ee6aaa5ae09e1acc9204c3a2b8201c1950488
2021-04-26 15:41:05 +02:00
LuK1337
bb16a2e105 sm8250-common: livedisplay: Reset display mode prop on modeID == 0
Change-Id: I19e1e99fc1a850a18f0d76e9644f7000d087da29
2021-04-26 15:41:04 +02:00
Nolen Johnson
9a36678b92 sm8250-common: Kill deprecated/unneeded board flags
* TARGET_KERNEL_ARCH - no-op unless it differs from TARGET_ARCH.

Change-Id: I8d140fecdbbaac979bc8398745ffa95b911e4c89
2021-04-23 20:11:14 +02:00
Anton Hansson
0c11497347 sm8250-common: Remove obsolete dex settings
This block is completely redundant because..
- WITH_DEXPREOPT := true is the default
- WITH_DEXPREOPT_PIC is never read
- DEX_PREOPT_DEFAULT := nostripping has no effect when the
  BOARD_USES_SYSTEM_OTHER_ODEX flag is set to true

Test: make
Change-Id: I618a1e395ca1a14555cd50eef1a4f1aa079b553d
2021-04-23 20:11:14 +02:00
LuK1337
cd50a1bbe9 sm8250-common: Unset NEED_KERNEL_MODULE_SYSTEM
We are building vendor image ^.^

Change-Id: Ia7f47528c116749f897d7bcfbff6acf290a220fd
2021-04-23 20:11:14 +02:00
Michael Bestas
6115bfd27c sm8250-common: Remove unused TARGET_SPECIFIC_HEADER_PATH
Change-Id: I5518d31fa6c6f56f05dc374bfd8f98b3cd2e62cc
2021-04-23 20:07:17 +02:00