Commit graph

320 commits

Author SHA1 Message Date
Alexander Koskovich
82e4a37cc4 sdm660-common: Remove vendor RenderScript implementation.
* RenderScript is deprecated on newer platforms and
   is being officially replaced.

 * On April 19, 2021, Google announced that RenderScript
   will be deprecated in Android 12, and recommended
   porting existing code to Vulkan.

   https://android-developers.googleblog.com/2021/04/android-gpu-compute-going-forward.html

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
Ratoriku
c5eda70804 sdm660-common: Drop unused drm packages
* We only use drm@1.2 prebuilt blobs for widevine
* Silenced some log spam when boot up

Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:55:38 +01:00
Subhadra Jagadeesan
b3fa6cc2c2 sdm660-common: Remove pro audio capability
Remove pro audio capability in sdm660 device make file
as ultra low latency/ raw flag not supported for sdm660
audio policy.

Issues Fixed: AudioLoopbackLatency CtsVerifier test fails due to pro audio
capability with mean latency <= 20ms. Removing the pro audio feature
passes the test with mean latency <= 800 ms.
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:34 +01:00
ChihYao Chien
932da046c8 sdm660-common: Add qti-telephony-hidl-wrapper-prd
Provide qti-telephony-hidl-wrapper-prd for modules in product partition to include.

Bug: 189177913
Bug: 189905530
Change-Id: I449861fba3d43f983bfb4b99764eae360ccb236c
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Edwin Moquete
8071e94bcf sdm660-common: vibrator: Add excluded-input-devices.xml
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Bharat Pawar
7ebd3d55be sdm660-common: Enable LED based vibrator
Enable LED based vibrator for sdm660 targets.

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Alastair Donaldson
aebec3317f sdm660-common: Add OpenGL ES feature flags
Populates a new feature flag to record the level of OpenGL ES dEQP
test support.

Bug: 159841535
Change-Id: I9ed8ec8af0c76962cfd77a91d806cad95de70c28
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
087323c943 sdm660-common: Nuke rild
* We are using qcrild now

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
shivatejapeddi
cf5fe98a53 sdm660-common: Copy Modified libprocessgroup configs to vendor
* Schedtune paths are depreceated from Android S and updated to utilclamp
as our kernel doesnt support utilclamp, these configs are modified to fix lags and stutters
since power hal and perf stack are still dependent on schedtune

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
6f56141b37 Revert "sdm660-common: Ship copy of API 28 cgroups/task_profiles.json in vendor"
This reverts commit 533bb382b291ce5e0f97283852a2b6e809332fc1.
2021-12-31 07:51:33 +01:00
Sebastiano Barezzi
5b063c289a sdm660-common: Build all extra VNDK versions
* Basically make system a GSI, but this should avoid us the headache made by VNDK libs not being built based on proprietary interfaces

Change-Id: I1ca876b5d2a82d41af76f4c327b89a181bb3d6bd
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Kyle Harrison
072e21a0bf sdm660-common: Don't write binary XML files
- Android 12 now writes XML files in binary format by default. This can cause incompatibility with TWRP which can hang when attempting to read XML files e.g. /data/system/storage.xml

- This commit sets the persist.sys.binary_xml property to false so that XML files are written in text format.

Change-Id: If6430597d8459e62dd78aa458c58237c71618970
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Edwin Moquete
b6701f6a3c sdm660-common: Build libwpa_client
No longer built as a dependency of the wifi HAL

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
97dbafb607 Revert "sdm660-common: Switch to bootcontrol 1.2"
* Switching slots for no reason

This reverts commit 5173fc23ec7684998ec8648441534f6a7b2c4dfa.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
MoetaYuko
3e1d52308a sdm660-common: ifaa: Update IFAAManager
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I5f78b2ff9827e809d1b08affad654f514d13a0f1
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
772780f866 Revert "Revert "sdm660-common: Nuke IFAAService""
This reverts commit 7f38ee77740521e8a12c040183184c12ffdcc648.
2021-12-31 07:51:33 +01:00
pix106
6e8ca8df17 Revert "sdm660-common: Commonize IFAAManager"
This reverts commit 70e1067023ba68eec69709b15acadb6d83eb5542.
2021-12-31 07:51:33 +01:00
clarencelol
9c80fef56b sdm660-common: Build Pixel powerstats
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
TH779
0d4aa02db2 sdm660-common: Commonize IFAAManager
Needs https://github.com/ArrowOS-Devices/android_device_xiaomi_extras

