Commit graph

399 commits

Author SHA1 Message Date
Tommy Webb
06d75d3f49 sm6225-common: Don't try to play many-channel audio as is
These devices don't have surround sound, as nice as that would be, so
stop pretending. Otherwise, we get weird behavior, like playing surround
sound audio at full volume regardless of the media volume or mute state.
Now, it plays properly.

Issue: calyxos#2075
Change-Id: Ic530906a9dacb2699e32f2ed91f38fab0dad1492
2024-03-22 16:53:45 +00:00
Wolfram Liebchen
11c5aa8c60 sm6225-common: More notification icons on AOD screen
The AOD screen can hold more than 3 notification icons in a row.

Change-Id: I45a61c1b47bedd10cedda84bee3323d0d2aa161c
2024-03-22 16:53:25 +00:00
Tommaso Fonda
49f98753c4 sm6225-common: Switch to the OSS sec NFC HAL
Change-Id: I0c2a3b4db42d0e8af92c510bdd014eacc610b7f7
2024-03-22 16:50:57 +00:00
Michael Bestas
b59023c589 sm6225-common: sepolicy: Label persist.vendor.nfc properties
and let vendor_init set them

Change-Id: I93f1c7269caabce255be7770d78d8133fcbc8c46
2024-03-22 16:50:57 +00:00
Michael Bestas
98150f6bef sm6225-common: Override ST NFC service
Change-Id: I8416a7da8b72d6996b263bf5e3dc5fc337038cd5
2024-03-22 16:50:57 +00:00
Tommy Webb
24fbcb1c9f sm6225-common: Specify vendor.usb.controller
Specify this so that USB can be properly brought back online via HAL.

It was already specified in these locations:
- device/motorola/sm6225-common/rootdir/etc/init.target.rc
  But this apparently isn't early enough in the boot process.
- vendor/qcom/opensource/usb/vendor_product.mk
  But this apparently isn't included and doesn't take effect.

As a result, vendor/qcom/opensource/usb/hal/Usb.cpp would use its
fallback value of a600000.dwc3, which is not correct.

Issue: calyxos#2154
Change-Id: I3f10cb8d902281b3cd06e8c2b51bdf60bb57742e
2024-03-22 12:10:00 +00:00
basamaryan
c2af420384
sm6225-common: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
2024-03-22 13:45:39 +02:00
Cole Faust
0b02dd3d27
sm6225-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-03-10 22:47:00 +02:00
Tomasz Wasilczyk
651569648c
sm6225-common: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
2024-03-10 22:46:52 +02:00
Michael Bestas
c4ebd5b81c
sm6225-common: Sort blobs list
Change-Id: Id69b3e0e08776a0cf140c7043643fac64053c9b8
2024-03-02 18:54:01 +02:00
Michael Bestas
ac3e17b967
sm6225-common: Remove deprecated nfcee_access.xml
Removed in I10cf119a1105c123b69f628f5420587bc84b1078

Change-Id: I796e71a82d8b4dcfbbb0267740b5e507753c9539
2024-02-26 19:25:32 +02:00
Michael Bestas
d0d3ab7c8b
sm6225-common: Override NXP NFC service
Change-Id: If7936a79aa6cded9bbd1a675946b57c56c726d27
2024-02-26 19:25:29 +02:00
Michael Bestas
b8aec39cfe
sm6225-common: Don't override default camera provider rc
Change-Id: I63f7cfe5bb70f71fc42c8c82584950506def77f5
2024-02-26 19:25:24 +02:00
Michael Bestas
7920c49cc6
sm6225-common: sepolicy: Label FPC hwservice
Change-Id: I92d3e014b3ccef24ea890ae42ca76563657790eb
2024-02-26 19:25:19 +02:00
Michael Bestas
819666780a
sm6225-common: sepolicy: Label fingerprint ident services
Change-Id: If4228df4dedff9d5fe20c8379c41ba9ce650c000
2024-02-26 05:13:52 +02:00
Michael Bestas
337a98c231
sm6225-common: sepolicy: Label ro.vendor.product.display
Change-Id: Ic02a712a6bba23daad26700a01239c7c19410169
2024-02-26 05:13:52 +02:00
Michael Bestas
68eae2d364
sm6225-common: Disable batt_health service
Change-Id: I2533fd387c4d6605cb96a186bac1ca5a5ffb987b
2024-02-26 05:12:45 +02:00
Michael Bestas
bbebc27f92
sm6225-common: Add missing IMS lib
Fixes:
E ims_media_jni: Error loading library lib-imsvt.so: dlopen failed:
library "vendor.qti.imsrtpservice@3.1.so" not found: needed by
/system_ext/lib64/lib-imsvt.so in namespace clns-shared-8

