[Android] Warped420:
Yeah I remember that one.

Request posted:

We posted a link to a friends device tree repo [MENTION=5285354]4shared[/MENTION].

If anyone gets a chance, take a look at it 4 me...

We are working on it but a little help never hurts

http://www.4shared.com/file/3TnB2Ny-/warplte.html

any assistance will be greatly appreciated
[MENTION=225659]Legion[/MENTION] Modz

vendor/lge/p769/proprietary/bin/BCM4330B1_002.001.003.0750.0865.hcd:system/bin/BCM4330B1_002.001.003.0750.0865.hcd \

vendor/lge/p769/proprietary/bin/bluetoothd:system/bin/bluetoothd \

vendor/lge/p769/proprietary/bin/btld:system/bin/btld \

vendor/lge/p769/proprietary/bin/glgps:system/bin/glgps \

vendor/lge/p769/proprietary/bin/rild:system/bin/rild \

vendor/lge/p769/proprietary/bin/sensord:system/bin/sensord \

vendor/lge/p769/proprietary/etc/cert/lge.cer:system/etc/cert/lge.cer \

vendor/lge/p769/proprietary/etc/firmware/fw_bcmdhd.bin:system/etc/firmware/fw_bcmdhd.bin \

vendor/lge/p769/proprietary/etc/firmware/fw_bcmdhd_apsta.bin:system/etc/firmware/fw_bcmdhd_apsta.bin \

vendor/lge/p769/proprietary/etc/firmware/fw_bcmdhd_p2p.bin:system/etc/firmware/fw_bcmdhd_p2p.bin \

vendor/lge/p769/proprietary/lib/hw/camera.omap4.so:system/lib/hw/camera.omap4.so \

vendor/lge/p769/proprietary/lib/hw/gps.omap4.so:system/lib/hw/gps.omap4.so \

vendor/lge/p769/proprietary/lib/hw/sensors.omap4.so:system/lib/hw/sensors.omap4.so \

vendor/lge/p769/proprietary/lib/lge-ril.so:system/lib/lge-ril.so \

vendor/lge/p769/proprietary/lib/libdomx.so:system/lib/libdomx.so \

vendor/lge/p769/proprietary/lib/libhdcp.so:system/lib/libhdcp.so \

vendor/lge/p769/proprietary/lib/libini.so:system/lib/libini.so \

vendor/lge/p769/proprietary/lib/libion.so:system/lib/libion.so \

vendor/lge/p769/proprietary/lib/liblgehdmi.so:system/lib/liblgehdmi.so \

vendor/lge/p769/proprietary/lib/libmm_osal.so:system/lib/libmm_osal.so \

vendor/lge/p769/proprietary/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so:system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so \

vendor/lge/p769/proprietary/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so:system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so \

vendor/lge/p769/proprietary/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so:system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so \

vendor/lge/p769/proprietary/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so:system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so \

vendor/lge/p769/proprietary/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so:system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so \

vendor/lge/p769/proprietary/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so:system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so \

vendor/lge/p769/proprietary/lib/libOMX_Core.so:system/lib/libOMX_Core.so \

vendor/lge/p769/proprietary/lib/libril.so:system/lib/libril.so \

vendor/lge/p769/proprietary/lib/libtiutils.so:system/lib/libtiutils.so \

vendor/lge/p769/proprietary/vendor/bin/pvrsrvinit_SGX540_120:system/vendor/bin/pvrsrvinit_SGX540_120 \

vendor/lge/p769/proprietary/vendor/bin/pvrsrvinit:system/vendor/bin/pvrsrvinit \

vendor/lge/p769/proprietary/vendor/firmware/ducati-m3.bin:system/vendor/firmware/ducati-m3.bin \

vendor/lge/p769/proprietary/vendor/lib/drm/libdrmwvmplugin.so:system/vendor/lib/drm/libdrmwvmplugin.so \

vendor/lge/p769/proprietary/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so:system/vendor/lib/egl/libEGL_POWERVR_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so:system/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so:system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/hw/gralloc.omap4.so:system/vendor/lib/hw/gralloc.omap4.so \

vendor/lge/p769/proprietary/vendor/lib/libglslcompiler_SGX540_120.so:system/vendor/lib/libglslcompiler_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libIMGegl_SGX540_120.so:system/vendor/lib/libIMGegl_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/liblvverx.so:system/vendor/lib/liblvverx.so \