Signed-off-by: TH779 <i@779.moe>
Change-Id: I605593ad59c755b65d8a4f4358b3531d97e792bd
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
TH779
fba2a9ddbb Revert "sdm660-common: Nuke IFAAService"
This reverts commit 619ac28167151642754bf41bbc2f485a456733e4.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
pix106
d72a612e4b sdm660-common: build android.hardware.drm@1.4.vendor
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Chenyang Zhong
d979f6a671 sdm660-common: Ship copy of API 28 cgroups/task_profiles.json in vendor
Google's prebuilt cgroups.json and task_profiles.json for products
launched with previous API levels only covers
ro.product.first_api_level >= 28. [1]

Xiaomi sdm660 devices were launched with Nougat/Nougat MR1/Oreo (API levels 24-26), so schedtune and
task groups are completely broken. Since the system also checks
/vendor/etc for vendor profiles, make a copy of cgroups_28.json
and task_profiles_28.json and ship them to /vendor/etc. Profiles
for previous API levels are all the same anyway.

Test: boot and check /dev/stune/

[1] system/core/libprocessgroup/profiles/

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Signed-off-by: SakilMondal <mondalsakil@gmail.com>
Change-Id: I8e54ae2d79034f54447616d79294573bf74ed6e1
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Kyle Harrison
5a44c31e45 sdm660-common: props: Don't write binary XML files
- Android 12 now writes XML files in binary format by default. This can cause incompatibility with TWRP which can hang when attempting to read XML files e.g. /data/system/storage.xml

- This commit sets the persist.sys.binary_xml property to false so that XML files are written in text format.

Change-Id: If6430597d8459e62dd78aa458c58237c71618970
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Sebastiano Barezzi
c80ba49394 sdm660-common: props: Rearrange properties
- No longer productconfig, hence prepare for boardconfig

Change-Id: I78b4cc1bda325f141b3fa33897e57c6bbd6ce34f
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Mikhail Naganov
51f1cc24b2 sdm660-common: Switch audio HAL to V7
Updated audio policy manager configuration files to comply
with the changes in the XML schema.

Bug: 142480271
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioEffectV7_0TargetTest
[Ratoriku: Adapt to xiaomi sdm660]

Change-Id: I55d3728c809d27e58d5d496a1c7d637050dde53a
Signed-off-by: raiyanbinmohsin <raiyanbinmohsinshishir@gmail.com>
Signed-off-by: Martin Štrobl <recordyletsplays@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Tianjie
64a7d2f94c sdm660-common: Switch to bootcontrol 1.2
Bug: 173808057
Test: Vts tests for bootcontrol

Change-Id: I796df74503df4bd7915d13d25ee4b388a8667070
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
orges
63db93d56b sdm660-common: Add display config file
* DisplayPowerController[0]: Screen brightness nits configuration is unavailable; falling back
 * DisplayDeviceConfig: requesting nits when no mapping exists.

Signed-off-by: orges <me@orgesified.ml>
Change-Id: I1716319bb17b9236d07d44a2a7fa3c7640c54ddf
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
ebd421dc9a sdm660-common: Aosp-ify bluetooth
* Nullified remaining QTI Bluetooth remnants
* Remove some props
* Using usb audio hal from source

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Ratoriku
8aeae4bb5e sdm660-common: Drop TetheringOverlay
* It is forced to use bpf in Android S. Also we have it backported in k4.4, so this overlay is totally useless now

Signed-off-by: Ratoriku <a1063021545@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Ratoriku
a80975c3d7 sdm660-common: Switch to AIDL Light HAL
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Change-Id: I2618bcb81902688b9b9b975f612c653707787202
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
fa4db25e3b sdm660-common: Build libldacBT_bco from source
* E a2dp_vendor_ldac_decoder: A2DP_VendorLoadDecoderLdac: cannot open LDAC decoder library libldacBT_bco.so: dlopen failed: library "libldacBT_bco.so" not found

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Sebastiano Barezzi
cea38a5bdc sdm660-common: Uprev bluetooth audio HIDL impl to 2.1
* We get free LC3 support, isn't it poggers?

