Commit Graph

953 Commits

Author SHA1 Message Date
Sebastiano Barezzi
ed6986e80f
sm6150-common: Move to common Xiaomi light AIDL
Change-Id: I00494cd392d19abd97cd65aeb4ec4bd9c9b11352
2024-06-18 02:05:33 +05:30
Michael Bestas
7dc92aba67 sm6150-common: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
2024-06-17 12:23:25 +02:00
Arian
8e3e871e8f sm6150-common: Provide a static lib for power mode extension
Change-Id: I3e2cf17bf1e733838e9e18afdf3f888e814593dc
2024-05-19 18:07:53 +02:00
Bruno Martins
22ae2ff2f8 sm6150-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-05-19 18:07:53 +02:00
Nolen Johnson
104c4cf764 Revert "sm6150-common: Ship full recovery image"
This reverts commit 9f3a3d1e47.

Reason for revert: Global now in vendor/lineage.

Change-Id: Ib5d19fe8e69e52c87454418f9e4a0c4bdf90e7b8
2024-04-29 22:11:00 +02:00
Adithya R
4229944346
sm6150-common: Set arch variant to armv8-2a-dotprod
karna:/ $ cat /proc/cpuinfo | grep -m 1 Features
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp

From this, it's evident that our CPU (Snapdragon 732G/Kryo 470) supports
all the features of ARMv8.2-DotProd [1]. Moreover AOSP sets this arch
variant in their generic cortex-a55 ART target as well [2]. This should
unlock some optimizations in different code paths.

[1]: https://en.wikichip.org/wiki/arm/armv8#ARMv8_Extensions_and_Processor_Features
[2]: https://android.googlesource.com/device/generic/art/+/refs/heads/master/armv8_cortex_a55/BoardConfig.mk#23

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: I484bb2bcc181c62e29c04bc6e467e5edea8ac0d8
2024-04-10 13:26:49 -04:00
Philip Cuadra
14c17f47af
sm6150-common: Target arm v8.2a and A55
This will let bionic use 8.2a atomics which helps scudo locking.

Bug 189248298
Test: Presubmit

Change-Id: Ifa7a6d8386c8adcadb81cb762758b06a8164f700
2024-04-10 13:26:48 -04:00
Michael Bestas
6ddf037ce4
sm6150-common: overlay: Enable battery cycle count
Change-Id: I92bc8363e1c9e2ad54c29a0a30dce992e25f697d
2024-04-10 13:26:48 -04:00
danielml
54a261cbd5
sm6150-common: sepolicy: Follow stock label for ro.product.mod_device
* This allows us to dynamically override the property from vendor_init

Change-Id: Id80b60028e78ae1fcc9236f66570a27759ecbdc4
Signed-off-by: danielml <daniel@danielml.dev>
2024-04-10 13:26:48 -04:00
LuK1337
192dd1eb8f
sm6150-common: libqti-perfd-client: Clean up
* Run clang-format
* Add newlines between functions
* Use elvis operator `?:` for return value

Change-Id: I920044df12c99d32ddd2ef3fb5edf24bcd0c7360
2024-04-10 13:26:48 -04:00
basamaryan
2a17de6423
sm6150-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-04-10 13:26:48 -04:00
Michael Bestas
f531fce60d
sm6150-common: Switch to android.hardware.usb@1.3-service.dual_role_usb
Change-Id: Ibd14f7d31dfaf41e040302eda3bc49f351deb618
2024-04-10 13:26:48 -04:00
Michael Bestas
f6ca8c44ba
sm6150-common: parts: Convert to SwitchPreferenceCompat
Change-Id: Ic1cbaba37d499da1855af9c3930f2df426e2d3af
2024-04-10 13:26:48 -04:00
Chaohui Wang
e6c443b3bf
sm6150-common: parts: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
2024-04-10 13:26:47 -04:00
Peter Kalauskas
602abf752f
sm6150-common: parts: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2024-04-10 13:26:47 -04:00
Tomasz Wasilczyk
663a48924f
sm6150-common: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
2024-04-10 13:26:47 -04:00
Cole Faust
5702656b83
sm6150-common: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
2024-04-10 13:26:47 -04:00
Sebastiano Barezzi
ce784237a1
sm6150-common: rootdir: Drop debugfs stuff
Missed in I45e6f20c886d467a215c9466f3a09965ff897d7e

