Theme Engine [2/8]
diff --git a/configs/permissions/com.tmobile.software.themes.xml b/configs/permissions/com.tmobile.software.themes.xml
new file mode 100644
index 0000000..f1c2f54
--- /dev/null
+++ b/configs/permissions/com.tmobile.software.themes.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The CyanogenMod 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.
+-->
+
+<permissions>
+ <feature name="com.tmobile.software.themes" />
+</permissions>
+
diff --git a/configs/permissions/org.cyanogenmod.theme.xml b/configs/permissions/org.cyanogenmod.theme.xml
new file mode 100644
index 0000000..a26a04c
--- /dev/null
+++ b/configs/permissions/org.cyanogenmod.theme.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2014 The CyanogenMod 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.
+-->
+
+<permissions>
+ <feature name="org.cyanogenmod.theme" />
+</permissions>
diff --git a/configs/themes_common.mk b/configs/themes_common.mk
new file mode 100644
index 0000000..1fe45bc
--- /dev/null
+++ b/configs/themes_common.mk
@@ -0,0 +1,8 @@
+# Theme engine
+PRODUCT_PACKAGES += \
+ ThemeChooser \
+ ThemesProvider
+
+PRODUCT_COPY_FILES += \
+ vendor/pa/configs/permissions/com.tmobile.software.themes.xml:system/etc/permissions/com.tmobile.software.themes.xml \
+ vendor/pa/configs/permissions/org.cyanogenmod.theme.xml:system/etc/permissions/org.cyanogenmod.theme.xml
diff --git a/main.mk b/main.mk
index a8dc95b..dbcbbab 100644
--- a/main.mk
+++ b/main.mk
@@ -20,5 +20,6 @@
include vendor/pa/configs/pa_overrides.mk
include vendor/pa/configs/bootanimation.mk
include vendor/pa/configs/version.mk
+include vendor/pa/configs/themes_common.mk