Change-Id: I0f1713ee542102374183ef8088bcad62d3859c2f
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Martin Štrobl
23adaa2494 sdm660-common: Switch to QTI gatekeeper
* This, along with using the QTI keymaster and disabling APEX device-side fixes encryption

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Pavel Dubrova
4b0b81c784 sdm660-common: Provide android.frameworks.sensorservice@1.0 on vendor
starting with Android 12 most HAL libraries are not included in VNDK anymore
they need to be explicitly pulled in to `/vendor` for odm blobs
to be allowed to access them:

    QCamera : <MCI><ERROR> mm_camera_load_shim_lib: 3306: dlopen failed
    with error dlopen failed: library
    "android.frameworks.sensorservice@1.0.so" not found: needed by
    /odm/lib/libmmcamera2_stats_modules.so in namespace (default)

android.frameworks.sensorservice@1.0 is used by at least mm-camera framework.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Martin Štrobl
5bbe29b415 sdm660-common: Uprev android.hardware.radio HIDL iface to v1.5
* Fixes error
F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/qcrild": library "android.hardware.radio@1.5.so" not found: needed by /vendor/lib64/libril-qc-hal-qmi.so in namespace (default)

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Martin Štrobl
54f4411e09 sdm660-common: Build android.hardware.secure_element@1.2
* Might as well remove it from the manifest, since it's not required
* Fixes error:
 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/qcrild": library "android.hardware.secure_element@1.2.so" not found: needed by /vendor/lib64/libril-qc-hal-qmi.so in namespace (default)

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Martin Štrobl
d50b98d6e4 sdm660-common: Don't build the ATRACE HAL
* Kernel doesn't support it, spams log with crashes

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Martin Štrobl
00a0ea2def sdm660-common: Decommonize keymaster
* Also build vendor HIDL interface lib for devices using @3.0

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
6a443bca6f sdm660-common: Build more and more and more HIDL targets
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
86f4c82b51 sdm660-common: Improve QCOM Product - Board Declaration
This is to avoid failed QCOM HAL resolution.
Some roms uses BoardConfigQcom.mk and some roms uses BoardConfigQcom.mk.
So adding it into poth product and broad won't be an issue.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
90d334251e sdm660-common: Build libtinyxml.so
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Edwin Wong
0182461bec sdm660-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I406b7d3c2921d4698535421894c6eb3785eb1c0d
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Ratoriku
1701c2b279 sdm660-common: Build HIDL interface libs
Signed-off-by: Ratoriku <a1063021545@gmail.com>
Change-Id: Ib626532d7f4929c6b379dfda185f97793a0a9850
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
5a2083830c sdm660-common: Build libjson.so from source
Track https://github.com/LineageOS/android_external_json-c

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:32 +01:00
Omar Hamad
a826157bb1 sdm660-common: Nuke IFAAService
Shows compilation errors with Android 12

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:40:19 +01:00
Omar Hamad
226cb282f0 sdm660-common: Nuke ims-ext-common_system
Shows compilation errors, use ims-ext-common for now

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:40:19 +01:00
Pig
2304a20f3e sdm660-common: Build vendor variant of com.dsi.ant
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Mahesh Kumar Sharma
6e4a932e34 sdm660-common: ANT: Support new ANT stack
Add appropriate package name on the basis of
transport used on target.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Sebastiano Barezzi
f9c13cf041 sdm660-common: Remove vndk-ext
* It was only useful to jason, which needs a copy of libpowermanager in vendor

Change-Id: I754c666730d841fd71837358fe87a5ce1a3d7921
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Marc Bourgoin
8d82dc6df0 sdm660-common: Drop QCOM WFD
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
Marc Bourgoin
11ae440325 sdm660-common: Disable WfdCommon boot jar
Change-Id: I3dd591444dc54ebe3a32e0385cbfc3db6bfc5e1f
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:31:51 +01:00
raiyanbinmohsin
d995aabb68 Revert "sdm660-common: Awaken-ify"
This reverts commit 635c08ae00.

