Commit Graph

111 Commits

Author SHA1 Message Date
boedhack99
9e1cb65ef4 Revert "sm6375-common: Build source QTI vibrator service"
This reverts commit 46efe079a1.
2023-07-21 16:14:25 +07:00
kissoka
4173a77420 sm6375-common: decommonize rro_overlays
Change-Id: I5dc4f90902141bec42b3bb4dbc302510771453dd
2023-07-18 10:35:54 +07:00
Vaisakh Murali
5eb20c50b6 sm6375-common: Switch to AIDL clearkey service
Change-Id: I39609424434d87b92e2215680c6f62f83ae9f4d3
2023-07-11 00:21:53 +07:00
Hridya Valsaraju
d51883bb09 sm6375-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
2023-07-11 00:14:09 +07:00
Luofan Chen
35c902711d sm6375-common: Build lineage health HAL
Change-Id: I1ca5f25f3a2d8734647b9cc0ff4885b0b817c6ad
Signed-off-by: althafvly <althafvly@gmail.com>
2023-07-10 16:23:18 +07:00
boedhack99
f7f83e7731 sm6375-common: Switch to source build sensors HAL
Change-Id: Ib0f45b7fc134a1eb71e71c6c54937b40a73625c0
2023-07-10 14:26:15 +07:00
boedhack99
0b165f85f6 sm6375-common: Add support soc id detect
* Add support for SM4350

Change-Id: Ic548b4ad7e866bc3fbfc29a3386d5329c899c913
2023-07-09 17:01:55 +07:00
boedhack99
52b84c9950 sm6375-common: Import IDC and keylayout
* From moonstone MIUI V14.0.3.0.TMPMIXM release-keys

Change-Id: If6ce12d8618e4c33223888e954f1f50f2be97014
2023-07-08 02:05:02 +07:00
boedhack99
b6bc054e8b sm6375-common: Move some configs to specifics dir
* Redo VINTF flags as tags manifest files

Change-Id: I7d34acb1a6b0021c4165a658ff5bd16bcf637de4
2023-07-05 02:59:34 +07:00
boedhack99
46efe079a1 sm6375-common: Build source QTI vibrator service
Change-Id: I72e89874d93af481ba0c84804c54903b8cd3133c
2023-07-05 02:59:09 +07:00
boedhack99
97563bb96e sm6375-common: rootdir: Import missing shell scripts
* init.qcom.early_boot.sh
* init.qti.kernel.sh

Change-Id: I5cbdd3ac7603415c6e21f7bb934c86ee8301dc4e
2023-07-05 02:59:09 +07:00
Arian
13fc1e36c2 sm6375-common: Move to common sensors multihal
Change-Id: Iba4df5ebb5d653cb2d3f68fce9e682d946d20935

Change-Id: I0cd62a7487b5b6188e95f318804fdb9ab7828822
2023-07-05 02:59:09 +07:00
boedhack99
999faf7a82 sm6375-common: Update blobs to moonstone MIUI V14.0.3.0.TMPMIXM release-keys
Change-Id: I73698d84baa4949f069a32a19c0098f092a04e06
2023-06-29 23:13:19 +07:00
baalajimaestro
b733ab1915 sm6375-common: props: Optimise dex flags
This is a squash of the following commits:
1. Optimise dex flags for a faster boot

* Used multiple threads and speed profile to hasten the first boot

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf

2. Rework dex flags again

When I went through https://source.android.com/devices/tech/dalvik/configure my previous configs felt wrong, this one should be perfect (I hope).
Even though there is a slight trade-off for boot time by using the speed profile, we do make up for it by using 8 threads.
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER attempts to compile all prebuilts fully optimised to speed level, thus the phone doesnt need to deal with it.
I also do know that this might be a trade-off on size, but I do see the first boot time is more worthy to trade-off.
The speed level mentioned here runs dex verification and compiles all AOT methods.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ic0156ff8956a7c5f53820be6db438f6f6399d3c0

3. Switch certain dexopt profiles to verify

Prebuilt apps like Gmail/Google App, will be updated by google play, and there is no need spend time and space optimising what is going to be replaced.
Switch to Google's recommendation of using verify for an OTA package.
Applications still stay on speed.
Instead, replace the install profile with speed-profile making apps perform better.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>

Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf
2023-06-27 21:10:49 +07:00
boedhack99
fad8458572 sm6375-common: Decommonize init device-specifics scripts
* we got different configs

