Compare commits

...

52 Commits

Author SHA1 Message Date
milaq
f288784d3d goomanager: update to 2.1.2 2012-10-26 14:57:51 +02:00
Micha LaQua
aafeeb796b update gb lunchcombo 2012-10-16 22:22:43 +03:00
21568c23d1 update goomanager apk 2012-06-07 10:27:12 +01:00
7f59896ab0 include GooManager and goo.im build props 2012-05-23 09:04:04 +01:00
Michael
525cc98c92 remove tts voice files to save some space (can still be downloaded from within tts settings) 2012-05-03 12:41:10 +03:00
milaq
a3ad693d9f bootlogo: readd a logo to circumvent ugly artifacts at boottime 2012-04-09 18:12:33 +02:00
milaq
874aad284b revert webkit accel - not stable enough (causes occasional kps) (1/2) 2012-03-29 17:44:04 +02:00
Michael
a4b907fe2d scrolling cache: dont disable it by default; while it increases performance for some it degrades performance for too many other apps. depend on this commit instead: http://review.cyanogenmod.com/#change,12555 2012-03-19 13:50:33 +01:00
Michael
638140c968 init: read_ahead tweaks only for system, cache and userdata 2012-03-15 16:04:45 +01:00
Michael
3158c6432a follow bravo, passion: Decreased max file size, height and width for MMS to comply with the 300kb file size limit 2012-03-11 16:22:45 +01:00
Michael
5d11aa1e77 power profile: correct battery capacity and larger values for screen vs bravo because of the bigger screen (taken from ace) 2012-03-11 16:16:38 +01:00
Michael
c4122e8165 camera: enable touchfocus 2012-03-09 19:48:40 +01:00
Michael
be1436191d follow bravo, passion: increase default heap 2012-03-09 19:24:11 +01:00
Michael
821247dd13 autobacklight: further tweak values, only use valid lightsensor value steps and improve readablity. also use correct keyboard backlight array size (even though we dont have one);
general: remove duplicate config_keyboardTapVibePattern entry
2012-03-09 16:28:14 +01:00
milaq
704acb8b90 media: add profiles for fake frontcamera (e.g. to prevent camera app fc when selecting front camera) 2012-03-07 18:04:35 +01:00
milaq
4050e34266 media: readd 720p profile 2012-03-07 17:52:35 +01:00
milaq
d36c7b8096 autobrightness: use a bit more conservative values as default 2012-03-07 16:45:02 +01:00
milaq
6e9881209a dont copy prebuilt firmware, we build the same from source 2012-03-06 20:46:46 +01:00
milaq
d766ef5a69 set c/c++ flags 2012-03-05 16:22:29 +01:00
milaq
a97b2c4938 support for webkit acceleration (1/2) 2012-03-05 16:21:31 +01:00
579f8b58e9 Revert: leo: added htc logo via logo.rle 2012-03-04 01:06:42 +00:00
81806ad79e leo: change place where the postrecoveryboot.sh is copied, better in leo.mk 2012-03-04 01:04:22 +00:00
Michael
dd01708929 as discussed on irc: inherit from languages_full.mk and add hdpi afterwards 2012-03-03 15:25:34 +01:00
zeusk
cc12a3f420 fix: default language and the hdpi resources issue 2012-03-03 19:00:19 +05:30
milaq
60e8019aa3 follow cyanogen: fix PRODUCT_LOCALES 2012-03-03 13:50:12 +01:00
eec7a73147 Merge pull request #7 from milaq/gingerbread
compositing and blur
2012-02-26 11:37:19 -08:00
milaq
84d14bea31 Merge remote-tracking branch 'upstream/gingerbread' into gingerbread 2012-02-26 14:55:06 +01:00
5cea6496ee Merge pull request #6 from zeusk/patch-2
Update full_leo.mk
2012-02-25 12:20:32 -08:00
zeusk
252638d8bd Update leo.mk 2012-02-25 14:19:51 +05:30
Michael
c71060864a disable scrolling cache by default for much more smooth scrolling 2012-02-24 15:41:46 +01:00
Michael
82baa95735 + reenable full alpha compositing
+ deactivate background blur for smoother window animations in some cases
2012-02-24 15:37:13 +01:00
9b5158465c Merge pull request #3 from milaq/gingerbread
new notification lights
2012-02-23 03:36:15 -08:00
milaq
3b9d7a4361 new notification lights in conjunction with custom autobrightness and dim.
the following stuff works properly now:
+ autobrightness
+ custom autobrightness values
+ blinking leds (e.g. for notifications) - green and amber
+ static leds (e.g. for charging) - green and amber
+ screen dimming
+ custom screen dim level
2012-02-23 12:34:55 +01:00
6e7d399ce8 Merge pull request #2 from milaq/gingerbread
media_profiles tweaking
2012-02-08 10:23:01 -08:00
4403e082f2 leo: add GPSSHIM compilation 2012-02-08 09:18:18 +00:00
milaq
9131f97531 media_profiles: lower -hd- preset to a resolution which is smoothly recordable; -high- preset is now w720; fix max bitrate for m4v 2012-02-02 15:53:24 +01:00
bcfb89fdd1 Merge pull request #1 from milaq/gingerbread
leo: various tweaks and fixes
2012-01-31 13:21:29 -08:00
milaq
3474867137 tweak media_profiles to ensure smooth video capture with the -high- profile 2012-01-31 21:34:02 +01:00
milaq
71dd3b0889 init: remove ppp stuff - this is handled by init.d.97ppp 2012-01-31 21:25:37 +01:00
milaq
dbf7872ab3 init: use default bravo read_ahead_kb and readd blocks 0-2 2012-01-31 21:24:16 +01:00
milaq
afd59f046c init: defaulting to vanilla CM7 (android_build.init.rc) values for lowmemkiller 2012-01-31 21:20:06 +01:00
milaq
9811344fed init: remove unused ondemand settings 2012-01-31 21:18:25 +01:00
milaq
2625364d21 init: remove lowmemkiller slot settings - this is also handled by init.rc from android_build. so no need to do it again 2012-01-31 21:14:33 +01:00
milaq
a64f0a963d init: remove duplicate camera symlinking 2012-01-31 21:13:31 +01:00
Michael
429607ba80 fix double entry in propfile extraction process 2012-01-31 21:04:14 +01:00
Michael
6c5838053d update kernel cmdline 2012-01-31 21:04:14 +01:00
Michael
290c650e92 omit minfile and check_filepages for now (may be revisited) 2012-01-31 21:04:14 +01:00
milaq
d1a8fa8c46 bcm4329: update to GRI40 2012-01-31 21:04:14 +01:00
cdf9033ff3 leo: dynamically add all modules in the prebuilt/modules folder 2011-12-08 01:41:47 +00:00
703b1be3bd leo: added htc logo via logo.rle 2011-11-27 21:18:11 +00:00
542be5d897 leo: reverted BOARD_HAS_LARGE_FILESYSTEM 2011-11-18 02:41:41 +00:00
0b536dfc40 leo: re-arrange BoardConfig 2011-11-18 02:10:43 +00:00
21 changed files with 248 additions and 214 deletions

