Commit Graph

923 Commits

Author SHA1 Message Date
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
LuK1337
3150c6fef2
sm6150-common: Include vendor/debugfs.config
This disables the following kernel configs:
* CONFIG_DEBUG_FS
* CONFIG_PAGE_OWNER

Change-Id: Idbf74e3dee4dccff4708462271e79374e28449ae
2023-11-09 11:23:01 -05:00
basamaryan
ef7bbdacd2
sm6150-common: Reserve additional space on product
Change-Id: I27032b9250cc9891b502a2a187ee2e13da509e8a
2023-11-09 11:22:55 -05:00
basamaryan
43c21ef708
sm6150-common: Import missing qcrild dependency
Change-Id: I7d1ccc0019b068cca2845baf3ff85531828d2fe9
2023-11-09 11:12:58 -05:00
Arian
e7aa6a4c74
sm6150-common: parts: Target current sdk
Change-Id: Ia623282960775569325714ab3bff5ad027776352
2023-11-09 11:12:58 -05:00
Arian
3c6513473a
sm6150-common: parts: Get rid of HelpDialogFragment class
As preparation to upgrade the sdk get rid of this private class.
Fragments must be a public static class to be properly recreated from instance state.

Also change the behaviour to only hide the dialog when confirmed instead of also when it is cancelled.

Change-Id: I171aa2345058edae7520c37942c3c11b3cdfdfdc
2023-11-09 11:12:58 -05:00
Micheal
816fb961ad
sm6150-common: parts: Add an exported flag in manifest
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present

Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
2023-11-09 11:12:58 -05:00
basamaryan
a0cab74d88
sm6150-common: rootdir: Fix PowerOffAlarm
* As seen on sweet MIUI V14.0.7.0.TKFMIXM

Change-Id: I5d4e6f515d52290463d4f46882ec771fba7049b1
2023-11-06 03:52:06 -05:00
basamaryan
e6cc2b78d5
sm6150-common: Add missing ADSP modules
* capi_v2_dap_cpdp is needed to load latest sweet's ACDB data
* While at it, add the remaining ones

Change-Id: I7fbcf548e9281dd348819da135e9e76871eff093
Signed-off-by: danielml <daniel@danielml.dev>
2023-10-29 15:31:24 -04:00
basamaryan
a7e6dc7bd1
sm6150-common: Update blobs from sweet V14.0.7.0.TKFMIXM
Change-Id: I2c683e875bde677e9b8fd175b54fdc7eb9f25596
2023-10-19 00:52:19 -04:00
basamaryan
828234a087
sm6150-common: sepolicy: Drop duplicated wakeup node
* https://review.lineageos.org/c/LineageOS/android_device_qcom_sepolicy_vndr/+/356003

Change-Id: Id5b60a4d89324cabb224609d35ca583482685447
2023-10-05 11:00:04 -04:00
basamaryan
7e6e44b4e9
sm6150-common: overlay: Decommonize max visible notification icons
* For devices like surya and sweet with a center punch hole cutout,
  the last notification icon cannot fully show

Change-Id: I66d00419d69d1e5d91cb5d85ac0b1e7bac3dbe02
2023-08-27 12:11:05 -04:00
basamaryan
864f960196
Revert "sm6150-common: Assert the goodix ts on sweet"
This reverts commit 87ab8162d7.

Change-Id: Ib140b0d38cd5734e84bf575a1e55209db2632367
2023-08-24 10:18:25 -04:00
Arian
5d9b716f90 sm6150-common: livedisplay: Make supported interfaces configurable
Change-Id: I2949134f978d3c9b619ae55d3ac41a9b62e65d9c
2023-08-21 22:53:01 +02:00
danielml
87ab8162d7 sm6150-common: Assert the goodix ts on sweet
* Late 2022 units use a different touchscreen and Xiaomi
  __forgot__ to release the driver

Change-Id: I6992a58f1830953fcf4cd72c660f645b3c0248c1
Signed-off-by: danielml <daniel@danielml.dev>
2023-08-21 19:38:38 +02:00
Alessio Balsini
e8a34b098e sm6150-common: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the P21 device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
2023-08-21 19:38:38 +02:00
Daniel Rosenberg
8563c5735c sm6150-common: Enable casefolding support on userdata
This enables casefolding, which is required for removal of sdcardfs.

Test: Wipe data and boot. lsattr /data/media, check for +F
Bug: 138322712
Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c
2023-08-21 19:38:38 +02:00
basamaryan
b74503cd69 sm6150-common: Drop duplicated vendor.qti.ims.rcsconfig entry in proprietary-files.txt
Change-Id: I80ad0d34d59b94ed8deab53a7b82662ce06c5b59
2023-08-21 19:38:38 +02:00
Arian
10425fe8d7 sm6150-common: rootdir: Add metadata to recovery.fstab
This is necessary for it to be formatted on factory reset

Change-Id: Id859d8ab16c64a1a174aa11ed73379f2c5d7f370
2023-08-21 14:44:52 +02:00
LuK1337
c919ac7971 sm6150-common: rootdir: Set no_sehash_xattr on /mnt/vendor/persist
Change-Id: I070b1e41978aa80eb64b536ab635e9f38a2413c3
2023-08-20 18:47:33 +02:00
Michael Bestas
630f539308 sm6150-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-08-20 18:47:33 +02:00
Michael Bestas
4bc7f3e65f sm6150-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-08-20 18:47:33 +02:00
Michael Bestas
07d61f1855 sm6150-common: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2023-08-20 18:47:33 +02:00
Michael Bestas
0fb6b30d16 sm6150-common: gps: Remove all Wno-error flags
Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
2023-08-20 18:47:33 +02:00
Albert I
9a20a65141 sm6150-common: gps: Implement list empty error code for msg_q
This fixes enum-conversion warning due to implicit type enum casting
between linked_list and msg_q which happens only for status -6.

Change-Id: I27ba74c4d840b7ba0cb1017d69a30fc25b80d6b9
2023-08-20 18:47:33 +02:00
Albert I
452ebe1a60 sm6150-common: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2023-08-20 18:47:33 +02:00
Albert I
3ac812ed09 sm6150-common: gps: Reorder initializations list to satisfy warnings
-Wreorder-ctor is a compile-time, Clang-only flag which is enabled by
default since Clang 12, which will warn whenever a specified field will
be initialized right after field specified below it. However, since it
doesn't sweep through all fields, compiler may miss some of them.

This order has been checked thoroughly through many trial and errors to
ensure that no such warns will be triggered anymore.

Change-Id: Id24cbb7277dc8d6c02767f8f365818ab6c017683
2023-08-20 18:47:33 +02:00
Michael Bestas
15a7ec7e32 sm6150-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2023-08-20 18:47:33 +02:00
LuK1337
6d7b2f1980 sm6150-common: overlay-lineage: Add reboot to fastbootd
Change-Id: I733b4d29129f85b92222e292af46602310b9f29f
2023-08-20 18:47:33 +02:00
danielml
cc633a0998 sm6150-common: sepolicy: Label /dev/block/mmcblk0p1 as sdcard block device
* Needed for DSU

Change-Id: I25f7272621451723eb0fc72d9b772795a1f8ed51
Signed-off-by: danielml <daniel@danielml.dev>
2023-08-20 18:47:33 +02:00
LuK1337
cae03c13c8 sm6150-common: Fix BOARD_FLASH_BLOCK_SIZE
BOARD_KERNEL_PAGESIZE * 64 != 131072

Change-Id: Id0762503d1223d0f2b9cacf9af2fca1e6e6caf3d
2023-08-20 18:47:33 +02:00