LeafBackgrounds: Initial ThemePicker plugin
Change-Id: I8a45eb6ae82cb6b5171fa002975d95357f56c060
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..f207b21
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2022 The LeafOS 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.
+ */
+
+android_app {
+ name: "LeafBackgrounds",
+ system_ext_specific: true,
+ sdk_version: "current",
+ resource_dirs: ["res"],
+}
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
new file mode 100644
index 0000000..099d861
--- /dev/null
+++ b/AndroidManifest.xml
@@ -0,0 +1,28 @@
+<!--
+ Copyright (C) 2022 The LeafOS 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.
+ -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ package="org.leafos.backgrounds">
+
+ <application android:label="@string/app_name">
+ <receiver android:name=".StubReceiver"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="com.android.launcher3.action.PARTNER_CUSTOMIZATION" />
+ </intent-filter>
+ </receiver>
+ </application>
+</manifest>
diff --git a/res/drawable-nodpi/aosp.jpg b/res/drawable-nodpi/aosp.jpg
new file mode 100644
index 0000000..ac035d7
--- /dev/null
+++ b/res/drawable-nodpi/aosp.jpg
Binary files differ
diff --git a/res/drawable-nodpi/leaf.jpg b/res/drawable-nodpi/leaf.jpg
new file mode 100644
index 0000000..938a2ea
--- /dev/null
+++ b/res/drawable-nodpi/leaf.jpg
Binary files differ
diff --git a/res/values/bools.xml b/res/values/bools.xml
new file mode 100644
index 0000000..323b7fe
--- /dev/null
+++ b/res/values/bools.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2020 The Proton AOSP 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>
+ <bool name="default_wallpapper_hidden">true</bool>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..0716dc2
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,21 @@
+<!--
+ Copyright (C) 2022 The LeafOS 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>
+ <string name="app_name">Wallpapers</string>
+ <string name="category_default">LeafOS wallpapers</string>
+ <string name="leaf_default">LeafOS</string>
+ <string name="aosp_default">AOSP</string>
+</resources>
diff --git a/res/xml/wallpapers.xml b/res/xml/wallpapers.xml
new file mode 100644
index 0000000..9e1ccef
--- /dev/null
+++ b/res/xml/wallpapers.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2022 The LeafOS 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.
+-->
+<wallpapers>
+ <category id="default" title="@string/category_default" featured="leaf_default">
+
+ <static-wallpaper
+ id="leaf_default"
+ src="@drawable/leaf"
+ title="@string/leaf_default" />
+
+ <static-wallpaper
+ id="aosp_default"
+ src="@drawable/aosp"
+ title="@string/aosp_default" />
+
+ </category>
+</wallpapers>