vendor/lge/p769/proprietary/vendor/lib/liblvvetx.so:system/vendor/lib/liblvvetx.so \

vendor/lge/p769/proprietary/vendor/lib/libpvr2d_SGX540_120.so:system/vendor/lib/libpvr2d_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libpvrANDROID_WSEGL_SGX540_120.so:system/vendor/lib/libpvrANDROID_WSEGL_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libPVRScopeServices_SGX540_120.so:system/vendor/lib/libPVRScopeServices_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libsmapi.so:system/vendor/lib/libsmapi.so \

vendor/lge/p769/proprietary/vendor/lib/libsrv_init_SGX540_120.so:system/vendor/lib/libsrv_init_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libsrv_um_SGX540_120.so:system/vendor/lib/libsrv_um_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libtf_crypto_sst.so:system/vendor/lib/libtf_crypto_sst.so \

vendor/lge/p769/proprietary/vendor/lib/libusc_SGX540_120.so:system/vendor/lib/libusc_SGX540_120.so \

vendor/lge/p769/proprietary/vendor/lib/libwvm.so:system/vendor/lib/libwvm.so

[MENTION=2419585]Junkie2100[/MENTION]

lib/libacdbloader.so

lib/libaudcal.so

lib/libmmjpeg.so

lib/libgemini.so

lib/libmercury.so

lib/libmmstillomx.so

lib/libimage-jpeg-enc-omx-comp.so

lib/libimage-omx-common.so

lib/libacdbloader.so

lib/libdiag.so

lib/libril-qc-qmi-1.so

lib/libril-qcril-hook-oem.so

lib/libril.so

lib/liboemcamera.so

lib/libsensor1.so

lib/libidl.so

lib/libmmcamera_faceproc.so

lib/libmmcamera_frameproc.so

lib/libmmcamera_hdr_lib.so

lib/libmmcamera_image_stab.so

lib/libmmcamera_plugin.so

lib/libmmcamera_statsproc31.so

lib/libmmcamera_wavelet_lib.so

lib/libmorpho_movie_stabilization.so

lib/libmmcamera_interface.so

lib/libHDR.so

lib/libmorpho_jpeg_engine.so

lib/libmorpho_image_stab31.so

lib/libmmjpeg_interface.so

lib/libchromatix_imx074_default_video.so

lib/libchromatix_imx074_preview.so

lib/libchromatix_imx074_video_hd.so

lib/libchromatix_imx074_zsl.so

lib/libchromatix_imx091_default_video.so

lib/libchromatix_imx091_preview.so

lib/libchromatix_imx091_video_hd.so

lib/libchromatix_imx091_zsl.so

lib/libchromatix_imx111_default_video.so

lib/libchromatix_imx111_preview.so

lib/libchromatix_imx111_zsl.so

lib/libchromatix_imx119_default_video.so

lib/libchromatix_imx119_preview.so

lib/libchromatix_imx119_vt.so

lib/libchromatix_imx132_default_video.so

lib/libchromatix_imx132_preview.so

lib/libchromatix_mt9e013_default_video.so

lib/libchromatix_mt9e013_preview.so

lib/libchromatix_mt9e013_video_hfr.so

lib/libchromatix_ov2720_default_video.so

lib/libchromatix_ov2720_hfr.so

lib/libchromatix_ov2720_preview.so

lib/libchromatix_ov2720_zsl.so

lib/libchromatix_ov5647_default_video.so

lib/libchromatix_ov5647_preview.so

lib/libchromatix_ov8825_default_video.so

lib/libchromatix_ov8825_preview.so

lib/libchromatix_ov9726_default_video.so

lib/libchromatix_ov9726_preview.so

lib/libchromatix_s5k3l1yx_default_video.so

lib/libchromatix_s5k3l1yx_hfr_120fps.so

lib/libchromatix_s5k3l1yx_hfr_60fps.so

lib/libchromatix_s5k3l1yx_hfr_90fps.so

lib/libchromatix_s5k3l1yx_preview.so

lib/libchromatix_s5k3l1yx_video_hd.so

lib/libchromatix_s5k3l1yx_zsl.so

lib/libchromatix_s5k4e1_default_video.so

lib/libchromatix_s5k4e1_preview.so

lib/libdsutils.so

lib/libqmi_cci.so

lib/libqmi_client_qmux.so

lib/libqmi_common_so.so

lib/libqmi_csi.so

lib/libqmi_csvt_srvc.so

lib/libqmi_encdec.so

lib/libqmiservices.so

