diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-07 00:01:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-07 00:01:25 +0000 |
commit | 12866205d7c051dd9462155a247a0a05781c2069 (patch) | |
tree | 9ec8c06ddaee2b007ea25c8769532940608e4eb8 | |
parent | 5b938d4e865838407749644e693f35ab966e4c57 (diff) | |
parent | da7211659016203f1d3642d0aa30da982f09475d (diff) | |
download | barbet-12866205d7c051dd9462155a247a0a05781c2069.tar.gz |
Snap for 11186783 from da7211659016203f1d3642d0aa30da982f09475d to 24Q1-release
Change-Id: I12cefff59e94aad3d219d1f96b643f1590dcb0bc
-rw-r--r-- | barbet/rro_overlays/NfcOverlay/Android.bp | 9 | ||||
-rw-r--r-- | barbet/rro_overlays/NfcOverlay/AndroidManifest.xml | 27 | ||||
-rw-r--r-- | barbet/rro_overlays/NfcOverlay/OWNERS | 2 | ||||
-rw-r--r-- | barbet/rro_overlays/NfcOverlay/res/values/config.xml | 38 | ||||
-rw-r--r-- | device-barbet.mk | 3 |
5 files changed, 79 insertions, 0 deletions
diff --git a/barbet/rro_overlays/NfcOverlay/Android.bp b/barbet/rro_overlays/NfcOverlay/Android.bp new file mode 100644 index 0000000..e48a299 --- /dev/null +++ b/barbet/rro_overlays/NfcOverlay/Android.bp @@ -0,0 +1,9 @@ +package { + default_applicable_licenses: ["device_google_barbet_license"], +} + +runtime_resource_overlay { + name: "NfcOverlayBarbet", + sdk_version: "current", + product_specific: true +} diff --git a/barbet/rro_overlays/NfcOverlay/AndroidManifest.xml b/barbet/rro_overlays/NfcOverlay/AndroidManifest.xml new file mode 100644 index 0000000..5241aa4 --- /dev/null +++ b/barbet/rro_overlays/NfcOverlay/AndroidManifest.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2023 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 nfc overlays --> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="com.android.nfc.overlay" + android:versionCode="1" + android:versionName="1.0"> + <application android:hasCode="false" /> + <overlay + android:targetPackage="com.android.nfc" + android:targetName="NfcCustomization" + android:isStatic="true" + android:priority="0"/> +</manifest> diff --git a/barbet/rro_overlays/NfcOverlay/OWNERS b/barbet/rro_overlays/NfcOverlay/OWNERS new file mode 100644 index 0000000..35e9713 --- /dev/null +++ b/barbet/rro_overlays/NfcOverlay/OWNERS @@ -0,0 +1,2 @@ +# Bug component: 48448 +include platform/packages/apps/Nfc:/OWNERS diff --git a/barbet/rro_overlays/NfcOverlay/res/values/config.xml b/barbet/rro_overlays/NfcOverlay/res/values/config.xml new file mode 100644 index 0000000..1059085 --- /dev/null +++ b/barbet/rro_overlays/NfcOverlay/res/values/config.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2020 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> + <bool name="enable_antenna_blocked_alert">false</bool> + <integer name="max_antenna_blocked_failure_count">10</integer> + <integer name="unknown_tag_polling_delay">2000</integer> + <string name="antenna_blocked_alert_link" translatable="false">https://support.google.com/pixelphone?p=nfc_tag_notification</string> + <string-array name="config_skuSupportsSecureNfc" translatable="false"> + <item>GBW2G</item> + <item>G1F8F</item> + <item>GR0M2</item> + <item>G4S1M</item> + </string-array> + <bool name="tag_intent_app_pref_supported">true</bool> + <!-- NFC Antenna Location API --> + <integer name="device_width">70</integer> + <integer name="device_height">155</integer> + <bool name="device_foldable">false</bool> + <integer-array name="antenna_x"> + <item>36</item> + </integer-array> + <integer-array name="antenna_y"> + <item>91</item> + </integer-array> +</resources> diff --git a/device-barbet.mk b/device-barbet.mk index 67300ed..6b4d24f 100644 --- a/device-barbet.mk +++ b/device-barbet.mk @@ -215,3 +215,6 @@ PRODUCT_COPY_FILES += \ # Workaround for Qualcomm neural network HAL PRODUCT_PACKAGES += \ libprotobuf-cpp-full-3.9.1-vendorcompat + +PRODUCT_PACKAGES += \ + NfcOverlayBarbet |