Change-Id: I23c1bf528304081526b3ed67a84794ca7e456309
2024-02-26 03:33:53 +02:00
Michael Bestas
a8bef8d042
sm6225-common: Update to devon_g T2SNS33.73-22-3-3
Change-Id: I23d28a92b0926192db39160eb2c147f115076570
2024-02-08 01:41:05 +02:00
Tommy Webb
4015802443 sm6225-common: Specify vendor.usb.device
Needed to restrict USB properly.

Change-Id: I4fc97c4a0be7a96c89d674bcde613ccf83d1c336
2024-01-10 19:32:49 +00:00
MD Raza
776fa1eb1f sm6225-common: set boot header ver to 3 if not defined
Older bengal have boot header version 2

Change-Id: I4a29daebb7f85a430e2e26b27c8a39a1e259db8c
2024-01-08 12:21:04 +00:00
Alessio Balsini
8676a9d3a9
sm6225-common: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the 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
2024-01-05 11:47:18 +02:00
Tommaso Fonda
292173dc55
sm6225-common: sepolicy: Update for T blobs
Change-Id: I97c9682f35ade823fa073bc993390ad38376a9da
2024-01-05 11:41:07 +02:00
Michael Bestas
77d964ea69
sm6225-common: Update to devon_g T2SNS33.73-22-3-2
Change-Id: I065a2bf4232992416cd28cdad1dd0a09889d7b2a
2024-01-05 11:41:07 +02:00
Michael Bestas
0271d78b77
sm6225-common: Add firmware extraction support
Change-Id: If6cb6334a8f7b2fcc77c8947569eba1b2002190a
2024-01-05 11:41:07 +02:00
Tommaso Fonda
0ea4719b77
sm6225-common: gps: Resolve more unused parameter warnings
Change-Id: I8c0b039c610ae4abc82b1bb8d975cb76b9ba2027
2024-01-05 11:41:07 +02:00
Michael Bestas
58e72f4794
sm6225-common: Update GPS HAL to LA.UM.9.15.r1-07400-KAMORTA.QSSI13.0
Change-Id: I8f0f477db0fdeed28fc4ba1c997bfe38b1c7268f
2024-01-05 11:41:07 +02:00
Michael Bestas
e0ed33f86c
sm6225-common: Update manifest to devon_g T2SN33.73-22-3
Change-Id: Ic2fc6c8b78691a4ba7abe6e1d361db34e460353e
2024-01-05 11:41:06 +02:00
Michael Bestas
104e653a82
sm6225-common: Update media configs to devon_g T2SN33.73-22-3
Change-Id: I32a9e0fef589bc80e25cfc6b83c026504b4214e7
2024-01-05 11:41:06 +02:00
Michael Bestas
757b8c471e
sm6225-common: Update rootdir to devon_g T2SN33.73-22-3
Change-Id: I00acebe92cf52b76991d5d53acbbcbfbc9b069bb
2024-01-05 11:41:06 +02:00
Michael Bestas
e94986d22b
sm6225-common: Update properties to devon_g T2SN33.73-22-3
Change-Id: I05235b8b3dc739882620b164db12b21a178228d1
2024-01-05 11:41:06 +02:00
Michael Bestas
45194ac3cf
sm6225-common: Update blobs to devon_g T2SN33.73-22-3
Change-Id: I3180dadeadc2ec5bbfcf27647ee468deeeb6e3d1
2024-01-05 11:41:06 +02:00
MD Raza
312d167398 sm6225-common: sepolicy: Add rules for goodix_fp
Signed-off-by: MD Raza <raza231198@gmail.com>
Change-Id: I3e713e83e967cc8d3edfe01895fdb929da22bab9
2024-01-01 20:45:43 +00:00
MD Raza
352ecd337f sm6225-common: Add guamp HALs to compatibility matrix
Signed-off-by: MD Raza <raza231198@gmail.com>
Change-Id: I4e413d791e9d6bc442230b149133349fc785e6ea
2024-01-01 20:45:43 +00:00
Michael Bestas
0e2004dc7e sm6225-common: gpt-utils: Fix partition lists
Add/remove partitions and shuffle them to the proper list.
This should make all moto bengal devices work.

Removed: mdm1m9kefs3, spss
Added: recovery

