Commit Graph

448 Commits

Author SHA1 Message Date
Alexander Koskovich
b70f5f45af sm7250-common: Enable LLVM integrated assembler
* Disabled by default even with LLVM=1, but this is
   another GCC dependency we can remove. Google has
   been doing this for a while now.

   https://android.googlesource.com/kernel/msm/+/b009f0a1a

Change-Id: I1ca23607682299182da0a6e14594ba2e2de00a4a
2022-06-22 12:12:30 +10:00
etancohen
ae02241107 sm7250-common: Declare WiFi Aware support to WiFi HAL
* The Wi-Fi Aware feature added in Android 8.0 enables
   supporting devices to discover, connect, and range
   (added in Android 9) to one another directly using
   the Wi-Fi Aware protocol without internet or cellular
   network access.

 * This feature, built upon the Wi-Fi Alliance (WFA) Wi-Fi
   Aware specification (versions 2.0 and 3.0), allows easy
   sharing of high-throughput data among trusted devices
   and apps that are otherwise off-network.

   https://source.android.com/devices/tech/connect/wifi-aware

Change-Id: I18ff20e7466b8e8fd598381b730fb7db391e9ad4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-20 18:53:41 +10:00
mikairyuu
acca122455 sm7250-common: sepolicy: resolve some denials 2022-06-20 18:53:30 +10:00
KakatkarAkshay
8e014c476a sm7250-common: Update blobs from LA.UM.9.12.r1-14200.02-SMxx50.QSSI12.0
Signed-off-by: aswin7469 <aswinas@pixysos.com>
2022-06-20 15:13:31 +10:00
Subbaraman Narayanamurthy
ccaf40fbc3 sm7250-common: Add QTI health implementation
Add QTI health implementation so that it waits for battery power
supply for a max timeout of 5 seconds. This is to ensure by the
time health HAL service starts, battery power supply device is
available. Without this, health HAL couldn't find battery power
supply sometimes because of the time taken for battery charger
driver to probe on platforms where it can happen only after the
remote subsytem is bought out of reset.
2022-06-20 15:01:41 +10:00
mikairyuu
43106bb971 sm7250-common: props: sync display prop with redbull 2022-06-17 22:32:09 +10:00
mikairyuu
dfb5a8e37f sm7250-common: remove non-existent los overlay folder 2022-06-17 22:27:09 +10:00
mikairyuu
b9118ce1b2 sm7250-common: Nuke FM radio 2022-06-17 18:49:41 +10:00
mikairyuu
7fcd20e52b sm7250-common: props: unset latch_unsignaled
Google thinks it's a bad prop for pixels, so it's a bad prop for us
2022-06-17 18:49:41 +10:00
Ady Abraham
7fc7d91529 sm7250-common: use phase offsets as duration.
adopt the new way of specifying phase offsets to SurfaceFlinger.
More info in ag/9856326

Bug: 145561086
Bug: 141329414
Test: jank tests
Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest
Change-Id: Ie50eb69009ac54345d0174f5429bc402573ec328
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
4296a8c344 sm7250-common: audio: Inline earpiece cfg with CAF 2022-06-17 18:49:41 +10:00
mikairyuu
65dade4d28 sm7250-common: props: Use dex2oat64
Might be useless, but it's set in redbull so better safe than sorry
2022-06-17 18:49:41 +10:00
mikairyuu
dd25b98a11 sm7250-common: sepolicy: Properly address multiple denials 2022-06-17 18:49:41 +10:00
iusmac
1ea059b2ea sm7250-common: sepolicy: Adress IORap usap_pool denial
W FinalizerDaemon: type=1400 audit(0.0:532): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:radio:s0 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0

Signed-off-by: iusmac <iusico.maxim@libero.it>
2022-06-17 18:49:41 +10:00
Adithya R
bb99f9e2a6 sm7250-common: Disable unspecialized app process pool
* doesnt work properly with zygote native fork loop:

