Commit Graph

341 Commits

Author SHA1 Message Date
Etienne Ruffieux
a110e34f25 sm6375-common: Removed audio A2DP from holi.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: I300369d36399ffb558b98bafc2478b872d09faba
2022-09-05 03:15:17 +00:00
Albert I
e71788e025 sm6375-common: sepolicy: Allow apps and camera HAL access to secure ADSP domain
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ibb1071299632ab53726638dbcc134d4bca59fc52
2022-09-04 23:18:43 +00:00
Albert I
664ba17574 sm6375-common: sepolicy: Allow neural networks HAL to read ADSP properties
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3fa6f51b746703bab2faf3f5fd6334b221a8636c
Signed-off-by: kleidione <kleidione@gmail.com>
2022-09-04 23:18:35 +00:00
dianlujitao
3f8897df42 sm6375-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2022-09-04 23:18:08 +00:00
Siddeswar Aluganti
8966e9aea6 sm6375-common: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti),
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
Signed-off-by: kleidione <kleidione@gmail.com>
2022-09-04 23:18:02 +00:00
Arian
978e34ed26 sm6375-common: gpt-utils: Do fsync after writing partition entries
Do fsync after writing partition entries to ensure data
is actually written before rebooting device.

Change-Id: Ia2067d5e215b60290165b0dfd4ba842434343058
2022-09-04 23:17:55 +00:00
Arian
af1bf5c16c sm6375-common: gpt-utils: Add product to ab partition list
Change-Id: Iee0660c7787df067bd90839e0031b60ebef419e9
2022-09-04 23:17:48 +00:00
Arian
1286d92e51 sm6375-common: gpt-utils: Drop unused sparse_crc32
Change-Id: If0cf581f0abc98f08b30edcc0ed03cb176c365c9
2022-09-04 23:17:42 +00:00
Michael Bestas
5d40c92ef4 sm6375-common: bootctrl: Remove bootctrl.xiaomi_holi target
* This is no longer used after switching to QTI 1.1 impl.

Change-Id: I9f8e538068ed6f351baf9312d3204a6be2518992
2022-09-04 23:17:35 +00:00
kubersharma001
492bf6dec4 sm6375-common: Remove QTI BT props
- Not needed for AOSP BT

Change-Id: I4219d2b32fab128ab3c1bd0a33856ec53dca0c98
2022-09-04 23:17:22 +00:00
kleidione Freitas
c8c47e5e69 sm6375-common: match Soundtrigger HAL version with stock
Signed-off-by: kleidione <kleidione@gmail.com>
Change-Id: If1679d8e5e7f659993c652d94097e18e1d3f3fe9
2022-09-04 23:16:45 +00:00
kiranpranay
f06cb05b23 sm6375-common: overlay: Fix Video Calling
Co-Authored-By: AngeloGioacchino Del Regno <kholk11@gmail.com>
Co-Authored-By: IMMANUEL44 <immanuelr44@gmail.com>
Signed-off-by: Anar Jabiyev <cebiyevanar@gmail.com>
Change-Id: I9b785c9ad6d77780ef9ac4bc8545bf4d2795132d
2022-09-04 23:16:44 +00:00
TheScarastic
83d75caf76 sm6375-common: overlay: Add support for doze auto brightness
- Based on observing it's values, xiaomi.sensor.aod reports
  the following events:

3.0: Dark environment
4.0: Bright environment
5.0: Switched from bright to dark environment

3.0 does not seem to be triggered anymore after bright
environment has been reported.

- Enable brightness buckets in doze to disable animation
  between the brightness levels.

Change-Id: Iab922114462152cad2143502dabd4d6dacd98db9
2022-09-04 23:16:43 +00:00
Ramii Ahmed
f9b534c1a3 sm6375-common: update to Android 12 blobs
* From veux_global-user 12 SKQ1.211006.001 V13.0.2.0.SKCMIXM release-keys

Change-Id: Id837f1bb7a08630d2ed9d63c67328759c4210753
2022-09-04 13:00:36 +00:00
Ramii Ahmed
114595f05a sm6375-common: update blobs from latest global update
* From veux_global-user 11 RKQ1.211001.001 V13.0.14.0.RKCMIXM release-keys

Change-Id: I7d4e885f580a2e880ee64a544e28305da83f7726
2022-09-04 13:00:35 +00:00
Sebastiano Barezzi
c8e4b762f2 sm6375-common: sepolicy: Don't grant system_server access to fingerprint props
Change-Id: I4f391e43a80c25d7fcedde12a70b3215913fcfd2
2022-09-04 13:00:34 +00:00
Sebastiano Barezzi
ac323ab8e7 sm6375-common: sepolicy: Label fingerprint props as restricted vendor
* System only reads them, but never sets them
* Rename to vendor_fingerprint_prop while at it

