287 Commits

Author SHA1 Message Date
Alexander Winkowski
64688290d4
sm6250-common: Adapt for Pixel Experience
Change-Id: Iaa035b171c96ba36c92f59d29b0b5dc0fd53473c
2022-01-02 05:35:26 +00:00
Alexander Winkowski
6c3fad175c
sm6250-common: Switch to uncompressed kernel image
Change-Id: Ia5830b38a2d882abab9df87d6c1e6e674eeb0c51
2022-01-01 05:42:11 +00:00
Alexander Winkowski
1993cf5ed0
sm6250-common: Add missing Bluetooth prop
* Used for FM radio.

Change-Id: I0e74379c80b2a6ea854d5cd0aad3a833f8862de9
2021-12-31 15:41:31 +00:00
Aaron Ding
b68ae9202c
sm6250-common: change TARGET_ARCH_VARIANT to armv8-a
Bug: 158427009
Test: Build and Boot Pass
Change-Id: Ia1127679815e7778b418e44dd3acafc8ca026fe2
2021-12-31 15:40:29 +00:00
Alexander Winkowski
b68c6447fa
sm6250-common: Add a shim to silence prebuilt audio HAL
For some reason Xiaomi built audio HAL with "very very verbose logging"
enabled [1] and it spams really too much. Until Xiaomi builds audio HAL
with sane logging level or a way to resolve OSS audio HAL issues is
found, just shim the whole log function to return nothing.

[1] https://github.com/LineageOS/android_hardware_qcom_audio/blob/c659e83702/hal/audio_hw.c#L41

Co-authored-by: Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de>
Change-Id: Iff278c44f203dc7b81bccb2281edfc3f5687a47c
2021-12-31 15:37:44 +00:00
Alexander Winkowski
8f5db33fc0
sm6250-common: Switch to prebuilt audio HAL
On OSS audio HAL there are issues like echo in calls
and low volume. Users often complain about that so switch to
prebuilt one temporary (I hope so).

Change-Id: I985a9b2c3bdb39c17bc0f861913536c121e7eeae
2021-12-31 15:36:59 +00:00
Alexander Winkowski
6dcf5c2248
sm6250-common: Update blobs from V12.5.1.0.RJWMIXM
Change-Id: I38a50bdefebe3074266f02e8fb3ab30043a72dc7
2021-12-31 15:36:44 +00:00
Alexander Winkowski
0829536d02
sm6250-common: Drop unused sound FX libs
This has been identified by looking through audio_effects.xml

Change-Id: Ida68dd695c45e372a8d28d9e9283aa0d62053efc
2021-12-26 16:43:33 +00:00
Alexander Winkowski
6671647f26
sm6250-common: Drop unused 64-bit audio stack
Change-Id: I0c2576805b372f22d60ecc625d595b7fdc6c5fdf
2021-12-26 16:43:32 +00:00
Sebastiano Barezzi
2ba998489b
sm6250-common: Drop 64-bit ADSP modules
Change-Id: I5f0eb89aeb38270a9ffac01a5d8f9f33553eaa17
2021-12-26 16:43:32 +00:00
Alexander Winkowski
d2fee33b4b
sm6250-common: Build vendor camera interface library
Change-Id: I851a0900f569df371cc8d39fa0acfb2771140ab1
2021-12-26 16:43:32 +00:00
Alexander Winkowski
095449565c
Revert "sm6250-common: Drop prebuilt camera provider"
* Stock one works with auxiliary cameras correctly.

This reverts commit 3f6eaf26960b8ca0a16ea574f9354cdf4a7710f3.

Change-Id: I776342df651af18b5ddd785aa5eb1231cd61638e
2021-12-26 16:43:31 +00:00
Roger Ellis
96eb6668ba
sm6250-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2021-12-26 16:43:26 +00:00
Alexander Winkowski
b49abed590
sm6250-common: Drop QTI WFD
* It breaks too often, I would like to use AOSP implementation instead.

Change-Id: Ieab7b7ebd48e8f95243a9cda512f064c3c9f96a8
2021-12-21 15:46:39 +00:00
Siddharth Kapoor
4edf2bbb68
sm6250-common: Turn on GPU protected contents.
BUG: 130028057
Test: ExoPlayer, Play Movies
Change-Id: I33acf9467227da08c3b98aca3bac69aca8db4b43
2021-12-21 15:46:39 +00:00
Midas Chien
671ae4f210
sm6250-common: don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
2021-12-21 15:46:39 +00:00
Alexander Winkowski
44c8945182
sm6250-common: audio: Use stock audio_policy_volumes.xml
* Stock changes are actually needed here.

 * This reverts commit aff1d9eb0b07e044584118066e4ded34921f0a02 also reverting commit e74d1037860cf175a52826de9b92f13a965f5cd6.

Change-Id: Ib6a70ac78d3041ebb7a14406a945a6a24dcd8b0b
2021-12-21 15:46:39 +00:00
George Zacharia
cf9e7d64fb
fixup! sm6250-common: Define partition rules
We need to account for overhead size
Currently set to 4MB as per docs[1]

