omni: Add MicrogOmniLibOverlay
Overlay the omnirom platform ressources
Change-Id: If0f97bda739785e272bf192e22c6e4e76d77fe4b
Signed-off-by: micky387 <mickaelsaibi@free.fr>
diff --git a/config/common.mk b/config/common.mk
index 7b22f95..1e12122 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -130,3 +130,8 @@
# Add our overlays
PRODUCT_PACKAGE_OVERLAYS += vendor/omni/overlay/common
+
+ifeq ($(ROM_BUILDTYPE),MICROG)
+PRODUCT_PACKAGES += \
+ MicrogOmniLibOverlay
+endif
diff --git a/overlay/MicrogOmniLibOverlay/Android.bp b/overlay/MicrogOmniLibOverlay/Android.bp
new file mode 100644
index 0000000..4222052
--- /dev/null
+++ b/overlay/MicrogOmniLibOverlay/Android.bp
@@ -0,0 +1,5 @@
+runtime_resource_overlay {
+ name: "MicrogOmniLibOverlay",
+ theme: "MicrogOmniLibOverlay",
+ product_specific: true,
+}
diff --git a/overlay/MicrogOmniLibOverlay/AndroidManifest.xml b/overlay/MicrogOmniLibOverlay/AndroidManifest.xml
new file mode 100644
index 0000000..ff8be2f
--- /dev/null
+++ b/overlay/MicrogOmniLibOverlay/AndroidManifest.xml
@@ -0,0 +1,11 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="omnirom.platform.overlay.org"
+ android:versionCode="1"
+ android:versionName="1.0">
+
+ <application android:hasCode="false"/>
+
+ <overlay android:isStatic="true"
+ android:priority="140"
+ android:targetPackage="omnirom.platform"/>
+</manifest>
diff --git a/overlay/MicrogOmniLibOverlay/res/values/config.xml b/overlay/MicrogOmniLibOverlay/res/values/config.xml
new file mode 100644
index 0000000..b53dfb3
--- /dev/null
+++ b/overlay/MicrogOmniLibOverlay/res/values/config.xml
@@ -0,0 +1,25 @@
+<?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.
+*/
+-->
+
+<resources>
+
+ <!-- Set this bool with the ROM_BUILDTYPE is Microg -->
+ <bool name="config_useMicroGBuildType">true</bool>
+
+</resources>