Change-Id: Id980731ec53338c5c5a07b81f10a283c428d17aa
2022-09-04 13:00:34 +00:00
Ramii Ahmed
b20ca537ae sm6375-common: sepolicy: switch to lineage hal macros for mlipay attribute definition
Change-Id: Ib6bc419b456f7d4d4277eb882e93e03bfff6d020
2022-09-04 13:00:33 +00:00
Ramii Ahmed
9764d3d544 sm6375-common: add missing mlipay sepolicy from Xiaomi-SM8250 tree
up to HEAD:e2aab9679fea15a8ee0bbf5876bbeb140292e29c

Change-Id: Ic68fb82a72954d8eb94314e79733ac71fbaec221
2022-09-04 13:00:32 +00:00
chaptsand
030ba3085f sm6375-common: sepolicy: Allow platform app to find SoterService
* Fix selinux denied of WeChat fingerprint payment

- E SELinux : avc:  denied  { find } for interface=vendor.qti.hardware.soter::ISoter sid=u:r:platform_app:s0:c512,c768 pid=3613 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_hal_soter_hwservice:s0 tclass=hwservice_manager permissive=0

Issue: https://gitlab.com/LineageOS/issues/android/-/issues/4701

Change-Id: I3176f8e709fb31aec16a31094b78f753d1d16b43
2022-09-04 13:00:31 +00:00
Lais Andrade
5f86c138ed sm6375-common: Set vibrator ramp down duration
Bug: 188431691
Test: manual
Change-Id: Id029afe5c0d6fa59425c4407da56fed69f083bc1
2022-09-04 13:00:31 +00:00
Sebastiano Barezzi
59a0c45f72 sm6375-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-09-04 13:00:30 +00:00
Sebastiano Barezzi
228921a381 sm6375-common: rootdir: Merge all our custom init rc into a single one
Change-Id: I9e4f9fbcc76986a02288a439706affecde25594f
2022-09-04 13:00:29 +00:00
Sebastiano Barezzi
9d80b52b23 sm6375-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2022-09-04 13:00:28 +00:00
Sebastiano Barezzi
5ec633b1f6 sm6375-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-09-04 13:00:28 +00:00
Sebastiano Barezzi
fa42d4466a sm6375-common: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2022-09-04 13:00:27 +00:00
Bruno Martins
2f132fe830 sm6375-common: Switch to source-built mlipay interface
Change-Id: I7daaaffd9fe7a870e42c1d882b52dc93b3231120
2022-09-04 13:00:26 +00:00
Sebastiano Barezzi
c33b3be144 sm6375-common: Move to common IFAAService
Change-Id: I71bfdacc4626d75d56aa12ec384f0f116d6d6ff2
2022-09-04 13:00:25 +00:00
kubersharma001
13423d6a9b sm6375-common: Add missing FM blobs
Change-Id: Idd9a4213c2018bb79cb9ef58cae46567f97abcd1
2022-09-04 13:00:25 +00:00
Sebastiano Barezzi
9fb997ec60 sm6375-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
2022-09-04 13:00:24 +00:00
kubersharma001
90ecc81193 sm6375-common: overlay: adjust values & add missing one's
- ref:
       1. ghostrider-reborn/android_device_xiaomi_lisa
       2. ArrowOS-Devices/android_device_xiaomi_sm8350-common
 - Adjust and cleanup as per veux

Change-Id: I9fc92e55c1af3e3820670523b59f3fb04270bd66
2022-09-04 13:00:23 +00:00
Doctor Strange
ca537b7847 sm6375-common: disable STATE_DOZE
- Our device doesn't support doze
- Fixes AOD flickering issues

Change-Id: I44855e85f7d9e26666a8efb79afc202c69770615
2022-09-04 13:00:22 +00:00
Ramii Ahmed
13d9f91d56 sm6375-common: props: decommmonize surfaceflinger color mode property
Change-Id: I2fb75394344d4a7a16eb683e99432913f72ea91b
2022-09-04 13:00:22 +00:00
kubersharma001
9359758acb sm6375-common: Import missing media props from stock
Change-Id: I6b7d0b928e3d368ce3253f6716f3df6fc628ca02
2022-09-04 13:00:21 +00:00
Andrzej Perczak
d3b65f56d0 sm6375-common: Disable radio redir_party_num feature
Caused incoming caller number not being parsed correctly by Phone app on
VoLTE and VoWiFi. No idea why Xiaomi enabled this ancient prop.

Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ie3e3459558be2bad2938aee02e1aa25da47ecd31
2022-09-04 13:00:20 +00:00
Nicolas Geoffray
16779d88de sm6375-common: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: Ifead4354d29b3ce658b2f5771b778a050b0579b5
Merged-In: I6627afc390f8dcacc197680dcc4917e2ac5bc090
2022-09-04 13:00:19 +00:00
kubersharma001
4878b2099d sm6375-common: Remove config_jitzygoteBootImagePinnerServiceFiles list
- obsolete on android-12

