Compare commits
52 Commits
ics
...
gingerbrea
Author | SHA1 | Date | |
---|---|---|---|
|
f288784d3d | ||
|
aafeeb796b | ||
21568c23d1 | |||
7f59896ab0 | |||
|
525cc98c92 | ||
|
a3ad693d9f | ||
|
874aad284b | ||
|
a4b907fe2d | ||
|
638140c968 | ||
|
3158c6432a | ||
|
5d11aa1e77 | ||
|
c4122e8165 | ||
|
be1436191d | ||
|
821247dd13 | ||
|
704acb8b90 | ||
|
4050e34266 | ||
|
d36c7b8096 | ||
|
6e9881209a | ||
|
d766ef5a69 | ||
|
a97b2c4938 | ||
579f8b58e9 | |||
81806ad79e | |||
|
dd01708929 | ||
|
cc12a3f420 | ||
|
60e8019aa3 | ||
eec7a73147 | |||
|
84d14bea31 | ||
5cea6496ee | |||
|
252638d8bd | ||
|
c71060864a | ||
|
82baa95735 | ||
9b5158465c | |||
|
3b9d7a4361 | ||
6e7d399ce8 | |||
4403e082f2 | |||
|
9131f97531 | ||
bcfb89fdd1 | |||
|
3474867137 | ||
|
71dd3b0889 | ||
|
dbf7872ab3 | ||
|
afd59f046c | ||
|
9811344fed | ||
|
2625364d21 | ||
|
a64f0a963d | ||
|
429607ba80 | ||
|
6c5838053d | ||
|
290c650e92 | ||
|
d1a8fa8c46 | ||
cdf9033ff3 | |||
703b1be3bd | |||
542be5d897 | |||
0b536dfc40 |
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
14
goo.mk
Normal 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
30
leo.mk
@ -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
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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
BIN
prebuilt/GooManager.apk
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
BIN
prebuilt/logo.rle
Executable file
Binary file not shown.
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user