summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2023-12-06 21:30:45 +0000
committerAndroid Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com>2023-12-06 21:30:45 +0000
commit951ccfb5e34ed993d9483d9ce5cbd69e931464d5 (patch)
tree07a5f15608be4496516a52263b6d8eef90cfb3b2
parent9e6514e45fb7fcc208a274959c7ec437b5c367d6 (diff)
downloadbarbet-951ccfb5e34ed993d9483d9ce5cbd69e931464d5.tar.gz
Revert^2 "barbet(nfc): Modify NFC overlays for NFC apex"
6083070f5255b743b76ee1dee2d4691f536bd716 Bug: 303286040 Test: Compiles (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:da7211659016203f1d3642d0aa30da982f09475d) Merged-In: Idd6d90ec9eebc84f416a1dbeed02a0c497d9bc85 Change-Id: Idd6d90ec9eebc84f416a1dbeed02a0c497d9bc85
-rw-r--r--barbet/rro_overlays/NfcOverlay/Android.bp9
-rw-r--r--barbet/rro_overlays/NfcOverlay/AndroidManifest.xml27
-rw-r--r--barbet/rro_overlays/NfcOverlay/OWNERS2
-rw-r--r--barbet/rro_overlays/NfcOverlay/res/values/config.xml38
-rw-r--r--device-barbet.mk3
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 fb77663..dd6a78c 100644
--- a/device-barbet.mk
+++ b/device-barbet.mk
@@ -210,3 +210,6 @@ PRODUCT_COPY_FILES += \
# Workaround for Qualcomm neural network HAL
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-3.9.1-vendorcompat
+
+PRODUCT_PACKAGES += \
+ NfcOverlayBarbet