[1] https://source.android.com/devices/tech/ota/dynamic_partitions/implement#board-configuration-changes

Change-Id: I4c5b696a07ec18b7d717aea0caba08b0dc646c0d
2021-12-21 15:46:39 +00:00
Alexander Winkowski
4147a5615a
sm6250-common: Switch to AOSP encryption
* From redfin-user 12 SPB5.210812.002 7671067 release-keys

Change-Id: I20d40c93b3861a92716165ab90bb09c73c0e64ed
2021-12-21 15:46:38 +00:00
TH779
61a571bf45
sm6250-common: Disable settings provider model
* When it is enabled, if we have multiple SIM cards, the networks
   settings UX will only show the first SIM card.
 * Thanks to Telegram@CyberPhantom52 for the fix patch.

Signed-off-by: TH779 <i@779.moe>
Change-Id: I2690e6dcd69f8e0fe814ea3c92c85d7c6f894166
2021-11-01 08:25:01 +00:00
Vishalcj17
bddad32c19
sm6250-common: Disable zygote preforking
* Doesn't work well with zygote native fork loop introduced in Android S.

Change-Id: Iaed102e65815d3fe4e4522d01e729c554671e896
2021-11-01 08:22:28 +00:00
Nicolas Geoffray
be9ac75614
sm6250-common: overlay: 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: Ibd947491961e4e78f1996c04dcec62d5b16c2d1d
2021-11-01 08:22:28 +00:00
Kevin Jeon
b94bb8831e
sm6250-common: overlay: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService
      - no longer shows a file-not-found error in PinnerService
Change-Id: I8ef5d556d6a1bff9793336259242f2b928ff18ff
2021-11-01 08:22:28 +00:00
Alexander Winkowski
4c0bf0df7f
sm6250-common: sepolicy: Fix namespace violation
* vendor property_contexts should contain vendor props only.

Change-Id: Ieb621921dc43f6c9b6b451fe45ac1a3fbaaac3c8
2021-11-01 08:22:28 +00:00
Gary Jian
bf4d1abdcc
sm6250-common: Upgrade IRadio version to 1.5
Bug: 147070523
Bug: 154066681
Test: manually
Change-Id: I765a0822dabf206391d19037f971a46281758b3f
2021-11-01 08:22:28 +00:00
Alexander Winkowski
7f99605ccc
sm6250-common: Update thermal HAL
* From hardware/google/pixel at d774cbb949e98627e4172bf8fc11e8d954599aa7.

Change-Id: I3a3a0c29575d0595e71a30f1e64e33ca34d2eb27
2021-11-01 08:20:48 +00:00
Sebastiano Barezzi
27f575c973
sm6250-common: Move to common Xiaomi light AIDL
Change-Id: I00494cd392d19abd97cd65aeb4ec4bd9c9b11352
2021-11-01 08:18:28 +00:00
Sebastiano Barezzi
b8b22c6cfb
sm6250-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
ee712a1a86
sm6250-common: Uprev clearkey DRM HIDL to 1.4
Change-Id: Id0895fee70495913f57bc8408ea433660467a7c7
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
d594b710b7
sm6250-common: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
c82f8ada0b
sm6250-common: Build netutils-wrapper-1.0
Change-Id: I30ac498fc3b5ca431b7cdf1989562d0d1ad0a464
2021-10-18 18:48:59 +02:00
Sebastiano Barezzi
894afbd8a9
sm6250-common: rootdir: Move to Android.bp
Change-Id: I28c3cb806d47e0e2c4f1fc0cf909d90638f2d2af
2021-10-18 18:48:52 +02:00
Kyle Lin
b037c145f5
sm6250-common: rootdir: Enable s2idle
Test: build and check the suspend_resume trace
Bug: 142553453
Change-Id: I176c0e1adbe3c6a90b9da90dd10ad664024bf164
2021-10-14 19:22:19 +02:00
Alexander Winkowski
aff1d9eb0b
sm6250-common: audio: Use audio_policy_volumes.xml from AOSP
Change-Id: I50fdea6316dedce109cd78ca63102073d4011681
2021-10-14 19:22:18 +02:00
Dobsgw
95081e601a
sm6250-common: audio: fixup audio io policy voip_rx flags
Flags for VOIP were mixed up as we move to CAF policy configuration. Amend the flags to get things working again.

Co-authored-by: Ramii Ahmed <ramy@ahmedramy.com>
Change-Id: I2a2b202e2a58db9a26f571c091b1fa0b8f2949f6
2021-10-07 21:30:01 +02:00
Alexander Winkowski
6291e7aa67
Revert "sm6250-common: audio: do not use direct flag for voip rx output"
* Causes crackling sound for notifications.

This reverts commit 198163984bb6e2f2301d85e35e627f43db95c832.

