Commit graph

321 commits

Author SHA1 Message Date
Michael Bestas
3edbb012cb
sm6225-common: sepolicy: Allow audio HAL to access ISensorManager
Change-Id: I98b5496390cf2aa9b92b34a19c4c34109481dc51
2023-04-10 17:56:43 +03:00
dianlujitao
e7f547f4bd
sm6225-common: Use ueventd to load aw882xx calibration file
* Avoid direct filesystem access from the kernel

Change-Id: Id9571e0cfb635b536eb4927fb4b2bed042917306
2023-04-10 17:56:43 +03:00
Aayush Gupta
8a6dc828aa sm6225-common: Label and address NFC sec hal and its denials
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1e1f62611ecd1bc090e4a9d87f4b0a86d1e83c2a
2023-04-09 01:35:41 +05:30
Dhina17
c23037ab30 sm6225-common: Fix egis fps denials
Change-Id: I2bc8b476da316520bcb920780048a51b4d7f845f
2023-04-09 01:34:33 +05:30
Dhina17
d4a738f675 sm6225-common: Label chipone fps hal
Change-Id: Iaaf7455589745e6fa3187c830dc1e7fbe5b3e374
2023-04-09 01:09:24 +05:30
Dhina17
0919f61e5b sm6225-common: Label wakeup nodes
Run [0] script with device connected via adb.

Reference:
[0] - https://android.googlesource.com/platform/system/hardware/interfaces/+/refs/heads/master/suspend/1.0/default/SuspendSepolicyTests.sh

Change-Id: I1741fe89141477317223115da68d3bfc72cb4f9e
2023-04-09 01:09:24 +05:30
Dhina17
fc860f50cd sm6225-common: Label vibrator node
Change-Id: I98a4d76d72a79c16dfe2afbe4fab866f4f716bd4
2023-04-09 01:09:24 +05:30
Dhina17
e323ba70ad sm6225-common: Label power supply nodes
Change-Id: Icadb1ae14a530dcb409928bdff2fcac54773d70e
2023-04-09 01:09:24 +05:30
Dhina17
23b675da2d sm6225-common: Import base sepolicy from moto sm8250-common
- Imported from https://github.com/LineageOS/android_device_motorola_sm8250-common/tree/lineage-19.1/sepolicy HEAD ed02954834ecc70cee043170b1322dff5cd491b8
- Adapted and cleaned up.

Change-Id: I2e8cd6419c740c0e05ecb6fcd4db8b743e5ac229
2023-04-09 01:09:24 +05:30
Dhina17
7452de708a sm6225-common: Setup NFC
Change-Id: I46ae6a37a057930d6571203814d9f2b3396685ac
2023-04-09 01:09:24 +05:30
dianlujitao
fabef5d511 sm6225-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
2023-04-09 01:09:24 +05:30
Albert I
863f1ffcc7 sm6225-common: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
2023-04-09 01:09:24 +05:30
Michael Bestas
8309a14009 sm6225-common: Match AVB rollback index with hawao_g S2SES32.28-70-3
Change-Id: I4433c041e387fe22d2f8358cd0739c7a938a64ec
2023-04-09 01:09:24 +05:30
Michael Bestas
f4618cbab4 sm6225-common: Correct vbmeta_system rollback index location
Change-Id: I9f71031b1834355d4ca8b19d6748f8647fa33a38
2023-04-09 01:09:24 +05:30
Michael Bestas
c3f2d53452 sm6225-common: Update to hawao_g S2SES32.28-70-3
Change-Id: I0bc32bc35feaa6b9aab0fd14b5cb240bd0af6100
2023-04-09 01:09:24 +05:30
Michael Bestas
6936350dae sm6225-common: Build missing power libs
Change-Id: Iead8985a873e4f120fc5a84ce636eccb9051c66f
2023-04-09 01:09:24 +05:30
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