Commit Graph

532 Commits

Author SHA1 Message Date
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
Sebastiano Barezzi
898e641b18 sm7250-common: Drop atrace HIDL
Change-Id: Iaaaf62e9dda26dd15d51f5975d9f21fe1037d2eb
2022-06-05 14:29:58 +02:00
Sebastiano Barezzi
35c9ecbc6e sm7250-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2022-06-05 14:29:58 +02:00
xSylla
4c5e023961 sm7250-common: Commonize graphics (Adreno firmware)
Change-Id: I979b0728dda3cc24da51ff00e24ee5a4bbb5c1db
2022-06-05 14:29:36 +02:00
xSylla
aaaf91f031 sm7250-common: We already have USB audio policy configuration so don't pick AOSP one
Change-Id: I92056d03df54abcfec42fcc6781ba1ae3651a4e5
2022-06-05 14:29:25 +02:00
Sebastiano Barezzi
f52759c8e1 sm7250-common: Implement UDFPS handler
Change-Id: I7afff305140639d38ebb8bc51fbe790a1636db9e
2022-06-05 14:29:13 +02:00
SebaUbuntu
a6624039b5 sm7250-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-06-05 14:29:13 +02:00
TheScarastic
6f9358f8c9 sm7250-common: parts: Fix thermal profile build for android-12
bfc9e59361

Change-Id: Idb137239c916f94d0bbef2166bb688f381e4ad28
2022-06-05 14:29:13 +02:00
TheScarastic
d2eae4ed29 sm7250-common: parts: Add dynamic thermal profile implementation
Change-Id: I4667b24a8a29a418796dc51b245ede0aca51eea6

sm7250-common: parts: Make thermal profiles naming completely generic

Drop the reference to YouTube because that's product-specific.
Moreover, the purpose of such thermal profile should be video streaming,
so name it in that generic way.

Change-Id: Ifa8c97a2d231a24fda016a876c06b59825a068a6

sm7250-common: Switch back to default thermal profile when screen off

Change-Id: I72aae3c1fbb13f44ff7a637ba9ad70cf451d71a2

sm7250-common: Set dynamic thermal interval to 5 sec

Change-Id: I96a67297645ad9074045e94fce84e664723aa64c

sm7250-common: parts: Switch to TaskStackListener

Change-Id: I18cb22decddb38420e8137aafdc56810e81d4603

sm7250-common: parts: Refactor whole code

Change-Id: I14303556c66ea6bd3d111b5ce7e176711a676824

sm7250-common: parts: Check if kernel support Thermal Profiles

Change-Id: Ief3911b0c1238ed6e209f7b66dde68d67a69ea88

sm7250-common: parts: Add ACTION_SCREEN_ON intent filter

 * this should fix thermal/touchscreen profiles not
   getting restored after turning screen back on

Change-Id: Idb485fc7f1942f1a2d117025fe5c4237afc3ec81

sm7250-common: parts: Use correct gaming thermal

* thermal-pubg.conf is missing which is selected with 13, instead we have thermal-tgame.conf which is 9.
* thanks amack766 for informing

Change-Id: If2e95fc04b26a1fa87e77f854ec0c325243cd097
2022-06-05 14:29:13 +02:00
SahilSonar
7ef5f67a7c sm7250-common: sepolicy: Allow power hal to write to f2fs nodes
Change-Id: I988b8b148d2b01523207d705e95c555db6d3c22d
2022-06-05 14:29:13 +02:00
althafvly
39eb7dbc12 sm7250-common: sepolicy: Label thermal_hbm_disabled
Change-Id: I51db20e8d30ba18c8b2e5bcbff09b97339b0fa80
2022-06-05 14:29:13 +02:00
Zhao Wei Liew
631499bb7a sm7250-common: Remove no-op TARGET_KERNEL_ARCH flag
TARGET_KERNEL_ARCH is a no-op unless it is different from TARGET_ARCH.

Change-Id: If36d5adc3296b76d5efb21da0e196f0b005ae784
2022-06-05 14:29:13 +02:00
Sebastiano Barezzi
a10f85a8f4 sm7250-common: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2022-06-05 14:29:13 +02:00
Bruno Martins
78150a3f1e sm7250-common: Switch to source-built mlipay interface
Change-Id: I7daaaffd9fe7a870e42c1d882b52dc93b3231120
2022-06-05 14:29:13 +02:00
SahilSonar
184613fdca sm7250-common: Update display stack from motorola_nio
* Required for new QSSI12 display HAL

Change-Id: I94705dc2ee0d33609834cda71d1e26d92641bef4
2022-06-05 14:29:13 +02:00
xSylla
76225f1e92 sm7250-common: Update blobs from MIUI V13.0.2.0.SJIMIXM
Change-Id: Ie65bb522086e1ee099423ca6d4d9cd9f2ebbefe7
2022-06-05 14:28:33 +02:00
xSylla
fece9129e0 sm7250-common: prop: Drop persist.vendor.radio.5g_mode_pref
Change-Id: I0772c4fbc483a74aa642ca1270d9a250e8db0147
2022-06-05 14:28:25 +02:00