Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overlay for Doogee V Max #112

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doogee/VMax/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-doogee-vmax
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Doogee/VMax/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.doogee.vmax"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+DOOGEE/M23H*"
android:priority="479"
android:isStatic="true" />
</manifest>
50 changes: 50 additions & 0 deletions Doogee/VMax/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
<item>bt-dun</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_biometric_sensors">
<item>0:2:15</item>
<item>1:8:4095</item>
</string-array>
<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>ethernet,9,9,9,-1,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_mcx,1001,0,3,60000,true</item>
<item>mobile_xcap,1002,0,3,60000,true</item>
<item>mobile_rcs,2001,0,3,60000,true</item>
<item>mobile_bip,2002,0,3,60000,true</item>
<item>mobile_vsim,2003,0,-1,60000,true</item>
</string-array>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">255</integer>
</resources>
67 changes: 67 additions & 0 deletions Doogee/VMax/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.5</item>
<item name="screen.on">100</item>
<item name="screen.full">800</item>
<item name="camera.flashlight">500</item>
<item name="camera.avg">600</item>
<item name="audio">100.0</item>
<item name="video">150.0</item>
<item name="gps.on">10</item>
<item name="radio.active">60</item>
<item name="radio.scanning">3</item>
<array name="radio.on">
<value>6</value>
<value>5</value>
<value>4</value>
<value>3</value>
<value>3</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>400000</value>
</array>
<array name="cpu.active.cluster0">
<value>0.1</value>
</array>
<item name="cpu.idle">1.11</item>
<item name="cpu.suspend">5</item>
<item name="cpu.active">2.55</item>. <item name="cpu.cluster_power.cluster0">2.11</item>
<item name="cpu.cluster_power.cluster1">2.22</item>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>1000000</value>
<value>2000000</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>300000</value>
<value>1000000</value>
<value>2500000</value>
<value>3000000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>10</value>
<value>20</value>
<value>30</value>
</array>
<array name="cpu.core_power.cluster1">
<value>25</value>
<value>35</value>
<value>50</value>
<value>60</value>
</array>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">22000</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
</device>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ PRODUCT_PACKAGES += \
treble-overlay-bq-jeice \
treble-overlay-caf-ims \
treble-overlay-devinputjack \
treble-overlay-doogee-vmax \
treble-overlay-duoqin-qin2pro \
treble-overlay-duoqin-qin3ultra \
treble-overlay-duoqin-qin3ultra-systemui \
Expand Down
Loading