summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-07 00:01:31 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-07 00:01:31 +0000
commit2a86529c472bb74423796f58fd040607839b87c3 (patch)
tree44ee03e4c5cc5d09233eb5f3683c62d99f621e0c
parent965b10ce74c03cb64d2e909ec80fd3d3a0284ada (diff)
parent13426a9d37641687908d97c969a2c547eb5f19cd (diff)
downloadbluejay-2a86529c472bb74423796f58fd040607839b87c3.tar.gz
Snap for 11186783 from 13426a9d37641687908d97c969a2c547eb5f19cd to 24Q1-release
Change-Id: Ic9d9b8213113c8d3ccfa0d53c3a2aea71ec35cfe
-rw-r--r--bluejay/rro_overlays/NfcOverlay/Android.bp9
-rw-r--r--bluejay/rro_overlays/NfcOverlay/AndroidManifest.xml27
-rw-r--r--bluejay/rro_overlays/NfcOverlay/OWNERS2
-rw-r--r--bluejay/rro_overlays/NfcOverlay/res/values/config.xml35
-rw-r--r--device-bluejay.mk5
5 files changed, 76 insertions, 2 deletions
diff --git a/bluejay/rro_overlays/NfcOverlay/Android.bp b/bluejay/rro_overlays/NfcOverlay/Android.bp
new file mode 100644
index 0000000..c38f6c9
--- /dev/null
+++ b/bluejay/rro_overlays/NfcOverlay/Android.bp
@@ -0,0 +1,9 @@
+package {
+ default_applicable_licenses: ["device_google_bluejay_license"],
+}
+
+runtime_resource_overlay {
+ name: "NfcOverlayBluejay",
+ sdk_version: "current",
+ product_specific: true
+}
diff --git a/bluejay/rro_overlays/NfcOverlay/AndroidManifest.xml b/bluejay/rro_overlays/NfcOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..5241aa4
--- /dev/null
+++ b/bluejay/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/bluejay/rro_overlays/NfcOverlay/OWNERS b/bluejay/rro_overlays/NfcOverlay/OWNERS
new file mode 100644
index 0000000..35e9713
--- /dev/null
+++ b/bluejay/rro_overlays/NfcOverlay/OWNERS
@@ -0,0 +1,2 @@
+# Bug component: 48448
+include platform/packages/apps/Nfc:/OWNERS
diff --git a/bluejay/rro_overlays/NfcOverlay/res/values/config.xml b/bluejay/rro_overlays/NfcOverlay/res/values/config.xml
new file mode 100644
index 0000000..5610991
--- /dev/null
+++ b/bluejay/rro_overlays/NfcOverlay/res/values/config.xml
@@ -0,0 +1,35 @@
+<?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>
+ <bool name="nfcc_always_on_allowed">false</bool>
+ <string-array name="config_skuSupportsSecureNfc" translatable="false">
+ <item>GB62Z</item>
+ <item>G1AZG</item>
+ <item>GX7AS</item>
+ <item>GB17L</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">150</integer>
+ <bool name="device_foldable">false</bool>
+ <integer-array name="antenna_x">
+ <item>36</item>
+ </integer-array>
+ <integer-array name="antenna_y">
+ <item>83</item>
+ </integer-array>
+</resources>
diff --git a/device-bluejay.mk b/device-bluejay.mk
index 5c72c86..fbc90c0 100644
--- a/device-bluejay.mk
+++ b/device-bluejay.mk
@@ -109,9 +109,10 @@ PRODUCT_COPY_FILES += \
device/google/bluejay/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
PRODUCT_PACKAGES += \
- NfcNci \
+ $(RELEASE_PACKAGE_NFC_STACK) \
Tag \
- android.hardware.nfc-service.st
+ android.hardware.nfc-service.st \
+ NfcOverlayBluejay
# SecureElement
PRODUCT_PACKAGES += \