Permalink
Browse files

leo update: thanks to drewis,tytung

  • Loading branch information...
1 parent 46b629b commit 84ce83dbd567ead06e2c7b20bd691101e1367781 @arif-ali arif-ali committed Nov 23, 2011
View
@@ -62,18 +62,18 @@ 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
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
View
7 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
@@ -124,21 +124,21 @@
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
- <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
- Please don't copy them, copy anything else. -->
-
- <!-- 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 connection type],
- [associated radio-type],[priority] -->
+ <!-- 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"</item>
- <item>"mobile,0,0,0"</item>
- <item>"mobile_mms,2,0,2"</item>
- <item>"mobile_supl,3,0,2"</item>
- <item>"mobile_dun,4,0,4"</item>
- <item>"mobile_hipri,5,0,3"</item>
+ <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,3,60000,true"</item>
+ <item>"mobile_hipri,5,0,3,60000,true"</item>
+ <item>"mobile_bluetooth,7,7,1,-1,true"</item>
+ <item>"wifi_p2p,13,1,0,-1,true"</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
@@ -148,15 +148,6 @@
<item>"usb0"</item>
</string-array>
- <!-- Regex array of allowable upstream ifaces for tethering - for example if you want
- tethering on a new interface called "foo2" add <item>"foo\\d"</item> to the array -->
-<!-- <string-array translatable="false" name="config_tether_upstream_regexs">
- <item>"rmnet\\d"</item>
- <item>"ppp\\d"</item>
- <item>"eth\\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.*" -->
@@ -169,28 +160,21 @@
<item>30</item>
</integer-array>
-
- <!-- Boolean indicating if we require the use of DUN on mobile for tethering -->
-<!--
- <bool translatable="false" name="config_tether_dun_required">false</bool>
--->
-
<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
<integer-array name="config_keyboardTapVibePattern">
<item>30</item>
</integer-array>
- <!-- Enable use of power animations -->
- <bool name="config_animateScreenLights">false</bool>
+ <!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
+ <bool name="config_unplugTurnsOnScreen">true</bool>
- <!-- Enable Tablet tweaks -->
-<!--
- <bool name="cm_default_has_soft_buttons">true</bool>
- <bool name="cm_default_show_soft_home">false</bool>
- <bool name="cm_default_show_soft_menu">false</bool>
- <bool name="cm_default_show_soft_back">false</bool>
- <bool name="cm_default_show_soft_search">false</bool>
- <bool name="cm_default_show_soft_quick_na">false</bool>
--->
+ <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
+ autodetected from the Configuration. -->
+ <bool name="config_showNavigationBar">false</bool>
+
+ <!-- Minimum screen brightness allowed by the power manager. -->
+ <integer name="config_screenBrightnessDim">10</integer>
+ <!-- Enable use of power animations -->
+ <bool name="config_animateScreenLights">false</bool>
</resources>
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/**
- * Copyright (c) 2009, 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>
- <bool name="def_accelerometer_rotation">true</bool>
- <bool name="def_screen_brightness_automatic_mode">true</bool>
-</resources>
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/**
- * Copyright (c) 2009, 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>
- <bool name="def_expect_ime_autopop">true</bool>
-</resources>
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <bool name="has_trackball">false</bool>
- <bool name="has_dual_notification_led">true</bool>
- <bool name="has_camera_button">false</bool>
- <bool name="has_rgb_notification_led">false</bool>
- <bool name="has_led_flash">true</bool>
- <bool name="has_search_button">false</bool>
-</resources>
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2011, 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>
- <!-- Autofocus parameters -->
- <!-- <string name="touchFocusParameter">touch-focus</string> -->
-</resources>
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<!-- Passion-specific Contacts app resources. -->
-<resources>
- <!-- Enable the onscreen "Dial" button in the dialer. -->
- <bool name="config_show_onscreen_dial_button">true</bool>
-</resources>
@@ -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.
-->
-<mms_config version="3">
+<mms_config version="4">
<!-- Maximum message size in bytes for a MMS message -->
<int name="maxMessageSize">1048576</int>
@@ -31,9 +32,31 @@
<int name="maxImageWidth">2592</int>
<!-- User-Agent parameter used in MMS http request -->
- <string name="userAgent">Passion</string>
+ <string name="userAgent">Leo</string>
<!-- UAProf URL -->
- <string name="uaProfUrl">http://www.htcmms.com.tw/Android/Common/nexusone/ua-profile.xml</string>
+ <string name="uaProfUrl">http://www.htcmms.com.tw/Android/Common/leo/ua-profile.xml</string>
+
+ <!-- Maximum number of recipients allowed per message. Use a value of -1
+ to indicate no limit. -->
+ <int name="recipientLimit">-1</int>
+
+ <!-- Maximum number of SMS message segments in a long text message before converting
+ the SMS message to an MMS message. -->
+ <int name="smsToMmsTextThreshold">4</int>
+
+ <!-- If true, The text message over 160 characters will be sent in multi part.
+ If false, The text message over 160 characters will be sent
+ via multi media message. -->
+ <bool name="enableMultipartSMS">false</bool>
+
+ <!-- If true, The mms support slide duration.
+ If false, The mms does not support slide duration and we have to
+ set duration value. -->
+ <bool name="enableSlideDuration">true</bool>
+
+ <!-- Maximum length for message text. Use a value of -1
+ to indicate default value -->
+ <int name="maxMessageTextSize">-1</int>
</mms_config>
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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.
--->
-
-<!-- Passion-specific phone app resources. -->
-<resources>
-
- <!-- Enable the onscreen touch UI for all states of the in-call UI. -->
- <!--<bool name="allow_incoming_call_touch_ui">true</bool>-->
- <!--<bool name="allow_in_call_touch_ui">true</bool>-->
-
- <!-- This is a device with capacitive buttons, so disable the feature
- where BACK rejects the current incoming call. (Since it's so
- easy to press the key accidentally as you pull the phone out of
- your pocket.) -->
- <!--<bool name="allow_back_key_to_reject_incoming_call">false</bool>-->
-
- <!-- Enable the onscreen "Dial" button in the emergency dialer. -->
- <bool name="config_show_onscreen_dial_button">true</bool>
-
- <!-- This device uses libaudio-qsd8k which implements
- AudioHardware::setMicMute(bool state) and AudioHardware::getMicMute(bool* state)
- so microphone muting calls should be routed through the AudioManager API. -->
- <bool name="send_mic_mute_to_AudioManager">true</bool>
-</resources>
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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>
- <!-- Whether or not there is a notification led that is too intrusive to be pulsing
- constantly -->
- <!--<bool name="has_intrusive_led">true</bool>-->
- <!-- Whether or not the dock settings are to be displayed for this device when docked -->
- <bool name="has_dock_settings">true</bool>
-</resources>
View
@@ -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
View
@@ -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
Oops, something went wrong.

0 comments on commit 84ce83d

Please sign in to comment.