Commit graph

305 commits

Author SHA1 Message Date
Michael Bestas
e8c58dadb7 sm6225-common: Move TARGET_BOOTLOADER_BOARD_NAME to devices
Change-Id: I3ad30b9bbc29d0ebbf6f19cc839cf73b7a101fcb
2023-04-09 01:09:24 +05:30
Dhina17
35842ecfa8 sm6225-common: overlay: Use /dev/input/event to detect headphone jack
If your device detects headphone in 'getevent -l' like:
  On headphone insert:
       /dev/input/event8: EV_SW        SW_HEADPHONE_INSERT  00000001
       /dev/input/event8: EV_SW        SW_MICROPHONE_INSERT 00000001
       /dev/input/event8: EV_SW        SW_JACK_PHYSICAL_INS 00000001
  On headphone removal:
       /dev/input/event8: EV_SW        SW_HEADPHONE_INSERT  00000000
       /dev/input/event8: EV_SW        SW_MICROPHONE_INSERT 00000000
       /dev/input/event8: EV_SW        SW_JACK_PHYSICAL_INS 00000000

but not in the android system, you should enable this to use /dev/input/event
to detect the headphone/microphone jack.

Change-Id: Ibb387c1624b66385515989bc543afdb9a9f5b67e
2023-04-09 01:09:24 +05:30
Dhina17
61223126f7 sm6225-common: Switch to prebuilt audio HAL
- For time being.
- Revert after I fix the crackling sound issue with OSS HAL.

Change-Id: I2c2139936808838075c4aebcf265720b6e98f99b
2023-04-09 01:09:24 +05:30
Dhina17
a48cdbbe21 sm6225-common: overlay: Declare powerbutton fps
- moto sm6225 tagets have side mounted fps only.

Change-Id: I85ac4438f2c55411620380f6e1eaa54139b2e1b8
2023-04-09 01:09:24 +05:30
Dhina17
e605a9fd4b sm6225-common: Setup vendor boot kernel modules
- As per stock.

Change-Id: Iab0bdb08f8c96217006bb0c4520b14f98ff82c50
2023-04-09 01:09:24 +05:30
Dhina17
a223df9cfe sm6225-common: Add kernel module aliases
Change-Id: Iad84951615fcac0a7b9d7a6532c87ca3e8d42e47
2023-04-09 01:09:24 +05:30
Dhina17
37a60de327 sm6225-common: Compile kernel from source
Change-Id: I41bc0c43765c823ccb39a298c02926fce1fd4393
2023-04-09 01:09:24 +05:30
LuK1337
fad5eb3a61 sm6225-common: Add debug IMS props to workaround CarrierConfig restrictions
We support IMS features on carriers not listed in the CarrierConfig,
so let's use the props to enable it everywhere.

Change-Id: Id3ad71d522a22048f7ad86d89695ad262361632d
2023-04-09 01:09:24 +05:30
Dhina17
10e1bc345d sm6225-common: Update fluence props from CodeLinaro
- Fixes incall speaker volume control.

Change-Id: I35162609a3bbbe6145c4b8165fc8b509798a485c
2023-04-09 01:09:24 +05:30
Dhina17
078d4709ba sm6225-common: Import audio runtime features props from CodeLinaro
Change-Id: Ia1947480cbad2f1e29c0ab9cd13f39d0fecd45cb
2023-04-09 01:09:24 +05:30
Cosmin Tanislav
a851359f32 sm6225-common: audio: remove usage of libspeakerbundle
Change-Id: Ieaac903a65fe174c9a697de47091169817c2c9b7
2023-04-09 01:09:24 +05:30
Marc Bourgoin
ae1c1cd0ba sm6225-common: Remove unused audio effects
We aren't including any Dolby blobs and libswvqe.so doesn't exist on sm6225 devices.