Change-Id: I9ec52e8969b20be027e5693637e65eddb99169c9
2024-04-10 13:26:47 -04:00
Prabhanjan Kandula
2efa487655
sm6150-common: rootdir: Avoid delay for vblank disable from DRM
Set drm_vblank_offdelay parameter to -1, to make DRM
issue the vblank disable immediately with out delay.
By defailt  the DRM framework has a delay of 5 secs
timeout before issuing the vblank disable.

Change-Id: Idc1dfe6a6994f2ac2d3c60ae8fd5a4e883b675d9
2024-04-10 13:26:47 -04:00
basamaryan
03408f01f4
sm6150-common: Do not force DCI-P3 on adaptive color mode
Since Android 14, when we use the DCI-P3 color space on the adaptive color mode
there are multiple frame drops while using the device. Don't force it for now
until we have a proper fix.

Change-Id: I7ab3604f4b2932f0710374055d086aefad37aaab
2024-04-10 13:26:47 -04:00
Michael Bestas
43490e9531
sm6150-common: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2024-04-10 13:26:47 -04:00
Suren Baghdasaryan
4395b79e9f
sm6150-common: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
2024-04-10 13:26:46 -04:00
Suren Baghdasaryan
32aba0f3bb
sm6150-common: Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
2024-04-10 13:26:46 -04:00
Rick Yiu
d8e35a1cd3
sm6150-common: Remove some camera-daemon commands
Those commands have moved to init.rc.

Bug: 170507876
Bug: 171740453
Test: build pass
Change-Id: Icfe520e7f7367461607cc8fb5e524d9699e79124
2024-04-10 13:26:46 -04:00
Michael Bestas
9202e79a7a
sm6150-common: Build recovery QTI health AIDL service
We have a recovery partition.

Change-Id: I10841b26feea3c214349a20b2eedec74924f993a
2024-04-10 13:26:46 -04:00
Bruno Martins
53d51eceb1
sm6150-common: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2024-04-10 13:26:46 -04:00
Bruno Martins
83a0bcef55
sm6150-common: Use the common device compatibility matrix from QCOM
Change-Id: I0c0f3ecddbe6d7b232cc0d13c78ca58094e4e720
2024-04-10 13:26:46 -04:00
Bruno Martins
95750a24bd
sm6150-common: Migrate to restructured sepolicy_vndr
The new folder structure now looks like this:

  device/qcom/sepolicy_vndr
  ├─ legacy-um (meant for sdm845 until sm8350)
  ├─ sm8450
  └─ sm8550

SEPolicy.mk placed in the root automatically redirects devices to the
proper subfolder.

Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d
2024-04-10 13:26:45 -04:00
LuK1337
d58ad40aa3
sm6150-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-04-10 13:26:45 -04:00
Krzysztof Kosiński
7c273239a4
sm6150-common: Add prebuilt protobuf 3.9.1 to vendor partition.
Needed to work around a Qualcomm HAL prebuilt.

Bug: 203713560
Bug: 258322017
Bug: 254854421
Test: Forrest
Change-Id: I4eebc60f10fbea6a66127ed3e08441db32536f78
2024-04-10 13:26:45 -04:00
Adithya R
98d7265fbe
sm6150-common: Switch to full IWLAN mode
[basamaryan: This is needed to fix RIL on Android U]

Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: Ie3fa610f71077b4ee2af1b4d57bd0c30b34f30fa
2024-04-10 13:26:45 -04:00
Gabriel Biren
6885f726e2
sm6150-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2024-04-10 13:26:45 -04:00
Madhanraj Chelladurai
0c0ae20c68
sm6150-common: gps: Add NULL check before object access
Correct the NULL check code block and add NULL check before
object access.

Change-Id: Ic41b781b41fb4e21bbff8801d500a41a6d7219d0
CRs-fixed: 3084543
2024-04-10 13:26:45 -04:00
Yi Kong
29be33dd64
sm6150-common: gps: Fix unqualified-std-cast-call warning
hardware/qcom/sm8150/gps/utils/LocIpc.cpp:315:24: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
            mIpcRecver(move(ipcRecver)) {}
                       ^
                       std::

