Commit Graph

992 Commits

Author SHA1 Message Date
Taiyab Haque
fa9645a989 sm8350-common: Update LPA interface version
Update LPA version to enable new upgraded interface solution

Change-Id: I117c788a25e75d8844a5f89d4d661e8cce8127d9
2022-04-01 17:39:07 +02:00
Erfan Abdi
3f6c75ec34 sm8350-common: Fix pureShot_parameter xml format
Change-Id: Ie9beed910101f2550ca573157242cd2f9c4ce140
2022-04-01 17:39:06 +02:00
Erfan Abdi
fd257261c8 sm8350-common: Move sensor hals config to vendor repository 2022-04-01 17:39:06 +02:00
Siddhesh Sahane
4c5f36795a sm8350-common: audio: config: Add support for LC3 a2dp capture
Add format support for LC3 a2dp capture.

Change-Id: Ib6627d7f4cba0370b4ae300e10b8448f227517a2
2022-04-01 17:39:06 +02:00
Preetam Singh Ranawat
ef5fbabb0b Revert "sm8350-common: audio: configs: Add support for LC3 format."
This reverts commit 1d4c56e65865e10b3a36de5713557e0a7c552151.

Change-Id: Ie23807aecb01e89cfa3dbc31b0ba97793932da22
2022-04-01 17:39:06 +02:00
Mingshu Pang
53f738d12f sm8350-common: audio: Remove supporting usb device from "fast input" and "quad mic"
It will select "fast input" or "quad mic" as a compatible profile if
the parameter from recording app can't match the profile of
usb_surround_sound completely although connecting usb device.

Remove the usb device from the supported devices list of "fast input"
and "quad mic" for exact match.

Change-Id: Ie99886552082e99ac19193907b271131a2502d33
2022-04-01 17:39:06 +02:00
Manisha Agarwal
a137606e4a sm8350-common: audio: configs: Add support for LC3 format.
Add support for new LC3 format AUDIO_FORMAT_LC3
added for BLE support.

Change-Id: Ifd80fee833e05901544e2952781a460815661fb6
2022-04-01 17:39:06 +02:00
Mingshu Pang
6c6d38eb9c sm8350-common: audio: Remove dynamic attributes from APS config
Remove dynamic attributes from APS config since it
is not supported.

Change-Id: I5ad81b67e7b6bb33e245a2620622f1e2e2a76506
2022-04-01 17:39:06 +02:00
Arian
de2c62ffe9 sm8350-common: ueventd: Cleanup unnecessary permissions
Change-Id: Ia37b752c369d8b0dc48aba33898ce7e245f4de2d
2022-04-01 17:39:06 +02:00
Arian
717d76ad6e sm8350-common: ueventd: Setup permissions on mius iio devices
Change-Id: I44004a3c1377d91e887f66905df5f8c61b0d5639
2022-04-01 17:39:06 +02:00
Wang Han
07d7fc7025 sm8350-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2022-04-01 17:39:06 +02:00
Arian
0072a17f4c sm8350-common: Move ueventd.rc to rootdir and checkout to LA.UM.9.14.r1-19100-LAHAINA.0
Change-Id: I7c0a9ad622a0c42966d84024c22cd03e033fd09b
2022-04-01 17:39:06 +02:00
Arian
33acba3a2a sm8350-common: Drop spu and strongbox from manifest
Change-Id: Ibec129b39c0c7987f71f72107171cb53647572ab
2022-04-01 17:39:06 +02:00
Arian
057daefb66 sm8350-common: Move vendor manifest fragments to vendor repository
Change-Id: I8770fb6c27637dfa934af45a3993c4447dcd2430
2022-04-01 17:39:06 +02:00
Arian
2eb8ab7ef0 sm8350-common: Checkout framework compatibility matrix to LA.QSSI.11.0.r1-12100-qssi.0
Additonally move xiaomi's additions to xiaomi_framework_compatibility_matrix.xml
and make them optional.

Change-Id: Ib3abddb4a9e9615fb973b9efd2e511d96998d6ce
2022-04-01 17:39:06 +02:00
Arian
7c8f94dea1 sm8350-common: Checkout compatibility matrix to LA.UM.9.14.r1-16700-LAHAINA.0
Change-Id: I89d960aa3055628f3feb9881a8b6b7138262f89e
2022-04-01 17:39:06 +02:00
Arian
da78308f49 sm8350-common: Checkout manifest_lahaina to caf
This is a pre-public tag which matches stock.
https://source.codeaurora.org/quic/la/platform/vendor/qcom/lahaina/plain/manifest_lahaina.xml?h=LA.UM.9.14.r1-12600-LAHAINA.0&id=2100bf201f102dcf517f7436dc5f6e802ab386ac

