Add overlay for Vsmart Joy 3 (casuarina)

This commit is contained in:
PainKiller 2022-03-05 21:57:11 +07:00
parent 8de27aecef
commit 92df922010
5 changed files with 145 additions and 0 deletions

8
Vsmart/Joy3/Android.mk Normal file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-vsmart-joy3
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.vsmart.joy3"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+vsmart/casuarina*"
android:priority="885"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- bools.xml files-->
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<bool name="config_dozePulsePickup">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_nightDisplayAvailable">true</bool>
<bool name="config_supportDoubleTapWake">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<!-- dimens.xml files-->
<dimen name="status_bar_height_portrait">32.0dip</dimen>
<dimen name="status_bar_height_landscape">32.0dip</dimen>
<!-- integers.xml files-->
<integer name="config_autoBrightnessBrighteningLightDebounce">3000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">7000</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_bluetooth_idle_cur_ma">0</integer>
<integer name="config_bluetooth_operating_voltage_mv">0</integer>
<integer name="config_bluetooth_rx_cur_ma">0</integer>
<integer name="config_bluetooth_tx_cur_ma">0</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<!-- fractions.xml files-->
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<fraction name="config_screenAutoBrightnessDozeScaleFactor">100.0%</fraction>
<!-- arrays.xml files -->
<array name="config_autoBrightnessButtonBacklightValues" />
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item>
<item>21</item>
<item>39</item>
<item>54</item>
<item>67</item>
<item>85</item>
<item>109</item>
<item>148</item>
<item>205</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>30</item>
<item>60</item>
<item>100</item>
<item>160</item>
<item>240</item>
<item>400</item>
<item>700</item>
<item>1500</item>
<item>2000</item>
</integer-array>
<array name="config_autoBrightnessDisplayValuesNits" />
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,4,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
<item>mobile_emergency,15,0,5,-1,true</item>
<item>ethernet,9,9,9,-1,true</item>
</string-array>
<!-- displayCutout -->
<string name="config_mainBuiltInDisplayCutout">M -58,0 L -54,8 L -48,12 L -41,18 L -34,25 L -27,32 L -20,37 L -14,40 L -7,42 L 0,43 L 7,42 L 14,40 L 20,37 L 27,32 L 34,25 L 41,18 L 48,12 L 54,8 L 58,0 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">@string/config_mainBuiltInDisplayCutout</string>
<!-- strings.xml files -->
<string name="wifi_tether_configure_ssid_default">vsmart joy 3</string>
</resources>

View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<device
name="Android">
<item
name="screen.on">63</item>
<item
name="screen.full">261</item>
<array
name="cpu.speeds">
<value>200000</value>
<value>499200</value>
<value>533333</value>
<value>800000</value>
<value>998400</value>
<value>1094400</value>
<value>1209600</value>
</array>
<array
name="cpu.active">
<value>151</value>
<value>169</value>
<value>177</value>
<value>195</value>
<value>259</value>
<value>307</value>
<value>353</value>
</array>
<item
name="cpu.awake">1.6</item>
<item
name="cpu.idle">1.6</item>
<item
name="battery.capacity">5000</item>
</device>

View file

@ -184,6 +184,7 @@ PRODUCT_PACKAGES += \
treble-overlay-umidigi-power \
treble-overlay-unihertz-jelly2 \
treble-overlay-vivo-y20 \
treble-overlay-vsmart-joy3 \
treble-overlay-vsmart-live \
treble-overlay-wifi5g \
treble-overlay-xiaomi-civi \