Skip to content

Commit

Permalink
add to overlay, specifically to fix sms/mms on 3g, lte still not work…
Browse files Browse the repository at this point in the history
…ing correctly
  • Loading branch information
touchpro committed Feb 27, 2015
1 parent adff72f commit 7bb0b5d
Show file tree
Hide file tree
Showing 84 changed files with 3,529 additions and 202 deletions.
59 changes: 55 additions & 4 deletions BoardConfig.mk
Expand Up @@ -90,8 +90,8 @@ NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so

# Use qcom power hal
#TARGET_POWERHAL_VARIANT := qcom
#TARGET_USES_CPU_BOOST_HINT := true
TARGET_POWERHAL_VARIANT := qcom
TARGET_USES_CPU_BOOST_HINT := true

TARGET_HW_DISK_ENCRYPTION := true

Expand Down Expand Up @@ -177,5 +177,56 @@ TW_NO_REBOOT_BOOTLOADER := true
RECOVERY_SDCARD_ON_DATA := true

# Nfc
BOARD_NFC_CHIPSET := pn547

BOARD_NFC_HAL_SUFFIX := x5
BOARD_NFC_CHIPSET := pn544

# SELinux
BOARD_SEPOLICY_DIRS += \
device/lge/x5/sepolicy

BOARD_SEPOLICY_UNION += \
adbd.te \
app.te \
bluetooth_loader.te \
bridge.te \
camera.te \
device.te \
dhcp.te \
dnsmasq.te \
domain.te \
drmserver.te \
file_contexts \
file.te \
hostapd.te \
init_shell.te \
init.te \
libqc-opt.te \
mediaserver.te \
mpdecision.te \
netd.te \
netmgrd.te \
nfc.te \
property_contexts \
property.te \
qcom.te \
qmux.te \
radio.te \
rild.te \
rmt.te \
sdcard_internal.te \
sdcardd.te \
sensors.te \
shell.te \
surfaceflinger.te \
system.te \
tee.te \
te_macros \
thermald.te \
ueventd.te \
vold.te \
wpa_supplicant.te \
zygote.te

ifneq ($(TARGET_BUILD_VARIANT),user)
BOARD_SEPOLICY_UNION += su.te
endif
59 changes: 55 additions & 4 deletions BoardConfig.mk~
Expand Up @@ -90,7 +90,7 @@ NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so

# Use qcom power hal
#TARGET_POWERHAL_VARIANT := qcom
TARGET_POWERHAL_VARIANT := qcom
#TARGET_USES_CPU_BOOST_HINT := true

TARGET_HW_DISK_ENCRYPTION := true
Expand Down Expand Up @@ -151,7 +151,7 @@ BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_HAS_LARGE_FILESYSTEM := true

# TWRP Recovery
TARGET_RECOVERY_FSTAB := device/lge/x5/rootdir/twrp.fstab
TARGET_RECOVERY_FSTAB := device/lge/x5/recovery.fstab
RECOVERY_FSTAB_VERSION := 2
DEVICE_RESOLUTION := 540x960
TW_FLASH_FROM_STORAGE := true
Expand All @@ -177,5 +177,56 @@ TW_NO_REBOOT_BOOTLOADER := true
RECOVERY_SDCARD_ON_DATA := true

# Nfc
BOARD_NFC_CHIPSET := pn547

BOARD_NFC_HAL_SUFFIX := x5
BOARD_NFC_CHIPSET := pn544

# SELinux
BOARD_SEPOLICY_DIRS += \
device/lge/x5/sepolicy

