Commit graph

379 commits

Author SHA1 Message Date
pix106
6970ca67a1 Revert "sdm660-common: Create dummy libqti-perfd-client"
This reverts commit 09dfad32be.
2022-03-26 11:56:35 +01:00
pix106
d6d0806766 Revert "sdm660-common: build android.hardware.drm@1.4.vendor"
This reverts commit d72a612e4b.
2022-03-26 11:56:35 +01:00
clarencelol
68b51b59ee sdm660-common: Nuke powerstats HAL
* Powerstats are so buggy lmao, it keeps error  android.hardware.power.stats@1.0-service.xiaomi_sdm660: Failed to getEnergyData

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
pix106
7f5c98e112 sdm660-common: Bring back folio daemon and userspace hall switcher
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
EdwinMoq
f2cb1e7374 sdm660-common: Disable APEX compression
• For whatever reason causes this dmesg logspam:

[  452.691271] loop19: rw=0, want=123576, limit=122957
[  452.691273] attempt to access beyond end of device

Change-Id: Ic90d512fa774291cfa6557639624a09d685a2116
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
0538dd9791 sdm660-common: Update media codecs
* Retune some fps values based on CAF
* Removed some unused decoder
* From LA.UM.8.2.r1-07400-sdm660.0
* Build some media extensions
* Added some media codecs from google

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
efae553016 sdm660-common: rootdir: Update init.rc and init.sh
from LA.UM.9.2.1.r1-08000-sdm660.0

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
b380d6f268 sdm660-common: Cleanup
* clean some duplicates,deprecated and not uses anymore
* build vendor.qti.hardware.btconfigstore@1.0 from source

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
ujjwalkirorimal
b17346d30a sdm660-common: Adapt ANT stack to S
* Drop Board flag as it is redundant now.
* Drop deprecated ant-radio library
* https://source.codeaurora.org/quic/la/platform/external/ant-wireless/ant_native/commit/?h=LA.UM.10.2.1.r1-02900-sdm660.0&id=795d048dee0814767edf4edaa54b33866b8aefb8

Signed-off-by: Martin Štrobl <recordyletsplays@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
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
etahamad
54b3390822
sdm660-common: Move some props to system/build.prop
* +Adding some props also

When device is in Enforce mode, this happens:
---------------------------------------------
E init: Do not have permissions to set 'persist.radio.VT_CAM_INTERFACE' to '2' in property file '/vendor/build.prop': SELinux permission check failed
As example, so, moving those props to system/build.prop (from vendor/build.prop) fixes the issue.

Test: adb logcat -b all -d *:E > logcat-err.log and check for any init props related errors
Fix: Enforcing the Device Tree
2021-02-16 17:08:16 +06:00
Chenyang Zhong
f77adb24dd
sdm660-common: import Hotword Enrollment blobs
Co-authored-by: IMMANUEL44 <immanuelr44@gmail.com>
2021-02-09 20:53:35 +06:00
SakilMondal
e5222049af
sdm660-common: Drop non-functional soundtrigger
* Fixes google assistant voice match in android 11
2021-02-09 20:53:21 +06:00
Michael Bestas
72424be3b9
sdm660-common: Cleanup dead targets
Change-Id: Ib1e2965a5e9f16929f1dc11c719d917cd85604d1
2021-02-08 14:06:47 +06:00
Michael Bestas
49080c44df
sdm660-common: Remove unused libextmedia_jni
Change-Id: Id57661f4f1c4143cbd7b69472e6ab4b428ffab4f
2021-02-08 14:06:47 +06:00
Ethan Chen
4c4a6e4e80
sdm660-common: Remove unnecessary netutils packages
* These are already packaged by AOSP.

Change-Id: I77f91fbbb33a6d891d14fe852b094ab914ca3111
2021-02-08 14:06:47 +06:00
Ethan Chen
8228caf1de
sdm660-common: Remove unnecessary media extension packages
* The mediametrics packages are part of the AOSP media stack already.
* libavserviceextensions is not available in Lineage.