Change-Id: I83ca6b5563f9a4576a49b0d70c7201491276e8ce
2023-04-09 01:09:24 +05:30
Dhina17
b0622e7bfa sm6225-common: Drop QTI cacert HIDL from manifest
- Not used at all. Escape from crash.

Change-Id: If3b0d50b9af4e9ac6546924257e604887aca0393
2023-04-09 01:09:24 +05:30
Weiyin Jiang
b3e4dc6e03 sm6225-common: add voice multi session property
Add voice multi sessoin property.

CRs-Fixed: 2489604
Change-Id: Ib906db560268a4c9e183747896130522b45d6566
2023-04-09 01:09:24 +05:30
Dhina17
01ec971a98 sm6225-common: Inherit 4GB dalvik heap config
Change-Id: I9bc1416f7fb2d0d4eebad958b34437e681b21b0e
2023-04-09 01:09:24 +05:30
Alexander Koskovich
34e133a14f sm6225-common: Disable the usage of ConfigStore.
* As per commit 11a113a67e ("Add disable_configstore").

Change-Id: I5482989a8a96227a3e2a5317eacf613c641bfa8e
2023-03-30 22:51:57 +05:30
Dhina17
6f771e341e sm6225-common: Import wifi overlay from hawao S2SE32.28-41-1
Change-Id: I41eb60e7cb86db0ca9ffb7be698400793332c437
2023-03-30 22:51:57 +05:30
Anton Hansson
41817bfa11 sm6225-common: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2023-03-30 22:51:57 +05:30
Stephen Thomas-Dorin
10aca005ee sm6225-common: Update config_ims_rcs_package to use new ImsService
Change-Id: I77fcd2a3451c99df5fa47136fa0cd36a5abab9fe
2023-03-30 22:51:57 +05:30
Dhina17
483acafed0 sm6225-common: Import Telephony overlay from CodeLinaro
TAG: LA.UM.9.15.r1-05800-KAMORTA.QSSI12.0

Change-Id: I540ae25ba3b0a04db0f12f2954e2ebf7f20d44df
2023-03-30 22:51:57 +05:30
Dyneteve
625d699345 sm6225-common: CarrierConfig: Remove "SIM x is HD capable" message
* sed -i 's/"config_update_service_status" value="true"/"config_update_service_status" value="false"/g' overlay/packages/apps/CarrierConfig/res/xml/vendor.xml

Change-Id: I26ce187483d6d8c18bcd1901cd6d71ca6ec1e31f
2023-03-30 22:51:57 +05:30
Dhina17
d4c62344b5 sm6225-common: Import CarrierConfig from CodeLinaro
TAG: LA.UM.9.15.r1-05800-KAMORTA.QSSI12.0

Change-Id: Id2f1d15edc8b89325e6052388ee91c6e387eab20
2023-03-30 22:51:57 +05:30
Dhina17
97968ee003 sm6225-common: Build servicetracker 1.2 lib
Change-Id: Iebbbfcb6a84a48facaf593565c55b82d018a3dba
2023-03-30 22:51:57 +05:30
Dan Willemsen
616e2f12f6 sm6225-common: Mark as having overridden commands
To allow turning these into errors on other devices, and incrementally
fix these issue, set BUILD_BROKEN_DUP_RULES.

