summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Popi <theh2o64@gmail.com>2016-07-19 19:32:48 +0200
committerLouis Popi <theh2o64@gmail.com>2016-07-19 19:45:14 +0200
commit6a68325dbde5d23f143b75ed7e1f0030761da506 (patch)
tree281a4f48ad43ba5fdf9f27a701cfae9521db4124
parentafaee478b5860084e99b24899d5b9c9412b29d57 (diff)
h830: Add device specifc overlay
-rw-r--r--device.mk3
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml90
2 files changed, 93 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index d93a25b..7b7ecd3 100644
--- a/device.mk
+++ b/device.mk
@@ -22,6 +22,9 @@ $(call inherit-product-if-exists, vendor/lge/h830/h830-vendor.mk)
# common g5
$(call inherit-product, device/lge/g5-common/g5.mk)
+# Overlay
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
# Sensors
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sensors/sensor_def_h1_tmo_us.conf:system/etc/sensors/sensor_def_variable.conf
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..5c36ac0
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2016, The Android Open Source 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">
+
+ <!-- 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 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,-1,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,3,-1,true</item>
+ <item>mobile_cbs,12,0,2,60000,true</item>
+ <item>bluetooth,7,7,2,-1,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_xcap,23,0,2,-1,true</item>
+ <item>mobile_vtims,28,0,2,-1,true</item>
+ </string-array>
+
+ <!-- Set of NetworkInfo.getType() that reflect data usage. -->
+ <integer-array name="config_data_usage_network_types">
+ <item>0</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ <item>10</item>
+ <item>12</item>
+ <item>22</item>
+ </integer-array>
+
+ <!-- Flag specifying whether VoLTE is available on device -->
+ <bool name="config_device_volte_available">true</bool>
+
+ <!-- Flag specifying whether VoLTE should be available for carrier: independent of
+ carrier provisioning. If false: hard disabled. If true: then depends on carrier
+ provisioning, availability etc -->
+ <bool name="config_carrier_volte_available">true</bool>
+
+ <!-- Flag specifying whether VoLTE availability is based on provisioning -->
+ <bool name="config_carrier_volte_provisioned">false</bool>
+
+ <!-- Flag specifying whether VoLTE TTY is supported -->
+ <bool name="config_carrier_volte_tty_supported">false</bool>
+
+ <!-- Flag specifying whether VT is available on device -->
+ <bool name="config_device_vt_available">true</bool>
+
+ <!-- Flag specifying whether VT should be available for carrier: independent of
+ carrier provisioning. If false: hard disabled. If true: then depends on carrier
+ provisioning, availability etc -->
+ <bool name="config_carrier_vt_available">true</bool>
+
+ <!-- Flag specifying whether WFC over IMS is available on device -->
+ <bool name="config_device_wfc_ims_available">true</bool>
+
+ <!-- Flag specifying whether WFC over IMS should be available for carrier: independent of
+ carrier provisioning. If false: hard disabled. If true: then depends on carrier
+ provisioning, availability etc -->
+ <bool name="config_carrier_wfc_ims_available">true</bool>
+
+</resources>