Commit Graph

233 Commits

Author SHA1 Message Date
PainKiller3
f99ef70cc1 sm6375-common: wifi: No BSS flush for 2018 devices
Bug: 73301881
Test: Verify that the connected MAC randomization ~3 seconds delay problem is gone

Change-Id: I73dbeb9e9d0e740883c81384f3fee9b074292cd2
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: Ahmad Rulim <personal@rulim34.dev>
2023-06-27 20:44:46 +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
boedhack99
761047ace4 sm6375-common: Add support sunstone
* Redmi Note 12 5G
* This device using Snapdragon 4 Gen 1 aka SM4375 ( holi base platform )
* So.. add that device because use same platform

Change-Id: I77d39cf4954f71e2c238e3ff352b9574747ff92c
2023-06-26 21:40:11 +07:00
boedhack99
30ebfaabf8 sm6375-common: Add support moonstone
* POCO X5 5G

Change-Id: I1527e0a8dfff1b3394bb53c8a30bb30d6d078213
2023-06-26 21:40:11 +07:00
Ramii Ahmed
319561f173 [DNM] sm6375-common: prebuilt kernel
Change-Id: I41ba81f75180de6de45aebfae5ef715288f9180f
2023-01-19 02:27:04 +00:00
Ramii Ahmed
e5140688fc sm6375-common: add missing nfc library
* F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/android.hardware.nfc@1.2-service: library vendor.nxp.nxpnfclegacy@1.0.so not found: needed by main executable
2023-01-19 02:27:04 +00:00
Nate Jiang
d75f3a5ca9 sm6375-common: Enable set channel on NDP setup
Bug: 190354626
Test: build, CtsVerifier
Change-Id: Ieff18b96ec0f24c1c20c40add4e47a532ece8922
2023-01-19 02:27:04 +00:00
Les Lee
fa11054a90 sm6375-common: wifi: Configure correct overlay configuration.
ag/16564596 will change default value to false.
Configure correct overlay configuration.

Bug: 212488775
Test: manual test & build
Change-Id: Iaf1a0a23dae69fde5995e591a757a8ef5374d5b5
2023-01-19 02:27:04 +00:00
Ramii Ahmed
62eb368550 sm6375-common: extract-files: allow extracting proprietary-files for recovery
* we'll be using this to extract touchscreen firmware for recovery

Change-Id: I64745ff5823adee79016eabb772265aae3c06f3c
2023-01-19 02:27:04 +00:00
Ramii Ahmed
7507289ebf sm6375-common: update to latest EEA blobs
* from veux_eea-user 12 SKQ1.211006.001 V13.0.3.0.SKCEUXM release-keys
2023-01-19 02:27:04 +00: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
Michael Bestas
d3779d845c sm6375-common: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2023-01-16 04:23:09 +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
Sebastiano Barezzi
fdc643c743 sm6375-common: Add Aperture to config_cameraAuxPackageAllowList
* Also add .dev for debugging

Change-Id: I7ea8c1c29f58f908bd2db3632b42dd290e55a18d
2023-01-16 04:23:09 +00:00
LuK1337
ea231c46c4 sm6375-common: Migrate vendor.camera.aux.packagelist to sdk overlay
Change-Id: Iee884cc98b5fada492b27e8085de98ae08406cf4
2023-01-16 04:23:09 +00:00
Michael Bestas
d6642d3a5b sm6375-common: Remove bdroid_buildcfg.h
As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack
defaults to reasonable defaults that should work for all devices.

Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504
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
althafvly
41d1076962 sm6375-common: libinit: Set default USB and Bluetooth name
Change-Id: I65948d08d95b138d9faed262ad3376305b9510a7
2023-01-16 02:54:36 +00:00
Bruno Martins
39a23fb4cb sm6375-common: overlay: Remove BT related configs
These have been migrated to sysprops in Android 13.

Change-Id: I34c1f6b882a61df6db95523997002512354d875e
2023-01-16 02:54:36 +00:00
Woody Lin
68aab527f2 sm6375-common: Enable zygote critical window
Bug: 141948707
Change-Id: I5dc57312118b0f6d95fc9fe164363ec7e15f1b51
2023-01-16 02:54:36 +00:00
LuK1337
25ddeceef9 sm6375-common: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2023-01-16 02:54:36 +00:00
Bruno Martins
3a783849fa sm6375-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2023-01-16 02:54:36 +00:00
Alexander Koskovich
4fa5583056 sm6375-common: Move BT profiles props to vendor
* Makes it GSI compatible

Change-Id: I8f7caf241d508af59c16482e6185c42f23f8a460
2023-01-16 02:54:36 +00:00
Edwin Moquete
86be16ca56 sm6375-common: Switch to legacy sepolicy_vndr
Change-Id: I13229c3057bf32c81b0fdace075f0791cb8ad380
2023-01-16 02:54:36 +00:00
Nolen Johnson
0b89dbe7fb sm6375-common: Move to libhidl shim in hardware/lineage/compat
Change-Id: Ia2cd305baf3ce0fa7ac52d440a4ff51f94654438
2023-01-16 02:54:36 +00:00
Sebastiano Barezzi
d8871fe982 sm6375-common: Use RSA4096 key also for vbmeta_system
* Per https://android.googlesource.com/platform/external/avb/+/master/README.md#build-system-integration, SHA256_RSA4096 is used if BOARD_AVB_ALGORITHM isn't defined
* We can assume bootloader is able to understand a RSA4096 key for vbmeta_system as well

