Commit Graph

172 Commits

Author SHA1 Message Date
ec00ef7284 Deprecate PRODUCT_STATIC_BOOT_CONTROL_HAL.
In favor of using boot control HAL under recovery.

Bug: 34254109
Test: TreeHugger

This is a combination of 2 commits.
This is the 1st commit message:

Revert^2 "Build libgptutils with Android.bp.""

This reverts commit 215189f0b9ff44d28c2b4ace0abb26854b201271.

The previous landing broke checkbuild targets due to namespace issue. As
libgptutils.msm8998 was exposed to global namespace (previously guarded
via conditionals in Android.mk), but had a missing dependency on
nonexposed msm8998 kernel headers.

The relanding adds a Soong namespace of hardware/qcom/msm8998, to ensure
modules only getting built as needed.

Bug: 34254109
Test: Sideload on taimen.
Test: `m -j checkbuild` with aosp_x86-eng
Change-Id: I4a7c4cedcf58c7735172d989912e4f7afad1eaed
Merged-In: I4a7c4cedcf58c7735172d989912e4f7afad1eaed
(cherry picked from commit e74c7611d2cbea03ec8ec1559787a7a57b2bf767)

This is the commit message #2:

Revert^2 "Deprecate PRODUCT_STATIC_BOOT_CONTROL_HAL.""

This reverts commit d83c2cc22b3f037e94cd4ad7e19f5985da13a8b8.

The previous landing broke checkbuild targets due to namespace issue.
See the commit message for hardware/qcom/msm8998 change.

Bug: 34254109
Test: Build and boot taimen on device to home screen.
Test: Sideload on taimen.
Change-Id: I775026345eb5fc0ec580ba4ca0282835106a1d35
Merged-In: I775026345eb5fc0ec580ba4ca0282835106a1d35
(cherry picked from commit 4fa8e490208bef42faccf204381dc35ad1cfed46)
2019-10-19 22:26:37 -07:00
c97fd73a6f mata: Enable clearkey drm plugin v1.2
test: android.media.cts.MediaDrmClearkeyTest#testOfflineKeyManagement

bug:117570956
bug:110838441
bug:116252891
Change-Id: Ie9373543ef416e718a70e75d95bf5b15a2852705
2019-10-20 07:21:16 +02:00
3070477fdc mata: Setup device soong namespace
Change-Id: I2e9c0ab68a0fe86ba18e3955e2823b87d88e835a
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
2019-10-20 07:16:55 +02:00
93c0592602 mata: Adding Audio HAL V5: Direction API
Change-Id: I4251b3853d00308dbd988625f8e7466a66b823fa
2019-10-20 07:16:19 +02:00
ab7863eb48 mata: switch to IMapper 2.1
Change-Id: I33be48cd40457ceabc24ff5e085fa8ddaa4670e4
2019-10-20 07:16:01 +02:00
776be2f0b6 mata: Move brillo_update_payload to host package
Change-Id: I1bdc8a3949107bdc7e80fc87a1897143b0768318
2019-10-14 03:10:07 +02:00
1d1192fc44 mata: Add recovery touch support
Change-Id: I9772f5c60b9cbe05d02a36ef85e9ea6306cfac40
2019-06-25 16:48:08 +02:00
f37a96c6e3 mata: Use generic configfs recovery USB config script
Change-Id: Ia82a0428bcdcfd8f6503c9a96efdf0e2e3e2d31c
2019-06-25 16:48:08 +02:00
ec281c8f7a mata: set TARGET_ENABLE_MEDIADRM_64
Use 64 bit crypto libraries for DRM

Bug: 77822369
Change-Id: Ic3309d0c3bd82a37b52c5cb765b007ab2ae2555b
2019-06-25 16:48:08 +02:00
dd6aca8d83 mata: Build Trust HAL
Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df
Signed-off-by: Joey <joey@lineageos.org>
2019-04-13 14:28:12 -06:00
afb5246048 mata: Update power HAL to version 1.3.
This adds support for the EXPENSIVE_RENDERING power hint.

