Commit Graph

726 Commits

Author SHA1 Message Date
LuK1337
e8e2f684bb sdm845-common: Disable qti-telephony-common injection for time being
TODO: revisit once usable qti-telephony-common jar is available.

Change-Id: I2b80a3beb931d11db4b8367cded738e935797002
2020-12-26 18:29:07 +00:00
Sandeep Gutta
0c7d68c88b sdm845-common: Update hidl-wrapper and telephony-utils jar path
Include system_ext path for both hidl-wrapper and telephony-utils jar's

Change-Id: I7cdd93c71bd4a029971188cab60ed98e401be583
CRs-Fixed: 2637090
2020-12-26 18:29:07 +00:00
Sandeep Gutta
dbd43843c3 sdm845-common: Move qti-telephony-common jar to system_ext partition
Move qti-telephony-common jar to system_ext partition.

Change-Id: Ib4c366b2c3ceeea59734902aa1825126e7fa402c
CRs-Fixed: 2608010
2020-12-26 18:29:07 +00:00
PIPIPIG233666
1306d78ba3 sdm845-common: Split component-overrides to support pure AOSP/QTI BT stack
Change-Id: Ia40a996ba5164ba8a6fc5dde0dfb3ef859af1477
2020-12-26 19:17:58 +01:00
Pig
9eee8ea107 sdm845-common: Drop no longer existing BluetoothQti
Change-Id: I6bf3e1dda6fe5dc66f6fafdb32a1daecb9616c84
2020-12-26 19:17:58 +01:00
Ryan Mitchell
b27ff8e8b6 sdm845-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 componenets.

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

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2020-12-26 19:17:58 +01:00
Aayush Gupta
12af2e97e7 sdm845-common: Address init denials regarding socket_device
[    9.346918] type=1400 audit(71454275.960:7): avc: denied { create } for comm="init" name="dpmwrapper" scontext=u:r:init:s0 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=0

Ref:
[0]: https://source.codeaurora.org/quic/la/device/qcom/sepolicy/commit/?h=LA.UM.9.2.1.r1-03800-sdm660.0&id=79488292273efa5ab89bc405a5f6ae4dec5d011d

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I262b06821c0625978b3685d0666bd2cf599fbf98
2020-12-24 13:51:29 +00:00
Chenyang Zhong
a328275c33 sdm845-common: Use the old libsdedrm.so
Xiaomi changed something in V12.0.1.0 that causes invalid secure mode in DRM.

E SDM     : DRMPlaneManager::Perform: Invalid secure mode 15967184 to set on plane 93
E SDM     : DRMPlaneManager::Perform: Invalid plane id 112
E SDM     : DRMAtomicReq::Validate: drmModeAtomicCommit failed with error 2
E SDM     : HWDeviceDRM::Validate: failed with error -2 for Peripheral Display

Change-Id: I2a5aeaea45c0419582d89ccf168ab8a5373c4d0b
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2020-12-14 18:25:42 +01:00
Bruno Martins
1e57d9fbac sdm845-common: Update blobs from MIUI 12
Change-Id: I72984743e890c4ac9444f3003d8e9a225da7866c
2020-12-14 18:25:42 +01:00
Dyneteve
cdf5be89a2 sdm845-common: disable HD Logo
* sed -i 's|<boolean name=\"config_update_service_status\" value=\"true\"/>|<boolean name=\"config_update_service_status\" value=\"false\"/>|g' overlay/packages/apps/CarrierConfig/res/xml/vendor.xml

Change-Id: I38015fb6062325d185d67a710308aff56c32c139
2020-12-13 23:08:34 +05:30
Bruno Martins
187851c56c sdm845-common: Migrate to Health 2.1 HAL
Change-Id: Ic6302844ac58c16713b43b6871a705b9b4749a96
2020-12-08 22:26:25 +00:00
Roman Kiryanov
57e03e2cff sdm845-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
2020-12-08 22:26:25 +00:00
Steven Moreland
7c1678825d sdm845-common: Only include bitness of hal impls that is used.
Bug: 73829928
Test: boot, check directories, no errors during boot
Change-Id: Ia1272b2bcc5006fa75a50631861fbaccdeed7bee
2020-12-08 22:26:25 +00:00
Nolen Johnson
11ad599480 sdm845-common: bluetooth: Disable clean turn on
* This isn't needed anymore.