Change-Id: Ibd7715bc72d7575afec209cdb962d9cebebec37a
2023-06-27 13:45:56 +07:00
boedhack99
8acb8e3a94 sm6375-common: Decommonize NFC build target
* moonstone/sunstone use NFC.st HALs

Change-Id: I2d21f1ad9d3ababd22d8b7f9eac5d45e95052984
2023-06-27 13:04:19 +07:00
Alexander Koskovich
b6a27c6776 sm6375-common: bootctrl: Update to Boot Control HAL v1.2 2023-01-19 02:27:04 +00:00
Sebastiano Barezzi
0727f730dc sm6375-common: Remove non-existing packages
Change-Id: Ia154904be35b6d6b65f5879be244d2168354bd7e
2023-01-19 02:27:04 +00:00
Bowgo Tsai
afc725b842 sm6375-common: Removing GSI keys
Those keys will be embedded into VtsSecurityAvb on host side
instead, to verify the GSI image used on the device.

Bug: 149806769
Test: build and checks those keys are removed from
      $OUT/recovery/root/first_stage_ramdisk/avb/
Change-Id: I8a002ba6f1421fb460056ccae6572050bdb0ce3c
2023-01-16 04:47:34 +00:00
Sebastiano Barezzi
0190043c74 sm6375-common: Drop SDM LiveDisplay service
* We switched to AOSP colors so messing with color calibration will
  confuse QDCM

Change-Id: Ia22c4c06e922d1b7f9c60b257299634333cc3fe4
2023-01-16 04:23:09 +00:00
Josh Wu
5ed51524d9 sm6375-common: Switch BtAudio to AIDL
Test: m
Bug: 203490261
Change-Id: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
Merged-In: I4b8ac40d5ad410b89eb6a0573d740d86471ecfc7
2023-01-16 04:23:08 +00:00
llololo
da9f420b78 sm6375-common: Remove A2DP input module in audio policy configuration
No Pixel device support A2DP sink functionality.

Bug: 163050296
Test: A2DP related test.
Change-Id: I269220cf29451ea79362fc004fa073713f72fdb2
2023-01-16 04:17:59 +00:00
Bruno Martins
3a783849fa sm6375-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2023-01-16 02:54:36 +00:00
Sebastiano Barezzi
6e568f2f0c sm6375-common: Build default health HIDL recovery impl
Change-Id: I9710760a1b7895ed9a0c3da967c4b30ea655bf94
2023-01-16 02:54:36 +00:00
Sebastiano Barezzi
8a71d7d1cc sm6375-common: Remove non-existing or implicitly included IPACM packages
Change-Id: Iae06f09e101b237187638e76a6dd903ecdc2ca4f
2023-01-16 02:54:36 +00:00
Alexander Koskovich
1089a4c2ca sm6375-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-01-16 02:54:36 +00:00
Etienne Ruffieux
a110e34f25 sm6375-common: Removed audio A2DP from holi.mk
Bug: 220306859
Test: atest
Tag: #feature
Change-Id: I300369d36399ffb558b98bafc2478b872d09faba
2022-09-05 03:15:17 +00:00
kleidione Freitas
c8c47e5e69 sm6375-common: match Soundtrigger HAL version with stock
Signed-off-by: kleidione <kleidione@gmail.com>
Change-Id: If1679d8e5e7f659993c652d94097e18e1d3f3fe9
2022-09-04 23:16:45 +00:00
Sebastiano Barezzi
59a0c45f72 sm6375-common: Move to common Xiaomi fingerprint HIDL
Change-Id: I6c29a831e985ee440c92a98aad8d33f25b9e5b2d
2022-09-04 13:00:30 +00:00
Sebastiano Barezzi
228921a381 sm6375-common: rootdir: Merge all our custom init rc into a single one
Change-Id: I9e4f9fbcc76986a02288a439706affecde25594f
2022-09-04 13:00:29 +00:00
Sebastiano Barezzi
9d80b52b23 sm6375-common: Stop explicitely building netutils-wrapper-1.0
* Built by default

Change-Id: Id6666535bb8d0b84d2d0a8d19411fafa49df3d68
2022-09-04 13:00:28 +00:00
Sebastiano Barezzi
fa42d4466a sm6375-common: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2022-09-04 13:00:27 +00:00
Bruno Martins
2f132fe830 sm6375-common: Switch to source-built mlipay interface
Change-Id: I7daaaffd9fe7a870e42c1d882b52dc93b3231120
2022-09-04 13:00:26 +00:00
Sebastiano Barezzi
c33b3be144 sm6375-common: Move to common IFAAService
Change-Id: I71bfdacc4626d75d56aa12ec384f0f116d6d6ff2
2022-09-04 13:00:25 +00:00
Sebastiano Barezzi
9fb997ec60 sm6375-common: Drop QTI camera device usage
* qcom-camera topic hasn't been ported to 19.1
* Keep building vendor.qti.hardware.camera.device@1.0 interface lib, IMS stack and possibly camera HAL still needs it