Change-Id: I4ebe1dc949c0e1188d18e04bae77ed62bdc51fc0
2022-04-01 17:39:06 +02:00
Arian
8799b8c223 sm8350-common: Move manifests to hidl folder
Change-Id: Ie1a43451abdcf02038e58959e1818a5275ae37c8
2022-04-01 17:39:06 +02:00
Arian
027ef2d641 sm8350-common: Drop unnecessary framework manifest
Change-Id: Ib1f92e29fd0830b6f13c2f899e6aa358e1997b4c
2022-04-01 17:39:06 +02:00
Arian
7d2fbba5cc sm8350-common: Update extract scripts from templates
Change-Id: I41480402e01d1a32ee1d8562e73c8e97a9380aae
2022-04-01 17:39:06 +02:00
Michael Bestas
a5d227a73a sm8350-common: charger: Enable offline charger suspend
Squashed in this commit:
Author: Yifan Hong <elsk@google.com>
Date:   Mon Jul 15 16:43:26 2019 -0700

    sm8350-common: Replace BOARD_CHARGER_ENABLE_SUSPEND with ro.charger.enable_suspend

    Test: charger mode
    Bug: 124118169
    Change-Id: I3825d08e38d677bd7154879609857de302348b6f

Change-Id: I27a642dbadfba1575ff2d8e96dc385fc19c0eaff
2022-04-01 17:39:06 +02:00
Arian
b0b88840d4 Revert "sm6250-common: Hide sRGB toggle in developer options"
This reverts commit 4372eed462.

Change-Id: Icd049f2e874d7044e7a156eac7d3f1d4e16460f1
2022-04-01 17:39:06 +02:00
Danny Lin
ec5837aed6 sm8350-common: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the 8 GiB of usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save RAM.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
2022-04-01 17:39:06 +02:00
Arian
4ce74b0632 Revert "sm6250-common: overlay: Add pinned files from stock"
These are not pinned on stock.

This reverts commit 98c9d2a95b.
2022-04-01 17:38:12 +02:00
Arian
002c333db5 sm8350-common: overlay: Drop brightness ramp rate configuration
Change-Id: I69b906fbc0ae18c4d5832fc642beaae38ff6d392
2022-04-01 17:37:30 +02:00
Arian
3b3e64454a sm8350-common: overlay: Update bluetooth power configs from odin MIUI V12.5.12.0.RKMCNXM
Change-Id: I0ab13fb86b352680439198058b615f29f76f0165
2022-04-01 17:36:54 +02:00
Murat Kozan
45f54b22ca sm8350-common: Enable vibration intensity control
* Activates some options on Settings>accessibility>vibration

Change-Id: I00e20f0d607736c04d5c2a0bd9c513c7f5fd8b41
2022-04-01 17:36:54 +02:00
Gil
bb4f7c3efa sm8350-common: Enable adaptive color mode
Enable Adaptive color mode setting.

Bug: 143513730
Test: Boot test and measure the adaptive color value

Change-Id: I969ec6c3cb1d092a33c0e3a028ff38ad7115dfe2
2022-04-01 17:36:54 +02:00
Arian
e4e2055f2a sm8350-common: overlay: Add missing doze configurations
This fixes deep sleep on AOD. The values are from stock,
note that xiaomi did not use RRO for these values, hence
the values are changed in framework-res.apk directly.

Change-Id: I9c4ea935e7a7df4bd85e1884f91ab25805fe8959
2022-04-01 17:36:54 +02:00
Erfan Abdi
4211f1d2d7 sm8350-common: Drop TetheringConfig rro 2022-04-01 17:36:54 +02:00
David Su
4a1f2411ce sm8350-common: 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-04-01 17:36:39 +02:00
Arian
590bd924dd sm8350-common: WifiOverlay: Update config from MIUI V12.5.5.0.RKIMIXM
Change-Id: I37db0f8662f771885cf6e75027e23c62a51f7257
2022-04-01 17:35:02 +02:00
Chirayu Desai
71eb336e1b sm8350-common: rro_overlays: Move CarrierConfig to RRO
Change-Id: Ia57acd244608848f70fdcc30d5694c919db60671
2022-04-01 17:24:10 +02:00
Arian
767e2c13e0 sm8350-common: overlay: Sync CarrierConfig with LA.UM.9.14.r1-19100-LAHAINA.0
Change-Id: I274cd7c5e5e47b2e86dbc733b37960e1a5993e7a
2022-04-01 17:24:10 +02:00
Nolen Johnson
8e8bccf2d4 sm8350-common: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
2022-04-01 17:24:10 +02:00
Arian
53ae7a5521 sm8350-common: bluetooth: Drop default name setup
There is already a fallback to the model name and using that
is perfectly fine.