BOARD_SEPOLICY_UNION += \
adbd.te \
app.te \
bluetooth_loader.te \
bridge.te \
camera.te \
device.te \
dhcp.te \
dnsmasq.te \
domain.te \
drmserver.te \
file_contexts \
file.te \
hostapd.te \
init_shell.te \
init.te \
libqc-opt.te \
mediaserver.te \
mpdecision.te \
netd.te \
netmgrd.te \
nfc.te \
property_contexts \
property.te \
qcom.te \
qmux.te \
radio.te \
rild.te \
rmt.te \
sdcard_internal.te \
sdcardd.te \
sensors.te \
shell.te \
surfaceflinger.te \
system.te \
tee.te \
te_macros \
thermald.te \
ueventd.te \
vold.te \
wpa_supplicant.te \
zygote.te

ifneq ($(TARGET_BUILD_VARIANT),user)
BOARD_SEPOLICY_UNION += su.te
endif
10 changes: 10 additions & 0 deletions init/init_x5.c
Expand Up @@ -83,4 +83,14 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
property_set("ro.nfc.port", "I2C");
property_set("persist.radio.multisim.config", "");
property_set("telephony.lteOnCdmaDevice", "1");
property_set("ro.telephony.default_cdma_sub", "1");
property_set("ro.telephony.default_network", "8");
property_set("ro.cdma.home.operator.numeric", "310120");
property_set("gsm.sim.operator.numeric", "310120");
property_set("gsm.operator.numeric", "310120");
property_set("ro.cdma.home.operator.alpha", "Virgin Mobile");
property_set("gsm.sim.operator.alpha", "Virgin Mobile");
property_set("gsm.operator.alpha", "310120");
property_set("ro.cdma.subscribe_on_ruim_ready", "true");
property_set("telephony.sms.pseudo_multipart", "1");
}
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2013, 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.
*/
-->

<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>

<!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
Please don't copy them, copy anything else. -->

<!-- Array of ConnectivityManager.TYPE_xxxx values allowable 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 or
[1,4,7,9] for TYPE_WIFI, TYPE_MOBILE_DUN, TYPE_BLUETOOTH and TYPE_ETHERNET-->
<integer-array translatable="false" name="config_tether_upstream_types">
<item>1</item>
<item>4</item>
<item>7</item>
<item>9</item>
</integer-array>

<!-- The VoiceMail default value is displayed to my own number if it is true -->
<bool name="config_telephony_use_own_number_for_voicemail">true</bool>

<!-- sms encoded as octet is decoded by utf8 decoder. if it is true -->
<bool name="config_sms_utf8_support">true</bool>

<!-- The mms content disposition field is supported correctly. if it is true
If false, some fields of content disposition do not follow wap-230-wsp-20010705-a.rdf -->
<bool name="config_mms_content_disposition_support">false</bool>

<!-- If this value is true, duplicate Source/Destination port fields
in WDP header of some carriers OMADM wap push are supported.
ex: MSGTYPE-TotalSegments-CurrentSegment
-SourcePortDestPort-SourcePortDestPort-OMADM PDU
If false, not supported. -->
<bool name="config_duplicate_port_omadm_wappush">true</bool>

<!-- If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 this is the value
that should be used instead. A value of RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means
there is no replacement value and VoLTE is assumed to be supported
For sprint we will use RIL_RADIO_TECHNOLOGY_1xRTT:6 -->
<integer name="config_volte_replacement_rat">6</integer>

<!-- Sometimes, PDU has garbages. So, need to use valid index -->
<integer name="config_valid_wappush_index">4</integer>

<!-- Default network policy warning threshold, in megabytes. -->
<integer name="config_networkPolicyDefaultWarning">51200</integer>
</resources>
44 changes: 44 additions & 0 deletions overlay/frameworks/base/core/res/res/xml-mcc310-mnc00/eri.xml
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** 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.
*/
-->

<!-- Note that IconMode can be only 0, ON or 1, FLASHING
The icon is turned OFF if then IconIndex = 1 -->