Test: presubmit
Change-Id: I7378416e788f20ebb3f8d1d065d60964dc76eb99
2024-04-10 13:26:45 -04:00
Josh Wu
6735f03614
sm6150-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2024-04-10 13:26:45 -04:00
Edwin Moquete
2d10bb309b
sm6150-common: Disable frame rate override feature
This is enabled by default on U, and it causes apps like
Chrome and YouTube to render the frame rate at 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
Signed-off-by: basamaryan <basam.aryan@gmail.com>
2024-04-10 13:26:44 -04:00
Alex Sarraf
d1e8fa2367
sm6150-common: display: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2024-04-10 13:26:44 -04:00
basamaryan
b6ac30a37a
Revert "sm6150-common: Don't latch unsignal buffers"
This reverts commit be8d0f020d.

Change-Id: I5c27894395e5b8bf29f633ef307f7bf8b91235e8
2024-04-10 13:26:44 -04:00
Alexander Koskovich
e73b05ffbc
sm6150-common: CarrierConfigOverlay: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
2024-04-10 13:26:44 -04:00
Rohit R Sekhar
7ff80e756a
sm6150-common: CarrierConfigOverlay: Enable editable_enhanced_4g_lte_bool globally
* Couple of carriers with mcc=310 (USA) had these disabled
* This causes Enhanced 4G LTE Mode to be unchangable from the default
  value which is false.

Change-Id: Ia6b43eb251837819ec99c01ec4e19a228987fc40
2024-04-10 13:26:44 -04:00
basamaryan
9842d7068f
sm6150-common: CarrierConfigOverlay: Update from sweet_k6a OS1.0.3.0.THGMIXM
Retained 59c2522990 and 617bc4471a

Change-Id: Ia7816330219a77f26aa2890a6913636bc131d90f
2024-04-10 13:26:44 -04:00
basamaryan
d153fd49af
sm6150-common: Update blobs from sweet_k6a OS1.0.3.0.THGMIXM
Change-Id: I49e115b9322f1af1afdafabcbad8e785d330901f
2024-04-10 13:26:44 -04:00
basamaryan
08907a6238
sm6150-common: Decommonize ADSP modules
Change-Id: I2d250b03b4a21ec59e8d1de8d046d903be472a60
2024-04-10 13:26:43 -04:00
basamaryan
c8ca7b8d22 sm6150-common: Update blobs from sweet V14.0.9.0.TKFMIXM
Change-Id: Iec655b7db96d8a1768051bb6a292dc0ddf23f1bf
2023-12-15 16:16:15 +00:00
LuK1337
dfc3c8754a sm6150-common: Don't limit {product,system,system_ext} inode count when !WITH_GMS
Change-Id: I458edd755fa436feadeb9f5fb2aecb0da797b0ef
2023-12-15 16:15:57 +00:00
Jarl-Penguin
9f3a3d1e47 sm6150-common: Ship full recovery image
* Ensure users are always on the latest recovery image

Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I033ac4442622b737639d678993daf602a89f9bac
2023-12-15 14:06:43 +01:00
Tim Zimmermann
0e2890fafe sm6150-common: Inherit non_ab_device.mk
* This is required to build applypatch for updating recovery

Change-Id: I38053691f7724b5d6c30159c410d5d04ac136180
2023-12-15 14:06:36 +01:00
Danny Lin
d166f5ef61
sm6150-common: overlay: Enable subtle tick vibration when revealing shelf
The stock ROM enables this because our vibrator supports subtle "tick"
vibration effects. Enable it in our device tree as well to make pulling
down the notification shade/QS panel feel slightly more interactive.

Change-Id: I0c160694bd9616c8693a659da8db9cf4e59ba4c3
2023-11-14 14:15:00 -05:00
Alec Mouri
1b03139bb9
sm6150-common: Force some devices to treat 170M as sRGB in SF
Bug: 229442032
Test: builds, boots
Change-Id: If144724a342be4a74f823aa25ff8a74fe3d2843a
2023-11-14 13:10:37 -05:00
David Sehr
13e98270e2
sm6150-common: Enable usage of dex2oat64
Use 64-bit dex2oat for better dexopt time.

Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
2023-11-14 13:10:37 -05:00