From 5f679f3debc5de7070515f35ee17152c046fdcc3 Mon Sep 17 00:00:00 2001 From: Devin Moore Date: Mon, 30 Oct 2023 22:38:29 +0000 Subject: [PATCH] Revert "Remove Q matrices" Revert submission 2808255-deprecate_android_q Reason for revert: Broke a device build that is targeting Q b/308482858 Reverted changes: /q/submissionid:2808255-deprecate_android_q Change-Id: Icc5250b219b8500bbd98eba0d20c637c76b734e6 --- compatibility_matrices/Android.bp | 13 + compatibility_matrices/Android.mk | 1 + .../compatibility_matrix.4.xml | 525 ++++++++++++++++++ .../exclude/fcm_exclude.cpp | 20 - 4 files changed, 539 insertions(+), 20 deletions(-) create mode 100644 compatibility_matrices/compatibility_matrix.4.xml diff --git a/compatibility_matrices/Android.bp b/compatibility_matrices/Android.bp index 7844ac8a51..712f28a938 100644 --- a/compatibility_matrices/Android.bp +++ b/compatibility_matrices/Android.bp @@ -21,6 +21,19 @@ package { default_applicable_licenses: ["hardware_interfaces_license"], } +vintf_compatibility_matrix { + name: "framework_compatibility_matrix.4.xml", + stem: "compatibility_matrix.4.xml", + srcs: [ + "compatibility_matrix.4.xml", + ], + kernel_configs: [ + "kernel_config_q_4.14", + "kernel_config_q_4.19", + ], + core_hals: "only", +} + vintf_compatibility_matrix { name: "framework_compatibility_matrix.5.xml", stem: "compatibility_matrix.5.xml", diff --git a/compatibility_matrices/Android.mk b/compatibility_matrices/Android.mk index d145f9eb5e..d356cf32a2 100644 --- a/compatibility_matrices/Android.mk +++ b/compatibility_matrices/Android.mk @@ -101,6 +101,7 @@ include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) endif # DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE my_system_matrix_deps := \ + framework_compatibility_matrix.4.xml \ framework_compatibility_matrix.5.xml \ framework_compatibility_matrix.6.xml \ framework_compatibility_matrix.7.xml \ diff --git a/compatibility_matrices/compatibility_matrix.4.xml b/compatibility_matrices/compatibility_matrix.4.xml new file mode 100644 index 0000000000..bb7637ae2b --- /dev/null +++ b/compatibility_matrices/compatibility_matrix.4.xml @@ -0,0 +1,525 @@ + + + android.hardware.atrace + 1.0 + + IAtraceDevice + default + + + + android.hardware.audio + 5.0 + + IDevicesFactory + default + + + + android.hardware.audio.effect + 5.0 + + IEffectsFactory + default + + + + android.hardware.authsecret + 1.0 + + IAuthSecret + default + + + + android.hardware.automotive.audiocontrol + 1.0 + + IAudioControl + default + + + + android.hardware.automotive.evs + 1.0 + + IEvsEnumerator + default + + + + android.hardware.automotive.vehicle + 2.0 + + IVehicle + default + + + + android.hardware.biometrics.face + 1.0 + + IBiometricsFace + default + + + + android.hardware.biometrics.fingerprint + 2.1 + + IBiometricsFingerprint + default + + + + android.hardware.bluetooth + 1.0 + + IBluetoothHci + default + + + + android.hardware.bluetooth.audio + 2.0 + + IBluetoothAudioProvidersFactory + default + + + + android.hardware.boot + 1.0 + + IBootControl + default + + + + android.hardware.broadcastradio + 1.0-1 + + IBroadcastRadioFactory + default + + + + android.hardware.broadcastradio + 2.0 + + IBroadcastRadio + .* + + + + android.hardware.camera.provider + 2.4-5 + + ICameraProvider + [^/]+/[0-9]+ + + + + android.hardware.cas + 1.1 + + IMediaCasService + default + + + + android.hardware.configstore + 1.1 + + ISurfaceFlingerConfigs + default + + + + android.hardware.confirmationui + 1.0 + + IConfirmationUI + default + + + + android.hardware.contexthub + 1.0 + + IContexthub + default + + + + android.hardware.drm + 1.0-2 + + ICryptoFactory + .* + + + IDrmFactory + .* + + + + android.hardware.dumpstate + 1.0 + + IDumpstateDevice + default + + + + android.hardware.gatekeeper + 1.0 + + IGatekeeper + default + + + + android.hardware.gnss + 2.0 + + IGnss + default + + + + + android.hardware.graphics.allocator + 2.0 + 3.0 + + IAllocator + default + + + + android.hardware.graphics.composer + 2.1-3 + + IComposer + default + + + + android.hardware.graphics.mapper + 2.1 + 3.0 + + IMapper + default + + + + + android.hardware.health + 2.0 + + IHealth + default + + + + android.hardware.health.storage + 1.0 + + IStorage + default + + + + android.hardware.ir + 1.0 + + IConsumerIr + default + + + + android.hardware.input.classifier + 1.0 + + IInputClassifier + default + + + + android.hardware.keymaster + 3.0 + 4.0 + + IKeymasterDevice + default + + + + android.hardware.keymaster + 4.0 + + IKeymasterDevice + strongbox + + + + android.hardware.light + 2.0 + + ILight + default + + + + android.hardware.media.c2 + 1.0 + + IComponentStore + software + default[0-9]* + vendor[0-9]*_software + + + IConfigurable + default + software + + + + android.hardware.media.omx + 1.0 + + IOmx + default + + + IOmxStore + default + + + + android.hardware.memtrack + 1.0 + + IMemtrack + default + + + + android.hardware.neuralnetworks + 1.0-2 + + IDevice + .* + + + + android.hardware.nfc + 1.2 + + INfc + default + + + + android.hardware.oemlock + 1.0 + + IOemLock + default + + + + android.hardware.power + 1.0-3 + + IPower + default + + + + android.hardware.power.stats + 1.0 + + IPowerStats + default + + + + android.hardware.radio + 1.4 + + IRadio + slot1 + slot2 + slot3 + + + + android.hardware.radio + 1.2 + + ISap + slot1 + slot2 + + + + android.hardware.radio.config + + 1.1 + + IRadioConfig + default + + + + android.hardware.renderscript + 1.0 + + IDevice + default + + + + android.hardware.secure_element + 1.0 + + ISecureElement + eSE[1-9][0-9]* + SIM[1-9][0-9]* + + + + android.hardware.sensors + 1.0 + 2.0 + + ISensors + default + + + + android.hardware.soundtrigger + 2.0-2 + + ISoundTriggerHw + default + + + + android.hardware.tetheroffload.config + 1.0 + + IOffloadConfig + default + + + + android.hardware.tetheroffload.control + 1.0 + + IOffloadControl + default + + + + android.hardware.thermal + 2.0 + + IThermal + default + + + + android.hardware.tv.cec + 1.0 + + IHdmiCec + default + + + + android.hardware.tv.input + 1.0 + + ITvInput + default + + + + android.hardware.usb + 1.0-2 + + IUsb + default + + + + android.hardware.usb.gadget + 1.0 + + IUsbGadget + default + + + + android.hardware.vibrator + 1.0-3 + + IVibrator + default + + + + android.hardware.vr + 1.0 + + IVr + default + + + + android.hardware.weaver + 1.0 + + IWeaver + default + + + + android.hardware.wifi + 1.0-3 + + IWifi + default + + + + android.hardware.wifi.hostapd + 1.0-1 + + IHostapd + default + + + + android.hardware.wifi.supplicant + 1.0-2 + + ISupplicant + default + + + diff --git a/compatibility_matrices/exclude/fcm_exclude.cpp b/compatibility_matrices/exclude/fcm_exclude.cpp index bb4cf7825a..d92c0b97a3 100644 --- a/compatibility_matrices/exclude/fcm_exclude.cpp +++ b/compatibility_matrices/exclude/fcm_exclude.cpp @@ -84,26 +84,6 @@ bool ShouldCheckMissingHidlHalsInFcm(const std::string& packageAndVersion) { "android.hardware.thermal@1.0", "android.hardware.thermal@1.1", "android.hardware.wifi.offload@1.0", - - // TODO(b/279809679): File bugs for the HALs deprecated in Q - "android.hardware.audio.effect@5.0", - "android.hardware.audio@5.0", - "android.hardware.boot@1.0", - "android.hardware.configstore@1.1", - "android.hardware.drm@1.0", - "android.hardware.drm@1.1", - "android.hardware.drm@1.2", - "android.hardware.dumpstate@1.0", - "android.hardware.health@2.0", - "android.hardware.light@2.0", - "android.hardware.power@1.0", - "android.hardware.power@1.1", - "android.hardware.power@1.2", - "android.hardware.power@1.3", - "android.hardware.vibrator@1.0", - "android.hardware.vibrator@1.1", - "android.hardware.vibrator@1.2", - "android.hardware.vibrator@1.3", }; auto package_has_prefix = [&](const std::string& prefix) {