Change-Id: Ia05789b6d59ad04e236b20155ac8b9575b0bdab1
2021-02-08 14:06:47 +06:00
OdSazib
bdd0d21f13
sdm660-common: Checkout rootdir and init stuffs from caf
* adapt with eas and cleanup unnecessary stuffs
* Fixed offline charging and usb functions

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-08 14:06:33 +06:00
OdSazib
2135c18643
sdm660-common: DeviceSettings: Drop userspace hall switcher
* The sensor works as it is, hence not needed anymore
2021-02-03 23:05:50 +06:00
OdSazib
18c3503642
sdm660-common: Move telephony and fm packages to /system_ext
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
2021-01-22 07:24:22 +06:00
Bruno Martins
12c3057098
sdm660-common: Use CodeAurora ImsService implementation for RCS
There is no evidence that Qualcomm devices running a rather recent IMS
stack need to include AOSP RCS packages. RCS already worked before this
change and continues to do so, but the main goal was to get rid of some
of the RCS related log spam, which was accomplished here.

Change-Id: I219546e29d288373877e9bcd194a60ef5e09f224
2021-01-21 03:26:34 +06:00
Luca Stefani
6b180768c0
sdm660-common: Don't build vndk_package
* It's built by default if vndk is set to current

Change-Id: I2a00446046bafe265e5ac894656abc72514319d8
2021-01-21 03:26:34 +06:00
Roman Kiryanov
ade917bb7b
sdm660-common: Replace audio@2.0-service with audio.service
Legacy service name, use android.hardware.audio.service instead

Bug: 153579444
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: I4c05accb86dd0c9cd1b3fef3d84e0d54b2afc6a1
Change-Id: I6b55b4b1db2577f4176c99dca7021cfe78e13307
2021-01-21 03:26:34 +06:00
Bruno Martins
727e0bb3cb
sdm660-common: Migrate to Health 2.1 HAL
Change-Id: Ic6302844ac58c16713b43b6871a705b9b4749a96
2021-01-21 03:26:34 +06:00
Luca Stefani
5892ec1c90
sdm660-common: Remove unused libqsap_sdk
Change-Id: Ib543425786c498eec8ef421f85047bcb1cb0cae3
2021-01-21 03:26:33 +06:00
Ethan Chen
a578eeb694
sdm660-common: Remove bogus ebtables/ethertypes/libebtc packages
* These don't exist.

Change-Id: I08f319e26867eb0b8fcdfaa632b4f6061f33b982
2021-01-21 03:26:33 +06:00
Michael Bestas
245f7306df
sdm660-common: Remove libantradio from PRODUCT_PACKAGES
* It's proprietary and already included in vendor makefiles.
* Remove antradio_app target which is dead

Change-Id: Ic19703a39e3e691a04b226b2cb2a27b02703724d
2021-01-21 03:26:33 +06:00
Sami Tolvanen
841ea5390b
sdm660-common: verity: call verity_update_state
Needed to set up partition.%s.verified properties.

Bug: 29277442
Change-Id: I295668c454e7e16018e1e4c3bafce5e317616069
2020-12-30 22:06:56 +06:00
OdSazib
97ba5db521
sdm660-common: Enable RRO overlays for lineage-sdk and Snap 2020-12-30 22:06:56 +06:00
OdSazib
e44cb6d696
sdm660-common: Refactor apex
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I8373415681ebf71732657cf86067be5cc4c14625
2020-12-30 22:06:56 +06:00
erfanoabdi
a6f2b3478b
sdm660-common: Refactor BoardConfigQcom to ProductConfigQcom
* Required if rom switched to ProductConfigQcom to build hals

Change-Id: Iddbc6ae3e21cebab3f55b4907abc08527523b81a
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
OdSazib
635c08ae00
sdm660-common: Awaken-ify
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-30 22:06:56 +06:00
Ryan Mitchell
1e203fcfbe
sdm660-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2020-12-30 22:06:56 +06:00
OdSazib
256c2fbfed
Revert "sdm660-common: Switch to QTI bt stack and enable a2dp offload"
This reverts commit a85c69a8b5.
2020-12-30 22:04:27 +06:00
OdSazib
f6cb7bb46a
sdm660-common: Nuke lineage livedisplay
* Better version is already exist in device settings

Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
OdSazib
a7fd6033cc
sdm660-common: Add powerhint for sdm660 and sdm636
* Add EAS_POWERHINT_VARIANT := sdm636 for whyred in device.mk

Co-authored-by: Subhajeet Muhuri <kenny3fcb@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I3591038a29326b15ce00de0051208219d9f3830d
2020-12-22 20:57:05 +06:00
Subhajeet Muhuri
e647430c7f
sdm660-common: Enable power-libperfmgr
Change-Id: Ia5f8fb4a2afc7a453eb09d2092a7872fd8442bc9
2020-12-22 20:57:05 +06:00
Michael Bestas
40f4b8134b
sdm660-common: Do not build textclassifier
* Target no longer exists

