Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AndroidBoard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)
#ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)

# include the non-open-source counterpart to this file
-include vendor/lge/thunderc/AndroidBoardVendor.mk
30 changes: 25 additions & 5 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
-include vendor/lge/thunderc/BoardConfigVendor.mk
-include device/lge/msm7x27-common/BoardConfigCommon.mk

#TARGET_KERNEL_CONFIG := cyanogenmod_p500_p509_defconfig
TARGET_KERNEL_CONFIG := aaathunderc-test1_defconfig
BOARD_KERNEL_CMDLINE := mem=471M console=ttyMSM2,115200n8 androidboot.hardware=thunderc
BOARD_USE_USB_MASS_STORAGE_SWITCH := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/thunderc/bluetooth
SMALLER_FONT_FOOTPRINT := true
COMMON_GLOBAL_CFLAGS += -DBOARD_CHARGING_CMDLINE_NAME='"lge.reboot"' -DBOARD_CHARGING_CMDLINE_VALUE='"pwroff"'
TARGET_BOOTLOADER_BOARD_NAME := thunderc
TARGET_OTA_ASSERT_DEVICE := thunderc,LS670,VM670
TARGET_OTA_ASSERT_DEVICE := thunderc,LS670,VM670,thunderc_LS670,thunderc_VM670

#TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
#BOARD_HAS_NO_SELECT_BUTTON := true
#TARGET_NO_BOOTLOADER := true
#BOARD_USES_RECOVERY_CHARGEMODE := false
#TARGET_RECOVERY_INITRC := device/lge/thunderc/init.recovery.rc
#twrp
#DEVICE_RESOLUTION := 320x480
#RECOVERY_GRAPHICS_USE_LINELENGTH := true
#TW_NO_REBOOT_BOOTLOADER := true
#LOCAL_CFLAGS += -DTW_NO_REBOOT_BOOTLOADER
#TW_CUSTOM_POWER_BUTTON := 107

#TARGET_RECOVERY_PIXEL_FORMAT := RGB_565
#TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565"

SMALLER_FONT_FOOTPRINT := true


#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/thunderc/bluetooth

P500_SPEAKER_IN_CALL_FIX := true

2 changes: 1 addition & 1 deletion bluetooth/bdroid_buildcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H

#define BTM_DEF_LOCAL_NAME "P500"
#define BTM_DEF_LOCAL_NAME "LGE-LS670"
#define BTA_DISABLE_DELAY 1000 /* in milliseconds */

#endif
8 changes: 8 additions & 0 deletions bluetooth/bt_vendor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# UART device port where Bluetooth controller is attached
UartPort = /dev/ttyHS0

# Firmware patch file location
FwPatchFilePath = /etc/firmware/

# Firmware patch file name
FwPatchFileName = BCM4325D1_004.002.004.0218.0248.hcd
Binary file added chargemode/chargerimages/battery_ani_01.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_ani_02.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_ani_03.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_ani_04.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_ani_05.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_bg.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_charging_01.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_charging_02.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_charging_03.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_charging_04.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_charging_05.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_charging_06.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_wait_ani_01.rle
Binary file not shown.
Binary file added chargemode/chargerimages/battery_wait_ani_02.rle
Binary file not shown.
Binary file added chargemode/chargerimages/black_bg.rle
Binary file not shown.
Binary file added chargemode/chargerlogo
Binary file not shown.
11 changes: 11 additions & 0 deletions checkbootreason
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/system/bin/sh

sleep 3
# See: Documentation/arm/msm/boot.txt
boot_reason=`cat /proc/sys/kernel/boot_reason`
# "reboot charge_reset" if boot_reason&1==1 (power button long press)
((($boot_reason&1)==1)) && reboot charge_reset

# Start CHARGER after boot_reason to prevent charging anims
exec /sbin/chargerlogo

