Commit Graph

736 Commits

Author SHA1 Message Date
Bruno Martins
8af17a83d4 sdm845-common: power: Adapt extension to new aidl power HAL
Change-Id: I58ac49957d8d28ad904912986d89ac8db4820ff9
2020-10-17 21:18:53 +01:00
shivatejapeddi
f4f5655e44 sdm845-common: Set BPF support level
This allows a device launched with Android O but now running
a 4.9-P+ kernel to declare itself as eBPF capable.

Fixes data usage on 4.9 kernels.

Change-Id: Ib44586f519ef0c5202ab841b8a1a8890e6ec74c7
2020-10-17 22:16:57 +02:00
Karthik Gopalan
3b0eb370f3 sdm845-common: Set lmkd.reinit property from vendor init
Set lmkd.reinit property to 1. This will trigger
reinit of lmkd service.

CRs-Fixed: 2692843

Change-Id: Ib946b01ca1dc013f0148ca702e4d550cde32b6c2
2020-10-17 22:13:33 +02:00
Arian
8e9f925145 sdm845-common: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2020-10-17 21:11:31 +01:00
Felix
d5ccf1f48b sdm845-common: sepolicy: Use BOARD_VENDOR_SEPOLICY_DIRS
BOARD_SEPOLICY_DIRS is deprecated.

Change-Id: I046282b2a2e8c541726fb29cb0044503322d4be9
2020-10-17 22:10:18 +02:00
Brad Ebinger
cb006fb7e5 sdm845-common: overlay: Add translatable="false" tags to ims package overlays
Bug: 147569830
Test: atest TeleServiceTests:PhoneGlobalsTest
Change-Id: I57d80bbf17fafdc87ba04c6e7f7ab9573482e395
2020-10-17 22:09:21 +02:00
Brad Ebinger
445594f8bb sdm845-common: overlay: Remove old configuration and use new config for MMTEL/RCS
Remove the old config_ims_package device config and configure the
new MMTEL and RCS configurations in Telephony instead. Also,
configure the RcsService to be the default RCS service.

Bug: 111305845
Test: make checkbuild
Change-Id: I0d709b8248f1c40f0a5b50ec799396706eeadd65
2020-10-17 22:09:16 +02:00
Subhajeet Muhuri
1ef4ba3cc0 sdm845-common: overlay: Update pinner list for new SystemUI location
Change-Id: I93c1a4b73ca1f03ca0fcf9cbe4ce1b057a739ca6
2020-10-17 22:09:11 +02:00
Martin Stjernholm
931787f4ec sdm845-common: overlay: Update paths to the new ART APEX.
Test: Presubmits
Bug: 135753770
Change-Id: I98378100456dce927ccc253301a398d70d1b7368
2020-10-17 22:09:06 +02:00
Nicolas Geoffray
bc7d72e8f5 sdm845-common: overlay: Update in pinned files.
Remove or update paths that don't exist.

Bug: 119800099
Test: boots
Change-Id: Ib2cea88499cf08274d620d9d85ffcafc31fee868
2020-10-17 22:09:00 +02:00
Yifan Hong
4b2d3717be sdm845-common: Replace BOARD_CHARGER_ENABLE_SUSPEND with ro.charger.enable_suspend
Test: charger mode
Bug: 124118169
Change-Id: I3825d08e38d677bd7154879609857de302348b6f
2020-10-17 22:08:19 +02:00
Ramakant Singh
33af46f1ef sdm845-common: init: Add vendor prefix for shell
qti_init_shell renamed to
vendor_qti_init_shell

Change-Id: I4cfe1d8e15892a4948ece52aa799b2a60826d5f9
2020-10-17 22:06:21 +02:00
P.Adarsh Reddy
60ec4ce6ab sdm845-common: Add build broken flags in BoardConfig.mk
BUILD_BROKEN_USES_BUILD_COPY_HEADERS

Change-Id: I7b115f5bb7990c438c595b4b1ff536598786d529
2020-10-09 16:17:34 +01:00
Dhananjay Kumar
dcc51667d0 sdm845-common: init: update audio hal service override as per latest base service definition
Change-Id: I1c57ad2e448a95230a4adfff8fba94ffb0cddead
2020-10-09 16:17:34 +01:00
Bruno Martins
8f4decf23c sdm845-common: sepolicy: Fix neverallows
Change-Id: I8370661d862983ac94da1f70bb3b57334147820b
2020-10-09 16:17:34 +01:00
ix5
67695f4dec sdm845-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-10-09 16:17:34 +01:00
LuK1337
a192fe5a3c sdm845-common: Build libhidltransport/libhwbinder
* Needed for old blobs

