Skip to content

Commit

Permalink
Added liquid support (work in progress)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentdinclaux committed Jan 6, 2010
1 parent 5a4179f commit 32af109
Show file tree
Hide file tree
Showing 48 changed files with 1,165 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hero/unzip-files.sh
Expand Up @@ -2,7 +2,7 @@

mkdir -p proprietary

ZIP=update-signed.zip
ZIP=update-hero.zip

unzip -j -o ../../../$ZIP system/etc/AudioFilter.csv system/etc/AudioPara4.csv system/etc/AudioPreProcess.csv system/etc/firmware/tiinit_5.3.53.bts system/etc/firmware/avpr.bts system/etc/firmware/brf6300.bin system/etc/firmware/fmc_init_1273.2.bts system/etc/firmware/fm_rx_init_1273.2.bts system/etc/firmware/vac_config.ini system/etc/gps.conf system/etc/wifi/Fw1251r1c.bin system/lib/libhtc_acoustic.so system/lib/libhtc_ril.so system/lib/hw/sensors.hero.so system/usr/keychars/hero-keypad.kcm.bin system/lib/egl/egl.cfg system/lib/egl/libGLES_qcom.so system/lib/libGLESv1_CM.so system/lib/libGLESv2.so system/etc/permissions/com.google.android.datamessaging.xml system/etc/permissions/com.google.android.gtalkservice.xml system/etc/permissions/com.google.android.maps.xml -d proprietary
touch proprietary/*
Expand Down
1 change: 1 addition & 0 deletions liquid/.gitignore
@@ -0,0 +1 @@
proprietary/*
192 changes: 192 additions & 0 deletions liquid/AndroidBoard.mk
@@ -0,0 +1,192 @@
LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
endif

file := $(INSTALLED_KERNEL_TARGET)
ALL_PREBUILT += $(file)
$(file): $(TARGET_PREBUILT_KERNEL) | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/lib/libhtc_ril.so
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/libhtc_ril.so | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/lib/libhtc_acoustic.so
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/libhtc_acoustic.so | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/usr/keychars/hero-keypad.kcm.bin
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/hero-keypad.kcm.bin | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT_KEYLAYOUT)/hero-keypad.kl
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/hero-keypad.kl | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT_KEYLAYOUT)/h2w_headset.kl
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/h2w_headset.kl | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/etc/firmware/avpr.bts
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/avpr.bts | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/etc/firmware/brf6300.bin
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/brf6300.bin | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/etc/firmware/fmc_init_1273.2.bts
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/fmc_init_1273.2.bts | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/etc/firmware/fm_rx_init_1273.2.bts
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/tiinit_5.3.53.bts | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/etc/firmware/tiinit_5.3.53.bts
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/tiinit_5.3.53.bts | $(ACP)
$(transform-prebuilt-to-target)

file := $(TARGET_OUT)/etc/firmware/vac_config.ini
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/vac_config.ini | $(ACP)
$(transform-prebuilt-to-target)

# Ramdisk Files
file := $(TARGET_ROOT_OUT)/init.hero.rc
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/init.hero.rc | $(ACP)
$(transform-prebuilt-to-target)

#file := $(TARGET_ROOT_OUT)/init.rc
#ALL_PREBUILT += $(file)
#$(file) : $(LOCAL_PATH)/init.rc | $(ACP)
# $(transform-prebuilt-to-target)

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.rc:root/init.rc

include $(CLEAR_VARS)
LOCAL_MODULE := sensors.hero.so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/hw
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_SRC_FILES := hero-keypad.kcm
include $(BUILD_KEY_CHAR_MAP)

# egl
file := $(TARGET_OUT)/lib/egl/egl.cfg
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/proprietary/egl.cfg | $(ACP)
$(transform-prebuilt-to-target)

include $(CLEAR_VARS)
LOCAL_MODULE := libGLES_qcom.so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/egl
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/egl
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := libGLESv1_CM.so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := libGLESv2.so
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT)

# This will install the file in /system/etc
#
include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE := AudioFilter.csv
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE := AudioPreProcess.csv
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE := vold.conf
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE := agps_rm
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)

# WiFi driver and firmware
local_target_dir := $(TARGET_OUT_ETC)/wifi

include $(CLEAR_VARS)
LOCAL_MODULE := Fw1251r1c.bin
LOCAL_MODULE_TAGS := user
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(local_target_dir)
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := wlan.ko
LOCAL_MODULE_TAGS := user
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/modules
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := com.google.android.datamessaging.xml
LOCAL_MODULE_TAGS := user
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/permissions
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := com.google.android.gtalkservice.xml
LOCAL_MODULE_TAGS := user
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/permissions
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := com.google.android.maps.xml
LOCAL_MODULE_TAGS := user
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/permissions
LOCAL_SRC_FILES := proprietary/$(LOCAL_MODULE)
include $(BUILD_PREBUILT)


55 changes: 55 additions & 0 deletions liquid/BoardConfig.mk
@@ -0,0 +1,55 @@
#
# Product-specific compile-time definitions.
#

TARGET_BOARD_PLATFORM := qsd8k
TARGET_CPU_ABI := armeabi

TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
TARGET_NO_RECOVERY := true

# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := libWifiApi
#BOARD_WLAN_TI_STA_DK_ROOT := system/wlan/ti/sta_dk_4_0_4_32

WIFI_DRIVER_MODULE_PATH := "/system/etc/wifi/dhd.ko"
WIFI_DRIVER_MODULE_ARG := ""
WIFI_DRIVER_MODULE_NAME := "wlan"
WIFI_FIRMWARE_LOADER := "wlan_loader"

TARGET_BOOTLOADER_BOARD_NAME := hero

BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null
BOARD_KERNEL_BASE := 0x20000000

BOARD_HAVE_BLUETOOTH := true

TARGET_HARDWARE_3D := false

BOARD_GPS_LIBRARIES := libgps librpc

BOARD_VENDOR_USE_AKMD := false

USE_PV_WINDOWS_MEDIA := false

#BOARD_USE_HTC_APPS := true

#BOARD_USE_HTC_LIBSENSORS := true
#BOARD_HTC_LIBSENSORS_NAME := sensors.hero

BOARD_BOOTIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x00280000)
BOARD_RECOVERYIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x00500000)
BOARD_SYSTEMIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x05a00000)
BOARD_USERDATAIMAGE_MAX_SIZE := $(call image-size-from-data-size,0x127c0000)

#BOARD_BOOTIMAGE_MAX_SIZE := 2621440
#BOARD_RECOVERYIMAGE_MAX_SIZE := 5242880
#BOARD_SYSTEMIMAGE_MAX_SIZE := 70778880
#BOARD_USERDATAIMAGE_MAX_SIZE := 78381056
# The size of a block that can be marked bad.

#BOARD_FLASH_BLOCK_SIZE := 131072

USE_CAMERA_STUB := true
6 changes: 6 additions & 0 deletions liquid/a1-keypad.kl
@@ -0,0 +1,6 @@
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 211 FOCUS
key 212 CAMERA

1 change: 1 addition & 0 deletions liquid/acer-hs-butt.kl
@@ -0,0 +1 @@
key 226 HEADSETHOOK WAKE
5 changes: 5 additions & 0 deletions liquid/clean-files.sh
@@ -0,0 +1,5 @@
#!/bin/sh

rm -rf proprietary ../../../signed-google_ion-ota-14721.zip

./common.sh clean-files
13 changes: 13 additions & 0 deletions liquid/common.sh
@@ -0,0 +1,13 @@
#!/bin/sh

(cd ../common-open/akmd && ./$1.sh)
#(cd ../prebuilt-open && ./$1.sh)
#(cd ../../pv-open && ./$1.sh)
(cd ../../qcom/android-open/libopencorehw && ./$1.sh)
#(cd ../../qcom/android-open/loc_api && ./$1.sh)
#(cd ../../qcom/android-open/pvomx && ./$1.sh)
(cd ../../qcom/proprietary-open/dsp/libqcamera && ./$1.sh)
(cd ../../qcom/proprietary-open/dsp/mm && ./$1.sh)
(cd ../../qcom/proprietary-open/libaudioeq && ./$1.sh)
(cd ../../qcom/proprietary-open/libgps && ./$1.sh)
(cd ../../qcom/proprietary-open/libhgl && ./$1.sh)
23 changes: 23 additions & 0 deletions liquid/device.mk
@@ -0,0 +1,23 @@
#
# 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.
#

# To be included directly by a product makefile; do not use inherit-product.

PRODUCT_COPY_FILES += \
vendor/lox/liquid/proprietary/gps.conf:system/etc/gps.conf

DEVICE_PACKAGE_OVERLAYS := vendor/lox/liquid/overlay

Binary file added liquid/dhd.ko
Binary file not shown.
64 changes: 64 additions & 0 deletions liquid/hero-keypad.kcm
@@ -0,0 +1,64 @@
[type=QWERTY]

# keycode display number base caps fn caps_fn

A 'A' '2' 'a' 'A' 'a' 'A'
B 'B' '2' 'b' 'B' 'b' 'B'
C 'C' '2' 'c' 'C' 'c' 0x00E7
D 'D' '3' 'd' 'D' ''' 0x00
E 'E' '3' 'e' 'E' '"' 0x0301
F 'F' '3' 'f' 'F' '[' 0x00A5
G 'G' '4' 'g' 'G' ']' '_'
H 'H' '4' 'h' 'H' '<' '{'
I 'I' '4' 'i' 'I' '-' 0x0302
J 'J' '5' 'j' 'J' '>' '}'
K 'K' '5' 'k' 'K' ';' '~'
L 'L' '5' 'l' 'L' ':' '`'
M 'M' '6' 'm' 'M' '!' 0x00
N 'N' '6' 'n' 'N' 'n' 0x0303
O 'O' '6' 'o' 'O' '+' 0x00
P 'P' '7' 'p' 'P' '=' 0x00
Q 'Q' '7' 'q' 'Q' '|' 0x0300
R 'R' '7' 'r' 'R' '`' 0x20AC
S 'S' '7' 's' 'S' '\' 0x00DF
T 'T' '8' 't' 'T' '{' 0x00A3
U 'U' '8' 'u' 'U' '_' 0x0308
V 'V' '8' 'v' 'V' 'v' 'V'
W 'W' '9' 'w' 'W' '~' 0x00
X 'X' '9' 'x' 'X' 'x' 0xEF00
Y 'Y' '9' 'y' 'Y' '}' 0x00A1
Z 'Z' '9' 'z' 'Z' 'z' 'Z'

# on pc keyboards
COMMA ',' ',' ',' ',' ',' ','
PERIOD '.' '.' '.' '.' '.' 0x2026
AT '@' 0x00 '@' '@' '@' 0x2022
SLASH '/' '/' '/' '?' '?' '\'

SPACE 0x20 0x20 0x20 0x20 0xEF01 0xEF01
ENTER 0xa 0xa 0xa 0xa 0xa 0xa

TAB 0x9 0x9 0x9 0x9 0x9 0x9
0 '0' '0' '0' ')' ')' ')'
1 '1' '1' '1' '!' '!' '!'
2 '2' '2' '2' '"' '"' '"'
3 '3' '3' '3' '#' '#' '#'
4 '4' '4' '4' '$' '$' '$'
5 '5' '5' '5' '%' '%' '%'
6 '6' '6' '6' '^' '^' '^'
7 '7' '7' '7' '&' '&' '&'
8 '8' '8' '8' '*' '*' '*'
9 '9' '9' '9' '(' '(' '('
GRAVE '`' '`' '`' '~' '`' '~'
MINUS '-' '-' '-' '_' '-' '_'
EQUALS '=' '=' '=' '+' '=' '+'
LEFT_BRACKET '[' '[' '[' '{' '[' '{'
RIGHT_BRACKET ']' ']' ']' '}' ']' '}'
BACKSLASH '\' '\' '\' '|' '\' '|'
SEMICOLON ';' ';' ';' ':' ';' ':'
APOSTROPHE ''' ''' ''' '"' ''' '"'
STAR '*' '*' '*' '*' '*' '*'
POUND '#' '#' '#' '#' '#' '#'
PLUS '+' '+' '+' '+' '+' '+'


0 comments on commit 32af109

Please sign in to comment.