Commit graph

376 commits

Author SHA1 Message Date
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
Bruno Martins
e6633b270e
sm6225-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
2023-11-22 17:53:38 +02:00
LuK1337
eefd947599 sm6225-common: overlay-lineage: Configure aux camera for Aperture
Change-Id: I543f078dd4dba30e1b22737d5c22d591e3fb34e6
(cherry picked from commit 727bf062da1119634eef4fc0129412f8f88b9573)
2023-11-12 16:50:57 +00:00
Wolfram Liebchen
747fa28ad9
sm6225-common: Add notification light HAL
The otherwise unused charging-LED is used as notification light with
configurable pulse-widths.

Change-Id: Ic6c7cf993b8e83793b191d24cff65320c68d40d0
2023-11-11 16:28:23 +02:00
basamaryan
19e395b73f
sm6225-common: Build libprotobuf-cpp-full-3.9.1-vendorcompat
For now this is implicitly built by lineage specific
libprotobuf-cpp-lite-3.9.1-vendorcompat lib, but in the future this
might not be the case.

Change-Id: I724e933e046cbf631c078321d55550b96ca998da
2023-11-11 16:03:01 +02:00
me-cafebabe
f258949f98
sm6225-common: gps: Fix compilation on U
Change-Id: I7ca7e78addd6385289b8449edae8b682839ecc91
2023-10-25 12:13:15 +03:00
Bruno Martins
919871f4e6
sm6225-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
2023-10-25 12:13:15 +03:00
LuK1337
0148ffbfa5
sm6225-common: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2023-10-25 12:13:15 +03:00
Gabriel Biren
39179db190
sm6225-common: Update makefile to use the AIDL Wifi Vendor HAL.
Bug: 274964641
Test: Pre-submit tests
Change-Id: I4d9114377fe75b593bbfe6a59f03d8f5d607d6a1
2023-10-25 12:13:14 +03:00
Yifan Hong
fd607dd4dc
sm6225-common: Delete HALs that are already in VINTF fragments
These HALs are already included in VINTF fragments, so
there's no need to be specified here.

Test: TH
Bug: 148808037
Change-Id: Iec5ef12eeb803ae904c1bd4f8feb32dfc1bae972
2023-10-25 12:13:14 +03:00
Dhina17
698c488628 sm6225-common: Update patched ims.apk
Fixed VoLTE call auto rejection in SIM2.

Change-Id: Ib712c2cbf830d674cd4e81fca0a77c96cdccd12e
2023-09-21 19:32:01 +05:30
Madhanraj Chelladurai
8d504d7312 sm6225-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
2023-09-03 15:56:58 +02:00
electimon
c51f172bec sm6225-common: Rename camera.mot.is.coming.cts
* This prop is illegal due to violating the
* vendor property namespace rules

[Dhina17: Adapted for sm6225]

Signed-off-by: electimon <electimon@gmail.com>
Change-Id: I2da4951e19e97e5291cbb0f0b18cdae14f63fbaa
2023-08-27 19:57:09 +05:30
Dhina17
b6b3a73f89 sm6225-common: sepolicy: Label camera.mot.is.coming.cts
Change-Id: I21f8bc7ea4520f3396efda9c3d0651e7ba81906f
2023-08-27 19:44:35 +05:30
Michael Bestas
e42d0aabfb
sm6225-common: Regenerate carriersettings before extracting them
Change-Id: I0579956bc63c8258d758f0cfc0aad5aa466fa874
2023-08-24 10:39:49 +03:00
Michael Bestas
a10ce26210
sm6225-common: Update to S2SNS32.34-72-31-1
Change-Id: I12c5019013fa4f0bf8744ef724441061b78365d7
2023-08-23 23:20:22 +03:00
Tommaso Fonda
2a9b641dce sm6225-common: sepolicy: Label more IIO nodes
Addresses e.g. (observed on rhode):
avc: denied { read } for name="name" dev="sysfs" ino=59156
scontext=u:r:vendor_hvdcp:s0 tcontext=u:object_r:sysfs:s0 tclass=file
permissive=0

Change-Id: If49f5e6973425683a1bdf9c4fafa8f863883e18f
2023-08-01 22:42:53 +05:30
Tommaso Fonda
bdc1988602 sm6225-common: sepolicy: Label rhode touchscreen nodes
avc: denied { read } for name="vendor" dev="sysfs" ino=51521
scontext=u:r:vendor_init_touch:s0 tcontext=u:object_r:sysfs:s0
tclass=file permissive=0

avc: denied { read } for name="vendor" dev="sysfs" ino=51520
scontext=u:r:vendor_init_touch:s0 tcontext=u:object_r:sysfs:s0
tclass=file permissive=0

Change-Id: I038d821fd603c89c37020fa491c60b806b91f35d
2023-08-01 22:42:37 +05:30
LuK1337
4b0fcbf205 sm6225-common: Drop SSR services and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2023-07-26 23:33:02 +05:30
dianlujitao
799d86bb52 sm6225-common: Add init extension to override ro.carrier
Change-Id: I82ec6b0d2293dc13524660fd0e2539f08ced2f9f
2023-07-26 23:32:33 +05:30
Dhina17
0da2e505af sm6225-common: Add charger service
- Taken from CodeLinaro.
- Fixes offline charging.

Change-Id: I614caefc4a7318e833247a20344f9b9efdcbeea4
2023-07-20 17:06:53 +02:00
dianlujitao
6198955b5f sm6225-common: Remove moto charger
* The close-sourced binary uses symbols removed on R. It doesn't make
   much sense to fix the 45MB binary :), simply use AOSP one instead.
 * Move charge-only services to init.mmi.charge_only.rc while at it.

Change-Id: I62cdd36603afb46d5287dfcaac3d16acc9fca178
2023-07-20 17:06:53 +02:00
Michael Bestas
8f862572e7
sm6225-common: sepolicy: Resolve hvdcp IIO denials
Change-Id: Ic2a3dbad57398b201a6b21cf846ec9b4848743e5
2023-07-19 23:47:58 +03:00
Michael Bestas
6d6a28f63a
sm6225-common: sepolicy: Simplify SEC NFC policy
Change-Id: I441dadca7d7497f9e7f015437d90d28807bff8ce
2023-07-19 22:59:00 +03:00