Bug: 77611511
Test: check out/soong.log
Change-Id: I3b8f29f0f9e2ad445e72c65e7688b109817dcff3
2023-03-30 22:51:57 +05:30
TH779
62ca6cd8b0 sm6225-common: Don't call configureRpcThreadpool for camera postproc impl
* In Android 12, no longer allowed to shrink the process pool after a
   larger process pool is started, we should patch camera postproc impl
   to nuke it from shrinking process pool and prevent triggering a fatal
   to cause the camera to crash.
   Ref: 8e047f7a62.

 * The following are the difference between before and after the
   patch.
   Before:
   MOV    W1, #1
   BL     ._ZN7android8hardware22configureRpcThreadpoolEmb
   Now:
   MOV    W1, #1
   NOP

 * Obtained by comparing the camera postproc impl modified by
   GitHub@erfanoabdi.

 * A tutorial on use hexdump, sed and xxd to patch hex in
   binary file: https://everydaywithlinux.blogspot.com/2012/11/patch-strings-in-binary-files-with-sed.html.

Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Signed-off-by: TH779 <i@779.moe>
Change-Id: I66c257e80bf56a48c640efc3c1c8949852edf756
2023-03-30 22:51:57 +05:30
dianlujitao
e98bd81d13 sm6225-common: Move moto-telephony.jar to system_ext
* moto-telephony.jar is a dependence of ims.apk and thus should locate
   in system_ext as well.

Change-Id: I0711c0178906293179998eae70663de7b09a4a77
2023-03-30 22:51:57 +05:30
Daniel Rosenberg
8e2ca7a328 sm6225-common: Setup checkpoint_gc for /vendor
Test: start checkpointing, observe that checkpointing happens
Bug: 111020314
Change-Id: Ic090ac2d0ca9a7dd5485f5ab2a967977cd3ab6b8
2023-03-30 22:51:57 +05:30
Dan Pasanen
ff58d35a08 sm6225-common: Reserve additional space on odm/product/system/system_ext/vendor
This is a squash of the following:

Author: Dan Pasanen <dan.pasanen@gmail.com>
Date:   Sat Oct 19 00:06:11 2019 -0500

    floral: Reserve additional space on system/product/vendor

    Change-Id: Iacd45444dd0d3f423314a8edb243370600f37cdb

Author: Nolen Johnson <johnsonnolen@gmail.com>
Date:   Sun Aug 16 03:27:34 2020 +0530

    floral: Don't reserve space for gapps WITH_GMS

    Change-Id: Ie95b32654772622f7a061947c252b09a45db8fdd

Author: LuK1337 <priv.luk@gmail.com>
Date:   Sun Sep 6 14:51:31 2020 +0200

    floral: Don't limit system inode count when !WITH_GMS

    Change-Id: I458edd755fa436feadeb9f5fb2aecb0da797b0ef

Author: Eamon Powell <eamonpowell@outlook.com>
Date:   Fri Jan 1 11:59:38 2021 +1100

    floral: Adjust reserved partition space

    * Increase reserved partition space for vendor and add reserved
      partition space for system_ext so both partitions can be
      written to, regardless of GMS presence.

    * Increase product reserved partition space so smaller addon
      packages that write to the product partition like MindTheGapps
      can be installed.

    * Increase the amount of available space on the system partition
      so the user can optionally choose to install other addon packages
      that write to the system partition such as OpenGapps.

    Change-Id: I8d3ecca3980d50621f960fd7dff22ba40f495fee

[SebaUbuntu] Always reserve at least 30MB on each partition

Change-Id: I0382f5070751ef4d1be0e48bb89c7abb7eba22c6
2023-03-30 22:51:57 +05:30
Dhina17
8f610d650b sm6225-common: Build gnss 2.1 lib
Change-Id: If2e4b7ba2960315f5be4fa52d3c2e86297b577d8
2023-03-30 22:51:57 +05:30
Dhina17
3e26abb480 sm6225-common: Build libhidltransport and libhwbinder
- Needed by fingerprint and soter HIDL.

Change-Id: Ie5f74e6f90009e8011e2fa40cab90e1cbf87fbca
2023-03-30 22:51:57 +05:30
Dhina17
8f7b314ab6 sm6225-common: Build netd 1.1 lib
- needed by netmgrd.

