Add overlay for Sharp AQUOS S2
diff --git a/Sharp/S2/Android.mk b/Sharp/S2/Android.mk
new file mode 100644
index 0000000..7be93b3
--- /dev/null
+++ b/Sharp/S2/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
+LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+include $(BUILD_PACKAGE)
diff --git a/Sharp/S2/AndroidManifest.xml b/Sharp/S2/AndroidManifest.xml
new file mode 100644
index 0000000..40448fd
--- /dev/null
+++ b/Sharp/S2/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="me.phh.treble.overlay.sharp.s2"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <overlay android:targetPackage="android"
+ android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
+ android:requiredSystemPropertyValue="+FIH/SAT*"
+ android:priority="18"
+ android:isStatic="true" />
+</manifest>
diff --git a/Sharp/S2/res/values-land/notch.xml b/Sharp/S2/res/values-land/notch.xml
new file mode 100644
index 0000000..1264013
--- /dev/null
+++ b/Sharp/S2/res/values-land/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">24.0dip</dimen>
+</resources>
diff --git a/Sharp/S2/res/values/config.xml b/Sharp/S2/res/values/config.xml
new file mode 100644
index 0000000..151c2f2
--- /dev/null
+++ b/Sharp/S2/res/values/config.xml
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <bool name="config_automatic_brightness_available">true</bool>
+ <integer name="config_screenBrightnessSettingMinimum">1</integer>
+ <integer name="config_screenBrightnessDoze">17</integer>
+ <integer name="config_screenBrightnessSettingDefault">66</integer>
+ <integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
+ <integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
+ <integer name="config_screenBrightnessDark">1</integer>
+ <integer name="config_screenBrightnessDim">10</integer>
+ <integer name="config_brightness_ramp_rate_fast">180</integer>
+ <integer name="config_brightness_ramp_rate_slow">60</integer>
+ <fraction name="config_autoBrightnessAdjustmentMaxGamma">299.99695%</fraction>
+ <integer-array name="config_autoBrightnessLevels">
+ <item>1</item>
+ <item>2</item>
+ <item>4</item>
+ <item>5</item>
+ <item>8</item>
+ <item>13</item>
+ <item>17</item>
+ <item>21</item>
+ <item>26</item>
+ <item>30</item>
+ <item>34</item>
+ <item>39</item>
+ <item>60</item>
+ <item>140</item>
+ <item>310</item>
+ <item>400</item>
+ <item>500</item>
+ <item>600</item>
+ <item>1000</item>
+ <item>1200</item>
+ <item>1500</item>
+ <item>3000</item>
+ <item>3500</item>
+ <item>4000</item>
+ </integer-array>
+ <integer-array name="config_autoBrightnessLcdBacklightValues">
+ <item>2</item>
+ <item>2</item>
+ <item>3</item>
+ <item>3</item>
+ <item>8</item>
+ <item>10</item>
+ <item>12</item>
+ <item>15</item>
+ <item>17</item>
+ <item>24</item>
+ <item>30</item>
+ <item>30</item>
+ <item>44</item>
+ <item>45</item>
+ <item>48</item>
+ <item>55</item>
+ <item>64</item>
+ <item>66</item>
+ <item>69</item>
+ <item>84</item>
+ <item>93</item>
+ <item>105</item>
+ <item>200</item>
+ <item>240</item>
+ <item>255</item>
+ </integer-array>
+ <integer-array name="config_autoBrightnessButtonBacklightValues">
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ </integer-array>
+
+ <bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
+ <bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
+ <bool name="config_dozeAfterScreenOff">true</bool>
+ <bool name="config_dozePulsePickup">true</bool>
+ <bool name="config_hotswapCapable">true</bool>
+ <bool name="config_lidControlsSleep">true</bool>
+ <bool name="config_pinnerCameraApp">true</bool>
+ <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
+ <bool name="config_setColorTransformAccelerated">true</bool>
+ <bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
+ <bool name="config_sustainedPerformanceModeSupported">true</bool>
+ <bool name="config_useRoundIcon">false</bool>
+ <bool name="config_wifi_background_scan_support">true</bool>
+ <bool name="config_wifi_batched_scan_supported">true</bool>
+ <bool name="config_wifi_dual_band_support">true</bool>
+ <bool name="skip_restoring_network_selection">true</bool>
+ <integer name="config_bluetooth_operating_voltage_mv">3300</integer>
+ <integer name="config_multiuserMaximumUsers">4</integer>
+ <integer name="config_wifi_wakeup_available">1</integer>
+ <integer name="config_backPanicBehavior">1</integer>
+ <string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
+
+</resources>
diff --git a/Sharp/S2/res/values/notch.xml b/Sharp/S2/res/values/notch.xml
new file mode 100644
index 0000000..4e1ccc5
--- /dev/null
+++ b/Sharp/S2/res/values/notch.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">121.0px</dimen>
+ <dimen name="rounded_corner_content_padding">4.0dip</dimen>
+</resources>
diff --git a/overlay.mk b/overlay.mk
index 6fa9e20..f890bb0 100644
--- a/overlay.mk
+++ b/overlay.mk
@@ -6,6 +6,7 @@
treble-overlay-NavBar \
treble-overlay-NightMode \
treble-overlay-Telephony-LTE \
+ treble-overlay-sharp-s2 \
treble-overlay-SystemUI-FalseLocks \
treble-overlay-devinputjack \
treble-overlay-oneplus-op6 \