lib/libqmi.so

lib/libqcci_legacy.so

lib/libdsi_netctrl.so

lib/libqdi.so

lib/libnetmgr.so

lib/libqdp.so

lib/libacdbloader.so

lib/libaudioalsa.so

lib/libAKM.so

lib/libalsautils.so

lib/libCommandSvc.so

lib/libconfigdb.so

lib/libcsd-client.so

lib/libdrmdiag.so

lib/libdrmfs.so

lib/libdrmtime.so

lib/libdss.so

lib/libQSEEComAPI.so

lib/libsensor_reg.so

lib/libsensor_user_cal.so

lib/libxml.so

lib/lib_dlb_msd.so

lib/libmm-abl.so

lib/libmm-abl-oem.so

lib/libWVphoneAPI.so

lib/hw/camera.msm8960.so

lib/hw/nfc.default.so

lib/hw/sensors.msm8960.so

bin/ATFWD-daemon

bin/bridgemgrd

bin/diag_mdlog

bin/ds_fmc_appd

bin/efsks

bin/ks

bin/netmgrd

bin/port-bridge

bin/qcks

bin/qseecomd

bin/radish

bin/sensors.qcom

bin/thermald

bin/rmt_storage

bin/qmuxd

bin/qmiproxy

bin/rild

bin/mm-pp-daemon

bin/mm-qcamera-daemon

bin/mpdecision

bin/qosmgr

vendor/firmware/libpn544_fw.so

vendor/firmware/a300_pfp.fw

vendor/firmware/a300_pm4.fw

vendor/firmware/keymaster/keymaster.b03

vendor/firmware/keymaster/keymaster.b02

vendor/firmware/keymaster/keymaster.mdt

vendor/firmware/keymaster/keymaster.b01

vendor/firmware/keymaster/keymaster.b00

vendor/firmware/BCM4334B0_002.001.013.0271.0333.hcd

etc/firmware/vidc.b00

etc/firmware/vidc.b01

etc/firmware/vidc.b02

etc/firmware/vidc.b03

etc/firmware/vidc.mdt

etc/firmware/vidc_1080p.fw

etc/firmware/fw_bcmdhd.bin

etc/firmware/fw_bcmdhd_apsta.bin

etc/firmware/fw_bcmdhd_p2p.bin

lib/egl/eglsubAndroid.so

lib/egl/libEGL_adreno200.so

lib/egl/libGLESv1_CM_adreno200.so

lib/egl/libGLESv2_adreno200.so

lib/egl/libq3dtools_adreno200.so

lib/libC2D2.so

lib/libc2d2_a3xx.so

lib/liblgftmitem.so

lib/libllvm-a3xx.so

lib/libllvm-arm.so

lib/libloc_api_v02.so

lib/libsc-a2xx.so

lib/libsc-a3xx.so

lib/libgsl.so

vendor/firmware/CE170F00.bin

vendor/firmware/CE170F01.bin

vendor/firmware/CE170F02.bin

vendor/firmware/CE170F03.bin

Wifi for a lg 8960 boardconfig

# Wifi

WPA_SUPPLICANT_VERSION := VER_0_8_X

BOARD_WPA_SUPPLICANT_DRIVER := NL80211

BOARD_HOSTAPD_DRIVER := NL80211

BOARD_WLAN_DEVICE := qcwcn

WIFI_DRIVER_FW_PATH_STA := "sta"

WIFI_DRIVER_FW_PATH_AP := "ap"

WIFI_DRIVER_FW_PATH_P2P := "p2p"

* Copyright (C) 2008 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.

*/

#define LOG_TAG "bluedroid"

#include <errno.h>

#include <fcntl.h>

#include <sys/ioctl.h>

#include <sys/socket.h>

#include <sys/types.h>

#include <sys/stat.h>

#include <cutils/log.h>

#include <cutils/properties.h>

#include <bluetooth/bluetooth.h>

#include <bluetooth/hci.h>

#include <bluetooth/hci_lib.h>

#include <bluedroid/bluetooth.h>

#ifndef HCI_DEV_ID

#define HCI_DEV_ID 0

#endif

#define HCID_STOP_DELAY_USEC 500000

#define DELAY_USEC 2000000

#define MIN(x,y) (((x)<(y))?(x):(y))

#define HCISMD_MOD_PARAM "/sys/module/hci_smd/parameters/hcismd_set"

static int rfkill_id = -1;

static char *rfkill_state_path = NULL;