11-16 13:12:39.971  2350  2350 E USAP    : Attempt to invoke virtual method 'int com.android.internal.os.ZygoteCommandBuffer.getCount()' on a null object reference
11-16 13:12:39.973  1952  2099 E ZygoteProcess: IO Exception while communicating with USAP pool - Connection reset by peer

Change-Id: I7dc09be8f047c29400c1df7874f5a0e1dae81723
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
b9ded2d959 sm7250-common: Import anti-logspam props 2022-06-17 18:49:41 +10:00
Danny Lin
c089bd7993 sm7250-common: Switch to Vulkan UI renderer
We tried doing this on Android 11 and later reverted it due to fd leaks
during prolonged video calls. However, the issue has been fixed on
Android 12, so let's enable it again for performance.

Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Change-Id: I1cd2ca6931aad60f9c48d40aa0212b69c68edef8
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
aa98dfe61c sm7250-common: Import kernel config 2022-06-17 18:49:41 +10:00
mikairyuu
0d4e6f43f7 sm7250-common: Fix wcnss denial 2022-06-17 18:49:41 +10:00
Aayush Gupta
17a8740165 sm7250-common: sepolicy: Allow hal_health_default required permissions
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:807): avc: denied { read } for name="type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:808): avc: denied { open } for path="/sys/devices/platform/1101b000.i2c8/i2c-8/8-001d/power_supply/parallel/type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:809): avc: denied { getattr } for path="/sys/devices/platform/1101b000.i2c8/i2c-8/8-001d/power_supply/parallel/type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I697f92611a9c30b34872c792beb1c24c298bb0b1
Signed-off-by: SparXFusion <s2234nadar@gmail.com>
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
mikairyuu
8e6c6a2f49 sm7250-common: Remove WFD jar 2022-06-17 18:49:41 +10:00
mikairyuu
9cd3d50e98 sm7250-common: Further decrease doze brightness
You do not need that bright of a screen most of the time
2022-06-17 18:49:41 +10:00
Akash Srivastava
f0a6977227 sm7250-common: Include ipacm makefile
* No need to populate device tree with its package. Just include its makefile

Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:49:41 +10:00
Akash Srivastava
ceb467cbbb sm7250-common: Update graphics blobs from WAIPO 2022-06-17 18:49:41 +10:00
mikairyuu
737bb2ad32 sm7250-common: Update blobs to LA.UM.9.12.r1-13400.02-SMxx50.QSSI12.0 2022-06-17 18:49:41 +10:00
mikairyuu
79c08363ac sm7250-common: rootdir: update to LA.UM.9.12.r1-13700-SMxx50 2022-06-17 18:49:41 +10:00
Haoran.Wang
b05559daf5 sm7250-common: Grant android.permission.WRITE_DEVICE_CONFIG to gms
Grant android.permission.WRITE_DEVICE_CONFIG to com.google.android.gms
package.

