Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable torch tile and proximity wake option #27

Open
wants to merge 62 commits into
base: cm-11.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
86bfb00
enable torch tile
ivanich Aug 3, 2014
c2edec9
overlay: Enable proximity wake option
ivanich Aug 16, 2014
c4053e9
recovery: fix init and off mode charging
dexter93 Jun 8, 2014
7197609
recovery: fix derp and update module classes
dexter93 Jun 11, 2014
0aa9ea6
Adjust brightness levels to be dimmer. Disable dual-band support.
LordNerevar Sep 25, 2014
713dc5c
TWRP: include dumlock
dexter93 May 8, 2014
ece9e34
Remove deprecated keychars
dexter93 Apr 27, 2014
5ab2492
keylayout: massive updates and fixes
dexter93 May 8, 2014
41ed7bc
fstab.pyramid: Fix msm_hsusb_host path
ivanich Oct 3, 2014
11350cf
ramdisk: Fix usbdisk automount
ivanich Oct 3, 2014
40c678c
pyramid: Add vibration intensity
ivanich Oct 5, 2014
e79d598
proprietary-files: Add radish binary
ivanich Oct 8, 2014
749e8db
Revert "pyramid: Add CM performance profile definitions"
ivanich Oct 13, 2014
9d14386
pyramid: Bring post-boot script items into main init script
ivanich Oct 15, 2014
b29c0b7
Torch and camera changes
Sajito Oct 16, 2014
7fdae42
Add some system.prop tweaks
dexter93 Apr 27, 2014
8e897a8
Set correct torch brightness
Sajito Oct 16, 2014
bb6254a
init.pyramid: Set USB fast charge mode to "substitute AC to USB
ivanich Oct 18, 2014
76ab258
pyramid: Merge msm8660-common repo into pyramid
ivanich Oct 20, 2014
4b97795
pyramid: Enable LPA
ivanich Oct 23, 2014
fa680a7
pyramid: Remove non-existant parameters
ivanich Oct 30, 2014
c7ea065
pyramid:overlay: Enable ZSL and disable cancelAutoFocusOnPreviewStopped
ivanich Oct 30, 2014
f9d7ab7
pyramid: Restrict square preview resolutions from VGA front camera
intervigilium Aug 10, 2014
07b5004
pyramid: Set CAMERA_FRONT_VGA flag
ivanich Oct 30, 2014
46eef80
pyramid: fstab: Add misc partition
ivanich Oct 30, 2014
078d042
pyramid: overlay: enable eject sdcard
ivanich Oct 30, 2014
23c62a2
pyramid: CameraWrapper: Set correct FFC id
ivanich Oct 31, 2014
3820dbd
pyramid: ramdisk: Chmod cooler colors sysfs
ivanich Oct 31, 2014
bcc9a25
Overlay: camera: disable snapshots during videos
ivanich Oct 31, 2014
865b10a
msm8660: add dummy open() of /dev/smd0 to avoid in-call audio race c…
ivanich Oct 31, 2014
5b65113
pyramid: media : Dedupe soft video codecs
ivanich Oct 31, 2014
1c7daf1
cmhw: Add color temp control
ivanich Oct 31, 2014
8d66c45
Add DeviceSettings
johnnyslt Jul 2, 2014
9b93e1b
pyramid: set readahead during early-init
ivanich Oct 31, 2014
857e152
pyramid: Start using HTCQualcommRIL class
ivanich Nov 1, 2014
23eda0a
pyramid.rc: Set permissions to hdmi
ivanich Nov 1, 2014
2d48030
pyramid: Set correct kernel path
ivanich Nov 1, 2014
e4cfe21
pyramid: use bt-pan for BT tether
ivanich Nov 3, 2014
29ac39c
init.pyramid.rc: Bring cpu1 online on early-init
ivanich Nov 4, 2014
75254fe
pyramid:camera: Disable denoise setting for camera
ivanich Nov 6, 2014
62af8f3
BoardConfig: Remove VoIP flag
ivanich Nov 8, 2014
2ab2e51
pyramid: Add custom audio policy configuration
ivanich Nov 8, 2014
fc311b4
Revert "pyramid: Start using HTCQualcommRIL class"
ivanich Nov 8, 2014
4f8dd4e
pyramid: Optimize I/O scheduling
ivanich Nov 9, 2014
c6c6b35
audio_policy: Remove voipout device
ivanich Nov 12, 2014
1922f40
overlay:Camera2: add option to prevent autofocus cancel if preview st…
ivanich Nov 13, 2014
ccf8e22
pyramid:av: Update media_profiles
ivanich Nov 13, 2014
188c6d0
Revert "pyramid: Enable LPA"
ivanich Nov 15, 2014
7c6da49
pyramid: Add crda package
ivanich Nov 15, 2014
4a3c5b1
init.pyramid.rc: Remove fastcharge
ivanich Nov 16, 2014
6886be8
proprietary-files: Update adreno libs
ivanich Nov 17, 2014
93a2d60
recovery: Enable f2fs support
ivanich Jan 14, 2015
eb1d87f
pyramid:fstab: support f2fs-formatted cache and userdata
ivanich Jan 14, 2015
1233642
recovery: Add TWRP flags
ivanich Jan 19, 2015
48c5fc9
recovery:twrp: Disable cpu temp support
ivanich Jan 21, 2015
9d5ab9d
pyramid: utilize recovery_root_private
ivanich Jan 22, 2015
3b017ce
recovery: Add CWM opts
ivanich Jan 23, 2015
a4b1a59
Revert "pyramid:fstab: support f2fs-formatted cache and userdata"
ivanich Feb 21, 2015
c60c0a7
BoardConfig.mk: Disable lpa completely
ivanich Mar 9, 2015
71e9a80
pyramid: Enable ZRAM
ivanich Mar 9, 2015
8b9bc7b
pyramid: Switch ZRAM to LZ4 compression
ivanich Mar 22, 2015
a6bcbc7
pyramid: remove gamma hacks and add KCAL interface
ivanich Mar 23, 2015
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
3 changes: 2 additions & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# limitations under the License.

