Commit graph

315 commits

Author SHA1 Message Date
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
Michael Bestas
b28d79f9c5
sm6225-common: Label init.mmi.acdb.sh
Change-Id: Iae7e31b4e43f6359d47670dbfdc05c5deccb76ac
2023-06-01 18:17:01 +03:00
Michael Bestas
997f3f492c
sm6225-common: Add capri to build guards
Change-Id: I435610869d65f5d7ab6c8a6a47b9c28a8204e197
2023-06-01 16:19:07 +03:00
Michael Bestas
45c190c26d
sm6225-common: Decommonize some fluence props
Change-Id: I715411da6e957235bd46ae0a1ae1174e7fe1a4a3
2023-06-01 16:19:07 +03:00
Michael Bestas
3b0c6ea6ca
sm6225-common: Reduce system/system_ext reserved space
Change-Id: I984397a30ec0507e542ffd80c7733b183a6d5b3e
2023-06-01 16:19:07 +03:00
Michael Bestas
4d618f1b22
sm6225-common: Allow overriding userdata size
Change-Id: I8484c4d02cb873b8baf8764c1c66c285881fb087
2023-06-01 16:19:07 +03:00
Michael Bestas
1109d93b5b
sm6225-common: Correct partition sizes
Based on devon/hawao/rhode sizes

Change-Id: Ibcecb633e13fd61851519d5ea485992312c4a39a
2023-06-01 16:14:31 +03:00
Michael Bestas
62715e9ca0
sm6225-common: Add missing hvdcp_opti blobs
Change-Id: I68ef3251b5871f31ba32c78b02f655ed807bdf26
2023-06-01 02:10:05 +03:00
Arian
37fb6cbefd
sm6225-common: Drop unused libs
Change-Id: I302af2e0a1c4008cd614151a4d1d0ba10528c4b1
2023-06-01 02:10:05 +03:00
Dhina17
f8ce361a77 sm6225-common: Add missing gnss lib
Change-Id: I006a80f00ae5fd2d219aab69d9a8895d5db87dd3
2023-05-31 23:59:45 +05:30
Alexander Koskovich
71d2b2a087
sm6225-common: Drop PRODUCT_BUILD_SUPER_PARTITION
* Super image is not generated by a default 'm' build,
   but we at least want it for dist builds.

Change-Id: Ia12a5314632509fcd309d51ddf757efdc37499c3
2023-05-30 17:50:52 +03:00
Danny Lin
7b777a590e sm6225-common: overlay: Settings: Enable Smooth Display setting
caprip, devon, rhode have peak refresh rate higher than
60 Hz, so allow users to toggle high-refresh rate like on stock.

Dhina17:
 - There is no effect on devices which don't have refresh
   rate higher than 60 Hz.

Change-Id: I7fcbb905b61575de8c5e9d9a935463932551fb6a
2023-05-30 15:56:35 +02:00
Nolen Johnson
75b00aebb2 sm6225-common: Build MotoActions
* We already track hw/moto.

Change-Id: I9e935b31cda95b70c3398f798fd37b64b1984ac1
2023-05-29 15:47:07 -04:00
Michael Bestas
5904b3f742
sm6225-common: Pin vhw.xml
S2SNS32.34-60-6 is missing the 8GB devon variant

Change-Id: I10d1cfb139211849524719b0deaeb381b2982d73
2023-05-25 22:16:53 +03:00
Michael Bestas
61b8948903
sm6225-common: Update to devon_g S2SNS32.34-60-6
Change-Id: I389a4b0319a9e0e3a50c31d8457760114eddbce9
2023-05-25 22:16:53 +03:00
Dhina17
efd11b00ab sm6225-common: Fix devon egis fp denials
Change-Id: Iad529eec329ecf37f9df34c88ff3eecb6cde08d5
2023-05-24 00:50:27 +05:30
Bruno Martins
a95b95eb99 sm6225-common: Only ship with disabled A2DP offload configuration
A2DP hardware offload is broken since A13 QPR1 merge.