* also drop awaken ota sepolicy
2021-11-13 11:31:51 +01:00
Martin Štrobl
256827eaf3 sdm660-common: Flatten APEXes if updatable APEX is not present
* Should fix bootloops on ROMs which require APEX to boot, such as EvoX

* If APEX is being flattened, disable it manually as well since some ROMs have it enabled by default, even if we flatten it.
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
35d819fd51 sdm660-common: Conditionally build IR HIDL
Change-Id: I7ebde1c32e2a64c867b7ae26c3aa254432386df2
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
3605a9c720 sdm660-common: Move to SPDX license identifier
Change-Id: If335a7b83289edf4759d0195a8b065c8dac6631b
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
1607c907dd sdm660-common: libhidl: Move to Android.bp
Change-Id: Ia046de0c051aa7533d602714c7d882a079973808
2021-11-13 11:31:51 +01:00
Sebastiano Barezzi
2ba4aa0b65 sdm660-common: Stop building android.hardware.broadcastradio HIDL impl
* Nothing uses it and it isn't even in manifest

Change-Id: I989f68d98f9dbddff0cb151599a4b60e819105d1
2021-11-13 11:31:51 +01:00
Timi Rautamäki
9390968535
sdm660-common: Use TARGET_COPY_OUT_SYSTEM instead of system/
Change-Id: I0c173371db1d6709e37c4c03bdaeb64ca902999b
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-06-27 17:24:10 +06:00
OdSazib
0ecad1348f
sdm660-common: Build libqdMetaData.vendor
- Not required for system anymore as it's already
  system_ext specific on display hal
2021-06-19 02:47:58 +06:00
clarencelol
20efaf472b
sdm660-common: Switch to Thermal 2.0 mock
* QTI Thermal couldn't read the temperature for some reason
2021-06-15 21:48:17 +06:00
OdSazib
c707948bcc
sdm660-common: Downgrade android.hardware.secure_element
- Also remove manifest entry
2021-06-15 17:32:47 +06:00
OdSazib
491969fae8
sdm660-common: Uprev camera.provider to 2.6
- Also camera.device to 3.5
2021-06-15 17:32:47 +06:00
OdSazib
d002971ef8
sdm660-common: Update RIL from curtana V12.0.1.7.RJWMIXM
- Update android.hardware.secure_element to 1.2
- Update android.hardware.radio to 1.5
- Update vendor.qti.hardware.radio.uim_remote_client to 1.2
- Downgrade vendor.qti.hardware.radio.lpa to 1.0
- Add seccomp_policy for imsrtp
- Remove duplicate vendor.qti.hardware.radio.qtiradio entry
- Remove libshim for libdpmframework
- Adjust props with new RIL blobs

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-06-11 08:33:27 +06:00
Lucchetto
09dfad32be
sdm660-common: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Signed-off-by: Lucchetto <lucchetto.tie@live.com>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2021-06-07 09:22:17 +06:00
EcrosoftXiao
bcee3d7841
sdm660-common: Switch to QTI Thermal HAL 2021-06-07 09:22:17 +06:00
LuK1337
d03e299b1d
sdm660-common: Drop thermal and thermal controller 2021-06-07 09:22:17 +06:00
pkm774
8f1fbab141
sdm660-common: Build graphics.allocator@3.0 and @4.0
565 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@4.0::IAllocator/default in either framework or device manifest.
  4126 W Gralloc4: allocator 3.x is not supported
   565 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.allocator@3.0::IAllocator/default in either framework or device manifest.
  4126 W Gralloc3: allocator 3.x is not supported
  4126 I Gralloc2: Adding additional valid usage bits: 0x0

Signed-off-by: pkm774 <mprabhat774@gmail.com>
2021-06-07 09:22:17 +06:00
OdSazib
8ae20c8315
sdm660-common: Required HALs for 4.19
- Update all dependencies to my git as well
2021-06-07 09:22:17 +06:00
Omar Hamad
83706265c1
sdm660-common: props: Refactor all properties 2021-05-18 05:04:03 +06:00
Erfan Abdi
c90398c16f
sdm660-common: Don’t enforce RRO for all overlays
* Breaking /product/overlay
* Also this makes many platform specific overlays with current system API on vendor partition which breaks newer android version compatibilities (broken stuffs in gsis)

