[HTC Sensation XL] onejay09:
hi

then make sure you have vendor qcom proprietary from github, that will sort all the dlopen stuff

USE_CAMERA_STUB := true

TARGET_NO_BOOTLOADER := true

TARGET_BOARD_PLATFORM := msm7x30

TARGET_BOARD_PLATFORM_GPU := qcom-adreno200

TARGET_CPU_ABI := armeabi-v7a

TARGET_CPU_ABI2 := armeabi

TARGET_ARCH_VARIANT := armv7-a-neon

ARCH_ARM_HAVE_TLS_REGISTER := true

ARCH_ARM_HAVE_NEON = true

ARCH_ARM_HAVE_NEON := true

ARCH_ARM_HAVE_VFP := true

TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp

TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp

USE_MALLOC_ALIGNMENT := 16

WIFI_BAND := 802_11_ABG

WPA_SUPPLICANT_VERSION := VER_0_8_X

BOARD_WPA_SUPPLICANT_DRIVER := NL80211

BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd

BOARD_HOSTAPD_DRIVER := NL80211

BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd

BOARD_WLAN_DEVICE := bcmdhd

WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcm4330_b2.bin"

WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcm4330_apsta_b2.bin"

WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcm4330_p2p_b2.bin"

WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"

BOARD_USES_ADRENO_200 := true

#display

USE_OPENGL_RENDERER := true

TARGET_USES_C2D_COMPOSITION := true

TARGET_USES_SF_BYPASS := false

TARGET_HAVE_BYPASS := false

TARGET_USES_OVERLAY := false #changed to test/ if no boot or other errors then return value to default := true

TARGET_GRALLOC_USES_ASHMEM := true

TARGET_USES_GENLOCK := true

DYNAMIC_SHARED_LIBV8SO := true

BOARD_ADRENO_DECIDE_TEXTURE_TARGET := true

BOARD_EGL_CFG := vendor/qcom/proprietary/system/lib/egl/egl.cfg

BOARD_OVERLAY_FORMAT_YCbCr_420_SP := true

#COMMON_GLOBAL_CFLAGS += -DEGL_TRACE

#COMMON_GLOBAL_CFLAGS += -DMISSING_GRALLOC_BUFFERS

#COMMON_GLOBAL_CFLAGS += -DFORCE_EGL_CONFIG=0x9

COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60

COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE

COMMON_GLOBAL_CFLAGS += -DQCOM_ROTATOR_KERNEL_FORMATS

##generic##

BUILD_QCOM_VENDOR=true

BOARD_USES_QCOM_HARDWARE := true

BOARD_NEEDS_MEMORYHEAPPMEM := true

TARGET_FORCE_CPU_UPLOAD := true

BOARD_USES_QCOM_LIBS := true

BOARD_USES_QCOM_LIBRPC := true

BOARD_USES_QCOM_GPS := true

BOARD_USE_QCOM_PMEM := true

#audio

BOARD_PREBUILT_LIBAUDIO := false

#bluetooth

BOARD_HAVE_BLUETOOTH := true

BOARD_HAVE_BLUETOOTH_BCM := true

TARGET_NEEDS_BLUETOOTH_INIT_DELAY =: true

#BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/runnymede/bluetooth

#camera

BOARD_HAVE_HTC_FFC := true

BOARD_USE_REVERSE_FFC := true

#fm radio

BOARD_HAVE_FM_RADIO := true

BOARD_FM_DEVICE := bcm4330

BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO

#gps

BOARD_VENDOR_QCOM_AMSS_VERSION := 1200

BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 1240

BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default

BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000

this is my current board config.mk

board uses overlay makes camera preview green so we dont need it

the main things that made it work for me was frameworks/services/camera/libcameraservice

and, you dont need /frameworks/base/libs/ui/legacy

you dont need msm7x30-common/include/camera/ camerahardware.cpp or any other cpp file in include for the camera

:D

ps dont have this in 7x30 common USE_CAMERA_STUB := true

delete it