ifeq ($(TARGET_DEVICE),pyramid)
ifeq ($(TARGET_BOARD_PLATFORM),msm8660)

LOCAL_PATH := $(call my-dir)

include $(call all-subdir-makefiles,$(LOCAL_PATH))

endif
endif
135 changes: 124 additions & 11 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,105 @@
# variant, so that it gets overwritten by the parent (which goes
# against the traditional rules of inheritance).

# inherit from common msm8660
-include device/htc/msm8660-common/BoardConfigCommon.mk
BOARD_VENDOR := htc


# Bootloader
TARGET_NO_BOOTLOADER := true

# Platform
TARGET_BOARD_PLATFORM := msm8660
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200

# Architecture
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_SMP := true
TARGET_CPU_VARIANT := scorpion
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_ENABLE_QC_AV_ENHANCEMENTS := true

# Flags
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE
COMMON_GLOBAL_CFLAGS += -DHTCLOG
COMMON_GLOBAL_CFLAGS += -DQCOM_BSP

# QCOM hardware
BOARD_USES_QCOM_HARDWARE := true
TARGET_QCOM_DISPLAY_VARIANT := caf
TARGET_QCOM_MEDIA_VARIANT := caf
TARGET_USE_QCOM_BIONIC_OPTIMIZATION := true
TARGET_USES_QCOM_BSP := true

# Audio
COMMON_GLOBAL_CFLAGS += -DHTC_ACOUSTIC_AUDIO -DLEGACY_QCOM_VOICE
TARGET_QCOM_AUDIO_VARIANT := caf
BOARD_USES_LEGACY_ALSA_AUDIO := true

# Camera
BOARD_NEEDS_MEMORYHEAPPMEM := true
COMMON_GLOBAL_CFLAGS += -DDISABLE_HW_ID_MATCH_CHECK
COMMON_GLOBAL_CFLAGS += -DHTC_CAMERA_HARDWARE
COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS
USE_DEVICE_SPECIFIC_CAMERA := true
BOARD_CAMERA_FRONT_VGA := true

# FM Radio
# 4.2 -> commenting these for audio policy
#BOARD_HAVE_QCOM_FM := true
#COMMON_GLOBAL_CFLAGS += -DQCOM_FM_ENABLED

# GPS
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := pyramid
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000

# Graphics
USE_OPENGL_RENDERER := true
TARGET_DISPLAY_USE_RETIRE_FENCE := true
TARGET_USES_C2D_COMPOSITION := true
TARGET_USES_ION := true
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
BOARD_EGL_CFG := device/htc/pyramid/configs/egl.cfg
TARGET_DISPLAY_INSECURE_MM_HEAP := true

# Use CM PowerHAL
TARGET_POWERHAL_VARIANT := cm

# Lights
TARGET_PROVIDES_LIBLIGHT := true

# SELinux
BOARD_SEPOLICY_DIRS += \
device/htc/pyramid/sepolicy

