Add SE State Changed Intents in EuiccSupportPixel

Needed to emit SE_STATE_CHANGED from Thales updater code to clients when
eOS or applets are being updated. Current clients are GMSCore and UWB
Service.

Bug: 189881206
Bug: 183606657

Test: Confirm overlay worked and intents were received.

Change-Id: Ia1106d6fad20797e72c49cfc1f790289d0da0963
This commit is contained in:
Michael Ayoubi 2021-09-17 01:53:00 +00:00
parent 09f583f336
commit a7f4ef05b5
3 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,18 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/gs101:device_google_gs101_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/gs101:device_google_gs101_license",
],
}
runtime_resource_overlay {
name: "EuiccSupportPixelOverlay",
theme: "EuiccSupportPixelOverlay",
certificate: "platform",
sdk_version: "current",
product_specific: true
}

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Pixel specific EuiccSupportPixel overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.euiccpixel.overlay.gs101"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.google.euiccpixel"
android:isStatic="true"
android:priority="0"/>
</manifest>

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<string-array name="config_state_ready_intent_list">
<item>intent:#Intent;action=com.google.android.gms.dck.action.SE_STATE_CHANGED;i.com.google.android.gms.dck.extra.SE_STATE=0;end</item>
<item>intent:#Intent;action=com.qorvo.uwb.action.SE_STATE_CHANGED;i.com.qorvo.uwb.extra.SE_STATE=0;end</item>
</string-array>
<string-array name="config_state_busy_intent_list">
<item>intent:#Intent;action=com.google.android.gms.dck.action.SE_STATE_CHANGED;i.com.google.android.gms.dck.extra.SE_STATE=1;end</item>
<item>intent:#Intent;action=com.qorvo.uwb.action.SE_STATE_CHANGED;i.com.qorvo.uwb.extra.SE_STATE=1;end</item>
</string-array>
<string-array name="config_state_request_intent_list">
<item>intent:#Intent;action=com.google.android.gms.dck.action.SE_STATE_REQUEST;end</item>
<item>intent:#Intent;action=com.qorvo.action.SE_STATE_REQUEST;end</item>
</string-array>
<string-array name="config_state_request_permission_list">
<item>com.google.android.gms.dck.permission.DIGITAL_KEY_PRIVILEGED</item>
<item>com.qorvo.uwb.permission.SE_STATE_REQUEST</item>
</string-array>
</resources>