Change-Id: I43fc0e46547dfc126a4b2ac9dcc82c7c4f2ee172
2020-10-09 16:17:34 +01:00
LuK1337
c166b5f181 sdm845-common: Drop android.hardware.thermal HAL
android.hardware.thermal@1.0::IThermal/default is deprecated in compatibility matrix at FCM Version 4; it should not be served.

Change-Id: Icc3c672a0bf6b9e4ee76ccf91e6cdca5fb778fde
2020-10-09 16:17:34 +01:00
LuK1337
dc1b37035d sdm845-common: Remove vintf entries that are now fragments
Change-Id: I22b105b1340dff648bc5011b80f735b33d5fe370
2020-10-09 16:17:34 +01:00
Mikhail Naganov
658a4dcd82 sdm845-common: Switch to Audio HAL V6
Bug: 141989952
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
            manual audio "smoke" test

Change-Id: Ieb1cc5c7fdcc5416a328a0a5c4a1996258b81ac8
2020-10-09 16:17:34 +01:00
Robert Shih
dffadf0adb sdm845-common: Enable v1.3 drm plugins
Bug: 139134043
Test: MediaDrmTest
Change-Id: I7453b035ca29c7ee889d03de0d55e6d947b3cb77
2020-10-09 16:17:34 +01:00
Jimmy Chen
546ad1520b sdm845-common: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2020-10-09 16:17:34 +01:00
Roshan Pius
07c25fc130 sdm845-common: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-10-09 16:17:34 +01:00
Roshan Pius
f555a99333 sdm845-common: overlay: Remove wifi related internal overlays
These are replaced by formal mainline module overlays.

Bug: 143464763
Test: Send for  Wifi regression tests
Change-Id: I45881ed210132252b9c5c7d6be03ed845e33f971
2020-10-09 16:17:34 +01:00
Ahmed ElArabawy
9a34f13a14 sdm845-common: wifi: Remove hostapd hidl entry from manifest.xml
This CL removes the definition for the hostapd hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 145780363
Test: builds and wifi softap works
Change-Id: I2a9cb25209efc94f6306f38d89cb5e1ff6f72bed
2020-10-09 16:17:34 +01:00
Jimmy Chen
f491533e61 sdm845-common: wifi: Move wpa_supplicant VINTF definition to wpa_supplicant module
Bug: 36505680
Test: atest FrameworksNetTests
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Test: connect EAP access point and verify PMK cache works correctly.
Change-Id: I2c382765b8e84951fc17bb9f1c3785dcd66e7b51
2020-10-09 16:17:34 +01:00
Ahmed ElArabawy
5ed4fcf1ec sdm845-common: wifi: Remove IWifi hidl entry from manifest.xml
This CL removes the definition for the IWifi hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 138243400
Test: builds and wifi works
Change-Id: Icaff93193e10d4953d9947d2739b05959ece79f1
2020-10-09 16:17:34 +01:00
Divya Sharma
dfa4ef93c7 sdm845-common: load_system_props is deprecated and causes a build error.
Change-Id: I71df37c605ed805dc1f8bc2e626a33cf6818e9f7
2020-10-09 16:17:34 +01:00
Bruno Martins
61e6b8aaa7 sdm845-common: Make IFAAManager compile again
Change-Id: Iae2d1004bd1b3c939b552f09ea994ae87d71d73e
2020-10-09 16:17:31 +01:00
Steven Moreland
cb7820057f sdm845-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I640a3f0e0839214523627bf0b59fd5ae9dd2c61c
2020-10-09 15:32:18 +01:00
LuK1337
39de56bc74 Revert "sdm845-common: Use timeservice_app_cert certificate for TimeService app"
* This cert is no longer present in qcom sepolicy.

This reverts commit 09b3aad196.

Change-Id: Ie4e882058825287d9db3f7a3bdd37c641c67a5c2
2020-10-09 15:32:18 +01:00
LuK1337
aeb021ed33 sdm845-common: Update qcom sepolicy include
Change-Id: I7167575e82eb8c5de2d822643261757edda73a07
2020-10-09 15:32:18 +01:00
Subramanian Srinivasan
992b0af999 sdm845-common: Add default BTSAR HAL 1.0 to manifest.xml
Add default BTSAR HAL 1.0 to manifest.xml

Change-Id: Ic12ab77df4b9ffa7d75a336c55c4f7b4468292ab
2020-10-09 15:32:18 +01:00
Eric Chang
57b64dd871 sdm845-common: Add vendor manifest entry for Certificate HAL
Change-Id: I541f76c3f9cf4b2a75bfc45d1d5e3c1d0ce18736
2020-10-09 15:32:18 +01:00
Shalini Manjunatha
6212a69e2f ssdm845-common: configs: Remove TelePhony Rx from primary input
Remove Telephony Rx to make in call record use case through
different front end pcm device when sva enabled to solve concurrency
capture issue