Change-Id: Ib77e5212099d82bbc07aea6044eb35109faff5cb
2020-12-02 22:39:33 +00:00
Bruno Martins
82e74adbd4 sdm845-common: Move telephony packages to /system_ext
Change-Id: I38329f6d4ebb7b1a0b0f01e40918fdb73ccbcba9
2020-11-28 02:54:07 +00:00
Bruno Martins
d1cf299c86 sdm845-common: Drop obsolete priv-app permissions
Change-Id: I42e69b8e1d9caf8d580176734072e05fad7f8725
2020-11-28 02:53:21 +00:00
Bruno Martins
f25862164a sdm845-common: Remove unused jars and 32-bit radio libs
Change-Id: I651edb4823e54b589b7b72f6362a07c6e78b955a
2020-11-28 00:53:34 +00:00
Bruno Martins
a5ab78398f sdm845-common: Add missing IMS symlinks
Change-Id: Id29022e1c46d5b386aeaec78f80b244e220c55c6
2020-11-28 00:23:29 +02:00
Bruno Martins
b6bf0a0fae sdm845-common: Remove deprecated telephony flag
The custom jar is dead for good in Android 11.

Change-Id: I7f0f7afd186b00f01183bf4479092d03897e074a
2020-11-24 15:49:42 +00:00
Bruno Martins
6beaaa60f3 sdm845-common: Unset BUILD_BROKEN_USES_BUILD_COPY_HEADERS flag
Qualcomm HALs have been updated to get rid of LOCAL_COPY_HEADERS usage.

This reverts commit 60ec4ce6ab.

Change-Id: I9f60f60fa0c1146bf5e75d3b18af4166061b68fb
2020-11-24 15:59:05 +01:00
LuK1337
b7475c6f6b sdm845-common: Use libcutils-v29.so for libdpmframework.so
* v30 one doesn't have `strdup8to16` symbol in it.

Change-Id: Id2b4bb3017bc24c817dbe4b03834960aa1a4b444
2020-11-24 11:37:09 +00:00
Bruno Martins
305dc58668 sdm845-common: sepolicy: Add /product file context for dpmd daemon
This got removed from QCOM sepolicies because DPM was
moved from /product to /system_ext.

Change-Id: Ifdff048d8b68bd9593e9a30394888a966c198f8d
2020-11-24 11:37:09 +00:00
Bruno Martins
1ab39e3db4 sdm845-common: overlay: Sync CarrierConfig with LA.UM.8.3.r1-08500-sdm845.0
Change-Id: Iba03b0c5a9ac59343fbc17a3b7de46789af32c72
2020-11-24 11:36:46 +00:00
Arian
7b4f207c5c sdm845-common: Build libplatformconfig from source
Change-Id: I8b4f2272ee47f7652c21918792d9fb72c7018db6
2020-11-17 22:02:30 +00:00
Sauvik Saha
575ea11d77 sdm845-common: FR 53051: Self Contained Modules
Desc: Remove IMS daemons

Change-Id: Ifdfd61c8a2035676f39e3822f2c6522f9e040ee6
2020-11-13 22:36:04 +01:00
Bruno Martins
64ef867b66 sdm845-common: Remove legacy persist path entries from init script
Change-Id: Ifcb1ef1fc3967c7bf635537a5e05109235905c1e
2020-11-13 22:36:04 +01:00
YumeMichi
56b92abca3 sdm845-common: Fix power service name
Change-Id: I253404d56be99b08105679104b2462c06f1c0eb4
Signed-off-by: YumeMichi <do4suki@gmail.com>
2020-11-13 22:25:32 +01:00
Bruno Martins
d222b56150 sdm845-common: Remove vendor-ril lib path property trigger
No longer used with QC RIL services.