Change-Id: I7900cc449cd36d327d35f0597eea6427dd710458
2022-04-01 17:24:10 +02:00
Albert I
07da74745e sm8350-common: rootdir: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2022-04-01 17:24:10 +02:00
Shawn Shin
e5daffb384 sm8350-common: qcc-tr: define new AID for qcc-trd
Change-Id: I47c9b034600c9b31a17de2808030af38f69e10e0
2022-04-01 17:24:10 +02:00
Ayishwarya Narasimhan
58bb71dc34 sm8350-common: config.fs: Add mapping for imsdaemon
Change-Id: I62629d99e0ace3e5cfa0bdef925e919ddd2ebe12
2022-04-01 17:24:10 +02:00
Edgar Flores
6e7afdb7a7 sm8350-common: config.fs: init: add AID_VENDOR_FASTRPC group for fastrpc
Add AID_VENDOR_FASTRPC group, so that fastrpc clients can be in
this group to get extra privileges on the remote subsystem, like
higher thread priority.

Change-Id: Icb8e418cfe66d696cad9d608d30f4b3f2a02bef8
2022-04-01 17:24:10 +02:00
Arian
99e97f29a8 sm8350-common: rootdir: Add sdcard mount entries
Change-Id: I0ca98738e4964d23614df797b1faaebe0058a451
2022-04-01 17:24:10 +02:00
Arian
b481a5f286 sm8350-common: rootdir: Update copyright header from lahaina fstab
The copyright header has been modified by caf while the initial lahaina
tree whose fstab we use.
Specifically from https://source.codeaurora.org/quic/la/platform/vendor/qcom/lahaina/tree/fstab.qcom?h=LA.UM.9.14.r1-18900-LAHAINA.QSSI12.0&id=b403cbb26431c57a8590f94307f12443a55e29e2

Change-Id: I1dd07a729feeded6478e095573070fde532f2f02
2022-04-01 17:24:10 +02:00
Benergy Meenan Ravuri
fe715bfa51 sm8350-common: rootdir: Remove start console
Remove start console

Change-Id: I1041fa446499cd82bcbf6d5b86cb25a9a88fa90c
CRs-Fixed: 2977860
2022-04-01 17:24:10 +02:00
Ziqi Chen
3ba9fbc3d6 sm8350-common: rootdir: Tuning UFS clkgate and ah8 during boot time
Disabling UFS clkgate and ah8 during boot time helps in reducing
IO delays, which helps in reducing the total boot time. This change
will disable UFS clkgate and ah8 during early-init and then enable
it back after boot completion.

Change-Id: I6a10cd57a30fe3bdc4fba72a0d84cdfa3b1fd513
2022-04-01 17:24:10 +02:00
Vaibhav Agrawal
8cd50b7bf2 sm8350-common: shima: Support ufs and emmc variant fstab files
Two fstabs are needed to support different data unit number (dun)
size for ufs and emmc hardwares. This needs different encryption
flag in fstab to address the difference in dun size.

[ArianK16a: don't add the emmc fstab since all our devices are ufs]

Test: Verified bootup, vts_kernel_encryption, fscryptctl.

Change-Id: Iff03422d39c789c544bdd86faef070ae46eb4e0e
2022-04-01 17:24:10 +02:00
Benergy Meenan Ravuri
57f5133467 sm8350-common: shima: Fix eMMC bootup issue
Remove the hard-coded path for /dev/block/bootdevice.
Instead use the bootdevice property.

Change-Id: I194587e250f1d24f677c6fd3f34a23f146d4bc7e
2022-04-01 17:24:10 +02:00
Michael Adisumarta
eac08cecb1 sm8350-common: init.target.rc: remove ipa fw loading in post-fs
Removing command to load ipa fw from post-fs, where FW mount
is not guaranteed.

Change-Id: I426bcfd2d9e0fb9f09a360374fe05b653676cf4b
CRs-Fixed: 2819603
2022-04-01 17:24:10 +02:00
Christopher Braga
f58b667d1f sm8350-common: rootdir: Update QMCS partition to mount with noatime
QMCS partition is not a read only partition, and risks the danger
of causing unnecessary disk churn when QMCS files are read.

Update QMCS partition to be mounted with the noatime option.

Change-Id: Icf7e565d0e1c990131ad090c2f466bea419b4ad4
2022-04-01 17:24:10 +02:00
Benergy Meenan Ravuri
637840c1e2 sm8350-common: init.target.rc: move spunvm partition out of lahaina/shima fstab
move spunvm partition out of fstab and mount in init.target.rc
only for lahaina as shima doesn't have spunvm partition.

Change-Id: I2b19c7cf84f23c0f73103fff2a2a7ae5a7dd186a
CRs-Fixed: 2801834
2022-04-01 17:24:10 +02:00
Arian
77842cb102 sm8350-common: rootdir: Fix creating persist display folder
Change-Id: I929324ff494ecbf5a0672e503980a547ee0c66ce
2022-04-01 17:22:23 +02:00