Skip to content

Commit

Permalink
Add overlay for Sharp AQUOS S2 (phhusson#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroPlus-org authored and phhusson committed Jul 9, 2018
1 parent b4764c6 commit db385b3
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sharp/S2/Android.mk
Original file line number Diff line number Diff line change
@@ -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)
10 changes: 10 additions & 0 deletions Sharp/S2/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -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.product.board"
android:requiredSystemPropertyValue="SAT"
android:priority="18"
android:isStatic="true" />
</manifest>
22 changes: 22 additions & 0 deletions Sharp/S2/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -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>
84 changes: 84 additions & 0 deletions Sharp/S2/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?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>

<-- big ram -->
<bool name="config_pinnerCameraApp">true</bool>
<integer name="config_multiuserMaximumUsers">4</integer>

</resources>
23 changes: 23 additions & 0 deletions Sharp/S2/res/values/notch.xml
Original file line number Diff line number Diff line change
@@ -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>
45 changes: 45 additions & 0 deletions Sharp/S2/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">63</item>
<item name="screen.full">261</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>633000</value>
<value>902000</value>
<value>1113000</value>
<value>1401000</value>
<value>1536000</value>
<value>1747000</value>
<value>1843000</value>
</array>
<array name="cpu.active.cluster0">
<value>34</value>
<value>60</value>
<value>85</value>
<value>128</value>
<value>163</value>
<value>202</value>
<value>253</value>
</array>
<array name="cpu.speeds.cluster1">
<value>1113000</value>
<value>1401000</value>
<value>1747000</value>
<value>1958000</value>
<value>2150000</value>
</array>
<array name="cpu.active.cluster1">
<value>226</value>
<value>331</value>
<value>497</value>
<value>614</value>
<value>777</value>
</array>
<item name="cpu.awake">1.6</item>
<item name="cpu.idle">0.1</item>
<item name="battery.capacity">3000</item>
</device>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PRODUCT_PACKAGES += \
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 \
Expand Down

0 comments on commit db385b3

Please sign in to comment.