Ref: I97738435edd07e8b6770372cd935218c1a9cd984
Change-Id: Ibbc8d35961d919ccdc454ef2043824f38191637e
2022-09-04 13:00:19 +00:00
Ido Ben-Hur
76fa29199f sm6375-common: overlay: Ignore cne in location indicator
Change-Id: I6b1a55860ef933bfaf1f910da3829fd3c3850728
2022-09-04 13:00:18 +00:00
Sebastiano Barezzi
297371448c sm6375-common: Kill console parameters
Change-Id: I69a14e00cfc3291175351259f2d8cbd6b0dc827a
2022-09-04 13:00:17 +00:00
Alexander Koskovich
ac396da515 sm6375-common: Remove virtual framebuffer.
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
2022-09-04 13:00:16 +00:00
kubersharma001
36a9303669 sm6375-common: Build vendor variant of libchrome
06-20 17:06:14.489 13542 13542 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/android.hardware.nfc@1.2-service": library "libchrome.so" not found: needed by /vendor/lib64/ese_client.so in namespace (default)

Change-Id: I96f88c27feea3deeb535eef43533aef4b869734b
2022-09-04 13:00:16 +00:00
hkuang
509fed3481 sm6375-common: Update the transcoding operating rate
Bug: 175231451
Test: CtsMediaTranscodingTestCases:MediaTranscodeManagerTest
Change-Id: Id25ce60b58ab29a8670695c77be20dd53d63981a
2022-09-04 13:00:15 +00:00
kubersharma001
c4b7cc6c9d sm6375-common: Import product props
- V13.0.8.0.RKCMIXM

Change-Id: I54c4a00971a42750a4b0809913250f72b0b7c167
2022-09-04 13:00:14 +00:00
Ramii Ahmed
d0b913a0b4 sm6375-common: libinit: Adjust detection prop to better suite xiaomi sm6375 devices
* Xiaomi devices on SM6375 platform use ro.boot.board_id to identify different SKU's, let's mirror miui in that
* but it also hardcodes fingerprints based on region, we can recreate the same effect by using the region prop ro.boot.hwc

Change-Id: I00dd84979db6066ad18bc36b619795de751925f8
2022-09-04 13:00:13 +00:00
kubersharma001
12665a7ea6 sm6375-common: Set audio volume step levels
Change-Id: Ie4f78b6a13cb40cb67ce67f0269c2a94cc900326
2022-09-04 13:00:13 +00:00
kubersharma001
98cc1071e4 sm6375-common: Remove recorder-max-base-layer-fps prop
- not valid

Change-Id: Ib4fa4e0f878402808ce1ea8340df32eb877ef418
2022-09-04 13:00:12 +00:00
Chenyang Zhong
411f99fed7 sm6375-common: audio_policy_configuration: Remove quad mic
Change-Id: Ia29ac831f57bc958b78163090c12e340f3b3b658
2022-09-04 13:00:11 +00:00
Jasmine Cha
d59b987ce9 sm6375-common: audio: correct routing order for voip output
Routing primary output before voip_rx output will cause unexpected
RX/TX path suddenly and unmuted voice stream during when system
plays touch sound and switches path between handset and handsfree.

Bug: 154290829
Test: manual test in VoIP

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia60802ec887f0dfeaa0f93d151ba2f2c50e0d41d
2022-09-04 13:00:10 +00:00
LuK1337
98341de832 sm6375-common: audio: Disable ULL mode
- Ultra low latency playback is currently broken. Crackling audio
  can be well noticed while playing WhatsApp audio messages or even
  during some games.

- This patch routes all audio that normally used audio-ull-playback
  paths to low-latency-playback paths instead, thus meaning we're
  switching from ULL to LL mode.

Change-Id: I8adf8a67a6151843cff5860f430d87727ad8f4c2
2022-09-04 13:00:10 +00:00
Adithya R
e257e9c5cf sm6375-common: audio: Nuke haptics output from audio policy
- doesnt work and kills alarm audio when vibration is enabled

Change-Id: If8b4de516f60b0a4187b976c8d86b93e58119455
2022-09-04 13:00:09 +00:00