summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2023-12-01 19:19:56 +0000
committerRoshan Pius <rpius@google.com>2023-12-04 13:52:10 -0800
commit0bb31c7af7919e0103df385fce664e04d36952a2 (patch)
tree6d614c2082e04670db5abd2c77ee6c7268c74e4e
parente634bb5904aef846100b9cbb46e2551edd79cd37 (diff)
downloadredfin-0bb31c7af7919e0103df385fce664e04d36952a2.tar.gz
Revert^2 "redfin(nfc): Modify NFC overlays for NFC apex"
3c2aa5f3a2d0f3c5642dc96c2edde201f84e8e7a Bug: 303286040 Test: Compiles Change-Id: Ic565eeda1ec928e59be8a3a2c406ab799ef879a0
-rw-r--r--device-redfin.mk3
-rw-r--r--redfin/rro_overlays/NfcOverlay/Android.bp9
-rw-r--r--redfin/rro_overlays/NfcOverlay/AndroidManifest.xml27
-rw-r--r--redfin/rro_overlays/NfcOverlay/OWNERS2
-rw-r--r--redfin/rro_overlays/NfcOverlay/res/values/config.xml38
5 files changed, 79 insertions, 0 deletions
diff --git a/device-redfin.mk b/device-redfin.mk
index 6bd769c..ae4645e 100644
--- a/device-redfin.mk
+++ b/device-redfin.mk
@@ -247,3 +247,6 @@ endif
# Workaround for prebuilt Qualcomm neural network HAL
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-3.9.1-vendorcompat
+
+PRODUCT_PACKAGES += \
+ NfcOverlayRedfin
diff --git a/redfin/rro_overlays/NfcOverlay/Android.bp b/redfin/rro_overlays/NfcOverlay/Android.bp
new file mode 100644
index 0000000..c08c3e3
--- /dev/null
+++ b/redfin/rro_overlays/NfcOverlay/Android.bp
@@ -0,0 +1,9 @@
+package {
+ default_applicable_licenses: ["device_google_redfin_license"],
+}
+
+runtime_resource_overlay {
+ name: "NfcOverlayRedfin",
+ sdk_version: "current",
+ product_specific: true
+}
diff --git a/redfin/rro_overlays/NfcOverlay/AndroidManifest.xml b/redfin/rro_overlays/NfcOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..5241aa4
--- /dev/null
+++ b/redfin/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/redfin/rro_overlays/NfcOverlay/OWNERS b/redfin/rro_overlays/NfcOverlay/OWNERS
new file mode 100644
index 0000000..35e9713
--- /dev/null
+++ b/redfin/rro_overlays/NfcOverlay/OWNERS
@@ -0,0 +1,2 @@
+# Bug component: 48448
+include platform/packages/apps/Nfc:/OWNERS
diff --git a/redfin/rro_overlays/NfcOverlay/res/values/config.xml b/redfin/rro_overlays/NfcOverlay/res/values/config.xml
new file mode 100644
index 0000000..3d2adaa
--- /dev/null
+++ b/redfin/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="polling_disable_allowed">true</bool>
+ <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>GD1YQ</item>
+ <item>GTT9Q</item>
+ <item>G5NZ6</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">140</integer>
+ <bool name="device_foldable">false</bool>
+ <integer-array name="antenna_x">
+ <item>39</item>
+ </integer-array>
+ <integer-array name="antenna_y">
+ <item>74</item>
+ </integer-array>
+</resources>