View File

@ -25,12 +25,5 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)
file := $(TARGET_RECOVERY_ROOT_OUT)/sbin/postrecoveryboot.sh
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/postrecoveryboot.sh | $(ACP)
$(transform-prebuilt-to-target)
# include the non-open-source counterpart to this file
-include vendor/htc/leo/AndroidBoardVendor.mk

View File

@ -28,53 +28,29 @@ USE_CAMERA_STUB := false
# inherit from the proprietary version
-include vendor/htc/leo/BoardConfigVendor.mk
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := qsd8k
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
# include recovery offmode stuff
-include device/htc/7x30-recovery/BoardConfigCommon.mk
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_BOOTLOADER_BOARD_NAME := htcleo
# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_6_X
BOARD_WLAN_DEVICE := bcm4329
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcm4329.ko"
WIFI_DRIVER_FW_STA_PATH := "/vendor/firmware/fw_bcm4329.bin"
WIFI_DRIVER_FW_AP_PATH := "/vendor/firmware/fw_bcm4329_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/vendor/firmware/fw_bcm4329.bin nvram_path=/proc/calibration"
WIFI_DRIVER_MODULE_NAME := "bcm4329"
TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
BOARD_KERNEL_CMDLINE := no_console_suspend=1 wire.search_count=5
TARGET_NO_BOOTLOADER := true
BOARD_USES_GENERIC_AUDIO := false
BOARD_KERNEL_BASE := 0x11800000
BOARD_KERNEL_NEW_PPPOX := true
BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_VENDOR_QCOM_AMSS_VERSION := 1550
BOARD_VENDOR_USE_AKMD := akm8973
TARGET_BOARD_PLATFORM := qsd8k
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
TARGET_BOOTLOADER_BOARD_NAME := htcleo
BOARD_EGL_CFG := device/htc/leo/prebuilt/egl.cfg
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
TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
TARGET_CUSTOM_RELEASETOOL := device/htc/leo/releasetools/squisher
# # cat /proc/mtd
@ -92,14 +68,43 @@ BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x09600000 # limited so we enforce room
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0d900000
BOARD_FLASH_BLOCK_SIZE := 131072
# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
WPA_SUPPLICANT_VERSION := VER_0_6_X
BOARD_WLAN_DEVICE := bcm4329
WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/bcm4329.ko"
WIFI_DRIVER_FW_STA_PATH := "/vendor/firmware/fw_bcm4329.bin"
WIFI_DRIVER_FW_AP_PATH := "/vendor/firmware/fw_bcm4329_apsta.bin"
WIFI_DRIVER_MODULE_ARG := "firmware_path=/vendor/firmware/fw_bcm4329.bin nvram_path=/proc/calibration"
WIFI_DRIVER_MODULE_NAME := "bcm4329"
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_USES_GENERIC_AUDIO := false
BOARD_KERNEL_NEW_PPPOX := true
BOARD_USES_QCOM_LIBS := true
BOARD_VENDOR_QCOM_AMSS_VERSION := 1550
BOARD_VENDOR_USE_AKMD := akm8973
BOARD_USE_FROYO_LIBCAMERA := true
BOARD_NO_RGBX_8888 := true
BOARD_USE_KINETO_COMPATIBILITY := true
BOARD_HAVE_FM_RADIO := true
BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
TARGET_USES_16BPPSURFACE_FOR_OPAQUE := true
TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
TARGET_PREBUILT_KERNEL := device/htc/leo/prebuilt/kernel
TARGET_PREBUILT_RECOVERY_KERNEL := device/htc/leo/prebuilt/recovery_kernel
# to enable the GPS HAL
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := leo
# AMSS version to use for GPS
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
BOARD_USES_GPSSHIM := true
BOARD_GPS_LIBRARIES := libgps librpc