Change-Id: Idca3373669e28a0afd627daa79ebb0254abb5c74
2023-05-20 03:52:02 +05:30
Dhina17
3ffdc321ba sm6225-common: sepolicy: Label rhode power supply node
Change-Id: I425af737fc49e4b33f819a9aeeb3972631d38c1e
2023-05-20 02:57:00 +05:30
Dhina17
d94b7581e5 sm6225-common: sepolicy: Use same label for all fps device
Change-Id: Ib6551e19adcb188991846bac75ad637f0225e5a7
2023-05-20 02:57:00 +05:30
Dhina17
156ea9a868 sm6225-common: sepolicy: Add rules for focaltech fp
Change-Id: I9bf360696c6362b42e532228bf3ec9c1e684f163
2023-05-20 02:55:08 +05:30
Michael Bestas
aa1c1da3c0
sm6225-common: Disable app freezer
Change-Id: I2fa2ee133008736ee233e063ec11d152c3dadb87
2023-05-19 04:20:33 +03:00
Michael Bestas
e170a64038
sm6225-common: Match stock ZRAM setup
Change-Id: I60539698fbeb6ba29f96ec6f8e68c778f999d701
2023-05-19 04:20:33 +03:00
Michael Bestas
862362c8c6
sm6225-common: Import lmkd props from stock
Change-Id: I85a9bd6d61b95b00cfabc41d9f1911514ad2b915
2023-05-19 04:20:33 +03:00
Michael Bestas
a4f78a14ef
sm6225-common: Set up dalvik according to stock configuration
Based on init.mmi.product.rc

Change-Id: I5bd4a19a2a880189b9c28780ff343d1b9e508a80
2023-05-19 04:20:33 +03:00
Michael Bestas
8e1d912a3b
sm6225-common: Add FM blobs & build FM
Change-Id: I471a00dff44e8fb90e65b3f506a899e65c94d62f
2023-05-19 04:20:33 +03:00
Michael Bestas
36f182db00
sm6225-common: Remove atfwd.apk
Change-Id: Ic6c272a2bf61962c3f6915e28e35c28f0eddafba
2023-05-19 02:54:50 +03:00
Michael Bestas
8011dca137
sm6225-common: Pin patched ims.apk
Change-Id: Ie308c91b98db85268e98c456ef14af4fe0f4dd06
2023-05-19 02:54:50 +03:00
Michael Bestas
3055820c9c
sm6225-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2023-05-17 20:48:49 +03:00
Michael Bestas
ff4965a0af
sm6225-common: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2023-05-17 20:48:48 +03:00
Ethan Chen
0f6b8dcc64
sm6225-common: gps: Increase batch size to max
* Hardware supports 40

Change-Id: I075fff615814fa105ec1493c5bdde60b8abccf0e
2023-05-17 20:48:48 +03:00
Michael Bestas
a8f5ba0aa0
sm6225-common: gps: Disable unused location services
Disable xtwifi, slim_daemon & tloc_daemon, matching Pixel setup.

Change-Id: I27156e772ef138c9b2e112469c264236ea5c398c
2023-05-17 20:48:48 +03:00
Michael Bestas
4e4403b259
sm6225-common: Move izat config to device tree
Remove unused apdr.conf while we are at it

Change-Id: I49e6a7be7b29a79739c8f66966e26213c71b6160
2023-05-17 20:48:48 +03:00
Michael Bestas
2074a80158
sm6225-common: Remove unused gps certificates
* They are used by xtwifi-inet-agent which is disabled.

Change-Id: I4fbf6e02276b508a27f320e630ddad3c9aada5a8
2023-05-17 20:48:48 +03:00
Michael Bestas
f64e3835ce
sm6225-common: Build GPS HAL from source
Change-Id: I9bd42ab788a72ac80810d37b77591ebf0312a708
2023-05-17 20:48:48 +03:00
Michael Bestas
65e60909dc
sm6225-common: location: Remove unused components
loc_api_v02 and synergy_loc_api don't compile without proprietary
headers. The rest are unused so remove all of them.

Change-Id: I385c0bf79b550423464d0f09968f6b7bf7e04ac9
2023-05-17 20:48:48 +03:00