Change-Id: I5f1e7fa57d924fe1bb6989a3a8d02871d14df70a
2023-03-30 22:51:57 +05:30
Dhina17
c85235bd03 sm6225-common: Build neural networks lib
Change-Id: I1923a12d77c6a6e9d43e569a92dd94a70a2ba0bd
2023-03-30 22:51:57 +05:30
danascape
3df0f89c8d sm6225-common: Support new ANT stack
Change-Id: Id8ea7f552086485aa07d0fd53333aab81c7d3b41
2023-03-30 22:51:57 +05:30
Nolen Johnson
a96b887739 sm6225-common: Add ANT+ support
Change-Id: I722da6672e91ee52e004eadf0e123f813db81d8e
2023-03-30 22:51:57 +05:30
Sebastiano Barezzi
86baffeeb4 sm6225-common: Add a minimal framework compatibility matrix
* Made with https://gist.github.com/SebaUbuntu/ec053a00a9988eaea091fb1cc1f19324

Change-Id: I180d19e7939ee0c3e9f1aeb04a854f8aaf444235
2023-03-30 22:51:57 +05:30
Roger Ellis
a747cb0e1e sm6225-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2023-03-30 22:51:57 +05:30
Dhina17
8e3f9190e2 sm6225-common: Build WFD packages
Change-Id: Ib20f5699ffa18085e4a996e67ddb3c4d427b50f8
2023-03-30 22:51:57 +05:30
Dhina17
707eb3c34c sm6225-common: Build wifi packages
Change-Id: Ife127b29d3a675710e5df3d65ec866c3e9f2293a
2023-03-30 22:51:57 +05:30
LuK1337
f55173f956 sm6225-common: Build vndservicemanager
* Needed for FCM >= R.

Change-Id: Ibc27a98f5774a51caaab077c1d8e0a2a79bdffe5
2023-03-30 22:51:57 +05:30
Dhina17
a70ee20f81 sm6225-common: Build QTI vibrator AIDL
Change-Id: I8322518f0be843e7cc7e2b9d4377e3e4a5cac523
2023-03-30 22:51:57 +05:30
Dhina17
cae638f112 sm6225-common: Build QTI USB 1.3
Change-Id: Ic5be4a49c8b31099820b46a95026221f411b45de
2023-03-30 22:51:57 +05:30
Dhina17
40a9ff8480 sm6225-common: Build sensor 2.0 multihal
Change-Id: I7493bf15fa3c0c5986cd9858adac34859df0947a
2023-03-30 22:51:57 +05:30
Dhina17
959e37de28 sm6225-common: Build telephony packages
Change-Id: I873ff2be5d688f7eadb37ab8c0e5305577192eb8
2023-03-30 22:51:57 +05:30
Dhina17
73fddca296 sm6225-common: Build RIL packages
Change-Id: I6dcc89a42b2c769f0262d3ac4b7d2396268fdab0
2023-03-30 22:51:57 +05:30
Dhina17
3ed84ec584 sm6225-common: Build QTI power AIDL
Change-Id: I81609e3b6aa40cba4855ef5624b36dffba64798d
2023-03-30 22:51:57 +05:30
Dhina17
1fc0c5eef1 sm6225-common: Build QTI perf 2.2 lib
Change-Id: I72cf4b1947886dc8a3288e96a9bd024badc05d18
2023-03-30 22:51:57 +05:30
Dhina17
4af16ddc47 sm6225-common: Build media packages
Change-Id: Ic2d1627224bc4577034860df9f6ff515c3b6dcbd
2023-03-30 22:51:57 +05:30
Dhina17
df03aff801 sm6225-common: Build IPACM
Change-Id: I34c711f914e2d53d7e5a3ade64dc9885c657b864
2023-03-30 22:51:57 +05:30
Dhina17
5ceaf4e874 sm6225-common: Build health 2.1
Change-Id: I22906e850243368e2ec90242207a685b64c048d8
2023-03-30 22:51:57 +05:30
Dhina17
4c9ffd083c sm6225-common: Build keymaster lib
Change-Id: Ib1b7fc9a63ffde760a2fd288a4e40a7348770213
2023-03-30 22:51:57 +05:30