S2: Add Snap overlay
diff --git a/Sharp/S2-snap/Android.mk b/Sharp/S2-snap/Android.mk
new file mode 100644
index 0000000..d2286fd
--- /dev/null
+++ b/Sharp/S2-snap/Android.mk
@@ -0,0 +1,7 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_PACKAGE_NAME := treble-overlay-sharp-s2-snap
+LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+include $(BUILD_PACKAGE)
diff --git a/Sharp/S2-snap/AndroidManifest.xml b/Sharp/S2-snap/AndroidManifest.xml
new file mode 100644
index 0000000..90e20fe
--- /dev/null
+++ b/Sharp/S2-snap/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="me.phh.treble.overlay.sharp.s2.snap"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <overlay android:targetPackage="org.lineageos.snap"
+ android:requiredSystemPropertyName="ro.product.board"
+ android:requiredSystemPropertyValue="SAT"
+ android:priority="19"
+ android:isStatic="true" />
+</manifest>
diff --git a/Sharp/S2-snap/res/values/arrays.xml b/Sharp/S2-snap/res/values/arrays.xml
new file mode 100644
index 0000000..b734519
--- /dev/null
+++ b/Sharp/S2-snap/res/values/arrays.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (C) 2008 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>
+
+ <array name="camera_id_entries" translatable="false">
+ <item>@string/pref_camera_id_entry_back</item>
+ <item>@string/pref_camera_id_entry_back</item>
+ <item>@string/pref_camera_id_entry_front</item>
+ </array>
+
+</resources>
diff --git a/Sharp/S2-snap/res/values/cm_strings.xml b/Sharp/S2-snap/res/values/cm_strings.xml
new file mode 100644
index 0000000..2b17c03
--- /dev/null
+++ b/Sharp/S2-snap/res/values/cm_strings.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2013-2015 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.
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <string name="pref_camera_scenemode_entry_sports">Burst</string>
+ <string name="pref_camera_scenemode_entry_steadyphoto">ClearShot</string>
+
+</resources>
diff --git a/Sharp/S2-snap/res/values/config.xml b/Sharp/S2-snap/res/values/config.xml
new file mode 100644
index 0000000..4bdc0d5
--- /dev/null
+++ b/Sharp/S2-snap/res/values/config.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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.
+-->
+
+<!-- Camera app resources that may need to be customized
+ for different hardware or product builds. -->
+<resources>
+
+ <!-- Opens back camera using openLegacy() and forces api v1 -->
+ <bool name="back_camera_open_legacy">false</bool>
+
+ <!-- Opens front camera using openLegacy() and forces api v1 -->
+ <bool name="front_camera_open_legacy">false</bool>
+
+ <!-- Restart preview for back camera onPictureTaken -->
+ <bool name="back_camera_restart_preview_onPictureTaken">true</bool>
+
+ <!-- Restart preview for front camera onPictureTaken -->
+ <bool name="front_camera_restart_preview_onPictureTaken">true</bool>
+
+ <!-- Force use a specific preview-size
+ Example: 1920x1080 -->
+ <string name="preview_size_for_photo">1920x1080</string>
+
+ <!-- Enable support for camera api v2 -->
+ <bool name="support_camera_api_v2">true</bool>
+
+</resources>
diff --git a/Sharp/S2-snap/res/values/dimens.xml b/Sharp/S2-snap/res/values/dimens.xml
new file mode 100644
index 0000000..efb42ab
--- /dev/null
+++ b/Sharp/S2-snap/res/values/dimens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2013, 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>
+
+ <dimen name="preview_top_margin">242px</dimen>
+ <dimen name="camera_controls_top_padding">121px</dimen>
+
+</resources>
diff --git a/Sharp/S2-snap/res/values/qcomstrings.xml b/Sharp/S2-snap/res/values/qcomstrings.xml
new file mode 100644
index 0000000..44172f3
--- /dev/null
+++ b/Sharp/S2-snap/res/values/qcomstrings.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2012-2014, The Linux Foundation. All rights reserved.
+ (C) 2014-2016 The CyanogenMod Project
+ (C) 2017 The LineageOS Project
+
+ Not a Contribution.
+
+ Copyright (C) 2007 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>
+ <!-- HDR needs 1x frame -->
+ <string name="pref_camera_hdr_need_1x_default" translatable="false">false</string>
+ <string name="pref_camera_scenedetect_default" translatable="false">on</string>
+ <string name="pref_camera_dis_default" translatable="false">enable</string>
+ <string name="pref_video_quality_default" translatable="false">1920x1080</string>
+</resources>
diff --git a/Sharp/S2-snap/res/values/strings.xml b/Sharp/S2-snap/res/values/strings.xml
new file mode 100644
index 0000000..6e16afe
--- /dev/null
+++ b/Sharp/S2-snap/res/values/strings.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2013, 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>
+
+ <!-- In select camera setting, back facing camera. [CHAR LIMIT=14] -->
+ <string name="pref_camera_id_entry_back">Back</string>
+ <!-- In select camera setting, front-facing camera. [CHAR LIMIT=14] -->
+ <string name="pref_camera_id_entry_front">Front</string>
+
+</resources>