<EriFile VersionNumber="1357" NumberOfEriEntries="19" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0" />
<CallPromptId Id="1" CallPromptText="CallPromptId1" />
<CallPromptId Id="2" CallPromptText="CallPromptId2" />
<EriInfo RoamingIndicator="0" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="1" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="2" IconIndex="2" IconMode="1" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="64" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="65" IconIndex="65" IconMode="0" EriText="Network Extender" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="66" IconIndex="1" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="67" IconIndex="67" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="68" IconIndex="68" IconMode="0" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="69" IconIndex="2" IconMode="1" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="70" IconIndex="2" IconMode="1" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="71" IconIndex="1" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="72" IconIndex="72" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="73" IconIndex="73" IconMode="0" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="74" IconIndex="2" IconMode="1" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="75" IconIndex="2" IconMode="1" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="76" IconIndex="76" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="77" IconIndex="2" IconMode="1" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="78" IconIndex="1" IconMode="0" EriText="Network Extender" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="79" IconIndex="2" IconMode="1" EriText="Network Extender" CallPromptId="0" AlertId="0" />
</EriFile>
44 changes: 44 additions & 0 deletions overlay/frameworks/base/core/res/res/xml-mcc310-mnc002/eri.xml
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** 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.
*/
-->

<!-- Note that IconMode can be only 0, ON or 1, FLASHING
The icon is turned OFF if then IconIndex = 1 -->

<EriFile VersionNumber="1357" NumberOfEriEntries="19" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0" />
<CallPromptId Id="1" CallPromptText="CallPromptId1" />
<CallPromptId Id="2" CallPromptText="CallPromptId2" />
<EriInfo RoamingIndicator="0" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="1" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="2" IconIndex="2" IconMode="1" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="64" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="65" IconIndex="65" IconMode="0" EriText="Network Extender" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="66" IconIndex="1" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="67" IconIndex="67" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="68" IconIndex="68" IconMode="0" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="69" IconIndex="2" IconMode="1" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="70" IconIndex="2" IconMode="1" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="71" IconIndex="1" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="72" IconIndex="72" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="73" IconIndex="73" IconMode="0" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="74" IconIndex="2" IconMode="1" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="75" IconIndex="2" IconMode="1" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="76" IconIndex="76" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="77" IconIndex="2" IconMode="1" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="78" IconIndex="1" IconMode="0" EriText="Network Extender" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="79" IconIndex="2" IconMode="1" EriText="Network Extender" CallPromptId="0" AlertId="0" />
</EriFile>
44 changes: 44 additions & 0 deletions overlay/frameworks/base/core/res/res/xml-mcc310-mnc003/eri.xml
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** 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.
*/
-->

<!-- Note that IconMode can be only 0, ON or 1, FLASHING
The icon is turned OFF if then IconIndex = 1 -->

<EriFile VersionNumber="1357" NumberOfEriEntries="19" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0" />
<CallPromptId Id="1" CallPromptText="CallPromptId1" />
<CallPromptId Id="2" CallPromptText="CallPromptId2" />
<EriInfo RoamingIndicator="0" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="1" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="2" IconIndex="2" IconMode="1" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="64" IconIndex="1" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="65" IconIndex="65" IconMode="0" EriText="Network Extender" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="66" IconIndex="1" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="67" IconIndex="67" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="68" IconIndex="68" IconMode="0" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="69" IconIndex="2" IconMode="1" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="70" IconIndex="2" IconMode="1" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="71" IconIndex="1" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="72" IconIndex="72" IconMode="0" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="73" IconIndex="73" IconMode="0" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="74" IconIndex="2" IconMode="1" EriText="Extended Network" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="75" IconIndex="2" IconMode="1" EriText="Roaming" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="76" IconIndex="76" IconMode="0" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="77" IconIndex="2" IconMode="1" EriText="Verizon Wireless" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="78" IconIndex="1" IconMode="0" EriText="Network Extender" CallPromptId="0" AlertId="0" />
<EriInfo RoamingIndicator="79" IconIndex="2" IconMode="1" EriText="Network Extender" CallPromptId="0" AlertId="0" />
</EriFile>

0 comments on commit 7bb0b5d

Please sign in to comment.