This commit is contained in:
Valera 2016-02-13 01:00:52 +03:00
parent 4b8ab171a0
commit 54ddb2a22c
7 changed files with 1 additions and 177 deletions

View File

@ -59,7 +59,6 @@ PRODUCT_COPY_FILES += \
# Camera # Camera
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
camera.msm8974 \ camera.msm8974 \
libshim_qcopt \
libxml2 libxml2
# GPS # GPS
@ -131,10 +130,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
libstlport libstlport
# rmt_storage
PRODUCT_PACKAGES += \
libshim_rmt_storage
# Thermal # Thermal
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf \ $(LOCAL_PATH)/configs/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf \
@ -149,7 +144,6 @@ PRODUCT_PACKAGES += \
dhcpcd.conf \ dhcpcd.conf \
hostapd \ hostapd \
hostapd_default.conf \ hostapd_default.conf \
libwcnss_qmi \
libwpa_client \ libwpa_client \
macloader \ macloader \
wcnss_service \ wcnss_service \

View File

@ -1,26 +0,0 @@
LOCAL_PATH := $(call my-dir)
# libqc-opt
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
icu53.c
LOCAL_SHARED_LIBRARIES := libicuuc libicui18n
LOCAL_MODULE := libshim_qcopt
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# libshim_rmt_storage
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
ioprio.c
LOCAL_MODULE := libshim_rmt_storage
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

View File

@ -1,26 +0,0 @@
#include "unicode/utext.h"
#include "unicode/utypes.h"
U_STABLE UText * U_EXPORT2
utext_openUChars_53(UText *ut, const UChar *s, int64_t length, UErrorCode *status)
{
return utext_openUChars(ut, s, length, status);
}
U_STABLE UText * U_EXPORT2
utext_close_53(UText *ut)
{
return utext_close(ut);
}
U_STABLE int32_t U_EXPORT2
u_digit_53(UChar32 ch, int8_t radix)
{
return u_digit(ch, radix);
}
U_STABLE const char * U_EXPORT2
u_errorName_53(UErrorCode code)
{
return u_errorName(code);
}

View File

@ -1,33 +0,0 @@
/*
* Copyright (C) 2015 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.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/syscall.h>
#include <linux/ioprio.h>
/*
* FUNCTION: ioprio_set
* USE: INTERPOSE: Remaps to syscall(SYS_ioprio_set, ...)
* NOTES: This function no longer exists in M, instead remap this function
* make the appropriate syscall instead.
*/
int ioprio_set(int which, int who, int ioprio)
{
return syscall(SYS_ioprio_set, which, who, ioprio);
}

View File

@ -1,28 +0,0 @@
# Copyright (C) 2014 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.
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := wcnss_qmi_client.c
LOCAL_CFLAGS += -Wall -Werror
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_MODULE := libwcnss_qmi
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

View File

@ -1,57 +0,0 @@
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2014 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.
*/
#define LOG_TAG "wcnss_qmi"
#include <cutils/log.h>
#include <stdio.h>
#define MAC_INFO_FILE "/efs/wifi/.mac.info"
#define SUCCESS 0
#define FAILED -1
int wcnss_init_qmi()
{
return SUCCESS;
}
int wcnss_qmi_get_wlan_address(unsigned char *mac)
{
int i;
int rc = SUCCESS;
int tmp[6];
FILE *f;
if ((f = fopen(MAC_INFO_FILE, "r")) == NULL) {
ALOGE("%s: failed to open %s", __func__, MAC_INFO_FILE);
return FAILED;
}
if (fscanf(f, "%02X:%02X:%02X:%02X:%02X:%02X", &tmp[0], &tmp[1], &tmp[2], &tmp[3], &tmp[4], &tmp[5]) != 6) {
ALOGE("%s: %s: file contents are not valid", __func__, MAC_INFO_FILE);
rc = FAILED;
} else {
for (i = 0; i < 6; i++) mac[i] = tmp[i];
}
fclose(f);
return rc;
}
void wcnss_qmi_deinit()
{
}

View File

@ -34,7 +34,7 @@ on early-init
setprop sys.io.scheduler noop setprop sys.io.scheduler noop
on init on init
export LD_SHIM_LIBS "/system/vendor/lib/libqc-opt.so|libshim_qcopt.so:/system/bin/rmt_storage|libshim_rmt_storage.so:/system/vendor/lib/libOpenCL.so|libboringssl-compat.so:/system/lib/libril.so|libril_shim.so" export LD_SHIM_LIBS "/system/vendor/lib/libqc-opt.so:/system/bin/rmt_storage:/system/vendor/lib/libOpenCL.so|libboringssl-compat.so:/system/lib/libril.so|libril_shim.so"
# Set permissions for persist partition # Set permissions for persist partition
mkdir /persist 0771 system system mkdir /persist 0771 system system