Commit graph

349 commits

Author SHA1 Message Date
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
Michael Bestas
c7e7075365
sm6225-common: sepolicy: Sort genfs_contexts
Change-Id: I134fa3e0528257d819e352464d6a2b5deafc33a3
2023-07-19 22:59:00 +03:00
SGCMarkus
edbe98444d
sm8250-common: sepolicy: Label STFlashTool
Change-Id: I9b6b0062de8ccd28d73b7ad12ed5cd2084bd70a9
2023-07-19 22:32:29 +03:00
Michael Bestas
6296e15c1a
sm6225-common: sepolicy: Label ST NFC
Change-Id: I940a8394b7c4fed0af86faa55d931e3963497123
2023-07-19 22:16:44 +03:00
Michael Bestas
da33bb6a22
sm6225-common: Update to devon_g S2SNS32.34-72-14-1
Change-Id: I3beddd4052e53b14640e5bf13c342510b46aa5bf
2023-07-19 19:04:18 +03:00
Dhina17
9198f2f7a0 sm6225-common: Build android.hardware.drm@1.3 to vendor
Change-Id: Ida6955257edd8d742d0ba00f9ec339125e2a5b2e
2023-07-11 00:30:45 +05:30
Danny Baumann
b737a3106b sm6225-common: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2023-07-09 22:27:15 +05:30
Dhina17
9dc278ccd0 sm6225-common: Re-enable fluence for speaker
First, It was enabled by 10e1bc345d
to sync with CodeLinaro and fixed incall speaker volume control.

Later, It was disabled by a3f3ca2931 again
accidently.

So, re-enable it again.

Change-Id: I0adf0171772f073487cb5e3f71538faf65394039
2023-07-09 22:27:01 +05:30
Dhina17
644c2d4f30 sm6225-common: Drop redundant android.software.sip.voip.xml copy rule
Already it's here:
e6678e8cfd/config/common.mk (L67)

Change-Id: I45b268406391cbf337b61b41ec37fbe7990e4a67
2023-07-04 12:39:17 +05:30
Bruno Martins
d75928e372 sm6225-common: Migrate to AIDL ClearKey DRM HAL
Change-Id: Iad5cc1176978137c647069197b33f49fb4d98ab2
2023-07-01 14:07:27 +05:30
Dhina17
e192c9ba83 sm6225-common: sepolicy: Consider all vendor.hw.touch.* properties
Change-Id: Ia43b6fb58079dc2f7b503a8ddfb75cdbb9309345
2023-06-24 22:21:06 +05:30
Dhina17
9b3f813e6d sm6225-common: sepolicy: Label devon fts_ts nodes
Change-Id: Ia862dfb312c9777782dcc41573c7eb6a6700933e
2023-06-24 22:20:57 +05:30
Arian
aa07f8d593
sm6225-common: Don't advertise aptX adaptive and celt in audio policy config
Android 13 QPR1 does not seem to like advertising unsupported codecs here.

Change-Id: I23a7f626a268a0c89199aaa5899df9b812d85ae2
2023-06-16 21:42:14 +03:00
Michael Bestas
60bdeb52e0
sm6225-common: Add missing aptX offload cap
Change-Id: I9a4d0df0054b7db2d7b7b2bbfc8192c5dab140ed
2023-06-16 21:39:02 +03:00
Michael Bestas
38c18d034a
sm6225-common: Add carriersettings extract utils hooks
Change-Id: I627b54471d1d6091625d241cfd08c70431794445
2023-06-12 14:47:04 +03:00
Michael Bestas
7227952d1a
sm6225-common: Decommonize BOARD_USES_RECOVERY_AS_BOOT
Change-Id: I42861466600cc90e1d33c75afd5618f7cb83ba63
2023-06-12 14:47:04 +03:00
Michael Bestas
5b339c43bc
sm6225-common: Decommonize vendor_boot
Change-Id: I0cbe93fed447bcd86cbfb0e7a4e01823691f6f32
2023-06-12 14:47:04 +03:00
LuK1337
d930c127a7 sm6225-common: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.
 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2023-06-10 12:47:47 +02:00
dianlujitao
a7f3973f7c sm6225-common: Build moto common overlay
Change-Id: I2547000945e816a5b6cc9876bef4a8430cf38754
2023-06-10 12:38:31 +02:00
Dhina17
9953108458 sm6225-common: Drop unused system.prop
Change-Id: I210e0dcccd714a70931da41a7b3ba99c786d3ce4
2023-06-10 15:40:41 +05:30
Michael Bestas
912848fc7a sm6225-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
2023-06-09 18:13:08 +02:00
Michael Bestas
2ff59b0506
sm6225-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-06-09 14:53:20 +03:00
Michael Bestas
0b7ef392e1
sm6225-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-06-09 14:53:20 +03:00
Albert I
43f7193260
sm6225-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-06-09 14:53:20 +03:00
Albert I
7a678665fd
sm6225-common: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2023-06-09 14:53:20 +03:00
Albert I
e2c5259e43
sm6225-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-06-09 14:53:19 +03:00
Michael Bestas
3011099f3c
sm6225-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2023-06-09 14:53:19 +03:00
Michael Bestas
3a6976713d
sm6225-common: Add vendor.fpsensor.hardware.fpsensorhidlsvc to compatibility matrix
Change-Id: Ife6e60ac0fe9437c3ceb8f8daa445a79f894171a
2023-06-01 19:09:09 +03:00