Change-Id: I107d1c75cd44db02100042903f5794ed7efc8928
2024-01-01 20:45:43 +00:00
electimon
07b9309e97 sm6225-common: bootctrl: Fix logic for emmc devices
Change-Id: Ie113bba941e5e7b8da3ecd87f22a6f8b78dd797e
Signed-off-by: electimon <electimon@gmail.com>
2024-01-01 20:45:43 +00:00
Wolfram Liebchen
bceece86cf sm6225-common: Enable ambient display
Triggered by notifications or by pickup gesture, hand wave and
pocket gesture shows the ambient display.
No AOD enabled.

Change-Id: I7c76d513c84084427b71305ec54e3033a0d7a08c
2024-01-01 20:44:49 +00:00
Jesse Chan
e772f0151e sm6225-common: Enable option for full screen aspect ratio
Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03
2024-01-01 20:41:04 +00:00
LuK1337
01651e0ede
sm6225-common: Sync extractors with templates
This applies the following tools/extract-utils changes:
* Allow overriding VENDOR with VENDOR_COMMON

Change-Id: Ib78643a3e6a648e21362b6a1fdc3581d41954700
2023-12-04 04:37:18 +02:00
Michael Bestas
43cb28ba65
sm6225-common: Add all bengal devices to build guards
Change-Id: Ia424d68988f0ee946580a158eccca150e83585ea
2023-12-04 04:37:18 +02:00
Michael Bestas
7764642d89
sm6225-common: Inherit common partition reserved sizes
Change-Id: I444ce2fcd37cdfa58d83a7e872dc547fb05a2a89
2023-11-29 17:03:47 +02:00
Andrew Hexen
82914a70e6
sm6225-common: symlink vendor/fsg to system_root
* Seems to be an issue where if modemst1/2 (efs) is wiped modem only
  looks for fsg to rebuild efs in the root_directory.
* Even though this isn't correct it should allow radio to be easily
  flashed during future firmware upgrades as the stock radio.img is
  a container which flashes fsg/modem then passes the command to
  wipe modemst*

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Ic7acabbe16d66740b3aee414be60c24d3a0de43d
2023-11-29 17:03:47 +02:00
Tommaso Fonda
c00c013f19
sm6225-common: amplifier: Add amplifier usecase to head of usecase list
When a call is received, if the ringtone is played through the speaker,
the audio HAL will freeze and restart when the call is answered,
leading to a few seconds of silence at the beginning of the call. This
happens because of a NULL pointer dereference, which is in turn caused
by a UAF in the check_usecases_codec_backend() function, in the audio
HAL.

The UAF occurs because the amplifier HAL appends its usecase at the
wrong end of the usecases list - tail instead of head. When the second
list_for_each() loop in the aforementioned function iterates through
the list, it first finds the regular low-latency-playback usecase,
and calls disable_snd_device() for the speaker output device. This
causes the amplifier HAL to execute aw882xx_stop_feedback(), which
frees its usecase in the list, but the internal pointer of the
list_for_each() macro already points to it, thus the following
iteration effectively operates on a free'd object.

To fix this issue, have the amplifier HAL append its usecase to the
head of the list: this way, it will be iterated on before the
low-latency-playback usecase, i.e. before it gets free'd.

Change-Id: Ia8dcb11b3ed320836a6602798ff5c390e7afa9d2
2023-11-29 17:03:46 +02:00
Michael Bestas
8378a099fa
sm6225-common: sepolicy: Allow rild access sensorservice
Change-Id: I0a86494b0a8422dbf1357cd0ddc53d3bd59043c2
2023-11-29 17:03:40 +02:00
Michael Bestas
01e2eda4d3
sm6225-common: Resolve mmi vendor_init denial
Change-Id: I3c5db0ada1d132054433330ce347106e4d209f02
2023-11-29 17:03:39 +02:00
Michael Bestas
8994b5f1dd
sm6225-common: Move some properties to system_ext
Change-Id: Id9313e3c4db43a4c1bece7b0a61ebb3aada5c367
2023-11-29 17:03:39 +02:00
daniml3
c7e51a77ac
sm6225-common: Drop QTI datastatusnotification
It crashes on Android 14

Change-Id: I7649956d630659f81094f66a6fef334511959aef
2023-11-29 17:03:39 +02:00
Adithya R
2b0a0dd223
sm6225-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
2023-11-22 19:57:50 +02:00
Suren Baghdasaryan
b6c60af207
sm6225-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: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
2023-11-22 19:13:17 +02:00
Suren Baghdasaryan
fde8c98ecb
sm6225-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
2023-11-22 19:13:17 +02:00