2 changes: 1 addition & 1 deletion cm.dependencies → cm.dependencies~
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"target_path": "device/lge/msm7x27-common",
"branch": "cm-10.1"
}, {
"repository": "android_vendor_lge_thunderc",
"repository": "android_vendor_lge",
"target_path": "vendor/lge/thunderc",
"branch": "cm-10.1"
}, {
Expand Down
23 changes: 8 additions & 15 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
# Boot Animation
TARGET_SCREEN_HEIGHT := 480
TARGET_SCREEN_WIDTH := 320

# Include GSM stuff
$(call inherit-product, vendor/cm/config/cdma.mk)
# Inherit device configuration for thunderc.
$(call inherit-product, device/lge/thunderc/thunderc.mk)
# Boot Animation
TARGET_SCREEN_HEIGHT := 480
TARGET_SCREEN_WIDTH := 320

# Inherit some common cyanogenmod stuff.
$(call inherit-product, vendor/cm/config/tiny.mk)

# Include FM-Radio stuff
#$(call inherit-product, vendor/cyanogen/products/bcm_fm_radio.mk)
$(call inherit-product, vendor/cm/config/mini.mk)

PRODUCT_NAME := cm_thunderc
PRODUCT_BRAND := lge
Expand All @@ -20,12 +15,10 @@ PRODUCT_MODEL := LG-LS670
PRODUCT_MANUFACTURER := LGE
PRODUCT_CHARACTERISTICS := phone

PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=lge_thunderc \
BUILD_FINGERPRINT="lge/LS670/LS670:2.3.3/GRI40/LG-LS670-V20g.19C11F164C:user/release-keys" \
PRIVATE_BUILD_DESC="thunderc-user 2.3.3 GRI40 LG-LS670-V20g.19C11F164C release-keys"

# Release name and versioning
PRODUCT_RELEASE_NAME := LS670
PRODUCT_VERSION_DEVICE_SPECIFIC :=
-include vendor/cyanogen/products/common_versions.mk
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=lge_LS670 \
BUILD_FINGERPRINT="lge/LS670/LS670:2.3.3/GRI40/LG-LS670-V20g.19C11F164C:user/release-keys" \
PRIVATE_BUILD_DESC="thunderc-user 2.3.3 GRI40 LG-LS670-V20g.19C11F164C release-keys"
55 changes: 55 additions & 0 deletions configs/05mountsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/system/bin/sh
#
# mount ext partition from sd card

BB="logwrapper busybox";

if [ "$SD_EXT_DIRECTORY" = "" ];
then
SD_EXT_DIRECTORY=/sd-ext;
fi;

# find SD Card
for MMC_NUM in `seq 0 9`;
do
MMC_TYPE=`cat /sys/block/mmcblk$MMC_NUM/device/type`
if [ "$MMC_TYPE" = "SD" ];
then
# 2nd partition of sdcard should be the sd-ext if exist
SD_EXT_PART=/dev/block/mmcblk${MMC_NUM}p2
break
fi
done

if [ -b "$SD_EXT_PART" ];
then
log -p i -t mountsd "Checking filesystems..";

# fsck the sdcard filesystem first
if [ -x `which e2fsck` ];
then
e2fsck -y $SD_EXT_PART
e2fsk_exitcode=$?
else
echo "executable e2fsck not found, assuming no filesystem errors"
e2fsk_exitcode=0
fi

# set property with exit code in case an error occurs
setprop cm.e2fsck.errors $e2fsk_exitcode;
if [ "$e2fsk_exitcode" -lt 2 ];
then
# mount and set perms
$BB mount -o noatime,nodiratime,barrier=1 $SD_EXT_PART $SD_EXT_DIRECTORY;
if [ "$?" = 0 ];
then
$BB chown 1000:1000 $SD_EXT_DIRECTORY;
$BB chmod 771 $SD_EXT_DIRECTORY;
log -p i -t mountsd "$SD_EXT_DIRECTORY successfully mounted";
else
log -p e -t mountsd "Unable to mount filesystem for $SD_EXT_DIRECTORY!";
fi
else
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi
fi
8 changes: 8 additions & 0 deletions configs/12Seeder
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/system/bin/sh
#Script to initiate rngd at boot by Ryuinferno @ XDA 2012

mount -o remount,rw -t auto /data
rngd
sleep 2
echo -8 > /proc/$(pgrep rngd)/oom_adj
renice +8 rngd
90 changes: 90 additions & 0 deletions configs/40a2sd
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/system/bin/sh
#################################
## CronMod A2SD+ - Final ##
## Written by CronicCorey @xda ##
## 40a2sd ##
#################################

## Set SD cache size
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

## Unmount /sd-ext if it already mounted
busybox umount /sd-ext;

## Mount mmcblk0p2 to /sd-ext
busybox mount -o noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /sd-ext;
mountext=`busybox mount | egrep 'ext2|ext3|ext4'`;
if [ -n "$mountext" ];
then
busybox chown 1000:1000 /sd-ext;
busybox chmod 771 /sd-ext;
fi;

## Create A2SD directories
if [ ! -e /sd-ext/app ]
then
busybox mkdir /sd-ext/app;
busybox mv /data/app/* /sd-ext/app;
fi;

if [ ! -e /sd-ext/app-private ]
then
busybox mkdir /sd-ext/app-private;
busybox mv /data/app-private/* /sd-ext/app-private;
fi;

if [ ! -e /sd-ext/dalvik-cache ]
then
busybox mkdir /sd-ext/dalvik-cache;
busybox mv /data/dalvik-cache/* /sd-ext/dalvik-cache;
fi;

## Bind A2SD directories
busybox mount -o bind /sd-ext/app /data/app;
busybox chown 1000:1000 /sd-ext/app;
busybox chmod 771 /sd-ext/app;

busybox mount -o bind /sd-ext/app-private /data/app-private;
busybox chown 1000:1000 /sd-ext/app-private;
busybox chmod 771 /sd-ext/app-private;

busybox mount -o bind /sd-ext/dalvik-cache /data/dalvik-cache;
busybox chown 1000:1000 /sd-ext/dalvik-cache;
busybox chmod 771 /sd-ext/dalvik-cache;

sync;

############################################################################################################################################################

######################################################################
## Automatic ZipAlign by Wes Garner ##
## ZipAlign files in /data that have not been previously ZipAligned ##
## Thanks to oknowton for the changes ##
######################################################################

LOG_FILE=/data/zipalign.log
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "Starting Automatic ZipAlign" | tee -a $LOG_FILE;
for apk in /data/app/*.apk ; do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ]; then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ]; then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
echo "Automatic ZipAlign finished" | tee -a $LOG_FILE;
3 changes: 3 additions & 0 deletions configs/999youtube
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/system/bin/sh
sysctl -w fs.file-max=165164

52 changes: 52 additions & 0 deletions configs/audio_policy.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Global configuration section: lists input and output devices always present on the device
# as well as the output device selected by default.
# Devices are designated by a string that corresponds to the enum in audio.h

global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER
default_output_device AUDIO_DEVICE_OUT_SPEAKER
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC
}

# audio hardware module section: contains descriptors for all audio hw modules present on the
# device. Each hw module node is named after the corresponding hw module library base name.
# For instance, "primary" corresponds to audio.primary.<device>.so.
# The "primary" module is mandatory and must include at least one output with
# AUDIO_OUTPUT_FLAG_PRIMARY flag.
# Each module descriptor contains one or more output profile descriptors and zero or more
# input profile descriptors. Each profile lists all the parameters supported by a given output
# or input stream category.
# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".

audio_hw_modules {
primary {
outputs {
primary {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_PROXY
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
}
inputs {
primary {
sampling_rates 8000|11025|16000|22050|32000|44100
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
}
}
}
a2dp {
outputs {
a2dp {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_ALL_A2DP
}
}
}
}
File renamed without changes.
Binary file added configs/rngd
Binary file not shown.
File renamed without changes.
1 change: 1 addition & 0 deletions configs/wpa_supplicant.conf

Large diffs are not rendered by default.

Loading