View File

@ -24,6 +24,9 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, device/htc/leo/leo_eu.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full.mk)
# Leo uses high-density artwork where available
PRODUCT_LOCALES += hdpi
# Discard inherited values and use our own instead.
PRODUCT_NAME := full_leo
PRODUCT_DEVICE := leo

14
goo.mk Normal file
View File

@ -0,0 +1,14 @@
#
# Copyright (C) 2012 the cmhtcleo team
#
# GooManager specific stuff
#
PRODUCT_PROPERTY_OVERRIDES += \
ro.goo.developerid=cmhtcleo \
ro.goo.rom=cm7nightly \
ro.goo.version=$(shell date +%s)
# include goo manager
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/GooManager.apk:system/app/GooManager.apk

30
leo.mk
View File

@ -25,6 +25,11 @@
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/logo.rle:root/logo.rle
# Copy the postrecoveryboot.sh to the relevant directory
PRODUCT_COPY_FILES += \
device/htc/leo/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
@ -66,10 +71,6 @@ PRODUCT_PACKAGES += \
libhtc_ril_wrapper
# leo uses high-density artwork where available
PRODUCT_LOCALES := hdpi
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/vold.fstab:system/etc/vold.fstab
@ -79,23 +80,15 @@ PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/keylayout/leo-keypad.kcm.bin:system/usr/keychars/leo-keypad.kcm.bin \
device/htc/leo/prebuilt/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl
# Firmware
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/firmware/fw_bcm4329.bin:system/etc/firmware/fw_bcm4329.bin \
device/htc/leo/prebuilt/firmware/fw_bcm4329_apsta.bin:system/etc/firmware/fw_bcm4329_apsta.bin
#GSM APN LIST
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
# kernel modules
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/modules/bcm4329.ko:system/lib/modules/bcm4329.ko \
device/htc/leo/prebuilt/modules/cifs.ko:system/lib/modules/cifs.ko \
device/htc/leo/prebuilt/modules/msm_rmnet.ko:system/lib/modules/msm_rmnet.ko \
device/htc/leo/prebuilt/modules/nls_utf8.ko:system/lib/modules/nls_utf8.ko \
device/htc/leo/prebuilt/modules/tun.ko:system/lib/modules/tun.ko \
device/htc/leo/prebuilt/modules/fuse.ko:system/lib/modules/fuse.ko
# Kernel Modules
PRODUCT_COPY_FILES += $(shell \
find device/htc/leo/prebuilt/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
# kernel
PRODUCT_COPY_FILES += \
@ -120,5 +113,8 @@ $(call inherit-product, device/htc/leo/media_a1026.mk)
# stuff common to all HTC phones
$(call inherit-product, device/htc/common/common.mk)
# goo.im stuff
$(call inherit-product, device/htc/leo/goo.mk)
PRODUCT_NAME := htc_leo
PRODUCT_DEVICE := leo

View File

@ -1,5 +1,6 @@
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2012 milaq
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -44,9 +45,6 @@ static char const*const GREEN_LED_FILE
static char const*const AMBER_LED_FILE
= "/sys/class/leds/amber/brightness";
static char const*const RED_LED_FILE
= "/sys/class/leds/red/brightness";
static char const*const LCD_FILE
= "/sys/class/leds/lcd-backlight/brightness";
@ -56,13 +54,16 @@ static char const*const AMBER_BLINK_FILE
static char const*const GREEN_BLINK_FILE
= "/sys/class/leds/green/blink";
static char const*const RED_BLINK_FILE
= "/sys/class/leds/red/blink";
static char const*const BUTTON_FILE
= "/sys/class/leds/button-backlight/brightness";
enum {
LED_AMBER,
LED_GREEN,
LED_BLUE,
LED_BLANK,
};
/**
* device methods
@ -128,69 +129,75 @@ set_light_buttons(struct light_device_t* dev,
return err;
}
static int
static void
set_speaker_light_locked(struct light_device_t* dev,
struct light_state_t const* state)
{
int len;
int alpha, red, green, blue;
int blink, freq, pwm;
int onMS, offMS;
unsigned int colorRGB;
unsigned int colorRGB = state->color & 0xFFFFFF;
unsigned int color = LED_BLANK;
switch (state->flashMode) {
case LIGHT_FLASH_TIMED:
blink = 1;
onMS = state->flashOnMS;
offMS = state->flashOffMS;
break;
case LIGHT_FLASH_HARDWARE:
blink = 1;
onMS = state->flashOnMS;
offMS = state->flashOffMS;
break;
case LIGHT_FLASH_NONE:
blink = 0;
onMS = 0;
offMS = 0;
break;
default:
blink = 1;
onMS = 0;
offMS = 0;
break;
}
if (colorRGB & 0xFF)
color = LED_BLUE;
if ((colorRGB >> 8)&0xFF)
color = LED_GREEN;
if ((colorRGB >> 16)&0xFF)
color = LED_AMBER;
colorRGB = state->color;
int amber = (colorRGB >> 16)&0xFF;
int green = (colorRGB >> 8)&0xFF;
int blue = (colorRGB)&0xFF;
#if 0
LOGD("set_speaker_light_locked colorRGB=%08X, onMS=%d, offMS=%d\n",
colorRGB, onMS, offMS);
#endif
switch (state->flashMode) {
case LIGHT_FLASH_TIMED:
switch (color) {
case LED_AMBER:
write_int (AMBER_BLINK_FILE, 2);
write_int (GREEN_LED_FILE, 0);
break;
case LED_GREEN:
write_int (GREEN_BLINK_FILE, 3);
write_int (AMBER_LED_FILE, 0);
break;
case LED_BLUE:
write_int (GREEN_BLINK_FILE, 3);
write_int (AMBER_LED_FILE, 0);
break;
case LED_BLANK:
write_int (AMBER_BLINK_FILE, 0);
write_int (GREEN_BLINK_FILE, 0);
break;
default:
LOGE("set_led_state colorRGB=%08X, unknown color\n",
colorRGB);
break;
}
break;
case LIGHT_FLASH_NONE:
switch (color) {
case LED_AMBER:
write_int (AMBER_LED_FILE, 1);
write_int (GREEN_LED_FILE, 0);
break;
case LED_GREEN:
write_int (AMBER_LED_FILE, 0);
write_int (GREEN_LED_FILE, 1);
break;
case LED_BLUE:
write_int (AMBER_LED_FILE, 0);
write_int (GREEN_LED_FILE, 1);
break;
case LED_BLANK:
write_int (AMBER_LED_FILE, 0);
write_int (GREEN_LED_FILE, 0);
break;
red = (colorRGB >> 16) & 0xFF;
green = (colorRGB >> 8) & 0xFF;
blue = colorRGB & 0xFF;
}
break;
default:
LOGE("set_led_state colorRGB=%08X, unknown mode %d\n",
colorRGB, state->flashMode);
}
if (red) {
write_int(GREEN_LED_FILE, 0);
write_int(AMBER_LED_FILE, 1);
if (blink) {
//blink must come after brightness change
write_int(AMBER_BLINK_FILE, 1);
}
} else if (green || blue) {
write_int(AMBER_LED_FILE, 0);
write_int(GREEN_LED_FILE, 1);
if (blink) {
write_int(GREEN_BLINK_FILE, 1);
}
} else {
write_int(GREEN_LED_FILE, 0);
write_int(AMBER_LED_FILE, 0);
}
return 0;
}
static void
@ -292,7 +299,7 @@ const struct hw_module_t HAL_MODULE_INFO_SYM = {
.version_major = 1,
.version_minor = 0,
.id = LIGHTS_HARDWARE_MODULE_ID,
.name = "QCT MSM7K lights Module",
.author = "Google, Inc.",
.name = "HTC leo lights module",
.author = "Micha LaQua",
.methods = &lights_module_methods,
};

View File

@ -21,17 +21,21 @@
for different hardware and product builds. -->
<resources>
<!-- Flag indicating whether the surface flinger has limited
<!-- Flag indicating whether the surface flinger has limited
alpha compositing functionality in hardware. If set, the window
manager will disable alpha trasformation in animations where not
strictly needed. -->
<bool name="config_sf_limitedAlpha">true</bool>
<bool name="config_sf_limitedAlpha">false</bool>
<!-- Flag indicating whether the surface flinger is inefficient
at performing a blur. Used by parts of the UI to turn off
the blur effect where it isn't worth the performance hit. -->
<bool name="config_sf_slowBlur">true</bool>
<!-- Flag indicating whether we should enable the automatic brightness in Settings.
config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
<bool name="config_automatic_brightness_available">true</bool>
<!-- disable menu hard key on HD2 in non-pattern lockscreen -->
<bool name="config_disableMenuKeyInLockScreen">true</bool>
@ -46,15 +50,13 @@
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>11</item>
<item>41</item>
<item>91</item>
<item>161</item>
<item>226</item>
<item>321</item>
<item>641</item>
<item>1281</item>
<item>2601</item>
<item>160</item>
<item>225</item>
<item>320</item>
<item>640</item>
<item>1280</item>
<item>2600</item>
<item>5800</item>
</integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values
@ -62,15 +64,13 @@
than the size of the config_autoBrightnessLevels array.
-->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>89</item>
<item>89</item>
<item>126</item>
<item>164</item>
<item>164</item>
<item>164</item>
<item>187</item>
<item>210</item>
<item>233</item>
<item>80</item>
<item>100</item>
<item>120</item>
<item>140</item>
<item>160</item>
<item>180</item>
<item>220</item>
<item>255</item>
</integer-array>
@ -79,8 +79,6 @@
than the size of the config_autoBrightnessLevels array.
-->
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>0</item>
@ -94,7 +92,7 @@
<!-- Array of output values for keyboard 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.
Passion has no keyboard so all values are zero.
Leo has no keyboard so all values are zero.
-->
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
<item>0</item>
@ -102,6 +100,9 @@
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
<!-- Component name of the default wallpaper. This will be ImageWallpaper if not
@ -163,12 +164,6 @@
<item>"wl0.1"</item>
</string-array>
<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
<integer-array name="config_keyboardTapVibePattern">
<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>

View File

@ -19,12 +19,12 @@
<device name="Android">
<item name="none">0</item>
<item name="screen.on">100</item>
<item name="screen.on">110</item>
<item name="bluetooth.active">142</item> <!-- In call -->
<item name="bluetooth.on">0.3</item>
<!-- CPU wakelock held for 830ms on bluetooth headset at command. 43mA * 830 -->
<item name="bluetooth.at">35690</item>
<item name="screen.full">160</item>
<item name="screen.full">250</item>
<item name="wifi.on">4</item>
<item name="wifi.active">120</item>
<item name="wifi.scan">220</item>
@ -32,7 +32,7 @@
<item name="dsp.video">88</item>
<item name="radio.active">300</item>
<item name="gps.on">170</item>
<item name="battery.capacity">1390</item>
<item name="battery.capacity">1230</item>
<item name="radio.scanning">70</item>
<array name="radio.on"> <!-- Strength 0 to BINS-1 -->
<value>3</value>

View File

@ -21,5 +21,5 @@
for different hardware and product builds. -->
<resources>
<!-- Autofocus parameters -->
<!-- <string name="touchFocusParameter">touch-focus</string> -->
<string name="touchFocusParameter">touch-focus</string>
</resources>

View File

@ -22,13 +22,13 @@
<mms_config version="3">
<!-- Maximum message size in bytes for a MMS message -->
<int name="maxMessageSize">1048576</int>
<int name="maxMessageSize">307200</int>
<!-- Maximum height for an attached image -->
<int name="maxImageHeight">1944</int>
<int name="maxImageHeight">768</int>
<!-- Maximum width for an attached image -->
<int name="maxImageWidth">2592</int>
<int name="maxImageWidth">1024</int>
<!-- User-Agent parameter used in MMS http request -->
<string name="userAgent">Passion</string>

View File

@ -6,11 +6,16 @@ if [[ "`grep clk= /proc/cmdline`" == "" ]]; then
sed -i 's/\/boot\t\tmtd/\/boot\t\tyaffs2/g' /etc/recovery.fstab
fi
# Commented out as it may or may not require this
## Required for twrp recovery
#mount /dev/block/mmcblk0p2 /sd-ext | grep sd-ext | awk '{print $5}'
#FS=`mount | grep sd-ext | awk '{print $5}'`
#umount /sd-ext
#sed -i 's/\/sd-ext\ \ \ \ \ auto/\/sd-ext\t\t'$FS'/g' /etc/recovery.fstab
#
#if [[ "`grep mmcblk0p2 /etc/fstab` " != "" ]]; then
#sed -i /mmcblk0p2/d /etc/fstab
#fi
#
#cat >> /etc/fstab << EOF
#/dev/block/mmcblk0p2 /sd-ext $FS rw
#EOF

BIN
prebuilt/GooManager.apk Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,10 +1,6 @@
on init
export TERMINFO /system/etc/terminfo
symlink /dev/msm_camera/control0 /dev/msm_camera/control1
symlink /dev/msm_camera/frame0 /dev/msm_camera/frame1
symlink /dev/msm_camera/config0 /dev/msm_camera/config1
write /proc/sys/kernel/sched_min_granularity_ns 100000
on fs
@ -49,11 +45,6 @@ on boot
chown system system /data/misc/screen_lock_status
chmod 644 /data/misc/screen_lock_status
# Write value must be consistent with the above properties.
# Note that the driver only supports 6 slots, so we have HOME_APP at the
# same memory level as services.
write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15
# Permissions for liblights
chown system system /sys/class/leds/green/brightness
chown system system /sys/class/leds/green/blink
@ -79,11 +70,9 @@ on boot
setprop ro.ril.def.agps.mode 2
# performance tweaks for flash
write /sys/block/mtdblock3/bdi/read_ahead_kb 2048
write /sys/block/mtdblock4/bdi/read_ahead_kb 2048
write /sys/block/mtdblock5/bdi/read_ahead_kb 2048
# increase read throughput from sd card
write /sys/block/mmcblk0/bdi/read_ahead_kb 204
write /sys/block/mtdblock3/bdi/read_ahead_kb 4
write /sys/block/mtdblock4/bdi/read_ahead_kb 4
write /sys/block/mtdblock5/bdi/read_ahead_kb 4
# for wireless modem
chown system system /sys/module/serial/parameters/modem_enabled
@ -190,34 +179,9 @@ on boot
chmod 666 /sys/class/i2c-adapter/i2c-0/0-0018/scale
chmod 666 /sys/class/i2c-adapter/i2c-0/0-0019/scale
# Power Management
# write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 40000
# Overwrite framework low memory killer minfree setting
write /sys/module/lowmemorykiller/parameters/minfree 3584,4096,6144,7168,7680,8192
# Enable low memory killer to check file pages
write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144
write /sys/module/lowmemorykiller/parameters/check_filepages
# PPP stuff
chown radio radio /dev/smd1
chown root radio /system/etc/ppp
chown root root /system/bin/pppd;
chmod 755 /system/etc/ppp/*
chmod 4755 /system/bin/pppd
if [ -f /system/ppp ]
then
# PPP enabled, doing PPP specific stuff
# Create link for resolv.conf (generated by pppd)
symlink /etc/ppp/resolv.conf /etc/resolv.conf
# Tweak kernel low memory handling
write /proc/sys/vm/lowmem_reserve_ratio 8 8
write /proc/sys/vm/min_free_kbytes 8192
fi
#write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144
#write /sys/module/lowmemorykiller/parameters/check_filepages 1
service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
--baudrate 3000000 --patchram /etc/firmware/bcm4329.hcd /dev/ttyHS0

BIN
prebuilt/logo.rle Executable file

Binary file not shown.

View File

@ -77,7 +77,7 @@
-->
<MediaSettings>
<!-- Each camcorder profile defines a set of predefined configuration parameters -->
<CamcorderProfiles>
<CamcorderProfiles cameraId="0">
<EncoderProfile quality="hd" fileFormat="mp4" duration="60">
<Video codec="h264"
@ -94,14 +94,63 @@
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="m4v"
bitRate="2000000"
bitRate="6000000"
width="800"
height="480"
frameRate="30" />
frameRate="24" />
<Audio codec="aac"
bitRate="48000"
sampleRate="22050"
bitRate="96000"
sampleRate="16000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="h263"
bitRate="256000"
width="176"
height="144"
frameRate="15" />
<Audio codec="amrnb"
bitRate="12200"
sampleRate="8000"
channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
</CamcorderProfiles>
<CamcorderProfiles cameraId="1">
<EncoderProfile quality="hd" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="6000000"
width="1280"
height="720"
frameRate="24" />
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="1" />
</EncoderProfile>
<EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="m4v"
bitRate="6000000"
width="800"
height="480"
frameRate="24" />
<Audio codec="aac"
bitRate="96000"
sampleRate="16000"
channels="1" />
</EncoderProfile>
@ -148,7 +197,7 @@
minFrameRate="1" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="2000000"
minBitRate="64000" maxBitRate="6000000"
minFrameWidth="176" maxFrameWidth="800"
minFrameHeight="144" maxFrameHeight="480"
minFrameRate="1" maxFrameRate="30" />
@ -177,4 +226,4 @@
-->
<VideoDecoderCap name="wmv" enabled="false"/>
<AudioDecoderCap name="wma" enabled="false"/>
</MediaSettings>
</MediaSettings>

View File

@ -5,7 +5,6 @@ etc/AudioBTID.csv
etc/AdieHWCodecSetting.csv
etc/firmware/BCM4329B1_002.002.023.0360.0362.hcd
etc/firmware/BCM4329B1_002.002.023.0436.0439.hcd
etc/firmware/BCM4329B1_002.002.023.0436.0439.hcd
etc/firmware/BCM4329B1_002.002.023.0511.0538.hcd
etc/firmware/bcm4329.hcd
etc/firmware/htcleo.acdb

View File

@ -80,6 +80,11 @@ mkdir $REPACK/ota
cd $REPACK/ota
printf "Unpacking $OTAPACKAGE..."
unzip $QUIET $OTAPACKAGE
echo
printf "leo has limited diskspace so lets remove some unwanted stuff..."
rm -rf $REPACK/ota/system/tts
echo
cd $REPACK/ota/system/framework
$OPTICHARGER framework-res.apk

View File

@ -36,7 +36,7 @@ ro.sf.lcd_density=240
mobiledata.interfaces=rmnet0,rmnet1,rmnet2,ppp0
# This is a high density device with more memory, so larger vm heaps for it.
dalvik.vm.heapsize=32m
dalvik.vm.heapsize=48m
# leo have huge 250Mb unwritable system and small 50Mb cache .
dalvik.vm.dexopt-data-only=1

View File

@ -20,5 +20,4 @@
# In particular, you can add lunch options with the add_lunch_combo
# function: add_lunch_combo generic-eng
add_lunch_combo htc_leo-userdebug
add_lunch_combo htc_leo-eng
add_lunch_combo cyanogen_leo-eng