Merge pull request #366 from 00p513-dev/pr-2
Add overlay for Teracube One (v7101o) and Teracube 2e (2e)
This commit is contained in:
commit
c3136f50cd
8
Teracube/2e/Android.mk
Normal file
8
Teracube/2e/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_PACKAGE_NAME := treble-overlay-teracube-2e
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||||
|
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||||
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||||
|
include $(BUILD_PACKAGE)
|
10
Teracube/2e/AndroidManifest.xml
Normal file
10
Teracube/2e/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="me.phh.treble.overlay.teracube.2e"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="1.0">
|
||||||
|
<overlay android:targetPackage="android"
|
||||||
|
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
|
||||||
|
android:requiredSystemPropertyValue="+Teracube/Teracube_2e*"
|
||||||
|
android:priority="312"
|
||||||
|
android:isStatic="true" />
|
||||||
|
</manifest>
|
36
Teracube/2e/res/values/config.xml
Normal file
36
Teracube/2e/res/values/config.xml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
|
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
|
||||||
|
<bool translatable="false" name="config_wifi_dual_band_support">true</bool>
|
||||||
|
|
||||||
|
<!-- The bounding path of the cutout region of the main built-in display.
|
||||||
|
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||||
|
{@link android.util.PathParser}.
|
||||||
|
The path is assumed to be specified in display coordinates with pixel units and in
|
||||||
|
the display's native orientation, with the origin of the coordinate system at the
|
||||||
|
center top of the display.
|
||||||
|
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
||||||
|
appended after the path string to interpret coordinates in dp instead of px units.
|
||||||
|
Note that a physical cutout should be configured in pixels for the best results.
|
||||||
|
-->
|
||||||
|
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||||
|
M 0,0
|
||||||
|
L -90, 0
|
||||||
|
L -90, 20
|
||||||
|
Q -90, 36 -74, 36
|
||||||
|
L 74, 36
|
||||||
|
Q 90, 36, 90, 20
|
||||||
|
L 90, 0
|
||||||
|
Z
|
||||||
|
@dp
|
||||||
|
</string>
|
||||||
|
<!-- Whether the display cutout region of the main built-in display should be forced to
|
||||||
|
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
|
||||||
|
-->
|
||||||
|
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
|
||||||
|
<!-- Height of the status bar -->
|
||||||
|
<dimen name="status_bar_height_portrait">36dp</dimen>
|
||||||
|
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||||
|
<!-- Height of area above QQS where battery/time go (equal to status bar height if > 48dp) -->
|
||||||
|
<dimen name="quick_qs_offset_height">36dp</dimen>
|
||||||
|
</resources>
|
8
Teracube/v7101o/Android.mk
Normal file
8
Teracube/v7101o/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_PACKAGE_NAME := treble-overlay-teracube-v7101o
|
||||||
|
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||||
|
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||||
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||||
|
include $(BUILD_PACKAGE)
|
10
Teracube/v7101o/AndroidManifest.xml
Normal file
10
Teracube/v7101o/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="me.phh.treble.overlay.teracube.one"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="1.0">
|
||||||
|
<overlay android:targetPackage="android"
|
||||||
|
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
|
||||||
|
android:requiredSystemPropertyValue="+Teracube/Teracube_One*"
|
||||||
|
android:priority="311"
|
||||||
|
android:isStatic="true" />
|
||||||
|
</manifest>
|
6
Teracube/v7101o/res/values/dimens.xml
Normal file
6
Teracube/v7101o/res/values/dimens.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<dimen name="status_bar_height_portrait">81.0px</dimen>
|
||||||
|
<dimen name="status_bar_height_landscape">81.0px</dimen>
|
||||||
|
<dimen name="quick_qs_offset_height">81.0px</dimen>
|
||||||
|
</resources>
|
77
Teracube/v7101o/res/xml/power_profile.xml
Executable file
77
Teracube/v7101o/res/xml/power_profile.xml
Executable file
|
@ -0,0 +1,77 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<device name="Android">
|
||||||
|
<item name="ambient.on">5</item>
|
||||||
|
<item name="screen.on">56.2</item>
|
||||||
|
<item name="screen.full">300.7</item>
|
||||||
|
<item name="bluetooth.active">37</item>
|
||||||
|
<item name="bluetooth.on">1.2</item>
|
||||||
|
<item name="wifi.on">0.9</item>
|
||||||
|
<item name="wifi.active">131.5</item>
|
||||||
|
<item name="wifi.scan">32.1</item>
|
||||||
|
<item name="audio">22.9</item>
|
||||||
|
<item name="video">39</item>
|
||||||
|
<item name="camera.flashlight">160</item>
|
||||||
|
<item name="camera.avg">550</item>
|
||||||
|
<item name="gps.on">26.7</item>
|
||||||
|
<item name="radio.active">227</item>
|
||||||
|
<item name="radio.scanning">2</item>
|
||||||
|
<array name="radio.on">
|
||||||
|
<value>2.5</value>
|
||||||
|
<value>1</value>
|
||||||
|
</array>
|
||||||
|
<array name="cpu.clusters.cores">
|
||||||
|
<value>4</value>
|
||||||
|
<value>4</value>
|
||||||
|
</array>
|
||||||
|
<array name="cpu.speeds.cluster0">
|
||||||
|
<value>2000000</value>
|
||||||
|
<value>2000000</value>
|
||||||
|
<value>2000000</value>
|
||||||
|
<value>2000000</value>
|
||||||
|
</array>
|
||||||
|
<array name="cpu.speeds.cluster1">
|
||||||
|
<value>1600000</value>
|
||||||
|
<value>1600000</value>
|
||||||
|
<value>1600000</value>
|
||||||
|
<value>1600000</value>
|
||||||
|
</array>
|
||||||
|
<array name="cpu.active.cluster0">
|
||||||
|
<value>125</value>
|
||||||
|
</array>
|
||||||
|
<array name="cpu.active.cluster1">
|
||||||
|
<value>75</value>
|
||||||
|
</array>
|
||||||
|
<item name="cpu.idle">3.9</item>
|
||||||
|
<array name="memory.bandwidths">
|
||||||
|
<value>22.7</value>
|
||||||
|
</array>
|
||||||
|
<item name="battery.capacity">3450</item>
|
||||||
|
<item name="wifi.controller.idle">2</item>
|
||||||
|
<item name="wifi.controller.rx">83</item>
|
||||||
|
<item name="wifi.controller.tx">360</item>
|
||||||
|
<array name="wifi.controller.tx_levels" />
|
||||||
|
<item name="wifi.controller.voltage">3700</item>
|
||||||
|
<array name="wifi.batchedscan">
|
||||||
|
<value>0.015</value>
|
||||||
|
<value>0.122</value>
|
||||||
|
<value>0.962</value>
|
||||||
|
<value>7.682</value>
|
||||||
|
<value>61.488</value>
|
||||||
|
</array>
|
||||||
|
<item name="modem.controller.sleep">0</item>
|
||||||
|
<item name="modem.controller.idle">145</item>
|
||||||
|
<item name="modem.controller.rx">147</item>
|
||||||
|
<array name="modem.controller.tx">
|
||||||
|
<value>153</value>
|
||||||
|
<value>198</value>
|
||||||
|
<value>259</value>
|
||||||
|
<value>310</value>
|
||||||
|
<value>395</value>
|
||||||
|
</array>
|
||||||
|
<item name="modem.controller.voltage">0</item>
|
||||||
|
<array name="gps.signalqualitybased">
|
||||||
|
<value>49</value>
|
||||||
|
<value>8</value>
|
||||||
|
</array>
|
||||||
|
<item name="gps.voltage">3700</item>
|
||||||
|
</device>
|
|
@ -118,6 +118,8 @@ PRODUCT_PACKAGES += \
|
||||||
treble-overlay-telephony-mtk-ims \
|
treble-overlay-telephony-mtk-ims \
|
||||||
treble-overlay-telephony-slsi-ims \
|
treble-overlay-telephony-slsi-ims \
|
||||||
treble-overlay-telephony-sprd-ims \
|
treble-overlay-telephony-sprd-ims \
|
||||||
|
treble-overlay-teracube-2e \
|
||||||
|
treble-overlay-teracube-v7101o \
|
||||||
treble-overlay-tethering \
|
treble-overlay-tethering \
|
||||||
treble-overlay-umidigi-A3S \
|
treble-overlay-umidigi-A3S \
|
||||||
treble-overlay-umidigi-power \
|
treble-overlay-umidigi-power \
|
||||||
|
|
Loading…
Reference in a new issue