static int init_rfkill() {

char path[64];

char buf[16];

int fd;

int sz;

int id;

for (id = 0; ; id++) {

snprintf(path, sizeof(path), "/sys/class/rfkill/rfkill%d/type", id);

fd = open(path, O_RDONLY);

if (fd < 0) {

ALOGW("open(%s) failed: %s (%d)\n", path, strerror(errno), errno);

return -1;

}

sz = read(fd, &buf, sizeof(buf));

close(fd);

if (sz >= 9 && memcmp(buf, "bluetooth", 9) == 0) {

rfkill_id = id;

break;

}

}

asprintf(&rfkill_state_path, "/sys/class/rfkill/rfkill%d/state", rfkill_id);

return 0;

}

static int check_bluetooth_power() {

int sz;

int fd = -1;

int ret = -1;

char buffer;

if (rfkill_id == -1) {

if (init_rfkill()) goto out;

}

fd = open(rfkill_state_path, O_RDONLY);

if (fd < 0) {

ALOGE("open(%s) failed: %s (%d)", rfkill_state_path, strerror(errno),

errno);

goto out;

}

sz = read(fd, &buffer, 1);

if (sz != 1) {

ALOGE("read(%s) failed: %s (%d)", rfkill_state_path, strerror(errno),

errno);

goto out;

}

switch (buffer) {

case '1':

ret = 1;

break;

case '0':

ret = 0;

break;

}

out:

if (fd >= 0) close(fd);

return ret;

}

static int set_bluetooth_power(int on) {

int sz;

int fd = -1;

int ret = -1;

const char buffer = (on ? '1' : '0');

if (rfkill_id == -1) {

if (init_rfkill()) goto out;

}

fd = open(rfkill_state_path, O_WRONLY);

if (fd < 0) {

ALOGE("open(%s) for write failed: %s (%d)", rfkill_state_path,

strerror(errno), errno);

goto out;

}

sz = write(fd, &buffer, 1);

if (sz < 0) {

ALOGE("write(%s) failed: %s (%d)", rfkill_state_path, strerror(errno),

errno);

goto out;

}

ret = 0;

out:

if (fd >= 0) close(fd);

return ret;

}

static int set_hci_smd_transport(int on) {

int sz;

int fd = -1;

int ret = -1;

const char buffer = (on ? '1' : '0');

fd = open(HCISMD_MOD_PARAM, O_WRONLY);

if (fd < 0) {

ALOGE("open(%s) for write failed: %s (%d)", HCISMD_MOD_PARAM,

strerror(errno), errno);

goto out;

}

sz = write(fd, &buffer, 1);

if (sz < 0) {

ALOGE("write(%s) failed: %s (%d)", HCISMD_MOD_PARAM, strerror(errno),

errno);

goto out;

}

ret = 0;

out:

if (fd >= 0) close(fd);

return ret;

}

static inline int create_hci_sock() {

int sk = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI);

if (sk < 0) {

ALOGE("Failed to create bluetooth hci socket: %s (%d)",

strerror(errno), errno);

}

return sk;

}

int bt_enable() {

ALOGV(__FUNCTION__);

int ret = -1;

int hci_sock = -1;

int attempt;

static int bt_on_once;

ALOGI("Starting hciattach daemon");

if (property_set("ctl.start", "hciattach") < 0) {

ALOGE("Failed to start hciattach");

goto out;

}

// Try for 10 seconds, this can only succeed once hciattach has sent the

// firmware and then turned on hci device via HCIUARTSETPROTO ioctl

for (attempt = 1000; attempt > 0; attempt--) {

hci_sock = create_hci_sock();

if (hci_sock < 0) goto out;

ret = ioctl(hci_sock, HCIDEVUP, HCI_DEV_ID);

if (!ret) {

break;

} else if (errno == EALREADY) {

ALOGW("Bluetoothd already started, unexpectedly!");

break;

}

close(hci_sock);

usleep(100000); // 100 ms retry delay

}

if (attempt == 0) {

ALOGE("%s: Timeout waiting for HCI device to come up, error- %d, ",

__FUNCTION__, ret);

goto out;

}

ALOGI("Starting bluetoothd deamon");

if (property_set("ctl.start", "bluetoothd") < 0) {

ALOGE("Failed to start bluetoothd");

goto out;

}

ret = 0;

out:

if (hci_sock >= 0) close(hci_sock);

return ret;

}