Change-Id: I45eb18b0754726fb4f779521a0245dfcb1259b17
2021-05-18 05:04:03 +06:00
OdSazib
996be98aad
sdm660-common: Use custom R hals for sdm660
* R hals and adapted for product config
 * If your rom uses boardconfig for hal and soc,
   place them to BoardConfig instead
2021-05-18 05:04:03 +06:00
OdSazib
4d2ff378d2
sdm660-common: gps: Remove duplicate build/copy rules 2021-05-18 05:04:03 +06:00
OdSazib
53c3064ba1
sdm660-common: audio: Update audio configs and enable soundtrigger 2021-05-15 07:20:19 +06:00
dianlujitao
4cfd18a6ad
sdm660-common: Switch to Audio HAL v5
All devices use pre-R audio.bluetooth_qti.default.so and platina uses
pre-R audio hal, in which the new set_event_callback API is not
implemented and the audio service will crash due to mismatched struct.

Change-Id: Ia330ac05d84d3dfb3a639458d66a3dc29689e67c
2021-05-15 06:03:01 +06:00
Jabiyeff
1607e1fe49
sdm660-common: Import AdaptLaunch and some other perf
* From LA.UM.8.6.2.r1-08600-89xx.0

Test: Better app launching time

Signed-off-by: Jabiyeff <cebiyevanar@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-04-18 21:59:36 +06:00
OdSazib
ef00e5f20b
sdm660-common: DeviceSettings: Import in-app Dirac
- Improve code with reference and split gain category

This reverts commits
- 471da74
- de7135d
- f6c011d

All credit goes to Stylog, this is just revert commits with few improvement

Co-authored-by: clarencelol <clarencekuiek@icloud.com>
2021-04-10 02:24:09 +06:00
OdSazib
c7d2cbca99
Revert "sdm660-common: import Hotword Enrollment blobs"
- Useless stuffs which don't work at all

This reverts commit f77adb24dd.
2021-04-03 18:22:51 +06:00
etahamad
f6c011d64d
sdm660-common: audio: Add standalone Dirac support 2021-04-02 01:16:05 +06:00
OdSazib
8a564e1ad4
sdm660-common: Build wfd dependency blobs from source
* Avoid manifest entry for old blobs compatibility
* Must use display hal from https://github.com/AOSP-11
2021-03-22 13:01:45 +06:00
OdSazib
4580d94c55
sdm660-common: Roll back to wayne-thermal
* jasmine thermal leads to:
 - 50% reduction in Geekbench scores for multi-core
 - Problem with rapid charging for higher ambient temperature

These wayne-configs fix the above issues
2021-03-17 12:22:56 +06:00
OdSazib
6166317281
sdm660-common: Build power stats and label it 2021-03-15 12:21:09 +06:00
Subhajeet Muhuri
d41d782c92
sdm660-common: Include hardware/google/interfaces and hardware/google/pixel
* Required by power-libperfmgr

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-03-10 12:37:38 +06:00
Subhajeet Muhuri
114f2a0905
sdm660-common: Add atrace-hal build rule 2021-03-10 12:37:38 +06:00
Subhajeet Muhuri
7c3beb85c9
sdm660-common: power-libperfmgr: Switch to AIDL Power HAL
hardware/google/pixel/power-libperfmgr from android-11.0.0_r25

