diff --git a/BoardConfig.mk b/BoardConfig.mk
index 83fe080..3b80986 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -62,9 +62,9 @@ BOARD_VENDOR_QCOM_AMSS_VERSION := 1550
BOARD_VENDOR_USE_AKMD := akm8973
-BOARD_EGL_CFG := device/htc/leo/prebuilt/egl.cfg
+#BOARD_EGL_CFG := device/htc/leo/prebuilt/egl.cfg
-BOARD_USE_FROYO_LIBCAMERA := true
+#BOARD_USE_FROYO_LIBCAMERA := true
TARGET_USES_16BPPSURFACE_FOR_OPAQUE := true
BOARD_NO_RGBX_8888 := true
@@ -72,8 +72,8 @@ BOARD_USES_QCOM_LIBS := true
BOARD_USE_KINETO_COMPATIBILITY := true
-BOARD_HAVE_FM_RADIO := true
-BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
+#BOARD_HAVE_FM_RADIO := true
+#BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
TARGET_CUSTOM_RELEASETOOL := device/htc/leo/releasetools/squisher
@@ -102,5 +102,6 @@ BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := leo
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 3200
TARGET_PREBUILT_RECOVERY_KERNEL := device/htc/leo/prebuilt/recovery_kernel
--include device/htc/7x30-recovery/BoardConfigCommon.mk
-TARGET_PROVIDES_INIT_RC := true
+
+# Hardware rendering
+#USE_OPENGL_RENDERER := true
diff --git a/leo.mk b/leo.mk
index 6a7b744..6e55084 100755
--- a/leo.mk
+++ b/leo.mk
@@ -25,7 +25,6 @@
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/init.htcleo.rc:root/init.htcleo.rc \
device/htc/leo/prebuilt/ueventd.htcleo.rc:root/ueventd.htcleo.rc \
- device/htc/leo/prebuilt/init.rc:root/init.rc \
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
@@ -59,13 +58,15 @@ PRODUCT_PACKAGES += \
sensors.htcleo \
lights.htcleo \
librs_jni \
- libc \
gralloc.qsd8k \
copybit.qsd8k \
leo-reference-ril \
gps.htcleo \
libgps \
- libhtc_ril_wrapper
+ libhtc_ril_wrapper \
+ audio.a2dp.default \
+ audio.primary.qsd8k \
+ audio_policy.qsd8k
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index d570d1f..244176f 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -124,21 +124,21 @@
com.google.android.location.GeocodeProvider
-
-
-
-
+
+
+
- - "wifi,1,1,1"
- - "mobile,0,0,0"
- - "mobile_mms,2,0,2"
- - "mobile_supl,3,0,2"
- - "mobile_dun,4,0,4"
- - "mobile_hipri,5,0,3"
+ - "wifi,1,1,1,-1,true"
+ - "mobile,0,0,0,-1,true"
+ - "mobile_mms,2,0,2,60000,true"
+ - "mobile_supl,3,0,2,60000,true"
+ - "mobile_dun,4,0,3,60000,true"
+ - "mobile_hipri,5,0,3,60000,true"
+ - "mobile_bluetooth,7,7,1,-1,true"
+ - "wifi_p2p,13,1,0,-1,true"
-
-
@@ -169,28 +160,21 @@
- 30
-
-
-
-
- 30
-
+
+ true
+
+
+ false
+
+
+ 10
+
+
false
-
-
-
-
diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
deleted file mode 100644
index a6af5fd..0000000
--- a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
- true
- true
-
diff --git a/overlay/frameworks/base/tests/ImfTest/res/values/config.xml b/overlay/frameworks/base/tests/ImfTest/res/values/config.xml
deleted file mode 100644
index 157d04a..0000000
--- a/overlay/frameworks/base/tests/ImfTest/res/values/config.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
- true
-
diff --git a/overlay/packages/apps/CMParts/res/values/config.xml b/overlay/packages/apps/CMParts/res/values/config.xml
deleted file mode 100644
index 0c8b4ce..0000000
--- a/overlay/packages/apps/CMParts/res/values/config.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- false
- true
- false
- false
- true
- false
-
diff --git a/overlay/packages/apps/Camera/res/values/config.xml b/overlay/packages/apps/Camera/res/values/config.xml
deleted file mode 100644
index c08ec21..0000000
--- a/overlay/packages/apps/Camera/res/values/config.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/overlay/packages/apps/Contacts/res/values/config.xml b/overlay/packages/apps/Contacts/res/values/config.xml
deleted file mode 100644
index 09b6689..0000000
--- a/overlay/packages/apps/Contacts/res/values/config.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
- true
-
diff --git a/overlay/packages/apps/Mms/res/xml/mms_config.xml b/overlay/packages/apps/Mms/res/xml/mms_config.xml
index 73a57b5..9d6c7f3 100644
--- a/overlay/packages/apps/Mms/res/xml/mms_config.xml
+++ b/overlay/packages/apps/Mms/res/xml/mms_config.xml
@@ -18,9 +18,10 @@
version 1 - initial version.
version 2 - added recipientLimit.
version 3 - added min/max recycler values.
+ version 4 - added sms to mms text threshold.
-->
-
+
1048576
@@ -31,9 +32,31 @@
2592
- Passion
+ Leo
- http://www.htcmms.com.tw/Android/Common/nexusone/ua-profile.xml
+ http://www.htcmms.com.tw/Android/Common/leo/ua-profile.xml
+
+
+ -1
+
+
+ 4
+
+
+ false
+
+
+ true
+
+
+ -1
diff --git a/overlay/packages/apps/Phone/res/values/config.xml b/overlay/packages/apps/Phone/res/values/config.xml
deleted file mode 100644
index 32d3cd3..0000000
--- a/overlay/packages/apps/Phone/res/values/config.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
-
-
- true
-
diff --git a/overlay/packages/apps/Settings/res/values/bools.xml b/overlay/packages/apps/Settings/res/values/bools.xml
deleted file mode 100644
index ee25c1c..0000000
--- a/overlay/packages/apps/Settings/res/values/bools.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
- true
-
diff --git a/prebuilt/init.htcleo.rc b/prebuilt/init.htcleo.rc
index b15603d..dfb3bc8 100644
--- a/prebuilt/init.htcleo.rc
+++ b/prebuilt/init.htcleo.rc
@@ -76,7 +76,7 @@ on boot
chown media system /sys/android_camera/cam_mode
# enable the GPS
- setprop ro.ril.def.agps.mode 2
+ #setprop ro.ril.def.agps.mode 2
# performance tweaks for flash
write /sys/block/mtdblock3/bdi/read_ahead_kb 2048
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
index f59e671..1cd206c 100755
--- a/setup-makefiles.sh
+++ b/setup-makefiles.sh
@@ -74,19 +74,19 @@ done
# This file is generated by device/$MANUFACTURER/$DEVICE/setup-makefiles.sh
# Live wallpaper packages
-PRODUCT_PACKAGES := \\
- LiveWallpapers \\
- LiveWallpapersPicker \\
- MagicSmokeWallpapers \\
- VisualizationWallpapers \\
- librs_jni
+#PRODUCT_PACKAGES := \\
+# LiveWallpapers \\
+# LiveWallpapersPicker \\
+# MagicSmokeWallpapers \\
+# VisualizationWallpapers \\
+# librs_jni
# Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES := \\
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# Pick up overlay for features that depend on non-open-source files
-DEVICE_PACKAGE_OVERLAYS := $OUTDIR/overlay
+#DEVICE_PACKAGE_OVERLAYS := $OUTDIR/overlay
\$(call inherit-product, $OUTDIR/$DEVICE-vendor-blobs.mk)
EOF
diff --git a/synaptics-rmi-touchscreen.idc b/synaptics-rmi-touchscreen.idc
new file mode 100644
index 0000000..71531c1
--- /dev/null
+++ b/synaptics-rmi-touchscreen.idc
@@ -0,0 +1,64 @@
+# Copyright (C) 2010 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.
+
+#
+# Input Device Calibration File for the Leo touch screen.
+#
+# These calibration values are derived from empirical measurements
+# and may not be appropriate for use with other touch screens.
+# Refer to the input device calibration documentation for more details.
+#
+
+touch.deviceType = touchScreen
+touch.orientationAware = 1
+
+# Touch Size
+touch.touchSize.calibration = pressure
+
+# Tool Size
+# Driver reports tool size as a linear width measurement summed over
+# all contact points.
+#
+# Raw width field measures approx. 1 unit per millimeter
+# of tool size on the surface where a raw width of 1 corresponds
+# to about 17mm of physical size. Given that the display resolution
+# is 10px per mm we obtain a scale factor of 10 pixels / unit and
+# a bias of 160 pixels. In addition, the raw width represents a
+# sum of all contact area so we note this fact in the calibration.
+touch.toolSize.calibration = linear
+touch.toolSize.linearScale = 10
+touch.toolSize.linearBias = 160
+touch.toolSize.isSummed = 1
+
+# Pressure
+# Driver reports signal strength as pressure.
+#
+# A normal thumb touch while touching the back of the device
+# typically registers about 100 signal strength units although
+# this value is highly variable and is sensitive to contact area,
+# manner of contact and environmental conditions. We set the
+# scale so that a normal touch with good signal strength will be
+# reported as having a pressure somewhere in the vicinity of 1.0,
+# a featherlight touch will be below 1.0 and a heavy or large touch
+# will be above 1.0. We don't expect these values to be accurate.
+touch.pressure.calibration = amplitude
+touch.pressure.source = default
+touch.pressure.scale = 0.01
+
+# Size
+touch.size.calibration = normalized
+
+# Orientation
+touch.orientation.calibration = none
+
diff --git a/system.prop b/system.prop
index 4095afd..367877a 100755
--- a/system.prop
+++ b/system.prop
@@ -17,6 +17,9 @@ ro.ril.hsdpa.category=8
ro.ril.hsupa.category=5
ro.ril.hsxpa=2
ro.ril.enable.prl.recognition=1
+ro.ril.enable.managed.roaming=1
+ro.ril.oem.nosim.ecclist=911,112,113,115,117,999,000,08,118,120,122,110,119,995
+ro.ril.emc.mode=2
# Time between scans in seconds. Keep it high to minimize battery drain.
# This only affects the case in which there are remembered access points,
@@ -28,6 +31,15 @@ wifi.supplicant_scan_interval=120
# 0 => WCDMA preferred.
ro.telephony.default_network=0
+# Turn on checkjni for non-user builds.
+ro.kernel.android.checkjni=1
+
+# Set device insecure for non-user builds.
+ro.secure=0
+
+# Allow mock locations by default for non user builds
+ro.allow.mock.location=1
+
# density in DPI of the LCD of this board. This is used to scale the UI
# appropriately. If this property is not defined, the default value is 240 dpi.
ro.sf.lcd_density=240