int bt_disable() {

ALOGV(__FUNCTION__);

int ret = -1;

int hci_sock = -1;

ALOGI("Stopping bluetoothd deamon");

if (property_set("ctl.stop", "bluetoothd") < 0) {

ALOGE("Error stopping bluetoothd");

goto out;

}

usleep(HCID_STOP_DELAY_USEC);

hci_sock = create_hci_sock();

if (hci_sock < 0) goto out;

ioctl(hci_sock, HCIDEVDOWN, HCI_DEV_ID);

set_hci_smd_transport(0);

ret = 0;

out:

if (hci_sock >= 0) close(hci_sock);

return ret;

}

int bt_is_enabled() {

ALOGV(__FUNCTION__);

int hci_sock = -1;

int ret = -1;

struct hci_dev_info dev_info;

// Power is on, now check if the HCI interface is up

hci_sock = create_hci_sock();

if (hci_sock < 0) goto out;

dev_info.dev_id = HCI_DEV_ID;

if (ret = ioctl(hci_sock, HCIGETDEVINFO, (void *)&dev_info) < 0) {

ALOGE("ioctl error: ret=%d", ret);

ret = 0;

goto out;

}

if (dev_info.flags & (1 << (HCI_UP & 31))) {

ret = 1;

} else {

ret = 0;

}

out:

if (hci_sock >= 0) close(hci_sock);

return ret;

}

int ba2str(const bdaddr_t *ba, char *str) {

return sprintf(str, "%2.2X:%2.2X:%2.2X:%2.2X:%2.2X:%2.2X",

ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]);

}

int str2ba(const char *str, bdaddr_t *ba) {

int i;

for (i = 5; i >= 0; i--) {

ba->b = (uint8_t) strtoul(str, &str, 16);

str++;

}

return 0;

}

im guessin we have the same config

BOARD_VENDOR := lge

# Platform

TARGET_BOARD_PLATFORM := msm8960

TARGET_BOARD_PLATFORM_GPU := qcom-adreno200

TARGET_ARCH_VARIANT_CPU := cortex-a9

# inherit from qcom-common

include device/lge/qcom-common/BoardCommonConfig.mk

# Architecture

TARGET_CPU_SMP := true

# Flags for Krait CPU

COMMON_GLOBAL_CFLAGS += -D__ARM_USE_PLD -D__ARM_CACHE_LINE_SIZE=64

ifneq ($(VARIENT_REQUIRE_3.0_KERNEL),true)

COMMON_GLOBAL_CFLAGS += -DNEW_ION_API

endif

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

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

TARGET_CPU_VARIANT := krait

# Krait optimizations

TARGET_USE_KRAIT_BIONIC_OPTIMIZATION := true

TARGET_USE_KRAIT_PLD_SET := true

TARGET_KRAIT_BIONIC_PLDOFFS := 10

TARGET_KRAIT_BIONIC_PLDTHRESH := 10

TARGET_KRAIT_BIONIC_BBTHRESH := 64

TARGET_KRAIT_BIONIC_PLDSIZE := 64

# Adreno configuration

BOARD_EGL_CFG := device/lge/msm8960-common/configs/egl.cfg

# Wifi related defines

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_MODULE_NAME := "wlan"

WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko"

WIFI_DRIVER_FW_PATH_STA := "sta"

WIFI_DRIVER_FW_PATH_AP := "ap"

WIFI_DRIVER_FW_PATH_P2P := "p2p"

# NFC

BOARD_HAVE_NFC := true

# Workaround to avoid issues with legacy liblights on QCOM platforms

TARGET_PROVIDES_LIBLIGHT := true

# Audio

BOARD_USES_ALSA_AUDIO := true

BOARD_USES_FLUENCE_INCALL := true

BOARD_USES_FLUENCE_FOR_VOIP := true

BOARD_USES_SEPERATED_AUDIO_INPUT := true

TARGET_USES_QCOM_COMPRESSED_AUDIO := true

# QCOM enhanced A/V

TARGET_ENABLE_QC_AV_ENHANCEMENTS := true

# We have the new GPS driver

#BOARD_HAVE_NEW_QC_GPS := true

# Use CAF media driver variant for 8960

#TARGET_QCOM_MEDIA_VARIANT := caf

# Use retire fence from MDP driver

TARGET_DISPLAY_USE_RETIRE_FENCE := true

boardconfig from another device

in my egl.cfg i changed one thing

0 0 android

0 1 adreno305

before it said 0 1 adreno200

it's not utilizing all its potential