Add overlay for VSmart Active 3

This commit is contained in:
K4zoku 2023-01-11 16:48:14 +07:00
parent 1bf46c47bc
commit 429086b305
No known key found for this signature in database
GPG key ID: BE61E24EB310E0A2
8 changed files with 175 additions and 0 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-vsmart-active3
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.active3"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+vsmart/coconut*"
android:priority="226"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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,2,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,-1,-1,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>wifi_p2p,13,1,0,-1,true</item>
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
<item>mobile_wap,21,0,3,60000,true</item>
<item>mobile_xcap,25,0,3,60000,true</item>
<item>mobile_rcs,26,0,3,60000,true</item>
<item>mobile_bip,27,0,3,60000,true</item>
<item>mobile_vsim,28,0,-1,60000,true</item>
<item>mobile_preempt,29,0,9,60000,true</item>
</string-array>
<string-array name="config_tether_usb_regexs">
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>ap\\d</item>
</string-array>
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
<item>bt-dun</item>
</string-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>/system/framework/arm/boot-mediatek-framework.vdex</item>
<item>/system/lib/libjavacrypto.so</item>
<item>/system/lib/libhidltransport.so</item>
<item>/system/framework/arm/boot-core-libart.oat</item>
<item>/system/framework/arm/boot-conscrypt.oat</item>
<item>/system/framework/arm/boot-core-libart.vdex</item>
<item>/system/framework/arm/boot-ext.vdex</item>
<item>/system/framework/arm/boot.vdex</item>
<item>/system/framework/arm/boot-framework.vdex</item>
</string-array>
<string-array name="config_ephemeralResolverPackage">
<item>com.google.android.gms</item>
</string-array>
</resources>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_device_volte_available">false</bool>
<bool name="config_device_vt_available">false</bool>
<bool name="config_device_wfc_ims_available">false</bool>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_enableNetworkLocationOverlay">true</bool>
<bool name="config_enableFusedLocationOverlay">true</bool>
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_bluetooth_max_connected_audio_devices">1</integer>
</resources>

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="integer" name="config_screenBrightnessSettingMinimum" id="0x7f030000" />
<public type="integer" name="config_screenBrightnessSettingMaximum" id="0x7f030001" />
<public type="integer" name="config_bluetooth_max_connected_audio_devices" id="0x7f030004" />
<public type="array" name="networkAttributes" id="0x7f040000" />
<public type="array" name="config_tether_usb_regexs" id="0x7f040008" />
<public type="array" name="config_tether_wifi_regexs" id="0x7f040009" />
<public type="array" name="config_tether_bluetooth_regexs" id="0x7f04000a" />
<public type="array" name="config_defaultPinnerServiceFiles" id="0x7f04000b" />
<public type="array" name="config_ephemeralResolverPackage" id="0x7f04000d" />
<public type="bool" name="config_hotswapCapable" id="0x7f050000" />
<public type="bool" name="config_device_volte_available" id="0x7f050001" />
<public type="bool" name="config_device_vt_available" id="0x7f050002" />
<public type="bool" name="config_device_wfc_ims_available" id="0x7f050003" />
<public type="bool" name="config_dynamic_bind_ims" id="0x7f050004" />
<public type="bool" name="config_setColorTransformAccelerated" id="0x7f050007" />
<public type="bool" name="config_automatic_brightness_available" id="0x7f050008" />
<public type="bool" name="config_suspendWhenScreenOffDueToProximity" id="0x7f050009" />
<public type="bool" name="config_wifi_dual_band_support" id="0x7f05000a" />
<public type="bool" name="config_wifi_background_scan_support" id="0x7f05000b" />
<public type="bool" name="config_useDevInputEventForAudioJack" id="0x7f05000e" />
<public type="bool" name="config_switch_phone_on_voice_reg_state_change" id="0x7f05000f" />
<public type="bool" name="skip_restoring_network_selection" id="0x7f050010" />
<public type="bool" name="config_showNavigationBar" id="0x7f050011" />
<public type="bool" name="config_enableNetworkLocationOverlay" id="0x7f050017" />
<public type="bool" name="config_enableFusedLocationOverlay" id="0x7f050018" />
<public type="string" name="config_ims_package" id="0x7f060002" />
</resources>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_ims_package">com.mediatek.ims</string>
</resources>

View file

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">1.3</item>
<item name="screen.full">460</item>
<item name="bluetooth.active">33.2</item>
<item name="bluetooth.on">1.7</item>
<item name="wifi.on">0.3</item>
<item name="wifi.active">225.85</item>
<item name="wifi.scan">54.5</item>
<item name="dsp.audio">29.3</item>
<item name="dsp.video">183.6</item>
<item name="camera.flashlight">0.1</item>
<item name="camera.avg">0.1</item>
<item name="gps.on">50</item>
<item name="radio.active">77</item>
<item name="radio.scanning">34.8</item>
<array name="radio.on">
<value>1.2</value>
<value>1.2</value>
</array>
<item name="modem.controller.idle">0</item>
<item name="modem.controller.rx">0</item>
<item name="modem.controller.tx">0</item>
<item name="modem.controller.voltage">0</item>
<array name="cpu.clusters.cores">
<value>1</value>
</array>
<array name="cpu.speeds.cluster0">
<value>400000</value>
</array>
<array name="cpu.active.cluster0">
<value>100</value>
</array>
<item name="cpu.idle">0.1</item>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">3950</item>
<item name="wifi.controller.idle">0</item>
<item name="wifi.controller.rx">0</item>
<item name="wifi.controller.tx">0</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">0</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
</device>