BUG: 110112323
Test: adb shell cat /sys/class/kgsl/kgsl-3d0/devfreq/cur_freq
      Verified GPU frequency reset by adb shell pkill surfaceflinger and system_server
Change-Id: Ia1f6e99b67c5e88b610412ad30f152d241095a48
Merged-In: Ia1f6e99b67c5e88b610412ad30f152d241095a48
2019-04-07 12:38:52 -07:00
1b3cd3628c mata: Move privapp permissions to system
These APKs live on system (since well, they're priv-app) and a lot
of these attributes are not even available to vendor sysconfig.
(ex. SystemConfig: Tag hidden-api-whitelisted-app is unknown or
     not allowed in /vendor/etc/sysconfig)
Move these to system so they reside with their corresponding APKs.

Change-Id: I454f4d07cb3916fab683fdb0078cdb0fab55f612
2019-03-20 18:32:37 -07:00
585748e3c5 mata: Convert bluetooth@1.0-impl to read QC MAC address
* btaddr_extract cannot be used anymore since ro.boot.btmacaddr is not
  writable by vendor domains. bluetooth_prop is off-limits to vendor
  domains now.
* Have the Bluetooth HAL impl directly read
  /persist/bluetooth/.bt_nv.bin itself and pull the MAC address out.

Change-Id: If4b2b99345eb470c140523906a56299ec5decc9a
2019-03-03 02:37:53 +01:00
dca505016e mata: Switch to livedisplay@2.0
* Build needed services and add supported interfaces to manifest

Change-Id: I0dcccd12a1d355f1e69863183f1165f051b66230
2019-03-02 14:13:04 +01:00
d4e0cd3267 mata: Fold init.qcom.power.sh into init.mata.rc
Change-Id: Iabfcae5eb8196ccc91319dab503dd746080212b8
2019-03-01 22:52:12 -08:00
649203b379 mata: Fold init.qcom.post_boot.sh into init.mata.rc
Change-Id: I7054d0cbaf6cec11e1f57243c0a70a3a7ff2390b
2019-03-01 22:51:51 -08:00
5e815af4bc mata: Fold init.mata.hdmi.sh into init.mata.rc
Change-Id: I93f45d56abd6708117d2410363d07166c5cdc4f9
2019-02-28 21:51:16 -08:00
8b1b5aa49c mata: Move system properties to system_prop.mk
Change-Id: I8f4bd73bc84c2b03e324e4aaad7808a084af2825
2019-02-07 21:47:49 -08:00
7c5101372a mata: Remove init.qcom.sh script
* The qcril database copy is already done unconditionally in the init
  script. The rest of this script is not useful.

Change-Id: I9ec776654d1b9999c297c642a827d31f32f39e12
2019-01-01 18:23:47 -08:00
11df6677c4 mata: Remove init.qcom.sensors script
Change-Id: I8e4a21dd3ff5bec755fec787f5661d8be43e20f0
2019-01-01 17:51:08 -08:00
8993050e16 mata: usb: Update to usb@1.1
Change-Id: Iff7aaeaca6f54f53442e89952485afbed2c297c1
2019-01-02 02:17:34 +01:00
7803f3bd63 mata: Import USB HAL from hardware/interfaces
Copied from 01787f47f4ee024889c13ec3a2b30624f6d5745d

Change-Id: I85c41fa0844adea68336a368de3bec1f5a60d3d9
2019-01-02 02:16:53 +01:00
2130a95aeb mata: power: switch to libperfmgr for powerhint
Test: boot and do powerhint
Bug: 62041945
Change-Id: I7de1d2bf377fb46162171a084fca3413b1067d3b
2019-01-01 01:24:27 -08:00
9cccd98206 Power: Implement PowerHal 1.2
Convert all perfd hints into PowerHAL hints

Test: do camera/audio powerhint
Bug: 62041945
Change-Id: I82c8ca99b76d70d716eabedb617a126446646b7d
2019-01-01 01:24:27 -08:00
e5c5a88fa0 Put move_widevine_data.sh in /system/bin.
Add dependency to install move_widevine_data.sh to /system/bin.

The script is only needed for existing devices that
are running Widevine DRM and are upgrading to Pi or later
Android releases.

Test: Upgrade from O-MR1 to Pi, Netflix & Play Movies
  can play back offline content downloaded in O-MR1

Test: adb shell to verify script is in /system/bin

Test: adb shell to verify widevine data is moved to
  /data/vendor/mediadrm

Test: use audit2allow to verify no avc:denied for widevine drm service

bug: 73656300
Change-Id: Ie42a8229c4d20f71725ba7e8f5c2b267976ed294
2018-12-15 18:58:36 -08:00
ae7572b497 mata: Move system audio props to system/build.prop
Change-Id: I3a4a5f1e4343b7ff8080e6bb52d67c41bbb77e10
2018-12-16 01:58:03 +01:00
5971fa2f8e Enable BLE Hearing Aid on mata
Bug: 69623109
Change-Id: Id138c157dd508a4c42167095f30d68fad1013ac5
2018-12-16 01:57:32 +01:00
625d3a774c mata: Move OPA property to system
This is read by system apps only, so it needs to live on system.

Change-Id: I8bdbc76d73005b4271a56feacb537263f4d2c10d
2018-12-16 01:40:23 +01:00
681539482a mata: Add prebuilt health@2.0 service
Change-Id: I14cfb9a13048a6011cf7d22cd9ff4ac7526e3fe2
2018-12-16 01:35:18 +01:00
be9f5e07f3 mata: Use prebuilt vibrator@1.2
Change-Id: I73e1e9eb1cf4759b9042ebf8e16ffd1a4866d9c7
2018-12-15 13:13:55 -08:00
0fb45f9d97 Advertise Vulkan 1.1 system feature
Bug: 66875961
Test: atest VulkanFeaturesTest
Change-Id: I58f904984320dee174637ba0ddfecdd343fab7e6
2018-12-15 13:13:55 -08:00
a862e1d712 Only include bitness of hal impls that is used.
Bug: 73829928
Test: boot walleye, check directories, no errors during boot
Change-Id: Ia1272b2bcc5006fa75a50631861fbaccdeed7bee
2018-12-15 13:13:55 -08:00
015072e80b Add support for NFC 1.1
Supresses the following denials:
denied  { add } for interface=vendor.nxp.nxpnfc::INxpNfc pid=5675 scontext=u:r:hal_nfc_default:s0
tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

denied  { find } for interface=vendor.nxp.nxpese::INxpEse pid=5675 scontext=u:r:hal_nfc_default:s0
tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

Test: Enable/Disable NFC, Tag reading
Bug: 75980364
Change-Id: I337810ff89d61f796cb213cd931a7b665870029e
2018-12-15 13:13:55 -08:00
421dfe4a91 Remove system and vendor image dependency
libnfc-nci.conf shouldn't be a part of vendor image, since it is
accessed by libnfc-nci and Nfc application, both are part of system
image.

Test: Nfc enable/disable
Bug: 72080121
Change-Id: I686ba234c7d2aa923070c3fa980c56b73b18e574
(cherry picked from commit 3197b56882ed9997043d87e6582f6ebaa0fdbace)
2018-12-15 13:13:55 -08:00
ac2587e529 Rename libnfc-brcm.conf -> libnfc-nci.conf
Test: manual
Merged-In: I9655a14e021024540cf342022cb817e1f8d0f9ad
Change-Id: I9655a14e021024540cf342022cb817e1f8d0f9ad
2018-12-15 13:13:55 -08:00
5a3af197fe Migrate pixel 2 to audio V4
Test: regression test on the board
Bug: 38184704
Change-Id: Ife559125850277865451f92ea862e7ec47fc9da7
Merged-In: Ife559125850277865451f92ea862e7ec47fc9da7
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-12-15 13:13:55 -08:00
6dea212700 Add SELinux policy for clearkey HIDL service.
Convert clearkey plugin to HIDL to support drm HAL v1.1.
Add SELinux policy for android.hardware.drm@1.1-service.clearkey.

Test: CTS test
  ANDROID_BUILD_TOP= ./android-ccts-tradefed run cts-dev
    --module CtsMediaTestCases
    -t android.media.cts.ClearKeySystemTest#testClearKeyPlaybackCenc

bug: 69635855
Change-Id: I61e9c272c2a2788fd07d5c12921d28c785661b77
2018-12-15 13:13:55 -08:00
334fde8f6b Switch to Soundtrigger 2.1 implementation
Bug: 68823037
Change-Id: If634345594ea6d574f49d58e29b48165c3b9458b
Test: "ok google" and music iq from locked screen
2018-12-15 13:13:55 -08:00
89e7d2ebd5 mata: Remove libhidl hacks
* The stock libraries don't appear to have this dependency anymore.

Change-Id: Ibdc3d27c536dce7c2536dc617f712259687c2ae8
2018-12-15 22:11:42 +01:00
ba7cb43c3b add libcutils to PRODUCT_STATIC_BOOT_CONTROL_HAL
This was picked up transitively previously, but that transitive
include is removed, so we include it explicitly here.

Test: build
Change-Id: I6a8b9c579c15374777a050f3753fedebd75ef86a
2018-12-11 20:21:38 -08:00
068fe49205 mata: do not build useless packages
Change-Id: I72076113083308e26573289923f5d3c00a8a6b44
2018-08-06 00:16:41 -07:00
c107c62adf mata: Remove weaver support
* mata does not provide a service implementation.

Change-Id: I20593c295fb9241a979f614edc72f27a499f00f7
2018-08-06 00:16:41 -07:00
94ff7d300f mata: Build vendor version of libstdc++
Change-Id: Ie43c0a6b594ecfcff393efb8a3937f04af0ee0a4
2018-08-04 00:17:54 -07:00
fd101b5167 mata: Move thermal-engine.conf to device tree
* This was previously pinned after adding SKIN_SHUTDOWN in the first
  place, so as a text file we are editing, it doesn't make much sense
  to have it in the blob list.

Change-Id: I48fde624bd3af25679a92490fb6eec39b51d8cf2
2018-07-12 12:58:49 +02:00
4b5a8d52ba mata: Drop deprecated OpenGLRenderer props
* In Android 8.1 and later, only the ro.zygote.disable_gl_preload
   property still applies. All other properties have been removed.
   Reference: https://source.android.com/devices/graphics/renderer

Change-Id: Ib43c22ea3285e5fe397da8a7a5cac1c3a27a2f36
2018-07-04 01:45:35 +02:00
4d522e9d65 mata: List additional native libraries to expose to apps
* Initially based on the list defined by qcom, trimmed to include
   only the vendor libs that are also being shipped by us.

Change-Id: I552dc44a32221d2d3cec48e1c64ed72c470d412e
2018-05-19 10:59:16 -07:00
d43fef92b7 mata: Merge USB configuration scripting
Change-Id: Ibe79a01dea1c70e7b29207ba2265881c6d97085b
2018-05-14 07:03:36 +02:00
4b26453bd2 mata: Build textclassifier's smart selection
Change-Id: If686ae194b019748b3392e7b0859c262ae71f423
2018-05-07 23:25:46 -07:00
9d761b00b8 mata: Enable vulkan compute feature
This code change ensures that vulkan compute xml
is copied to /vendor/etc/permission which implictly
enable compute on vulkan

Change-Id: If11354f5fd46828a805318a742307e4382c58611
2018-05-07 23:04:52 -07:00
c21d9c794b mata: Add HDR config
Change-Id: I89afdf2c05bbd27e5582399a4af753a52362c251
2018-04-29 16:53:01 -07:00