Skip to content

Commit

Permalink
Add bq Aquaris C (jeice) overlay (phhusson#90)
Browse files Browse the repository at this point in the history
* Add bq Aquaris C (jeice) overlay

* bq/jeice: fix test errors
  • Loading branch information
Akasch authored and phhusson committed Mar 31, 2019
1 parent 97d8a5a commit fdc581f
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bq/jeice/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-bq-jeice
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
11 changes: 11 additions & 0 deletions bq/jeice/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.bq.jeice"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+bq/jeice*"
android:priority="76"
android:isStatic="true" />
</manifest>

212 changes: 212 additions & 0 deletions bq/jeice/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_allowAllRotations">true</bool>
<bool name="config_allowAutoBrightnessWhileDozing">false</bool>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<array name="config_autoBrightnessButtonBacklightValues"/>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item>
<item>17</item>
<item>24</item>
<item>33</item>
<item>42</item>
<item>55</item>
<item>70</item>
<item>85</item>
<item>100</item>
<item>140</item>
<item>145</item>
<item>160</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>20</item>
<item>50</item>
<item>80</item>
<item>150</item>
<item>250</item>
<item>350</item>
<item>500</item>
<item>650</item>
<item>800</item>
<item>1000</item>
<item>1500</item>
<item>2000</item>
</integer-array>
<integer name="config_autoBrightnessLightSensorRate">250</integer>
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
<integer name="config_autoPowerModeAnyMotionSensor">0</integer>
<bool name="config_auto_attach_data_on_creation">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">false</bool>
<integer name="config_bluetooth_idle_cur_ma">1</integer>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
<integer name="config_bluetooth_rx_cur_ma">10</integer>
<integer name="config_bluetooth_tx_cur_ma">39</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<integer name="config_cameraLaunchGestureSensorType">-1</integer>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_carrier_wfc_ims_available">false</bool>
<bool name="config_cellBroadcastAppLinks">true</bool>
<array name="config_defaultPinnerServiceFiles"/>
<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_displayBlanksAfterDoze">false</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_enableAutoPowerModes">true</bool>
<bool name="config_enableMultiUserUI">true</bool>
<string-array name="config_gpsParameters">
<item>SUPL_HOST=supl.google.com</item>
<item>SUPL_PORT=7276</item>
<item>SUPL_VER=0x20000</item>
</string-array>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_intrusiveNotificationLed">false</bool>
<integer-array name="config_keyboardTapVibePattern">
<item>40</item>
</integer-array>
<bool name="config_lidControlsSleep">false</bool>
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>21</item>
</integer-array>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<integer name="config_mobile_mtu">1500</integer>
<integer name="config_multiuserMaximumUsers">4</integer>
<item type="bool" name="config_nightDisplayAvailable">true</item>
<integer name="config_overrideHasPermanentMenuKey">0</integer>
<bool name="config_pinnerCameraApp">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<integer name="config_screenBrightnessDark">5</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">5</integer>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_showNavigationBar">true</bool>
<integer name="config_shutdownBatteryTemperature">590</integer>
<bool name="config_speed_up_audio_on_mt_calls">true</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_supportSystemNavigationKeys">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_sustainedPerformanceModeSupported">false</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<string-array name="config_tether_bluetooth_regexs">
<item>bnep\d</item>
<item>bt-pan</item>
</string-array>
<integer-array name="config_tether_upstream_types">
<item>0</item>
<item>1</item>
<item>5</item>
<item>7</item>
</integer-array>
<string-array name="config_tether_usb_regexs">
<item>usb\d</item>
<item>rndis\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>wigig0</item>
<item>wlan0</item>
</string-array>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_use_sim_language_file">false</bool>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>50</item>
</integer-array>
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_enable_disconnection_debounce">true</bool>
<bool name="config_wifi_fast_bss_transition_enabled">false</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_supportDoubleTapWake">true</bool>
<bool name="config_dozePulsePickup">false</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<integer name="config_autoBrightnessAmbientLightHorizon">5000</integer>
<bool name="config_enableBurnInProtection">false</bool>
<integer name="config_lightSensorWarmupTime">0</integer>
<integer-array name="config_defaultNotificationVibePattern">
<item>0</item>
<item>100</item>
<item>150</item>
<item>100</item>
</integer-array>
<bool name="config_enableFusedLocationOverlay">true</bool>
<bool name="config_enableNetworkLocationOverlay">true</bool>
<!--<string-array name="config_ephemeralResolverPackage">
<item>com.google.android.gms</item>
</string-array>-->
<integer-array name="config_lteDbmThresholds">
<item>-140</item>
<item>-128</item>
<item>-118</item>
<item>-108</item>
<item>-98</item>
<item>-44</item>
</integer-array>
<string-array name="config_mobile_tcp_buffers">
<item>lte:2097152,4194304,8388608,262144,524288,1048576</item>
<item>lte_ca:2097152,4194304,8388608,4096,1048576,2097152</item>
<item>umts:4094,87380,1220608,4096,16384,1220608</item>
<item>hspa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsupa:4094,87380,1220608,4096,16384,1220608</item>
<item>hsdpa:4094,87380,1220608,4096,16384,1220608</item>
<item>hspap:4094,87380,1220608,4096,16384,1220608</item>
<item>edge:4093,26280,35040,4096,16384,35040</item>
<item>gprs:4092,8760,11680,4096,8760,11680</item>
<item>evdo:4094,87380,524288,4096,16384,262144</item>
</string-array>
<integer-array name="config_notificationFallbackVibePattern">
<item>0</item>
<item>100</item>
<item>150</item>
<item>100</item>
</integer-array>
<integer name="config_previousVibrationsDumpLimit">20</integer>
<bool name="config_sim_phonebook_batch_operation">true</bool>
<bool name="config_wifi_enable_wifi_firmware_debugging">true</bool>
<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>
</string-array>
<string-array name="radioAttributes">
<item>1,1</item>
<item>0,1</item>
<item>7,1</item>
</string-array>
<integer-array name="config_dynamicHysteresisBrightLevels">
<item>100</item>
</integer-array>
<integer-array name="config_dynamicHysteresisDarkLevels">
<item>200</item>
</integer-array>
<array name="config_dynamicHysteresisLuxLevels"/>
<integer name="config_screenBrightnessForVrSettingDefault">86</integer>
<integer name="config_screenBrightnessForVrSettingMinimum">79</integer>
<integer name="config_screenBrightnessForVrSettingMaximum">255</integer>
</resources>
47 changes: 47 additions & 0 deletions bq/jeice/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">85</item>
<item name="screen.full">314</item>
<item name="bluetooth.active">132</item>
<item name="bluetooth.on">1.2</item>
<item name="wifi.on">1.6</item>
<item name="wifi.active">58.5</item>
<item name="wifi.scan">76.5</item>
<item name="dsp.audio">30</item>
<item name="dsp.video">120</item>
<item name="camera.avg">430</item>
<item name="camera.flashlight">130</item>
<item name="gps.on">43.4</item>
<item name="radio.active">114</item>
<item name="radio.scanning">135</item>
<array name="radio.on">
<value>17</value>
<value>3</value>
</array>
<array name="cpu.speeds.cluster0">
<value>960000</value>
<value>1094400</value>
<value>1248000</value>
<value>1401000</value>
</array>
<item name="cpu.idle">2.8</item>
<item name="cpu.awake">14.2</item>
<array name="cpu.active.cluster0">
<value>62.64</value>
<value>88.14</value>
<value>108.99</value>
<value>126.8</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
</array>
<item name="battery.capacity">3000</item>
<array name="wifi.batchedscan">
<value>.0077</value>
<value>.0621</value>
<value>.4911</value>
<value>3.923</value>
<value>31.37</value>
</array>
</device>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PRODUCT_PACKAGES += \
treble-overlay-asus-zenfone5 \
treble-overlay-asus-zenfone5z \
treble-overlay-asus-zenfonelivel1za550kl \
treble-overlay-bq-jeice \
treble-overlay-caf-ims \
treble-overlay-devinputjack \
treble-overlay-htc-u12plus \
Expand Down

0 comments on commit fdc581f

Please sign in to comment.