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

Infinix Hot 11S #751

Open
wants to merge 13 commits into
base: pie
Choose a base branch
from
15 changes: 15 additions & 0 deletions Infinix/Hot11S/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_PACKAGE_NAME := treble-overlay-infinix-hot11S

LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay

LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true

LOCAL_PRIVATE_PLATFORM_APIS := true

include $(BUILD_PACKAGE)
19 changes: 19 additions & 0 deletions Infinix/Hot11S/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="me.phh.treble.overlay.infinix.hot11S"

android:versionCode="1"

android:versionName="1.0">

<overlay android:targetPackage="android"

android:requiredSystemPropertyName="ro.vendor.build.fingerprint"

android:requiredSystemPropertyValue="+Infinix/X6812-GL*"

android:priority="932"

android:isStatic="true" />

</manifest>
7 changes: 7 additions & 0 deletions Infinix/Hot11S/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>

<dimen name="status_bar_height">24.0dip</dimen>

</resources>
17 changes: 17 additions & 0 deletions Infinix/Hot11S/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>

<bool name="config_useDevInputEventForAudioJack">true</bool>

<dimen name="quick_qs_offset_height">48.0dip</dimen>

<dimen name="status_bar_height">24.0dip</dimen>

<dimen name="status_bar_height_portrait">24.0dip</dimen>

<dimen name="status_bar_height_landscape">24.0dip</dimen>

<string name="config_mainBuiltInDisplayCutout">M -24,0 L -24,36 L 24,36 L 24,0 Z @dp</string>

</resources>
207 changes: 207 additions & 0 deletions Infinix/Hot11S/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
<?xml version="1.0" encoding="utf-8"?>

<device

name="Android">

<item

name="ambient.on">0.1</item>

<item

name="screen.on">0.1</item>

<item

name="screen.full">0.1</item>

<item

name="bluetooth.active">0.1</item>

<item

name="bluetooth.on">0.1</item>

<item

name="wifi.on">0.1</item>

<item

name="wifi.active">0.1</item>

<item

name="wifi.scan">0.1</item>

<item

name="audio">0.1</item>

<item

name="video">0.1</item>

<item

name="camera.flashlight">0.1</item>

<item

name="camera.avg">0.1</item>

<item

name="gps.on">0.1</item>

<item

name="radio.active">0.1</item>

<item

name="radio.scanning">0.1</item>

<array

name="radio.on">

<value>0.2</value>

<value>0.1</value>

</array>

<array

name="cpu.active">

<value>0.1</value>

</array>

<array

name="cpu.clusters.cores">

<value>1</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">0.1</item>

<array

name="memory.bandwidths">

<value>22.7</value>

</array>

<item

name="battery.capacity">5000</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>

<item

name="modem.controller.sleep">0</item>

<item

name="modem.controller.idle">0</item>

<item

name="modem.controller.rx">0</item>

<array

name="modem.controller.tx">

<value>0</value>

<value>0</value>

<value>0</value>

<value>0</value>

<value>0</value>

</array>

<item

name="modem.controller.voltage">0</item>

<array

name="gps.signalqualitybased">

<value>0</value>

<value>0</value>

</array>

<item

name="gps.voltage">0</item>

</device>
8 changes: 8 additions & 0 deletions Infinix/Note11S/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-Infinix-Note11S
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
1 change: 1 addition & 0 deletions Infinix/Note11S/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions Infinix/Note11S/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions Infinix/Note11S/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions Infinix/Note11S/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ PRODUCT_PACKAGES += \
treble-overlay-huawei-WAS \
treble-overlay-hw-ims \
treble-overlay-infinix-note10 \
treble-overlay-infinix-hot11S \
treble-overlay-infinix-note10pro \
treble-overlay-infinix-note5 \
treble-overlay-infinix-note7 \
Expand Down