BOARD_SEPOLICY_UNION += \
app.te \
bluetooth.te \
device.te \
domain.te \
drmserver.te \
file_contexts \
file.te \
hci_init.te \
healthd.te \
init_shell.te \
init.te \
keystore.te \
kickstart.te \
mediaserver.te \
rild.te \
surfaceflinger.te \
system.te \
ueventd.te \
wpa_socket.te \
wpa.te

# Webkit
ENABLE_WEBGL := true
TARGET_FORCE_CPU_UPLOAD := true

# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := pyramid
Expand All @@ -36,14 +133,7 @@ BOARD_KERNEL_PAGE_SIZE := 2048
BOARD_KERNEL_CMDLINE := console=ttyHSL0 androidboot.hardware=pyramid no_console_suspend=1
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01400000
TARGET_KERNEL_CONFIG := pyramid_defconfig

TARGET_RECOVERY_FSTAB := device/htc/pyramid/rootdir/etc/fstab.pyramid
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_INITRC := device/htc/pyramid/recovery/init.rc

# GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := pyramid
TARGET_KERNEL_SOURCE := kernel/htc/pyramid

# RIL
BOARD_USES_LEGACY_RIL := true
Expand All @@ -52,6 +142,9 @@ BOARD_USE_NEW_LIBRIL_HTC := true
# Required for Sensors
COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS

# Charge mode
BOARD_CHARGING_MODE_BOOTING_LPM := /sys/htc_lpm/lpm_mode

# Lights
TARGET_HAS_NO_BLUE_LED := true

Expand All @@ -61,20 +154,40 @@ BOARD_BLUEDROID_VENDOR_CONF := device/htc/pyramid/bluetooth/vnd_pyramid.txt
BOARD_BLUETOOTH_USES_HCIATTACH_PROPERTY := false

# Bluetooth/Wifi
-include device/htc/msm8660-common/bcmdhd.mk
-include device/htc/pyramid/bcmdhd.mk

# Hardware tunables
BOARD_HARDWARE_CLASS := device/htc/pyramid/cmhw/

# Filesystem
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
BOARD_VOLD_MAX_PARTITIONS := 36
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776192
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 838859776
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1252770816
BOARD_FLASH_BLOCK_SIZE := 262144

# CWM
TARGET_RECOVERY_FSTAB := device/htc/pyramid/rootdir/etc/fstab.pyramid
RECOVERY_FSTAB_VERSION := 2
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_DEVICE_DIRS += device/htc/pyramid
BOARD_RECOVERY_SWIPE := true
TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\"

# Twrp
DEVICE_RESOLUTION = 540x960
TW_FLASH_FROM_STORAGE := true
TW_INTERNAL_STORAGE_PATH := "/sdcard"
TW_INTERNAL_STORAGE_MOUNT_POINT := "sdcard"
TW_INCLUDE_JB_CRYPTO := true
BOARD_HAS_NO_REAL_SDCARD := false
TW_NO_SCREEN_BLANK := true
TW_INCLUDE_DUMLOCK := true
HAVE_SELINUX := true
TW_NO_CPU_TEMP := true
TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/msm_hsusb/gadget/lun0/file"
18 changes: 18 additions & 0 deletions bcm_hcd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2012 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.

# Copy Bluetooth firmware, since BCM4329 is a BT/WiFi chip
PRODUCT_COPY_FILES += \
device/htc/pyramid/firmware/bcm4330.hcd:system/vendor/firmware/bcm4330.hcd \
device/htc/pyramid/firmware/bcm4329.hcd:system/vendor/firmware/bcm4329.hcd
28 changes: 28 additions & 0 deletions bcmdhd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (C) 2012 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.

# This file is for bcmdhd wifi since so many HTC 8660 devices use it
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
BOARD_WLAN_DEVICE := bcmdhd
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
WIFI_BAND := 802_11_ABG
WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin"
WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin"
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
WPA_SUPPLICANT_VERSION := VER_0_8_X

# Broadcom BCM43xx chips are WiFi/BT capable
BOARD_HAVE_BLUETOOTH_BCM := true
19 changes: 19 additions & 0 deletions camera/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
CameraWrapper.cpp

LOCAL_SHARED_LIBRARIES := \
libhardware liblog libcamera_client libutils

ifeq ($(BOARD_CAMERA_FRONT_VGA),true)
LOCAL_CFLAGS += -DCAMERA_FRONT_VGA
endif

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)
#include $(BUILD_HEAPTRACKED_SHARED_LIBRARY)
Loading