Change-Id: Ic0440713f1bd938cd97f127248227ec677c7dbe6
2021-10-07 21:29:58 +02:00
Sebastiano Barezzi
f7b5a79d5c
Revert "sm6250-common: Update camera provider service to 2.5."
* Reason for revert: camera HAL doesn't implement notifyDeviceStateChange.

This reverts commit 2ac59b869bed37bfaa480411ff98eed8991285f3.

Change-Id: I7919e0c0160a4108c9d066e914211cb4daa9c24b
2021-09-23 19:02:58 +02:00
Sebastiano Barezzi
75fface281
sm6250-common: Drop 32bit sensor stack
* Unused

Change-Id: I3d53d38190f8de097d3aee0384935b0bc0e6d65c
2021-09-23 18:42:58 +02:00
Alexander Winkowski
759befef55
sm6250-common: Update sensors service to 2.1
Change-Id: Ie417407c36929cf34ecbdd28feb1cab996fe1f30
2021-09-23 18:42:58 +02:00
Alexander Koskovich
2ac59b869b
sm6250-common: Update camera provider service to 2.5.
Change-Id: Id13db7bbd2d0ee1bd544e1670990c3caf46768ab
2021-09-23 18:42:58 +02:00
Sebastiano Barezzi
4b391001ab
sm6250-common: Remove 32bit camera libraries
* Unused

Change-Id: I62bb4c1042e15366c61399520984d30dd9421bb8
2021-09-23 18:42:58 +02:00
Alexander Winkowski
3f6eaf2696
sm6250-common: Drop prebuilt camera provider
Change-Id: Ibc9fcb5acfcbfa3432f0f0f7a9589a20217fa1ed
2021-09-23 18:42:58 +02:00
Alexander Koskovich
34dcc11300
sm6250-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Change-Id: I19460ef266a646b046f1e7d2f0b4eab7c48ae536
2021-09-23 18:42:57 +02:00
Alexander Koskovich
54830186e5
sm6250-common: Don't mount TraceFS twice.
* AOSP already mounts TraceFS in system init, so mounting it twice
   causes SEPolicy denials. See the comments in this change.

   https://android-review.googlesource.com/c/platform/system/sepolicy/+/1294195

Change-Id: Ic5d9ac2dbd36e404a93a8d48aa0ea933fd7fa701
2021-09-23 18:42:57 +02:00
Alexander Winkowski
6a60791b24
sm6250-common: audio: Drop Xiaomi ACDB ID changes
Change-Id: I3cbd6f345d8800585885a41cd760cae71607f75a
2021-09-23 18:42:57 +02:00
Alexander Winkowski
4cdaecf58a
sm6250-common: audio: Correct maximum microphone count
* miatoll devices have 2 microphones only

Change-Id: Ib8a71f4b3a3ada7850d8089df5c87b0869ebb1e1
2021-09-23 18:42:57 +02:00
Eric Laurent
198163984b
sm6250-common: audio: do not use direct flag for voip rx output
Dedicated output profile for VoIP should not be a direct output as
it prevents from playing two audio tracks simultaneously which breaks
call signalling played on top of Rx call audio.

Bug: 64392515
Test: Fi call, Duo Calls
Change-Id: I4e62ba3be3da079ff32be9b92d5d5fa28e0f5e2b
[dereference23: Apply the change to audio_io_policy.conf as well]
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2021-09-23 18:42:55 +02:00
Alexander Winkowski
a99d14b726
sm6250-common: Move LineageOS HALs to a separate compatibility matrix
Change-Id: If2f6d49cfc8609e15bc1ce5d725f54cdb91c5a4e
2021-09-09 18:46:36 +02:00
Mimi Wu
b744748f1d
sm6250-common: Modify sepolicy for toolbox to rm -rf /data/per_boot
type=1400 audit(1581489923.612:571): avc: denied { getattr } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:572): avc: denied { read } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.612:573): avc: denied { open } for comm="rm" path="/data/per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:574): avc: denied { getattr } for comm="rm" path="/data/per_boot/ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.616:575): avc: denied { write } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.616:576): avc: denied { remove_name } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1
type=1400 audit(1581489923.619:577): avc: denied { unlink } for comm="rm" name="ft09,GYyRLUL4NXv4BjupD" dev="dm-9" ino=4578 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=1
type=1400 audit(1581489923.656:578): avc: denied { rmdir } for comm="rm" name="per_boot" dev="dm-9" ino=4577 scontext=u:r:toolbox:s0 tcontext=u:object_r:per_boot_file:s0 tclass=dir permissive=1

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I22706c63fb13ea2aae0cd9fe8b92edc578fd459e
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
2021-09-09 18:46:36 +02:00
Mimi Wu
316cdce3f5
sm6250-common: Add sepolicy for kernel to access /data/per_boot/zram_swap
type=1400 audit(0.0:4): avc: denied { read } for path="/data/per_boot/zram_swap" dev="dm-5" ino=29313 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I338040c9166ddd5eb2f06d7cba1aee85da988c53
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: Albert I <kras@raphielgang.org>
2021-09-09 18:46:36 +02:00