Change-Id: I8a036423da689a4de9abe767a0b6a595b4e068f1
2020-10-09 09:32:38 +01:00
Ethan Chen
4c9818738e sdm845-common: Add AOSP RCS packages
Change-Id: Ic16d3b92820d246db73ad70ccaa0f4bc7f50e515
2020-10-09 09:09:23 +01:00
Ethan Chen
fac4246423 sdm845-common: Remove dead RCS packages
Change-Id: Ie2c03fa11cb08c7ab900d7b666981d592aba19c7
2020-10-09 09:08:30 +01:00
Bruno Martins
33d34de9b5 sdm845-common: Nuke vndk-sp
All targets have BOARD_VNDK_VERSION set to 'current', either implicitly because
shipping API level is 28 (the case of perseus) or because VNDK version is
overriden (in case of all the rest). No need to carry this any longer.

Change-Id: Ib63a44fa976fb010a3f10dfe69fecb5d09af722c
2020-09-21 13:28:07 +01:00
dianlujitao
7769662412 sdm845-common: Add Lineage power hal to manifest
Change-Id: I03b213310b66be95d779c507dc22f748dc19c366
2020-09-20 13:59:21 +01:00
LuK1337
5922487030 sdm845-common: audio: Add "Built-In (Back) Mic" to "primary input" sink
* That way video recording apps will choose 16-bit PCM by default instead of 24-bit
  one which happens to have quite low volume on these devices.

Change-Id: I2130c6a759afcd50a985b2f034b5c0b5374287af
2020-08-27 19:30:30 +02:00
LuK1337
0c92f3709f sdm845-common: Check strncmp return value properly
* Apparently Android's strcmp returns <0 on mismatched length.
* Also it's not like this check was smart anyway, we should be checking == 0.

Change-Id: I34d8a79f3c73c293d16a15736ff32c2223f45144
2020-08-23 21:13:55 +01:00
Bruno Martins
8d9802fca3 sdm845-common: Bring back still required dummy HIDL lib
Wrongly removed in commit 85a7134, some blobs still depend on
android.hidl.base@1.0.so.

Change-Id: Ide84a07ab01acad8cfb4a25149a1c81034f57b69
2020-08-23 12:41:39 +01:00
Jesse Chan
2c3fb41168 sdm845-common: enable unspecialized app process pool
Change-Id: I6dfcb59dace5eaa7551caeae86db3b485c0cfbf1
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-07-18 14:01:36 +02:00
Bruno Martins
85a7134928 sdm845-common: Remove dummy HIDL libs
Fortunately, these are no longer needed when using cool blobs.

Change-Id: I54aba8c68775a80e133911d39c7c64185e38151e
2020-07-17 15:29:22 +02:00
Bruno Martins
d628f0b4c6 sdm845-common: Switch to common QTI power HAL
There's nothing really that different here when compared to the
common HAL except for the specific DT2W handling, which can simply
be supported as a power feature lib.

Change-Id: I4c9c2530c8090e05dab38ed829d59ece5e00e1fb
2020-07-17 01:09:19 +02:00
Alejandro Lopez
c87d831416 sdm845-common: Disable bluetooth whitelist for AAC codec
It causes some issues with some earbuds and you can't reproduce audio
or see the audio HD option on the device.

Change-Id: I36c0749731c027dd6964517c666ff47be32ec6af
2020-07-10 16:37:32 +02:00
Han Wang
104442c685 Revert "sdm845-common: enable GL comp backpressure"
* This is no-op when debug.sf.disable_backpressure=1
   is set. Just follow CAF here and remove this ricing.

This reverts commit c9709ea061.

Change-Id: I74c5e4ba830ef23448e4f16822687d7a22746a3b
2020-07-10 16:37:03 +02:00
Bruno Martins
2893dcd711 sdm845-common: Commonize VINTF target level and set it to Android Q
All mi845 targets share the same kernel which is based on Android Q,
therefore make VINTF match it. This was previously set in the individual
device manifests, but is now common and bumped from a target level
of 3 to 4 for all targets.

Change-Id: Icc0e9001db4b588d468fd0851023a7e011f6cb0b
2020-07-02 22:26:18 +02:00
Bruno Martins
e657c69620 sdm845-common: Fix-up audio policy configurations
This fixes the messed up AD2P configs imported from the stock file and aligns
it as per CAF. While at it, the entry for Vorbis offloading support in the
A2DP offload disabled config is removed to match non-disabled one.

Change-Id: I63a35526cfd46652329aef490ae32a0099274c64
2020-06-29 16:36:14 +02:00
Bruno Martins
8efaf44d84 sdm845-common: Switch to QTI BT stack
This includes the proper alignment to stock audio policy configuration.

Change-Id: I084d25c54e08d1421dbf43818b43357f78ad81ca
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
2020-06-26 20:15:36 +02:00