Change-Id: I1d7a539731add04feb8d89c2234e8050e209c5c1
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
Alexander Koskovich
6e1ef5ae16 sm6375-common: Add Bluetooth power overlays to sysprops
* These are currently in FrameworksResTarget, but were
   moved to sysprops in Android 13.

   976d33062b%5E%21/#F0

Change-Id: I5bff67a15c537e8a47a19f30776fca6bf2c9fbe5
2023-01-16 02:31:44 +00:00
Sal Savage
31054045d8 sm6375-common: Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Change-Id: Id6cd7901555edafef141bbc1bbd5e06dc3a54d0c
2023-01-16 02:22:02 +00:00
Sal Savage
a5bea0762a sm6375-common: Set default the Bluetooth class of device
The class of device is a string with a list of uint8t values:
90,2,12

The meaning is as follows:
{Service Field, Major class, Minor class}

Service Field: 0x5A -> 90
    Bit 17: Networking
    Bit 19: Capturing
    Bit 20: Object Transfer
    Bit 22: Telephony
MAJOR_CLASS: 0x02 -> 2 (Phone)
MINOR_CLASS: 0x0C -> 12 (Smart Phone)

Bug: 217452259
Test: make -j; -- check that bluetooth.device.class_of_device is
correct

Change-Id: I24fd57bacbf6786a26f7079e7a6e9857dbe170d1
2023-01-16 02:22:02 +00:00
Sal Savage
b3ed40bb5e sm6375-common: Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Change-Id: I9312b9b70b51603aca6da6f4081533ab73c1614d
2023-01-16 02:22:02 +00:00
Sal Savage
3917ebd967 sm6375-common: Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Change-Id: Idd7e52b7822915ed61299f1c0b29bf87ca0339fe
2023-01-16 02:22:02 +00:00
Santiago Seifert
48505b4214 sm6375-common: Unpin updatable-media from memory
Bug: 214499288
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
Test: Presubmit
2023-01-16 02:22:02 +00:00
Tyler Trephan
da0174f041 sm6375-common: Updated multihal to use new sensors AIDL interface
* Taken from 17857cc469

Test: make android.hardware.sensors@aidl-multihal
Fix: 206867060
Change-Id: I9b78a0f25117d11fdf4beb1e0913393c1c14620d
Signed-off-by: kleidione <kleidione@gmail.com>
2023-01-16 02:22:02 +00:00
Pirama Arumuga Nainar
57b2869a91 sm6375-common: Fix Wbitwise-instead-of-logical introduced by clang-r445002
Bug: http://b/215753485

This warning is introduced in clang-r445002.  In code where the bitwise
operation was used to avoid short-ciruit evaluation, make that explicit
by introducing temporary variables.

Test: build with clang-r445002.
Change-Id: Ia7ccf1d48922d926313f691888d26c3e314c1056
Signed-off-by: kleidione <kleidione@gmail.com>
2023-01-16 02:22:02 +00:00
Jiyong Park
51e407c4c1 sm6375-common: Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: I14a1c57bd06f1f2aa52491f779c7030d4de03547
Change-Id: I14a1c57bd06f1f2aa52491f779c7030d4de03547
2022-09-05 03:15:33 +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
Albert I
e71788e025 sm6375-common: sepolicy: Allow apps and camera HAL access to secure ADSP domain
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: Ibb1071299632ab53726638dbcc134d4bca59fc52
2022-09-04 23:18:43 +00:00
Albert I
664ba17574 sm6375-common: sepolicy: Allow neural networks HAL to read ADSP properties
Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I3fa6f51b746703bab2faf3f5fd6334b221a8636c
Signed-off-by: kleidione <kleidione@gmail.com>
2022-09-04 23:18:35 +00:00
dianlujitao
3f8897df42 sm6375-common: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing
 * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to
   same_process_hal_file like Pixels, but the partition is prebuilt thus
   we're unable to relabel it.
 * Copy the file to writable tmpfs, setup attributes and bind mount back
   to workaround the limitation.

[ghostrider-reborn]:
Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3

[kras edit:
 1. rename some contexts as per qva/kona
 2. extend to allow camera HAL and VPP service to access it as well]

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Change-Id: Ide90e5c7307d413db5ece736e859559f06679545
2022-09-04 23:18:08 +00:00
Siddeswar Aluganti
8966e9aea6 sm6375-common: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti),
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
Signed-off-by: kleidione <kleidione@gmail.com>
2022-09-04 23:18:02 +00:00
Arian
978e34ed26 sm6375-common: gpt-utils: Do fsync after writing partition entries
Do fsync after writing partition entries to ensure data
is actually written before rebooting device.

Change-Id: Ia2067d5e215b60290165b0dfd4ba842434343058
2022-09-04 23:17:55 +00:00
Arian
af1bf5c16c sm6375-common: gpt-utils: Add product to ab partition list
Change-Id: Iee0660c7787df067bd90839e0031b60ebef419e9
2022-09-04 23:17:48 +00:00
Arian
1286d92e51 sm6375-common: gpt-utils: Drop unused sparse_crc32
Change-Id: If0cf581f0abc98f08b30edcc0ed03cb176c365c9
2022-09-04 23:17:42 +00:00