clean-up
This commit is contained in:
parent
e39b6954cb
commit
d728a0fd67
28 changed files with 32 additions and 847 deletions
|
@ -1,2 +0,0 @@
|
||||||
PRODUCT_MAKEFILES := \
|
|
||||||
$(LOCAL_DIR)/full_viennalte.mk
|
|
|
@ -1,28 +0,0 @@
|
||||||
# Copyright (C) 2013 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.
|
|
||||||
|
|
||||||
# HAL module implementation stored in
|
|
||||||
# hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so
|
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_MODULE := consumerir.msm8974
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
|
||||||
LOCAL_SRC_FILES := consumerir.c
|
|
||||||
LOCAL_SHARED_LIBRARIES := liblog libcutils
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
|
@ -1,187 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (C) 2013 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 "ConsumerIrHal"
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <cutils/log.h>
|
|
||||||
#include <hardware/hardware.h>
|
|
||||||
#include <hardware/consumerir.h>
|
|
||||||
|
|
||||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
|
||||||
|
|
||||||
static const consumerir_freq_range_t consumerir_freqs[] = {
|
|
||||||
{.min = 30000, .max = 30000},
|
|
||||||
{.min = 33000, .max = 33000},
|
|
||||||
{.min = 36000, .max = 36000},
|
|
||||||
{.min = 38000, .max = 38000},
|
|
||||||
{.min = 40000, .max = 40000},
|
|
||||||
{.min = 56000, .max = 56000},
|
|
||||||
};
|
|
||||||
|
|
||||||
static bool
|
|
||||||
try_append_number(char *buffer, int *len, int size, int number)
|
|
||||||
{
|
|
||||||
int stored;
|
|
||||||
|
|
||||||
stored = snprintf(&buffer[*len], size - *len, "%d,", number);
|
|
||||||
|
|
||||||
if (stored < 0 || stored >= size - *len) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
*len += stored;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
|
||||||
grow_buffer(char **buffer, int *size)
|
|
||||||
{
|
|
||||||
char *new_buffer;
|
|
||||||
|
|
||||||
*size *= 2;
|
|
||||||
if ((new_buffer = realloc(*buffer, *size)) == NULL) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
*buffer = new_buffer;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
|
||||||
append_number(char **buffer, int *len, int *size, int number)
|
|
||||||
{
|
|
||||||
if (! try_append_number(*buffer, len, *size, number)) {
|
|
||||||
if (! grow_buffer(buffer, size)) return false;
|
|
||||||
return try_append_number(*buffer, len, *size, number);
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int fd = 0;
|
|
||||||
static int consumerir_transmit(struct consumerir_device *dev,
|
|
||||||
int carrier_freq, int pattern[], int pattern_len)
|
|
||||||
{
|
|
||||||
int buffer_len = 0;
|
|
||||||
int buffer_size = 128;
|
|
||||||
int i;
|
|
||||||
char *buffer;
|
|
||||||
|
|
||||||
if ((buffer = malloc(buffer_size)) == NULL) {
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* write the header */
|
|
||||||
if (! append_number(&buffer, &buffer_len, &buffer_size, carrier_freq)) {
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* calculate factor of conversion from microseconds to pulses */
|
|
||||||
float factor = 1000000 / carrier_freq;
|
|
||||||
|
|
||||||
/* write out the timing pattern */
|
|
||||||
for (i = 0; i < pattern_len; i++)
|
|
||||||
{
|
|
||||||
if (! append_number(&buffer, &buffer_len, &buffer_size, (int) (pattern[i]/factor))) {
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buffer[buffer_len - 1] = 0;
|
|
||||||
write(fd, buffer, buffer_len - 1);
|
|
||||||
|
|
||||||
free(buffer);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
error:
|
|
||||||
free(buffer);
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int consumerir_get_num_carrier_freqs(struct consumerir_device *dev)
|
|
||||||
{
|
|
||||||
return ARRAY_SIZE(consumerir_freqs);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int consumerir_get_carrier_freqs(struct consumerir_device *dev,
|
|
||||||
size_t len, consumerir_freq_range_t *ranges)
|
|
||||||
{
|
|
||||||
size_t to_copy = ARRAY_SIZE(consumerir_freqs);
|
|
||||||
|
|
||||||
to_copy = len < to_copy ? len : to_copy;
|
|
||||||
memcpy(ranges, consumerir_freqs, to_copy * sizeof(consumerir_freq_range_t));
|
|
||||||
return to_copy;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int consumerir_close(hw_device_t *dev)
|
|
||||||
{
|
|
||||||
free(dev);
|
|
||||||
close(fd);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Generic device handling
|
|
||||||
*/
|
|
||||||
static int consumerir_open(const hw_module_t* module, const char* name,
|
|
||||||
hw_device_t** device)
|
|
||||||
{
|
|
||||||
if (strcmp(name, CONSUMERIR_TRANSMITTER) != 0) {
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
if (device == NULL) {
|
|
||||||
ALOGE("NULL device on open");
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
consumerir_device_t *dev = malloc(sizeof(consumerir_device_t));
|
|
||||||
memset(dev, 0, sizeof(consumerir_device_t));
|
|
||||||
|
|
||||||
dev->common.tag = HARDWARE_DEVICE_TAG;
|
|
||||||
dev->common.version = 0;
|
|
||||||
dev->common.module = (struct hw_module_t*) module;
|
|
||||||
dev->common.close = consumerir_close;
|
|
||||||
|
|
||||||
dev->transmit = consumerir_transmit;
|
|
||||||
dev->get_num_carrier_freqs = consumerir_get_num_carrier_freqs;
|
|
||||||
dev->get_carrier_freqs = consumerir_get_carrier_freqs;
|
|
||||||
|
|
||||||
*device = (hw_device_t*) dev;
|
|
||||||
fd = open("/sys/class/sec/sec_ir/ir_send", O_RDWR);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct hw_module_methods_t consumerir_module_methods = {
|
|
||||||
.open = consumerir_open,
|
|
||||||
};
|
|
||||||
|
|
||||||
consumerir_module_t HAL_MODULE_INFO_SYM = {
|
|
||||||
.common = {
|
|
||||||
.tag = HARDWARE_MODULE_TAG,
|
|
||||||
.module_api_version = CONSUMERIR_MODULE_API_VERSION_1_0,
|
|
||||||
.hal_api_version = HARDWARE_HAL_API_VERSION,
|
|
||||||
.id = CONSUMERIR_HARDWARE_MODULE_ID,
|
|
||||||
.name = "Consumer IR Module",
|
|
||||||
.author = "The CyanogenMod Project",
|
|
||||||
.methods = &consumerir_module_methods,
|
|
||||||
},
|
|
||||||
};
|
|
44
device.mk
44
device.mk
|
@ -16,13 +16,13 @@
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
||||||
|
|
||||||
## Get non-open-source specific aspects
|
# Get non-open-source specific aspects
|
||||||
$(call inherit-product-if-exists, vendor/samsung/viennalte/viennalte-vendor.mk)
|
$(call inherit-product-if-exists, vendor/samsung/viennalte/viennalte-vendor.mk)
|
||||||
|
|
||||||
## We are a tablet, not a phone
|
# We are a tablet, not a phone
|
||||||
PRODUCT_CHARACTERISTICS := tablet
|
PRODUCT_CHARACTERISTICS := tablet
|
||||||
|
|
||||||
## overlays
|
# overlays
|
||||||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||||
|
|
||||||
# Device uses high-density artwork where available
|
# Device uses high-density artwork where available
|
||||||
|
@ -35,19 +35,11 @@ $(call inherit-product-if-exists, frameworks/native/build/phone-xxxhdpi-3072-hwu
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml \
|
frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml \
|
||||||
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
|
|
||||||
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
|
||||||
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
||||||
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
|
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
||||||
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
|
|
||||||
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
|
|
||||||
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
|
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
|
||||||
frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml \
|
|
||||||
frameworks/native/data/etc/android.software.freeform_window_management.xml:system/etc/permissions/android.software.freeform_window_management.xml
|
frameworks/native/data/etc/android.software.freeform_window_management.xml:system/etc/permissions/android.software.freeform_window_management.xml
|
||||||
|
|
||||||
# Audio
|
# Audio
|
||||||
|
@ -60,7 +52,6 @@ PRODUCT_COPY_FILES += \
|
||||||
# Camera
|
# Camera
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
camera.msm8974 \
|
camera.msm8974 \
|
||||||
libshim_qcopt \
|
|
||||||
libxml2
|
libxml2
|
||||||
|
|
||||||
# GPS
|
# GPS
|
||||||
|
@ -81,12 +72,8 @@ PRODUCT_PACKAGES += \
|
||||||
# Keylayouts
|
# Keylayouts
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/keylayout/atmel_mxt_ts.kl:system/usr/keylayout/atmel_mxt_ts.kl \
|
$(LOCAL_PATH)/keylayout/atmel_mxt_ts.kl:system/usr/keylayout/atmel_mxt_ts.kl \
|
||||||
$(LOCAL_PATH)/keylayout/Button_Jack.kl:system/usr/keylayout/Button_Jack.kl \
|
|
||||||
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
||||||
$(LOCAL_PATH)/keylayout/philips_remote_ir.kl:system/usr/keylayout/philips_remote_ir.kl \
|
$(LOCAL_PATH)/keylayout/sec_touchscreen.kl:system/usr/keylayout/sec_touchscreen.kl
|
||||||
$(LOCAL_PATH)/keylayout/samsung_remote_ir.kl:system/usr/keylayout/samsung_remote_ir.kl \
|
|
||||||
$(LOCAL_PATH)/keylayout/sec_touchscreen.kl:system/usr/keylayout/sec_touchscreen.kl \
|
|
||||||
$(LOCAL_PATH)/keylayout/ue_rf4ce_remote.kl:system/usr/keylayout/ue_rf4ce_remote.kl
|
|
||||||
|
|
||||||
# Keystore
|
# Keystore
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
@ -100,13 +87,6 @@ PRODUCT_PACKAGES += \
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
|
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
|
||||||
|
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
|
||||||
av.streaming.offload.enable=false
|
|
||||||
|
|
||||||
# Camera
|
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
|
||||||
camera2.portability.force_api=1
|
|
||||||
|
|
||||||
# Radio
|
# Radio
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libril_shim
|
libril_shim
|
||||||
|
@ -130,19 +110,11 @@ 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 \
|
||||||
$(LOCAL_PATH)/configs/thermald-8974.conf:system/etc/thermald-8974.conf
|
$(LOCAL_PATH)/configs/thermald-8974.conf:system/etc/thermald-8974.conf
|
||||||
|
|
||||||
# Torch
|
|
||||||
PRODUCT_PACKAGES += \
|
|
||||||
Torch
|
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
dhcpcd.conf \
|
dhcpcd.conf \
|
||||||
|
@ -164,6 +136,12 @@ TARGET_BOOTANIMATION_HALF_RES := true
|
||||||
TARGET_SCREEN_WIDTH := 2560
|
TARGET_SCREEN_WIDTH := 2560
|
||||||
TARGET_SCREEN_HEIGHT := 1600
|
TARGET_SCREEN_HEIGHT := 1600
|
||||||
|
|
||||||
|
# Default Properties
|
||||||
|
#ADDITIONAL_DEFAULT_PROPERTIES += \
|
||||||
|
# persist.service.adb.enable=1 \
|
||||||
|
# persist.service.debuggable=1 \
|
||||||
|
# ro.adb.secure=0
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libnetcmdiface
|
libnetcmdiface
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
# lines, full and viennalte, hence its name.
|
# lines, full and viennalte, hence its name.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Inherit from viennalte device
|
||||||
|
$(call inherit-product, device/samsung/viennalte/device.mk)
|
||||||
|
|
||||||
# Inherit from those products. Most specific first.
|
# Inherit from those products. Most specific first.
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||||
|
@ -28,9 +30,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||||
# Set those variables here to overwrite the inherited values.
|
# Set those variables here to overwrite the inherited values.
|
||||||
PRODUCT_NAME := viennalte
|
PRODUCT_NAME := viennalte
|
||||||
PRODUCT_DEVICE := viennalte
|
PRODUCT_DEVICE := viennalte
|
||||||
|
PRODUCT_MODEL := Samsung Galaxy Note Pro 12.2 SM-P905
|
||||||
PRODUCT_BRAND := samsung
|
PRODUCT_BRAND := samsung
|
||||||
PRODUCT_MANUFACTURER := samsung
|
PRODUCT_MANUFACTURER := samsung
|
||||||
PRODUCT_MODEL := SM-P905
|
|
||||||
|
|
||||||
$(call inherit-product, device/samsung/viennalte/device.mk)
|
|
||||||
$(call inherit-product-if-exists, vendor/samsung/viennalte/viennalte-vendor.mk)
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
/*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef DEVICE_PERMS_H
|
|
||||||
#define DEVICE_PERMS_H
|
|
||||||
|
|
||||||
#define PROPERTY_PERMS_APPEND \
|
|
||||||
{ "persist.audio.", AID_SYSTEM, 0 }, \
|
|
||||||
{ "persist.sys.camera.", AID_MEDIA, 0 }, \
|
|
||||||
{ "wlan.hdcp2.", AID_MEDIA, 0 },
|
|
||||||
#endif /* DEVICE_PERMS_H */
|
|
|
@ -1,41 +0,0 @@
|
||||||
/****************************************************************************
|
|
||||||
****************************************************************************
|
|
||||||
***
|
|
||||||
*** This header was automatically generated from a Linux kernel header
|
|
||||||
*** of the same name, to make information necessary for userspace to
|
|
||||||
*** call into the kernel available to libc. It contains only constants,
|
|
||||||
*** structures, and macros generated from the original header, and thus,
|
|
||||||
*** contains no copyrightable information.
|
|
||||||
***
|
|
||||||
*** To edit the content of this header, modify the corresponding
|
|
||||||
*** source file (e.g. under external/kernel-headers/original/) then
|
|
||||||
*** run bionic/libc/kernel/tools/update_all.py
|
|
||||||
***
|
|
||||||
*** Any manual change here will be lost the next time this script will
|
|
||||||
*** be run. You've been warned!
|
|
||||||
***
|
|
||||||
****************************************************************************
|
|
||||||
****************************************************************************/
|
|
||||||
#ifndef _CALIB_HWDEP_H
|
|
||||||
#define _CALIB_HWDEP_H
|
|
||||||
#define WCD9XXX_CODEC_HWDEP_NODE 1000
|
|
||||||
enum wcd_cal_type {
|
|
||||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
||||||
WCD9XXX_MIN_CAL,
|
|
||||||
WCD9XXX_ANC_CAL = WCD9XXX_MIN_CAL,
|
|
||||||
WCD9XXX_MAD_CAL,
|
|
||||||
WCD9XXX_MBHC_CAL,
|
|
||||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
||||||
WCD9XXX_MAX_CAL,
|
|
||||||
};
|
|
||||||
struct wcdcal_ioctl_buffer {
|
|
||||||
__u32 size;
|
|
||||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
||||||
// __u8 __user *buffer;
|
|
||||||
void *buffer;
|
|
||||||
enum wcd_cal_type cal_type;
|
|
||||||
};
|
|
||||||
#define SNDRV_CTL_IOCTL_HWDEP_CAL_TYPE _IOW('U', 0x1, struct wcdcal_ioctl_buffer)
|
|
||||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
key 256 HEADSETHOOK
|
|
|
@ -1,63 +0,0 @@
|
||||||
# Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions are
|
|
||||||
# met:
|
|
||||||
# * Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# * Redistributions in binary form must reproduce the above
|
|
||||||
# copyright notice, this list of conditions and the following
|
|
||||||
# disclaimer in the documentation and/or other materials provided
|
|
||||||
# with the distribution.
|
|
||||||
# * Neither the name of The Linux Foundation nor the names of its
|
|
||||||
# contributors may be used to endorse or promote products derived
|
|
||||||
# from this software without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
||||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
|
||||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
||||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
||||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
||||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
||||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
key 512 0
|
|
||||||
key 513 1
|
|
||||||
key 514 2
|
|
||||||
key 515 3
|
|
||||||
key 516 4
|
|
||||||
key 517 5
|
|
||||||
key 518 6
|
|
||||||
key 519 7
|
|
||||||
key 520 8
|
|
||||||
key 521 9
|
|
||||||
key 213 AVR_INPUT
|
|
||||||
key 375 WINDOW
|
|
||||||
key 115 VOLUME_UP
|
|
||||||
key 114 VOLUME_DOWN
|
|
||||||
key 113 VOLUME_MUTE
|
|
||||||
key 402 CHANNEL_UP
|
|
||||||
key 403 CHANNEL_DOWN
|
|
||||||
key 158 BACK
|
|
||||||
key 358 INFO
|
|
||||||
key 352 ENTER
|
|
||||||
key 103 DPAD_UP
|
|
||||||
key 108 DPAD_DOWN
|
|
||||||
key 105 DPAD_LEFT
|
|
||||||
key 106 DPAD_RIGHT
|
|
||||||
key 119 MEDIA_PAUSE
|
|
||||||
key 366 DVR
|
|
||||||
key 174 BREAK
|
|
||||||
key 148 PROG_RED
|
|
||||||
key 373 PROG_GREEN
|
|
||||||
key 142 PROG_YELLOW
|
|
||||||
key 386 PROG_BLUE
|
|
||||||
key 377 TV
|
|
||||||
key 181 TV_INPUT
|
|
||||||
key 127 FUNCTION
|
|
||||||
key 139 MENU
|
|
||||||
key 116 POWER
|
|
|
@ -1,62 +0,0 @@
|
||||||
# Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions are
|
|
||||||
# met:
|
|
||||||
# * Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# * Redistributions in binary form must reproduce the above
|
|
||||||
# copyright notice, this list of conditions and the following
|
|
||||||
# disclaimer in the documentation and/or other materials provided
|
|
||||||
# with the distribution.
|
|
||||||
# * Neither the name of The Linux Foundation nor the names of its
|
|
||||||
# contributors may be used to endorse or promote products derived
|
|
||||||
# from this software without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
||||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
|
||||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
||||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
||||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
||||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
||||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
key 11 0
|
|
||||||
key 2 1
|
|
||||||
key 3 2
|
|
||||||
key 4 3
|
|
||||||
key 5 4
|
|
||||||
key 6 5
|
|
||||||
key 7 6
|
|
||||||
key 8 7
|
|
||||||
key 9 8
|
|
||||||
key 10 9
|
|
||||||
key 115 VOLUME_UP
|
|
||||||
key 114 VOLUME_DOWN
|
|
||||||
key 113 VOLUME_MUTE
|
|
||||||
key 402 CHANNEL_UP
|
|
||||||
key 403 CHANNEL_DOWN
|
|
||||||
key 158 BACK
|
|
||||||
key 102 INFO
|
|
||||||
key 28 ENTER
|
|
||||||
key 103 DPAD_UP
|
|
||||||
key 108 DPAD_DOWN
|
|
||||||
key 105 DPAD_LEFT
|
|
||||||
key 106 DPAD_RIGHT
|
|
||||||
key 119 MEDIA_PAUSE
|
|
||||||
key 30 PROG_RED
|
|
||||||
key 48 PROG_GREEN
|
|
||||||
key 46 PROG_YELLOW
|
|
||||||
key 32 PROG_BLUE
|
|
||||||
key 139 MENU
|
|
||||||
key 116 POWER
|
|
||||||
key 168 MEDIA_REWIND
|
|
||||||
key 119 MEDIA_PAUSE
|
|
||||||
key 208 MEDIA_FAST_FORWARD
|
|
||||||
key 167 MEDIA_RECORD
|
|
||||||
key 207 MEDIA_PLAY
|
|
||||||
key 128 MEDIA_STOP
|
|
|
@ -1,68 +0,0 @@
|
||||||
# Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions are
|
|
||||||
# met:
|
|
||||||
# * Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# * Redistributions in binary form must reproduce the above
|
|
||||||
# copyright notice, this list of conditions and the following
|
|
||||||
# disclaimer in the documentation and/or other materials provided
|
|
||||||
# with the distribution.
|
|
||||||
# * Neither the name of The Linux Foundation nor the names of its
|
|
||||||
# contributors may be used to endorse or promote products derived
|
|
||||||
# from this software without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
||||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
|
||||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
||||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
||||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
||||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
||||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
key 512 0
|
|
||||||
key 513 1
|
|
||||||
key 514 2
|
|
||||||
key 515 3
|
|
||||||
key 516 4
|
|
||||||
key 517 5
|
|
||||||
key 518 6
|
|
||||||
key 519 7
|
|
||||||
key 520 8
|
|
||||||
key 521 9
|
|
||||||
key 141 SETTINGS
|
|
||||||
key 116 POWER
|
|
||||||
key 352 EQUALS
|
|
||||||
key 105 DPAD_LEFT
|
|
||||||
key 106 DPAD_RIGHT
|
|
||||||
key 103 DPAD_UP
|
|
||||||
key 108 DPAD_DOWN
|
|
||||||
key 172 GUIDE
|
|
||||||
key 174 ESCAPE
|
|
||||||
key 377 TV
|
|
||||||
key 393 WINDOW
|
|
||||||
key 127 TV_INPUT
|
|
||||||
key 390 AVR_INPUT
|
|
||||||
key 128 MEDIA_STOP
|
|
||||||
key 395 EXPLORER
|
|
||||||
key 167 MEDIA_RECORD
|
|
||||||
key 168 MEDIA_REWIND
|
|
||||||
key 207 MEDIA_PLAY
|
|
||||||
key 208 MEDIA_FAST_FORWARD
|
|
||||||
key 158 BACK
|
|
||||||
key 119 MEDIA_PAUSE
|
|
||||||
key 407 MEDIA_NEXT
|
|
||||||
key 115 VOLUME_UP
|
|
||||||
key 114 VOLUME_DOWN
|
|
||||||
key 403 INFO
|
|
||||||
key 113 VOLUME_MUTE
|
|
||||||
key 402 CHANNEL_UP
|
|
||||||
key 403 CHANNEL_DOWN
|
|
||||||
key 110 STB_INPUT
|
|
||||||
key 28 ENTER
|
|
||||||
key 139 MENU
|
|
|
@ -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)
|
|
|
@ -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);
|
|
||||||
}
|
|
|
@ -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);
|
|
||||||
}
|
|
|
@ -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)
|
|
|
@ -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()
|
|
||||||
{
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<!-- Device audio defines "Voice Earpiece Extra Gain" mode. -->
|
|
||||||
<bool name="config_hasVocEpXgain">true</bool>
|
|
||||||
</resources>
|
|
|
@ -1,27 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
/*
|
|
||||||
** Copyright 2011, 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.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- These resources are around just to allow their values to be customized
|
|
||||||
for different hardware and product builds. -->
|
|
||||||
<resources>
|
|
||||||
|
|
||||||
<!-- Hide this setting because we are forcing it to be enabled in build.prop -->
|
|
||||||
<bool name="config_enableLockScreenRotation">false</bool>
|
|
||||||
|
|
||||||
</resources>
|
|
|
@ -27,10 +27,6 @@
|
||||||
rotations as the default behavior. -->
|
rotations as the default behavior. -->
|
||||||
<bool name="config_allowAllRotations">true</bool>
|
<bool name="config_allowAllRotations">true</bool>
|
||||||
|
|
||||||
<!-- Default value for led color when battery is medium charged -->
|
|
||||||
<!-- The green LED is brighter than red, bias closer to yellow. -->
|
|
||||||
<integer name="config_notificationsBatteryMediumARGB">0xFFFF6000</integer>
|
|
||||||
|
|
||||||
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
|
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
|
||||||
The N entries of this array define N 1 zones as follows:
|
The N entries of this array define N 1 zones as follows:
|
||||||
|
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
**
|
|
||||||
** Copyright 2011, 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.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- The <device> element should contain one or more <storage> elements.
|
|
||||||
Exactly one of these should have the attribute primary="true".
|
|
||||||
This storage will be the primary external storage and should have path="/mnt/sdcard".
|
|
||||||
Each storage should have both a path and description attribute set.
|
|
||||||
The following boolean attributes are optional:
|
|
||||||
|
|
||||||
primary: this storage is the primary external storage
|
|
||||||
removable: this is removable storage (for example, a real SD card)
|
|
||||||
emulated: the storage is emulated via the FUSE sdcard daemon
|
|
||||||
mtp-reserve: number of megabytes of storage MTP should reserve for free storage
|
|
||||||
(used for emulated storage that is shared with system's data partition)
|
|
||||||
|
|
||||||
A storage should not have both emulated and removable set to true
|
|
||||||
-->
|
|
||||||
|
|
||||||
<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<storage android:mountPoint="/storage/sdcard0"
|
|
||||||
android:storageDescription="@string/storage_internal"
|
|
||||||
android:primary="true"
|
|
||||||
android:emulated="true"
|
|
||||||
android:mtpReserve="100" />
|
|
||||||
|
|
||||||
<storage android:mountPoint="/storage/sdcard1"
|
|
||||||
android:storageDescription="@string/storage_sd_card"
|
|
||||||
android:primary="false"
|
|
||||||
android:removable="true"
|
|
||||||
android:allowMassStorage="true" />
|
|
||||||
|
|
||||||
<storage android:mountPoint="/storage/usbdisk"
|
|
||||||
android:storageDescription="@string/storage_usb"
|
|
||||||
android:primary="false"
|
|
||||||
android:removable="true" />
|
|
||||||
|
|
||||||
</StorageList>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
/*
|
|
||||||
** Copyright 2011, 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.
|
|
||||||
*/
|
|
||||||
-->
|
|
||||||
|
|
||||||
<resources>
|
|
||||||
<!-- Use ZSL mode for Qualcomm cameras -->
|
|
||||||
<bool name="enableZSL">true</bool>
|
|
||||||
</resources>
|
|
|
@ -23,13 +23,13 @@
|
||||||
<mms_config version="3">
|
<mms_config version="3">
|
||||||
|
|
||||||
<!-- Maximum message size in bytes for a MMS message -->
|
<!-- Maximum message size in bytes for a MMS message -->
|
||||||
<int name="maxMessageSize">1045876</int>
|
<int name="maxMessageSize">3145728</int>
|
||||||
|
|
||||||
<!-- Maximum height for an attached image -->
|
<!-- Maximum height for an attached image -->
|
||||||
<int name="maxImageHeight">2592</int>
|
<int name="maxImageHeight">480</int>
|
||||||
|
|
||||||
<!-- Maximum width for an attached image -->
|
<!-- Maximum width for an attached image -->
|
||||||
<int name="maxImageWidth">2592</int>
|
<int name="maxImageWidth">640</int>
|
||||||
|
|
||||||
<!-- If true, The text message over 160 characters will be sent in multi part.
|
<!-- If true, The text message over 160 characters will be sent in multi part.
|
||||||
If false, The text message over 160 characters will be sent
|
If false, The text message over 160 characters will be sent
|
||||||
|
@ -41,9 +41,9 @@
|
||||||
<bool name="enableSplitSMS">false</bool>
|
<bool name="enableSplitSMS">false</bool>
|
||||||
|
|
||||||
<!-- User-Agent parameter used in MMS http request -->
|
<!-- User-Agent parameter used in MMS http request -->
|
||||||
<string name="userAgent">SAMSUNG-GT-I9300-Mms</string>
|
<string name="userAgent">SAMSUNG-SM-P905-Mms</string>
|
||||||
|
|
||||||
<!-- UAProf URL -->
|
<!-- UAProf URL -->
|
||||||
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/GT-I9300.xml</string>
|
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/SM-905.xml</string>
|
||||||
|
|
||||||
</mms_config>
|
</mms_config>
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright (C) 2014 The CyanogenMod Project
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License
|
|
||||||
version 3 as published by the Free Software Foundation.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
||||||
MA 02110-1301, USA.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<resources>
|
|
||||||
<!-- Our torch mode requires the camera interface to boost the
|
|
||||||
power needed for the flash -->
|
|
||||||
<bool name="useCameraInterface">true</bool>
|
|
||||||
</resources>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<resources>
|
|
||||||
<!-- Miscellaneous -->
|
|
||||||
<bool name="is_tablet">true</bool>
|
|
||||||
<bool name="allow_rotation">true</bool>
|
|
||||||
<bool name="config_largeIcons">true</bool>
|
|
||||||
</resources>
|
|
|
@ -26,6 +26,9 @@
|
||||||
<!-- This device implements a noise suppression device for in call audio-->
|
<!-- This device implements a noise suppression device for in call audio-->
|
||||||
<bool name="has_in_call_noise_suppression">true</bool>
|
<bool name="has_in_call_noise_suppression">true</bool>
|
||||||
|
|
||||||
|
<!-- Flag indicating if the tty is enabled -->
|
||||||
|
<bool name="tty_enabled">true</bool>
|
||||||
|
|
||||||
<!-- Show enabled lte option for lte device -->
|
<!-- Show enabled lte option for lte device -->
|
||||||
<bool name="config_enabled_lte" translatable="false">true</bool>
|
<bool name="config_enabled_lte" translatable="false">true</bool>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -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/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
|
||||||
|
|
|
@ -105,9 +105,9 @@
|
||||||
/dev/gemini/ 0660 system camera
|
/dev/gemini/ 0660 system camera
|
||||||
/dev/mercury0 0660 system camera
|
/dev/mercury0 0660 system camera
|
||||||
/dev/msm_vidc_reg 0660 system audio
|
/dev/msm_vidc_reg 0660 system audio
|
||||||
/dev/msm_vidc_dec 0660 system audio
|
/dev/msm_vidc_dec 0660 system camera
|
||||||
/dev/msm_vidc_dec_sec 0660 system audio
|
/dev/msm_vidc_dec_sec 0660 system camera
|
||||||
/dev/msm_vidc_enc 0660 system audio
|
/dev/msm_vidc_enc 0660 system camera
|
||||||
/dev/msm_rotator 0660 system system
|
/dev/msm_rotator 0660 system system
|
||||||
/dev/hw_random 0660 system system
|
/dev/hw_random 0660 system system
|
||||||
/dev/adsprpc-smd 0664 system system
|
/dev/adsprpc-smd 0664 system system
|
||||||
|
|
20
system.prop
20
system.prop
|
@ -1,17 +1,6 @@
|
||||||
#audio
|
#
|
||||||
persist.audio.fluence.speaker=true
|
# Samsung Galaxy Note Pro 12.2
|
||||||
persist.audio.fluence.voicecall=true
|
#
|
||||||
persist.audio.fluence.voicerec=false
|
|
||||||
ro.qc.sdk.audio.fluencetype=fluence
|
|
||||||
mm.enable.smoothstreaming=true
|
|
||||||
av.streaming.offload.enable=true
|
|
||||||
use.voice.path.for.pcm.voip=true
|
|
||||||
audio.offload.multiple.enabled=true
|
|
||||||
audio.offload.gapless.enabled=true
|
|
||||||
tunnel.audio.encode=true
|
|
||||||
media.aac_51_output_enabled=true
|
|
||||||
audio.offload.pcm.16bit.enable=true
|
|
||||||
audio.offload.pcm.24bit.enable=true
|
|
||||||
|
|
||||||
# display
|
# display
|
||||||
lockscreen.rot_override=true
|
lockscreen.rot_override=true
|
||||||
|
@ -26,6 +15,9 @@ ro.gps.agps_provider=1
|
||||||
ro.qc.sdk.izat.premium_enabled=0
|
ro.qc.sdk.izat.premium_enabled=0
|
||||||
ro.qc.sdk.izat.service_mask=0x0
|
ro.qc.sdk.izat.service_mask=0x0
|
||||||
|
|
||||||
|
# Camera
|
||||||
|
camera2.portability.force_api=1
|
||||||
|
|
||||||
# Media
|
# Media
|
||||||
av.streaming.offload.enable=true
|
av.streaming.offload.enable=true
|
||||||
audio.offload.gapless.enabled=true
|
audio.offload.gapless.enabled=true
|
||||||
|
|
Loading…
Add table
Reference in a new issue