Change-Id: I2079d7dbbeb59bbe9cd925a56f6bcc84c8a38d7f
2020-12-21 09:19:25 +06:00
Michael Bestas
c3100491c3
sdm660-common: Remove deprecated liboverlay target
* This was removed from display HAL in 2015

Change-Id: I25f675260e8ab166001dd2e2601dc13021bcc15a
2020-12-21 09:19:25 +06:00
OdSazib
151e86e97b
sdm660-common: Set target screen density to 400
Change-Id: I574b5d322eccc753d37f9fc17599470d12cd9b37
2020-12-13 18:37:01 +06:00
Demon000
19ff6e0599
sdm660-common: Add shim for libdpmframework
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Change-Id: I5bbfcfafd3898d00b489df2cd057ca6dc043e21c
2020-12-13 18:37:01 +06:00
Felix
8fecc32ed8
sdm660-common: Add protobuf vendorcompat lib
Our blobs are compiled against libprotobuf-full-cpp.so, but
starting in R, Android is using a versioned naming approach,
e.g. libprotobuf-cpp-full-3.9.1.so.

See https://r.android.com/1109518

The entry in public.libraries.txt is needed to allow the
linker to find and use the lib outside the VNDK.

See https://source.android.com/devices/tech/config/namespaces_libraries

[wight554: added libprotobuf-cpp-lite as well]

Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: I28222c89e1e07017867088492a726ee9d45d8e6f
2020-12-13 18:37:00 +06:00
LuK1337
80d02cda27
sdm660-common: Build libhidltransport/libhwbinder
* Needed for old blobs

Change-Id: I43fc0e46547dfc126a4b2ac9dcc82c7c4f2ee172
2020-12-13 18:37:00 +06:00
Arian
eb93de8d19
sdm660-common: Load vndk 29 libprotobuf for libril-qc-hal-qmi and libwhvdil
Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
Change-Id: I14e2ceef71541003a452775e1dd7f44c8b3b2b5a
2020-12-13 18:37:00 +06:00
Jiyong Park
80a9405ac4
sdm660-common: move VNDK APEX to vendor partition
... for aosp_* targets so that we don't need to update vendor.img everytime
there is a change in the VNDK libraries

Bug: 140136207
Test: build, m
Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
Change-Id: Ibfe67b4cca6ef6648ad39a50154cb539348b008a
2020-12-13 18:37:00 +06:00
Robert Shih
262f018a5e
sdm660-common: Enable v1.3 clearkey drm plugin
Bug: 139134043
Test: MediaDrmTest
Change-Id: Ie34e59947577988f75fae52d22e3f573f4b92420
Signed-off-by: Arian <arian.kulmer@web.de>
2020-12-13 18:37:00 +06:00
Ethan Chen
d1c4577c52
sdm660-common: Add AOSP RCS packages
Change-Id: Ic16d3b92820d246db73ad70ccaa0f4bc7f50e515
2020-12-13 18:37:00 +06:00
Ethan Chen
85f3e1c9e1
sdm660-common: Remove dead RCS packages
Change-Id: Ie2c03fa11cb08c7ab900d7b666981d592aba19c7
2020-12-13 18:37:00 +06:00
Alastair Donaldson
419ee63c8f
sdm660-common: Add android.software.vulkan.deqp.level, version 2020-03-01
This change sets the new Vulkan dEQP level feature flag to the value
corresponding to the Vulkan dEQP tests for Android 11.

Change-Id: Ia70f8e432bf8b32420904587c9b45529e4045959
Signed-off-by: Manish4586 <manish.n.manish45@gmail.com>
2020-12-13 18:25:07 +06:00
Mikhail Naganov
1c13a08a99
sdm660-common: Switch to Audio HAL V6
Switch sdm660-common to Audio HAL V6

Bug: 141989952
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
            manual audio "smoke" test on sdm660-common

Change-Id: Ieb1cc5c7fdcc5416a328a0a5c4a1996258b81ac8
2020-12-13 18:25:07 +06:00
Aayush Gupta
b2a2736410
sdm660-common: Remove qcom.fmradio from PRODUCT_BOOT_JARS
- It's loaded as app library, hence not needed to be a boot jar

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I1b1357be08b511f5af7663dee256849e2f2b1b63
2020-12-13 18:25:07 +06:00