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-07 10:25:36 -0800
commitbd1c49a92b91bc04f9886cf10c34daf703121351 (patch)
tree3a4dd22802ba7573a118b6bd414b3840a075bf34
parent1890f3cb8bc67b0f9f944e59e519c40bceafb58e (diff)
downloadfelix-bd1c49a92b91bc04f9886cf10c34daf703121351.tar.gz
Revert^2 "felix(nfc): Modify NFC overlays for NFC apex"
e274b4177afaa690f9bb218bec0a80a2cdc99643 Bug: 303286040 Test: Compiles (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7777a61a891357a9e50ca21d9b6ac730647dc995) Merged-In: I56beefccd8cd5f5d12f6b867a31af60314826242 Change-Id: I56beefccd8cd5f5d12f6b867a31af60314826242 Change-Id: Ib7b639849fed4d39424866716d5eee2c5248a312
-rw-r--r--device-felix.mk3
-rw-r--r--rro_overlays/NfcOverlay/Android.bp9
-rw-r--r--rro_overlays/NfcOverlay/AndroidManifest.xml27
-rw-r--r--rro_overlays/NfcOverlay/OWNERS2
-rw-r--r--rro_overlays/NfcOverlay/res/values/config.xml35
5 files changed, 75 insertions, 1 deletions
diff --git a/device-felix.mk b/device-felix.mk
index 09d5fb4..a2b1b8a 100644
--- a/device-felix.mk
+++ b/device-felix.mk
@@ -99,7 +99,8 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
NfcNci \
Tag \
- android.hardware.nfc-service.st
+ android.hardware.nfc-service.st \
+ NfcOverlayFelix
# SecureElement
PRODUCT_PACKAGES += \
diff --git a/rro_overlays/NfcOverlay/Android.bp b/rro_overlays/NfcOverlay/Android.bp
new file mode 100644
index 0000000..580f845
--- /dev/null
+++ b/rro_overlays/NfcOverlay/Android.bp
@@ -0,0 +1,9 @@
+package {
+ default_applicable_licenses: ["device_google_felix_license"],
+}
+
+runtime_resource_overlay {
+ name: "NfcOverlayFelix",
+ sdk_version: "current",
+ product_specific: true
+}
diff --git a/rro_overlays/NfcOverlay/AndroidManifest.xml b/rro_overlays/NfcOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..5241aa4
--- /dev/null
+++ b/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/rro_overlays/NfcOverlay/OWNERS b/rro_overlays/NfcOverlay/OWNERS
new file mode 100644
index 0000000..35e9713
--- /dev/null
+++ b/rro_overlays/NfcOverlay/OWNERS
@@ -0,0 +1,2 @@
+# Bug component: 48448
+include platform/packages/apps/Nfc:/OWNERS
diff --git a/rro_overlays/NfcOverlay/res/values/config.xml b/rro_overlays/NfcOverlay/res/values/config.xml
new file mode 100644
index 0000000..5e89b28
--- /dev/null
+++ b/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">true</bool>
+ <string-array name="config_skuSupportsSecureNfc" translatable="false">
+ <item>G9FPL</item>
+ <item>G0B96</item>
+ </string-array>
+ <bool name="tag_intent_app_pref_supported">true</bool>
+ <!-- NFC Antenna Location API -->
+ <integer name="device_width">160</integer>
+ <integer name="device_height">140</integer>
+ <bool name="device_foldable">true</bool>
+ <integer-array name="antenna_x">
+ <item>90</item>
+ <item>30</item>
+ </integer-array>
+ <integer-array name="antenna_y">
+ <item>103</item>
+ <item>103</item>
+ </integer-array>
+</resources>