TEST: run gts -m GtsDeviceConfigTestCases -t
com.google.android.deviceconfig.gts.DeviceConfigApiPermissionTests#testWriteDeviceConfigPermission

Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Reviewed-on: http://androidsource.ap.freescale.net/project/13666
Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>
Reviewed-by: Tian Yang <yang.tian@nxp.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:09:45 +10:00
Joey Huab
46bde50f28 sm7250-common: sepolicy: Address getopt denials 2022-06-17 18:09:45 +10:00
mikairyuu
e66bcdbc0c sm7250-common: Use lolz clang for kernel 2022-06-17 18:09:45 +10:00
CloudedQuartz
f9287b76d6 sm7250-common: switch to bw_hwmon governor for devfreq on init 2022-06-17 18:09:45 +10:00
penglezos
8d64219aa8 sm7250-common: rootdir: Set default thermal profile to '0'
Since we dropped dynamic thermal profile implementation, set the default thermal profile to 0 (Disabled) and let mi_thermald driver does it's magic.

Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-17 18:09:45 +10:00
Sultanxda
37c0930b35 sm7250-common: props: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
* We're not using perfd so this is useless.

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Change-Id: I3b436f3f747c6955335513a133da81d27a6fbf60
2022-06-17 18:09:45 +10:00
mikairyuu
2989264ed6 sm7250-common: Declare high performance VR support
Needed for daydream etc to work
2022-06-17 18:09:45 +10:00
xSylla
0424faee5b Revert "sm7250-common: megvii: Initial stub libraries"
This reverts commit 127e843873.
2022-06-17 18:09:45 +10:00
mikairyuu
d206831937 sm7250-common: Import minimal Pixel Thermal sepolicy
*can't use source one since it conflicts with qcom's
2022-06-17 18:09:45 +10:00
mikairyuu
1f04cc785d sm7250-common: Build Pixel Thermal HAL 2022-06-17 18:09:45 +10:00
mikairyuu
d28cd13b02 sm7250-common: Nuke LOS remains 2022-06-17 18:09:45 +10:00
mikairyuu
a9b018a266 sm7250-common: import configs from snow 2022-06-17 18:08:49 +10:00
Chenyang Zhong
7e102bf209 sm7250-common: switch iorap prefetch prop to mendel flags
Thanks Google for silently changing the prop for starting iorapd
service [1].

ref:
[1] 44176c75f7

Test: boot, check if iorapd service is started, and
      IorapForwardingService is not complaining

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: Ic78543b32488a861c3670238bbf5b8568608d342
2022-06-16 13:42:40 +10:00
orges
ec99ba4efc sm7250-common: set BOARD_USES_ADRENO to true
* libc2dconvert wont be included unless this is set

Former-commit-id: e8ec4504d4f7995acafa0f7de412fb605240e67f
Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-16 13:42:40 +10:00
mikairyuu
a3955afeb1 sm7250-common: Use arch config from redbull 2022-06-16 13:42:17 +10:00
Mikhail Naganov
525035cbd7 sm7250-common: Switch audio HAL to V7
Updated audio policy manager configuration files to comply
with the changes in the XML schema.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioEffectV7_0TargetTest
Change-Id: I55d3728c809d27e58d5d496a1c7d637050dde53a
2022-06-16 13:02:53 +10:00
johnmart19
3a625d8bda sm7250-common: Apply latest supported deqp levels for Vulkan & OpenGL
Device uses drivers OpenGL ES 3.2 V@502.0 Date: 10/04/2021, Vulkan v1.1.128, which fully support this versions

Signed-off-by: Joey Huab <joey@evolution-x.org>
2022-06-16 13:00:10 +10:00
kondors1995
0d8b31cf3e sm7250-common: Add Livedisplay 2.1 2022-06-16 12:56:26 +10:00
EmanuelCN
2284ac6ad5 sm7250-common: Swich to EROFS
*Requires kernel support.
2022-06-16 12:55:22 +10:00
mikairyuu
4d8aed0752 sm7250-common: nuke parts 2022-06-16 12:52:47 +10:00
Nauval Rizky
de9c2615b4 sm7250-common: parts: Thermal settings's app list improvement
* Migrate from ListView to RecyclerView for better integration with the
  collapsing toolbar and smoother scrolling
* Several UX improvement over the item's layout

Change-Id: I2a2b566020c9869979cc3f6e8c2be7a92c8d325f
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
3bf10fed5d sm7250-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-06-05 14:29:58 +02:00
Sebastiano Barezzi
21100bd7af sm7250-common: Remove USE_DEVICE_SPECIFIC_CAMERA
* Doesn't exist

Change-Id: I10fc7de8721f3c871d00522e1d85c2a8d8c18160
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
6a82833129 sm7250-common: Remove TARGET_ENABLE_MEDIADRM_64
* It's only used when building drm@1.0 HIDL

Change-Id: I06412e2dd2bb48d798be4ef6e9a26a17b65277a7
2022-06-05 14:29:58 +02:00