Add feature flag for japan SKU
Allow apps to optimize behavior for Japan SKU
Bug: 139079084
Test: Check feature from PackageManager
Change-Id: I5ec23012addaa8bc2add3eabccc77a01cac95d25
diff --git a/device.mk b/device.mk
index ec07f05..e685648 100644
--- a/device.mk
+++ b/device.mk
@@ -422,6 +422,10 @@
frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/odm/etc/permissions/sku_G013D/android.hardware.nfc.ese.xml
PRODUCT_COPY_FILES += \
+ device/google/crosshatch/nfc/com.google.hardware.pixel.japan.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_G013B/com.google.hardware.pixel.japan.xml \
+ device/google/crosshatch/nfc/com.google.hardware.pixel.japan.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_G013D/com.google.hardware.pixel.japan.xml
+
+PRODUCT_COPY_FILES += \
device/google/crosshatch/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
device/google/crosshatch/nfc/libese-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libese-nxp.conf
diff --git a/nfc/com.google.hardware.pixel.japan.xml b/nfc/com.google.hardware.pixel.japan.xml
new file mode 100644
index 0000000..bf06ed2
--- /dev/null
+++ b/nfc/com.google.hardware.pixel.japan.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2019 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.
+-->
+<!--
+ Feature for Pixel Japan SKU devices.
+-->
+<permissions>
+ <feature name="com.google.hardware.pixel.japan" />
+</permissions>