SystemUI: Whitelist QuickAccessWallet plugin
This is required for cards & passes integration in the power menu
on user builds.
Change-Id: Ib2b4de79f23abdb9859c9f9c84f0e10f359030e3
Signed-off-by: micky387 <mickaelsaibi@free.fr>
diff --git a/config/common.mk b/config/common.mk
index 1e12122..e9b4cdd 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -119,7 +119,8 @@
# SystemUI plugins
ifeq ($(ROM_BUILDTYPE),$(filter $(ROM_BUILDTYPE),GAPPS))
PRODUCT_PACKAGES += \
- QuickAccessWallet
+ QuickAccessWallet \
+ SystemUIOmniOverlay
endif
# temporary
diff --git a/overlay/SystemUIOmniOverlay/Android.bp b/overlay/SystemUIOmniOverlay/Android.bp
new file mode 100644
index 0000000..9b02ba3
--- /dev/null
+++ b/overlay/SystemUIOmniOverlay/Android.bp
@@ -0,0 +1,5 @@
+runtime_resource_overlay {
+ name: "SystemUIOmniOverlay",
+ theme: "SystemUIOmniOverlay",
+ product_specific: true,
+}
diff --git a/overlay/SystemUIOmniOverlay/AndroidManifest.xml b/overlay/SystemUIOmniOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..9affec4
--- /dev/null
+++ b/overlay/SystemUIOmniOverlay/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.systemui.overlay.omni">
+
+ <overlay
+ android:isStatic="true"
+ android:priority="550"
+ android:targetPackage="com.android.systemui" />
+</manifest>
diff --git a/overlay/SystemUIOmniOverlay/res/values/config.xml b/overlay/SystemUIOmniOverlay/res/values/config.xml
new file mode 100644
index 0000000..30f2d63
--- /dev/null
+++ b/overlay/SystemUIOmniOverlay/res/values/config.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2009, 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.
+*/
+-->
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+
+ <!-- SystemUI Plugins that can be loaded on user builds. -->
+ <string-array name="config_pluginWhitelist" translatable="false">
+ <item>com.android.systemui.plugin.globalactions.wallet</item>
+ </string-array>
+
+</resources>
\ No newline at end of file