Change-Id: Ib660b20f2a3cca222a10a1919f0f81ee174bf6dc
2020-11-09 13:14:53 +02:00
Kevin Chyn
710af0c4bd sdm845-common: Add fingerprint configuration to overlay
The framework was changed in Android R to require explicit authenticator registration.
This change allows apps to continue to use the fingerprint sensor.

Bug: 147445115

Test: Builds
Change-Id: Id3385edc784b2053c8b54ec3153728f4e6e22a45
2020-11-09 11:00:41 +00:00
Bruno Martins
3d80eee1d5 sdm845-common: Ditch rild.libpath prop
This is only needed for AOSP rild services. It's currently
unused since the move to QCRIL.

Change-Id: I5eb4d0bc2d086d5a2f29e3c3f5ee2d8f0220f5f5
2020-11-02 01:31:02 +02:00
LuK1337
338b58bfba sdm845-common: rro_overlays: Redo TetheringOverlay's blueprint
This now matches WifiOverlay.

Change-Id: I9e4e859b7aca75d41556ea5807e34a4eb4598266
2020-11-01 10:27:42 +00:00
Weilun Du
e1647c4b70 sdm845-common: Add TetheringOverlay
BUG: 163800715
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: Ia0834f5215ff8c3b13effa591bd2f84d93419a06
2020-11-01 09:51:36 +00:00
Roshan Pius
ed9c42d6f7 sdm845-common: overlay: Change wifi tether regex
The wifi interface names for wifi can either be wlan0 or wlan1.
Change the "config_tether_wifi_regexs" appropriately.

Bug: 80375412
Test: Ensured we display "Hotspot on" in settings when softap is started
on either wlan0 or wlan1.

Change-Id: I0c456412f9b71ef2ee784f3bfa58b01b9287ca73
2020-11-01 09:51:36 +00:00
Bruno Martins
533230aff7 sdm845-common: Fix WiFi tethering
Kang tether regex from crosshatch in order to fix broken
tethering in Android 11.

Change-Id: Ie7d13d219fd4137177b5aac7d1b1994f7f02c14c
2020-11-01 09:50:53 +00:00
LuK1337
153284b969 sdm845-common: Enable RRO overlays for lineage-sdk
Change-Id: I482f2393e10e90362db2c66b7abb0de837085843
2020-10-31 22:00:23 +00:00
Wang Han
9c5c8f6da2 sdm845-common: parts: Get foreground application with getFocusedStackInfo()
* The main benefit is this API recognizes applications in split
   screen far more better.

Change-Id: I4c9c2530c8090e05da558ed829d59ece5e00e1fb
2020-10-31 22:44:53 +01:00
Bruno Martins
117b9c28cd sdm845-common: Unset DEXPREOPT_GENERATE_APEX_IMAGE
This was missed in commit bc7d72e.

Change-Id: I8a130456021da1532279c3f0ac0ca0110e68b9b4
2020-10-31 22:44:27 +02:00
Bruno Martins
a14f3c65bc sdm845-common: rro_overlays: Fix WifiOverlay package name
Change-Id: Ideb280c2060089110ead9c70f23be6262fed5963
2020-10-31 20:36:58 +00:00
Han Wang
6fa6fdf9a8 Revert "sdm845-common: Force enable mobile network settings v2"
* This prop is not honored anymore on 11.

This reverts commit 1fbd9506c4.

Change-Id: I7a10d9918a0218d607d65203e9a38d3e484a618f
2020-10-25 14:03:12 +02:00
1nfrag
abd641e8a4 sdm845-common: power: Correct DT2W on/off logic
Change-Id: I7b38427dedc4c07ddb5aa49197bbb61b3562563a
2020-10-21 14:34:48 +02:00
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