overlay: gms: do not disable gms components

We need to include overlays overriding the lineage vendor before
including the lineage vendor in order for them to stick.

Change-Id: I105751d5aed7889e4601bec070ba498039b07a4e
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/config/common_full.mk b/config/common_full.mk
index 804a048..b510cc6 100644
--- a/config/common_full.mk
+++ b/config/common_full.mk
@@ -1,3 +1,7 @@
+# Inherit from ShiftOS common_overlays, which needs to happen
+# before including any other vendor overlays to allow overriding them.
+$(call inherit-product, vendor/shiftos/config/common_overlays.mk)
+
 # Inherit from Lineage vendor
 $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
 
diff --git a/config/common_overlays.mk b/config/common_overlays.mk
new file mode 100644
index 0000000..2f872d4
--- /dev/null
+++ b/config/common_overlays.mk
@@ -0,0 +1,4 @@
+# GMS
+ifeq ($(WITH_GMS),true)
+PRODUCT_PACKAGE_OVERLAYS += vendor/shiftos/overlay/gms
+endif
diff --git a/overlay/gms/lineage-sdk/lineage/res/res/values/config.xml b/overlay/gms/lineage-sdk/lineage/res/res/values/config.xml
new file mode 100644
index 0000000..ba4aacf
--- /dev/null
+++ b/overlay/gms/lineage-sdk/lineage/res/res/values/config.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2015 The CyanogenMod Project
+                   2017-2022 The LineageOS 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>
+    <!-- The list of components which should be automatically disabled for all devices. -->
+    <string-array name="config_globallyDisabledComponents" translatable="false">
+        <!-- empty -->
+    </string-array>
+</resources>