SQUASHED:
Revert all HIDL interface and nuke previous changes
Import Pixel libperfmgr AIDL Power HAL
Adapt and rebrand for xiaomi_sdm660
Remove Google-specific display LPM control
Remove Google-specific camera and audio hints
Remove VR hints handling
Remove audio hints handling
Remove dumpstate support
Initialize powerHAL when boot is completed
Add support for tap-to-wake feature control
Add sepolicy rules for power-libperfmgr
Enable power-libperfmgr

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-03-10 12:37:27 +06:00
Manish4586
4aec2ab1c3
sdm660-common: audio: Switch to audio hal v4 2021-03-10 03:50:49 +06:00
OdSazib
d31c630682
sdm660-common: Fix sensorservice 2021-03-10 03:45:52 +06:00
OdSazib
1977da527c
sdm660-common: Import gps configs from LA.UM.9.6.2.r1-03600-89xx.0 2021-03-06 20:26:06 +06:00
PIPIPIG233666
8c0971fdfc
sdm660-common: Build new GNSS stack
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
2021-03-03 00:01:41 +06:00
OdSazib
5fd6060869
sdm660-common: Checkout gps hal from LA.UM.9.6.2.r1-03300-89xx.0 2021-03-03 00:01:41 +06:00
OdSazib
245f36f6ed
sdm660-common: Build libavservices_minijail
To eliminate linker error and fix ims_rtp_daemon:
--------------------------------------------------
CANNOT LINK EXECUTABLE "/vendor/bin/ims_rtp_daemon": library "libavservices_minijail.so" not found: needed by main executable
2021-03-02 23:47:30 +06:00
Michael Bestas
b3e57baf6e
sdm660-common: Don't build tinymix
* This tool can be built manually for debugging cases,
  there is no need to ship it in production

Change-Id: I9ab8b076b4bede70c368c198960ceabc68dad65b
2021-03-02 23:47:29 +06:00
Ethan Chen
ce8a29230c
sdm660-common: Remove unnecessary usage of TOPDIR
Change-Id: Iafaa21f49c9ddb1fed21e83948d549f5a74dcfee
2021-03-02 23:47:29 +06:00
etahamad
e923bda27e
sdm660-common: Move IPA flag to sdm660 make file
to fix error: build/make/core/base_rules.mk:329: error: device/xiaomi/sdm660-common/data-ipa-cfg-mgr/hal: MODULE.TARGET.SHARED_LIBRARIES.liboffloadhal already defined by vendor/qcom/opensource/data-ipa-cfg-mgr/hal.

Signed-off-by: etahamad <220190166@fa-hists.edu.eg>
2021-03-02 23:43:22 +06:00
Martin
1939009ca9
sdm660-common: Decommonize screen density
* Not a good idea when we support multiple devices with different screen densities
2021-03-02 23:43:03 +06:00
OdSazib
2228811ec0
sdm660-common: Add wfd dependency blobs
* From LA.UM.9.6.2.r1-03300-89xx.0

To eliminate these errors:
--------------------------
CANNOT LINK EXECUTABLE "/vendor/bin/wifidisplayhalservice": library "libdisplayconfig.qti.so" not found: needed by /vendor/lib/libwfddisplayconfig_proprietary.so in namespace (default)
CANNOT LINK EXECUTABLE "/vendor/bin/wifidisplayhalservice": library "vendor.display.config@2.0.so" not found: needed by /vendor/lib/libwfddisplayconfig_proprietary.so in namespace (default)
2021-03-02 23:42:26 +06:00
etahamad
5cc1fbddac
sdm660-common: Move props from system to product
Test: using su shell: ex: getprop persist.timed.enable and check if the value exist or not.
Fix: Moving prop into his right path
2021-02-22 18:17:59 +06:00
etahamad
6c1d0626ea
sdm660-common: Move some QCOM props to system_ext
Test: using su shell: getprop persist.vendor.dpm.feature and check if the value exist or not.
Fix: Moving prop into his right path
2021-02-22 18:17:59 +06:00
SakilMondal
feeeb37c82
sdm660-common: add QTI health implementation
Ref: https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/healthd-ext/commit/?h=android-core.lnx.6.0.r7-rel&id=995c63a75db6366c28b3a4c1dcb00a77cba090d4
Change-Id: Ib4406e22626f7c0a85a3c9a70d5bea3fc917f9c1
2021-02-20 11:55:48 +06:00
Subhajeet Muhuri
86fd0cbdb2
sdm660-common: Commonize thermal-engine-config from device (2/1) 2021-02-19 17:17:09 +06:00
etahamad
0814ebe94f
sdm660-common: Stop inheriting depricated gapps makefile 2021-02-16 17:08:21 +06:00