Change-Id: I87bcd5b54ad986d5844df50de243fc1a18507198
2022-09-04 13:00:24 +00:00
kubersharma001
36a9303669 sm6375-common: Build vendor variant of libchrome
06-20 17:06:14.489 13542 13542 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/android.hardware.nfc@1.2-service": library "libchrome.so" not found: needed by /vendor/lib64/ese_client.so in namespace (default)

Change-Id: I96f88c27feea3deeb535eef43533aef4b869734b
2022-09-04 13:00:16 +00:00
Sebastiano Barezzi
0d540c5c7b sm6375-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
2022-09-04 13:00:04 +00:00
Albert Wang
b054d177f6 sm6375-common: Update USB HAL to V1.3 implementation
Supports to enable/disable USB data signaling

Bug: 161414036
Test: Pass USB V1.3 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Iffe00f8753206fb66cd3ab96cae5aa5ad9c410cd
2022-09-04 13:00:04 +00:00
althafvly
5e2cb360a2 sm6375-common: Inherit launch_with_vendor_ramdisk for vAB
- veux has vendor_boot partition

Change-Id: I5c344890bc12ee769e2f27369a4151b469271a51
2022-09-04 13:00:03 +00:00
althafvly
d85cfe648d sm6375-common: Inherit vAB makefile from new dir
Change-Id: I10d914c833f460b7b1fab6d357e4b1e255098bac
2022-09-04 13:00:02 +00:00
Timi Rautamäki
364f7b2fa5 sm6375-common: Drop Snap
It's not included in 19.1

Change-Id: Ie3f908234cf7a3d94d33ad0e9d170d3738bb9752
2022-09-04 13:00:01 +00:00
Sebastiano Barezzi
529c3ed7ef sm6375-common: Uprev clearkey DRM HIDL to 1.4
Change-Id: Id0895fee70495913f57bc8408ea433660467a7c7
2022-09-04 12:59:58 +00:00
Sebastiano Barezzi
0b51b43e82 sm6375-common: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2022-09-04 12:59:57 +00:00
Albert I
4cd824325b sm6375-common: Set Bluetooth MAC address using persist property
The idea is to allow us to not depend on stock QTI Bluetooth HAL, as MAC
addresses fetched from NVRAM by nv_mac script will be saved as hex-encoded
files. We can decode back saved files to then the Bluetooth one be set using
persist property so it can be read by Bluetooth HAL.

This is loosely based on similar techniques used on Mi 9 and ZenFone Max Pro M2.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I74d07c3c3125a04962c37fe8bfcc8385d1fd3398
2022-09-04 12:59:52 +00:00
dianlujitao
38bb6f24b4 sm6375-common: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2022-09-04 12:59:51 +00:00
Ramii Ahmed
7c305cbdcb sm6375-common: import audio policy configuartion
* From veux_global-user 11 RKQ1.211001.001 V13.0.10.0.RKCMIXM release-keys

Change-Id: Id667a47b433a5491271575c2cbfce06dc6950fe7
2022-09-04 12:59:50 +00:00
Sebastiano Barezzi
a1f94a733b sm6375-common: Build default Trust HIDL
Change-Id: Icfecbd97df7adccc51406ae667fbc3cb10865a5a
2022-09-04 12:59:49 +00:00
Sebastiano Barezzi
a8c5f83656 sm6375-common: Build LiveDisplay HIDL
Change-Id: I6b767fe2269b679438c8fc0c49ceef9110a96a23
2022-09-04 12:59:49 +00:00
dianlujitao
98d44d5d8b sm6375-common: Support Alipay and WeChat fingerprint payment
* IFAA manager is based on OnePlusOSS, but adapted for Xiaomi's mlipay
   interface.

Change-Id: Ied17d6456561bb399e4dd4a868d57a48d2d51db2
2022-09-04 12:59:45 +00:00
Sebastiano Barezzi
6a821ad6b4 sm6375-common: Override HAL service and enable with nfc SKU
Change-Id: I3c33c50b65410a09a0e5529f3c9a94fbf36d8a31
2022-09-04 12:59:42 +00:00