aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeftones <punisher_caner@windowslive.com>2016-09-11 18:24:37 +0000
committerDeftones <punisher_caner@windowslive.com>2016-09-11 18:24:37 +0000
commitcbb3a445eb65dd6b67e0d748ff2ae12f32d2a382 (patch)
treebcc191e282062db9d858fdacf3d315959163839b
parenta4c72127213a34285bc1c046901fd6125ec47e85 (diff)
Ril and reboot fix
-rw-r--r--board/00-qcom-platform-msm8952.mk1
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml329
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml92
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml44
-rw-r--r--overlay/packages/apps/Dialer/res/values/config.xml18
-rw-r--r--overlay/packages/services/Telecomm/res/values/config.xml22
-rw-r--r--overlay/packages/services/Telephony/res/values/config.xml21
-rw-r--r--overlay/vendor/cmsdk/cm/res/res/values/config.xml22
-rw-r--r--product/overlays.mk2
-rw-r--r--rootdir/Android.mk8
-rw-r--r--rootdir/etc/init.qcom.rc103
-rw-r--r--rootdir/etc/init.qcom.ssr.rc22
12 files changed, 602 insertions, 82 deletions
diff --git a/board/00-qcom-platform-msm8952.mk b/board/00-qcom-platform-msm8952.mk
index 0028b4b..5799e1e 100644
--- a/board/00-qcom-platform-msm8952.mk
+++ b/board/00-qcom-platform-msm8952.mk
@@ -14,6 +14,7 @@ TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
BOARD_NEEDS_VENDORIMAGE_SYMLINK := true
TARGET_COPY_OUT_VENDOR := system
TARGET_UNIFIED_DEVICE := true
+TARGET_USES_OVERLAY := true
# Qualcomm support
BOARD_USES_QCOM_HARDWARE := true
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..1378138
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,329 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
+ autodetected from the Configuration. -->
+ <bool name="config_showNavigationBar">true</bool>
+
+ <!-- Flag indicating whether the we should enable the automatic brightness in Settings.
+ Software implementation will be used if config_hardware_auto_brightness_available is not set -->
+ <bool name="config_automatic_brightness_available">true</bool>
+
+ <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
+ The N entries of this array define N 1 zones as follows:
+
+ Zone 0: 0 <= LUX < array[0]
+ Zone 1: array[0] <= LUX < array[1]
+ ...
+ Zone N: array[N - 1] <= LUX < array[N]
+ Zone N + 1 array[N] <= LUX < infinity
+
+ Must be overridden in platform specific overlays -->
+ <integer-array name="config_autoBrightnessLevels">
+ <item>10</item>
+ <item>30</item>
+ <item>60</item>
+ <item>100</item>
+ <item>150</item>
+ <item>210</item>
+ <item>255</item>
+ </integer-array>
+
+ <!-- Array of output values for LCD backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ This must be overridden in platform specific overlays -->
+ <integer-array name="config_autoBrightnessLcdBacklightValues">
+ <item>10</item>
+ <item>20</item>
+ <item>40</item>
+ <item>70</item>
+ <item>110</item>
+ <item>160</item>
+ <item>200</item>
+ <item>255</item>
+ </integer-array>
+
+ <!-- Minimum screen brightness setting allowed by the power manager.
+ The user is forbidden from setting the brightness below this level. -->
+ <integer name="config_screenBrightnessSettingMinimum">1</integer>
+
+ <!-- Screen brightness used to dim the screen when the user activity
+ timeout expires. May be less than the minimum allowed brightness setting
+ that can be set by the user. -->
+ <integer name="config_screenBrightnessDim">1</integer>
+
+ <!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
+ <bool name="config_unplugTurnsOnScreen">true</bool>
+
+ <!-- If this is true, the screen will fade off. -->
+ <bool name="config_animateScreenLights">false</bool>
+
+ <!-- When true use the linux /dev/input/event subsystem to detect the switch changes
+ on the headphone/microphone jack. When false use the older uevent framework -->
+ <bool name="config_useDevInputEventForAudioJack">true</bool>
+
+ <!-- Boolean indicating if restoring network selection should be skipped -->
+ <!-- The restoring is handled by modem if it is true -->
+ <bool translatable="false" name="skip_restoring_network_selection">true</bool>
+
+ <!-- Make things go fast -->
+ <bool name="config_ui_enableFadingMarquee">false</bool>
+
+ <!-- Configuration to restart radio upon PDP_DEACTIVATE with
+ error cause as Regular deactivation(36). -->
+ <bool name="config_restart_radio_on_pdp_fail_regular_deactivation">false</bool>
+
+ <!-- Set to true to add links to Cell Broadcast app from Settings and MMS app. -->
+ <bool name="config_cellBroadcastAppLinks">true</bool>
+
+ <!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
+ <integer name="config_shutdownBatteryTemperature">680</integer>
+
+ <!-- Default LED on time for notification LED in milliseconds. -->
+ <integer name="config_defaultNotificationLedOn">500</integer>
+
+ <!-- Default LED off time for notification LED in milliseconds. -->
+ <integer name="config_defaultNotificationLedOff">2000</integer>
+
+ <!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
+ <bool name="config_intrusiveNotificationLed">true</bool>
+
+ <!-- Does the notification LED support multiple colors?
+ Used to decide if the user can change the colors -->
+ <bool name="config_multiColorNotificationLed">true</bool>
+
+ <!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
+ <bool name="config_intrusiveBatteryLed">true</bool>
+
+ <!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors -->
+ <bool name="config_multiColorBatteryLed">true</bool>
+
+ <!-- Default color for notification LED is white. -->
+ <color name="config_defaultNotificationColor">#ffffffff</color>
+
+ <!-- reference volume index for music stream to limit headphone volume and display warning -->
+ <integer name="config_safe_media_volume_index">10</integer>
+
+ <!-- Indicate whether closing the lid causes the device to go to sleep and opening
+ it causes the device to wake up.
+ The default is false. -->
+ <bool name="config_lidControlsSleep">true</bool>
+
+ <!-- List of regexpressions describing the interface (if any) that represent tetherable
+ USB interfaces. If the device doesn't want to support tething over USB this should
+ be empty. An example would be "usb.*" -->
+ <string-array translatable="false" name="config_tether_usb_regexs">
+ <item>"usb\\d"</item>
+ <item>"rndis\\d"</item>
+ </string-array>
+
+ <!-- List of regexpressions describing the interface (if any) that represent tetherable
+ Wifi interfaces. If the device doesn't want to support tethering over Wifi this
+ should be empty. An example would be "softap.*" -->
+ <string-array translatable="false" name="config_tether_wifi_regexs">
+ <item>"wlan0"</item>
+ </string-array>
+
+ <!-- Boolean indicating if current platform supports BLE peripheral mode -->
+ <bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
+
+ <!-- List of regexpressions describing the interface (if any) that represent tetherable
+ bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
+ should be empty. -->
+ <string-array translatable="false" name="config_tether_bluetooth_regexs">
+ <item>bnep\\d</item>
+ <item>bt-pan</item>
+ </string-array>
+
+ <!-- Array of allowable ConnectivityManager network types for tethering -->
+ <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
+ [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->
+ <integer-array translatable="false" name="config_tether_upstream_types">
+ <item>0</item>
+ <item>1</item>
+ <item>4</item>
+ <item>5</item>
+ <item>7</item>
+ </integer-array>
+
+ <!-- This string array should be overridden by the device to present a list of network
+ attributes. This is used by the connectivity manager to decide which networks can coexist
+ based on the hardware -->
+ <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
+ [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
+ <!-- the 5th element "resore-time" indicates the number of milliseconds to delay
+ before automatically restore the default connection. Set -1 if the connection
+ does not require auto-restore. -->
+ <!-- the 6th element indicates boot-time dependency-met value. -->
+ <string-array translatable="false" name="networkAttributes">
+ <item>wifi,1,1,1,-1,true</item>
+ <item>mobile,0,0,0,-1,true</item>
+ <item>mobile_mms,2,0,4,300000,true</item>
+ <item>mobile_supl,3,0,2,300000,true</item>
+ <item>mobile_dun,4,0,2,300000,true</item>
+ <item>mobile_hipri,5,0,3,300000,true</item>
+ <item>mobile_fota,10,0,2,300000,true</item>
+ <item>mobile_ims,11,0,2,300000,true</item>
+ <item>mobile_cbs,12,0,2,300000,true</item>
+ <item>bluetooth,7,7,2,-1,true</item>
+ <item>ethernet,9,9,4,-1,true</item>
+ </string-array>
+
+ <!-- This string array should be overridden by the device to present a list of radio
+ attributes. This is used by the connectivity manager to decide which networks can coexist
+ based on the hardware -->
+ <!-- An Array of "[ConnectivityManager connectionType],
+ [# simultaneous connection types]" -->
+ <string-array name="radioAttributes">
+ <item>1,1</item>
+ <item>0,1</item>
+ <item>7,1</item>
+ </string-array>
+
+ <!-- Vibrator pattern for feedback about a long screen/key press -->
+ <integer-array name="config_longPressVibePattern">
+ <item>0</item>
+ <item>1</item>
+ <item>20</item>
+ <item>21</item>
+ </integer-array>
+
+ <!-- Whether WiFi display is supported by this device.
+ There are many prerequisites for this feature to work correctly.
+ Here are a few of them:
+ * The WiFi radio must support WiFi P2P.
+ * The WiFi radio must support concurrent connections to the WiFi display and
+ to an access point.
+ * The Audio Flinger audio_policy.conf file must specify a rule for the "r_submix"
+ remote submix module. This module is used to record and stream system
+ audio output to the WiFi display encoder in the media server.
+ * The remote submix module "audio.r_submix.default" must be installed on the device.
+ * The device must be provisioned with HDCP keys (for protected content).
+ -->
+ <bool name="config_enableWifiDisplay">true</bool>
+
+ <!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
+ <bool translatable="false" name="config_wifi_dual_band_support">true</bool>
+
+ <!-- Boolean indicating whether the wifi chipset has background scan support -->
+ <bool translatable="false" name="config_wifi_background_scan_support">true</bool>
+
+ <!-- Wifi driver supports batched scan -->
+ <bool translatable="false" name="config_wifi_batched_scan_supported">true</bool>
+
+ <!-- Set to true if the wifi display supports compositing content stored
+ in gralloc protected buffers. For this to be true, there must exist
+ a protected hardware path for surface flinger to composite and send
+ protected buffers to the wifi display video encoder.
+ If this flag is false, we advise applications not to use protected
+ buffers (if possible) when presenting content to a wifi display because
+ the content may be blanked.
+ This flag controls whether the {@link Display#FLAG_SUPPORTS_PROTECTED_BUFFERS}
+ flag is set for wifi displays.
+ -->
+ <bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
+
+ <!-- Configure wifi tcp buffersizes in the form:
+ rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max -->
+ <string name="config_wifi_tcp_buffers" translatable="false">524288,2097152,4194304,262144,524288,1048576</string>
+
+ <!-- Hardware keys present on the device, stored as a bit field.
+ This integer should equal the sum of the corresponding value for each
+ of the following keys present:
+ 1 - Home
+ 2 - Back
+ 4 - Menu
+ 8 - Assistant (search)
+ 16 - App switch
+ 32 - Camera
+ 64 - Volume rocker
+ For example, a device with Home, Back and Menu keys would set this
+ config to 7. -->
+ <integer name="config_deviceHardwareKeys">64</integer>
+
+ <!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
+ This integer should equal the sum of the corresponding value for each
+ of the following keys present:
+ 1 - Home
+ 2 - Back
+ 4 - Menu
+ 8 - Assistant (search)
+ 16 - App switch
+ 32 - Camera
+ 64 - Volume rocker
+ For example, a device with Home, Back and Menu keys would set this
+ config to 7. -->
+ <integer name="config_deviceHardwareWakeKeys">64</integer>
+
+ <!-- Maximum number of supported users -->
+ <integer name="config_multiuserMaximumUsers">4</integer>
+ <!-- Whether Multiuser UI should be shown -->
+ <bool name="config_enableMultiUserUI">true</bool>
+
+ <!-- Is the device capable of hot swapping an UICC Card -->
+ <bool name="config_hotswapCapable">true</bool>
+
+ <!-- SD card is hot-pluggable on this device -->
+ <bool name="config_batterySdCardAccessibility">true</bool>
+
+ <!-- Configure mobile tcp buffer sizes in the form:
+ rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
+ If no value is found for the rat-name in use, the system default will be applied.
+ -->
+ <string-array name="config_mobile_tcp_buffers">
+ <item>lte:2097152,4194304,8388608,262144,524288,1048576</item>
+ <item>lte_ca:2097152,4194304,8388608,262144,524288,1048576</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,2441216,4096,16384,2441216</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,1048576,4096,16384,262144</item>
+ <item>ehrpd:4094,87380,1048576,4096,16384,262144</item>
+ </string-array>
+
+ <!-- Vibrator pattern for feedback about touching a virtual key -->
+ <integer-array name="config_virtualKeyVibePattern">
+ <item>0</item>
+ <item>20</item>
+ <item>30</item>
+ <item>50</item>
+ </integer-array>
+
+ <!-- Package name providing network location support. Used only when
+ config_enableNetworkLocationOverlay is false. -->
+ <string name="config_networkLocationProviderPackageName" translatable="false">com.qualcomm.location</string>
+
+ <!-- Package name providing fused location support. Used only when
+ config_enableFusedLocationOverlay is false. -->
+ <string name="config_fusedLocationProviderPackageName" translatable="false">com.qualcomm.location</string>
+
+ <!-- Doze mode -->
+ <string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
+ <bool name="config_dozeAfterScreenOff">true</bool>
+ <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
+
+ <!-- enable doze powersaving mode -->
+ <bool name="config_enableAutoPowerModes">true</bool>
+
+ <!-- Operating volatage for bluetooth controller. 0 by default-->
+ <integer translatable="false" name="config_bluetooth_operating_voltage_mv">3300</integer>
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
new file mode 100644
index 0000000..23a98e4
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<device name="Android">
+ <item name="none">0</item>
+ <item name="screen.on">18</item>
+ <item name="screen.full">154.8</item>
+ <array name="screen.brightness">
+ <value>dark</value>
+ <value>dim</value>
+ <value>medium</value>
+ <value>light</value>
+ <value>bright</value>
+ </array>
+ <array name="screen.brightness_bin">
+ <value>18</value>
+ <value>52.2</value>
+ <value>86.04</value>
+ <value>120.96</value>
+ <value>154.80</value>
+ </array>
+ <array name="gpu.speeds">
+ <value>27000</value>
+ <value>200000</value>
+ <value>320000</value>
+ <value>400000</value>
+ </array>
+ <array name="gpu.active">
+ <value>102.6</value>
+ <value>406.8</value>
+ <value>525.6</value>
+ <value>626.4</value>
+ </array>
+ <item name="bluetooth.active">25.2</item>
+ <item name="bluetooth.on">1.8</item>
+ <item name="bluetooth.at">0</item>
+ <item name="wifi.on">1.14</item>
+ <item name="wifi.active">74</item>
+ <item name="wifi.scan">54</item>
+ <item name="dsp.audio">10.8</item>
+ <item name="dsp.video">39.6</item>
+ <item name="radio.talk">96.12</item>
+ <item name="radio.active">191.16</item>
+ <item name="gps.on">50.4</item>
+ <item name="battery.capacity">2150</item>
+ <item name="radio.scanning">82.8</item>
+ <item name="camera.flashlight">160</item>
+ <item name="camera.avg">550</item>
+ <array name="radio.on">
+ <value>2.88</value>
+ <value>2.88</value>
+ </array>
+ <array name="cpu.speeds">
+ <value>300000</value>
+ <value>422400</value>
+ <value>652800</value>
+ <value>729600</value>
+ <value>883200</value>
+ <value>960000</value>
+ <value>1036800</value>
+ <value>1190400</value>
+ <value>1267200</value>
+ <value>1497600</value>
+ <value>1574400</value>
+ <value>1728000</value>
+ <value>1958400</value>
+ <value>2265600</value>
+ </array>
+ <item name="cpu.idle">2.52</item>
+ <item name="cpu.awake">9.08</item>
+ <array name="cpu.active">
+ <value>23.60</value>
+ <value>24.24</value>
+ <value>31.00</value>
+ <value>31.98</value>
+ <value>45.47</value>
+ <value>49.44</value>
+ <value>51.78</value>
+ <value>58.26</value>
+ <value>61.76</value>
+ <value>77.48</value>
+ <value>84.47</value>
+ <value>96.27</value>
+ <value>112.63</value>
+ <value>161.76</value>
+ </array>
+ <array name="wifi.batchedscan">
+ <value>0.0002</value>
+ <value>0.002</value>
+ <value>0.02</value>
+ <value>0.2</value>
+ <value>2</value>
+ </array>
+</device> \ No newline at end of file
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
new file mode 100644
index 0000000..a1e5ad3
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2013, The Android Open Source Project
+** Copyright 2016, The CyanogenMod Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+
+ <!-- Control whether status bar should distinguish HSPA data icon form UMTS
+ data icon on devices -->
+ <bool name="config_hspa_data_distinguishable">true</bool>
+
+ <!-- Doze: pulse parameter - how long does it take to fade in? -->
+ <integer name="doze_pulse_duration_in">900</integer>
+
+ <!-- Doze: pulse parameter - once faded in, how long does it stay visible? -->
+ <integer name="doze_pulse_duration_visible">3000</integer>
+
+ <!-- Doze: pulse parameter - how long does it take to fade out? -->
+ <integer name="doze_pulse_duration_out">600</integer>
+
+ <!-- Doze: when to pulse after a buzzworthy notification arrives -->
+ <string name="doze_pulse_schedule" translatable="false">5s,15s,30s,60s</string>
+
+ <!-- Doze: should the pickup sensor be used as a pulse signal? -->
+ <bool name="doze_pulse_on_pick_up">true</bool>
+
+</resources>
diff --git a/overlay/packages/apps/Dialer/res/values/config.xml b/overlay/packages/apps/Dialer/res/values/config.xml
new file mode 100644
index 0000000..1703840
--- /dev/null
+++ b/overlay/packages/apps/Dialer/res/values/config.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod Project
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <bool name="call_recording_enabled">true</bool>
+ <integer name="call_recording_audio_source">4</integer>
+</resources>
diff --git a/overlay/packages/services/Telecomm/res/values/config.xml b/overlay/packages/services/Telecomm/res/values/config.xml
new file mode 100644
index 0000000..ed4f39c
--- /dev/null
+++ b/overlay/packages/services/Telecomm/res/values/config.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+
+ <!-- Flag indicating if the tty is enabled -->
+ <bool name="tty_enabled">true</bool>
+
+</resources>
diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml
new file mode 100644
index 0000000..7f612f2
--- /dev/null
+++ b/overlay/packages/services/Telephony/res/values/config.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2015 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources>
+ <!-- Show enabled lte option for lte device -->
+ <bool name="config_enabled_lte" translatable="false">true</bool>
+
+</resources>
diff --git a/overlay/vendor/cmsdk/cm/res/res/values/config.xml b/overlay/vendor/cmsdk/cm/res/res/values/config.xml
new file mode 100644
index 0000000..3b23b2d
--- /dev/null
+++ b/overlay/vendor/cmsdk/cm/res/res/values/config.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015-2016 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+
+ <!-- Is the notification LED brightness adjustable ? Used to decide if the user can set LED brightness -->
+ <bool name="config_adjustableNotificationLedBrightness">true</bool>
+
+</resources>
diff --git a/product/overlays.mk b/product/overlays.mk
new file mode 100644
index 0000000..a464a57
--- /dev/null
+++ b/product/overlays.mk
@@ -0,0 +1,2 @@
+# Overlays
+DEVICE_PACKAGE_OVERLAYS += device/google/msm8952-common/overlay
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index 53f2051..3a0768d 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -37,14 +37,6 @@ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.ssr.rc
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.ssr.rc
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
LOCAL_MODULE := init.qcom.usb.rc
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index a6dc09a..4843c75 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -11,7 +11,7 @@
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
-#
+# Build By One Team @Deftones
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -26,17 +26,13 @@
#
import init.qcom.power.rc
-import init.qcom.ssr.rc
import init.qcom.usb.rc
-import init.target.rc
on early-init
mkdir /firmware 0771 system system
mkdir /system 0777 root root
symlink /data/tombstones /tombstones
-
- # Turn off backlight on blank
- write /sys/class/leds/lcd-backlight/trigger "backlight"
+ mkdir /dsp 0771 media media
on init
# Set permissions for persist partition
@@ -82,6 +78,8 @@ on post-fs-data
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
+ mkdir /data/misc/ipa 0700 net_admin net_admin
+
# Create the directories used by the Wireless subsystem
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
@@ -159,17 +157,17 @@ on post-fs-data
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
- # Allow subsystem (modem etc) debugging
- write /sys/module/subsystem_restart/parameters/enable_debug ${persist.sys.ssr.enable_debug}
- write /sys/module/pil_msa/parameters/pbl_mba_boot_timeout_ms ${persist.sys.mba_boot_timeout}
- write /sys/module/pil_msa/parameters/modem_auth_timeout_ms ${persist.sys.modem_auth_timeout}
- write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout}
+ write /sys/bus/msm_subsys/devices/subsys0/restart_level "related"
+ write /sys/bus/msm_subsys/devices/subsys1/restart_level "related"
+ write /sys/bus/msm_subsys/devices/subsys2/restart_level "related"
+ write /sys/bus/msm_subsys/devices/subsys3/restart_level "related"
write /sys/kernel/boot_adsp/boot 1
+ chown root audio /sys/kernel/boot_adsp/boot
on boot
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
- chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
+ chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite
@@ -177,9 +175,11 @@ on boot
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
+ chown system system /sys/module/radio_iris_transport/parameters/fmsmd_set
+ chmod 0660 /sys/module/radio_iris_transport/parameters/fmsmd_set
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
- chown bluetooth bluetooth /dev/ttyHS0
+ chown net_bt bluetooth /dev/ttyHS0
chmod 0660 /sys/module/hci_uart/parameters/ath_lpm
chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite
chmod 0660 /dev/ttyHS0
@@ -199,14 +199,14 @@ on boot
mkdir /dev/socket/qmux_gps 0770 gps gps
chmod 2770 /dev/socket/qmux_gps
+ chown net_bt bluetooth /sys/class/rfkill/rfkill0/device/extldo
+ chmod 0660 /sys/class/rfkill/rfkill0/device/extldo
+
#Create NETMGR daemon socket area
mkdir /dev/socket/netmgr 0750 radio radio
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
- #For bridgemgr daemon to inform the USB driver of the correct transport
- chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
-
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 8388608
@@ -256,18 +256,17 @@ on boot
mkdir /data/misc/display 0770 system graphics
mkdir /persist/display 0770 system graphics
- # Graphics node permissions
- chmod 0664 /sys/class/graphics/fb0/dyn_pu
- chmod 0664 /sys/class/graphics/fb0/dynamic_fps
- chmod 0664 /sys/class/graphics/fb0/idle_time
- chmod 0664 /sys/class/graphics/fb0/mode
- chmod 0664 /sys/class/graphics/fb0/modes
+ write /data/misc/radio/copy_complete 0
+ chown radio radio /data/misc/radio/copy_complete
+ chmod 0660 /data/misc/radio/copy_complete
- chown system graphics /sys/class/graphics/fb0/dyn_pu
- chown system graphics /sys/class/graphics/fb0/dynamic_fps
- chown system graphics /sys/class/graphics/fb0/idle_time
- chown system graphics /sys/class/graphics/fb0/mode
- chown system graphics /sys/class/graphics/fb0/modes
+ # Notification LED
+ chown system system /sys/class/leds/red/blink
+ chown system system /sys/class/leds/green/blink
+ chown system system /sys/class/leds/blue/blink
+ chown system system /sys/class/leds/red/on_off_ms
+ chown system system /sys/class/leds/green/on_off_ms
+ chown system system /sys/class/leds/blue/on_off_ms
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
@@ -276,8 +275,9 @@ on property:bluetooth.isEnabled=true
write /sys/class/bluetooth/hci0/idle_timeout 7000
on property:vold.decrypt=trigger_restart_framework
- start config_bt_addr
start config_bluetooth
+ start wcnss-service
+ start config_bt_addr
on property:persist.env.fastdorm.enabled=true
setprop persist.radio.data_no_toggle 1
@@ -308,7 +308,7 @@ service config_bluetooth /system/bin/sh /system/etc/init.qcom.bt.sh "onboot"
seclabel u:r:bluetooth_loader:s0
oneshot
-service cnd /system/bin/cnd
+service cnd /vendor/bin/cnd
class late_start
socket cnd stream 660 root inet
@@ -321,12 +321,13 @@ service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
user bluetooth
group bluetooth net_bt_admin
disabled
- seclabel u:r:bluetooth_loader:s0
oneshot
on property:bluetooth.hciattach=true
start hciattach
+on property:bluetooth.hciattach=false
+ setprop bluetooth.status off
# FM
on property:hw.fm.init=0
write /sys/module/radio_iris_transport/parameters/fmsmd_set 0
@@ -348,6 +349,17 @@ service qti /vendor/bin/qti
user radio
group radio net_raw qcom_diag usb net_admin
+service ipacm-diag /system/bin/ipacm-diag
+ class main
+ user system
+ socket ipacm_log_file dgram 660 system net_admin
+ group net_admin qcom_diag
+
+service ipacm /system/bin/ipacm
+ class main
+ user net_admin
+ group net_admin inet
+
service sensors /system/bin/sensors.qcom
class late_start
user root
@@ -486,22 +498,14 @@ service charger /charger
group log
seclabel u:r:healthd:s0
-service ssr_diag /system/bin/ssr_diag
- class late_start
- user system
- group system
+on charger
+ start hvdcp_opti
-service hvdcp /system/bin/hvdcp
+service hvdcp_opti /vendor/bin/hvdcp_opti
class core
user root
disabled
-on property:persist.usb.hvdcp.detect=true
- start hvdcp
-
-on property:persist.usb.hvdcp.detect=false
- stop hvdcp
-
#start camera server as daemon
service qcamerasvr /system/bin/mm-qcamera-daemon
class late_start
@@ -509,13 +513,6 @@ service qcamerasvr /system/bin/mm-qcamera-daemon
group camera system inet input graphics
writepid /dev/cpuset/system-background/tasks
-# Allow usb charging to be disabled peristently
-on property:persist.usb.chgdisabled=1
- write /sys/class/power_supply/battery/charging_enabled 0
-
-on property:persist.usb.chgdisabled=0
- write /sys/class/power_supply/battery/charging_enabled 1
-
service qseecomd /system/bin/qseecomd
class core
user root
@@ -524,7 +521,6 @@ service qseecomd /system/bin/qseecomd
service perfd /vendor/bin/perfd
class main
user root
- group root
disabled
writepid /dev/cpuset/system-background/tasks
@@ -532,6 +528,9 @@ service thermal-engine /vendor/bin/thermal-engine
class main
user root
group root
+ socket thermal-send-client stream 0666 system system
+ socket thermal-recv-client stream 0660 system system
+ socket thermal-recv-passive-client stream 0666 system system
service time_daemon /system/bin/time_daemon
class late_start
@@ -543,7 +542,7 @@ service audiod /system/bin/audiod
user system
group system
-service ppd /system/bin/mm-pp-daemon
+service ppd /vendor/bin/mm-pp-daemon
class late_start
disabled
user system
@@ -562,7 +561,7 @@ service wcnss-service /system/bin/wcnss_service
group system wifi radio
oneshot
-service adsprpcd /system/bin/adsprpcd
+service adsprpcd /vendor/bin/adsprpcd
class main
user media
group media
diff --git a/rootdir/etc/init.qcom.ssr.rc b/rootdir/etc/init.qcom.ssr.rc
deleted file mode 100644
index b4f7838..0000000
--- a/rootdir/etc/init.qcom.ssr.rc
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (C) 2016 The CyanogenMod Project <http://www.cyanogenmod.org>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-on boot
- # Subsystem Restart
- # Venus
- write /sys/bus/msm_subsys/devices/subsys0/restart_level "related"
- # WCNSS
- write /sys/bus/msm_subsys/devices/subsys1/restart_level "related"
- # Modem
- write /sys/bus/msm_subsys/devices/subsys2/restart_level "related"