diff --git a/AndroidProducts.mk b/AndroidProducts.mk deleted file mode 100755 index f126f92..0000000 --- a/AndroidProducts.mk +++ /dev/null @@ -1,2 +0,0 @@ -PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/full_viennalte.mk diff --git a/consumerir/Android.mk b/consumerir/Android.mk deleted file mode 100755 index 0e096aa..0000000 --- a/consumerir/Android.mk +++ /dev/null @@ -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/..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) diff --git a/consumerir/consumerir.c b/consumerir/consumerir.c deleted file mode 100755 index 5192462..0000000 --- a/consumerir/consumerir.c +++ /dev/null @@ -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 -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#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, - }, -}; diff --git a/device.mk b/device.mk index a047c81..027fcf7 100755 --- a/device.mk +++ b/device.mk @@ -16,13 +16,13 @@ $(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) -## We are a tablet, not a phone +# We are a tablet, not a phone PRODUCT_CHARACTERISTICS := tablet -## overlays +# overlays DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay # Device uses high-density artwork where available @@ -35,19 +35,11 @@ $(call inherit-product-if-exists, frameworks/native/build/phone-xxxhdpi-3072-hwu # Permissions 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.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.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/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/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.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 # Audio @@ -60,7 +52,6 @@ PRODUCT_COPY_FILES += \ # Camera PRODUCT_PACKAGES += \ camera.msm8974 \ - libshim_qcopt \ libxml2 # GPS @@ -81,12 +72,8 @@ PRODUCT_PACKAGES += \ # Keylayouts PRODUCT_COPY_FILES += \ $(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/philips_remote_ir.kl:system/usr/keylayout/philips_remote_ir.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 + $(LOCAL_PATH)/keylayout/sec_touchscreen.kl:system/usr/keylayout/sec_touchscreen.kl # Keystore PRODUCT_PACKAGES += \ @@ -100,13 +87,6 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(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 PRODUCT_PACKAGES += \ libril_shim @@ -130,19 +110,11 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libstlport -# rmt_storage -PRODUCT_PACKAGES += \ - libshim_rmt_storage - # Thermal PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf \ $(LOCAL_PATH)/configs/thermald-8974.conf:system/etc/thermald-8974.conf -# Torch -PRODUCT_PACKAGES += \ - Torch - # Wifi PRODUCT_PACKAGES += \ dhcpcd.conf \ @@ -164,6 +136,12 @@ TARGET_BOOTANIMATION_HALF_RES := true TARGET_SCREEN_WIDTH := 2560 TARGET_SCREEN_HEIGHT := 1600 +# Default Properties +#ADDITIONAL_DEFAULT_PROPERTIES += \ +# persist.service.adb.enable=1 \ +# persist.service.debuggable=1 \ +# ro.adb.secure=0 + # Wifi PRODUCT_PACKAGES += \ libnetcmdiface diff --git a/full_viennalte.mk b/full_viennalte.mk index e3cb3b6..a747dd8 100755 --- a/full_viennalte.mk +++ b/full_viennalte.mk @@ -21,6 +21,8 @@ # 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. $(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. PRODUCT_NAME := viennalte PRODUCT_DEVICE := viennalte +PRODUCT_MODEL := Samsung Galaxy Note Pro 12.2 SM-P905 PRODUCT_BRAND := 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) diff --git a/include/device_perms.h b/include/device_perms.h deleted file mode 100755 index aa89672..0000000 --- a/include/device_perms.h +++ /dev/null @@ -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 */ diff --git a/include/sound/msmcal-hwdep.h b/include/sound/msmcal-hwdep.h deleted file mode 100755 index 625e735..0000000 --- a/include/sound/msmcal-hwdep.h +++ /dev/null @@ -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 - diff --git a/keylayout/Button_Jack.kl b/keylayout/Button_Jack.kl deleted file mode 100755 index 504e307..0000000 --- a/keylayout/Button_Jack.kl +++ /dev/null @@ -1 +0,0 @@ -key 256 HEADSETHOOK diff --git a/keylayout/philips_remote_ir.kl b/keylayout/philips_remote_ir.kl deleted file mode 100755 index b8512eb..0000000 --- a/keylayout/philips_remote_ir.kl +++ /dev/null @@ -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 diff --git a/keylayout/samsung_remote_ir.kl b/keylayout/samsung_remote_ir.kl deleted file mode 100755 index b162f7e..0000000 --- a/keylayout/samsung_remote_ir.kl +++ /dev/null @@ -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 diff --git a/keylayout/ue_rf4ce_remote.kl b/keylayout/ue_rf4ce_remote.kl deleted file mode 100755 index 982d6ce..0000000 --- a/keylayout/ue_rf4ce_remote.kl +++ /dev/null @@ -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 diff --git a/libshims/Android.mk b/libshims/Android.mk deleted file mode 100755 index f57ac3f..0000000 --- a/libshims/Android.mk +++ /dev/null @@ -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) diff --git a/libshims/icu53.c b/libshims/icu53.c deleted file mode 100755 index 65a197f..0000000 --- a/libshims/icu53.c +++ /dev/null @@ -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); -} diff --git a/libshims/ioprio.c b/libshims/ioprio.c deleted file mode 100755 index ae5bed3..0000000 --- a/libshims/ioprio.c +++ /dev/null @@ -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 -#include -#include -#include - -#include - -/* - * 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); -} diff --git a/libwcnss_qmi/Android.mk b/libwcnss_qmi/Android.mk deleted file mode 100755 index dd0df10..0000000 --- a/libwcnss_qmi/Android.mk +++ /dev/null @@ -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) diff --git a/libwcnss_qmi/wcnss_qmi_client.c b/libwcnss_qmi/wcnss_qmi_client.c deleted file mode 100755 index 9742515..0000000 --- a/libwcnss_qmi/wcnss_qmi_client.c +++ /dev/null @@ -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 -#include - -#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() -{ -} diff --git a/overlay/device/samsung/msm8960-common/DeviceSettings/res/values/config.xml b/overlay/device/samsung/msm8960-common/DeviceSettings/res/values/config.xml deleted file mode 100755 index e5777e4..0000000 --- a/overlay/device/samsung/msm8960-common/DeviceSettings/res/values/config.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - true - diff --git a/overlay/frameworks/base/core/res/res/values-sw600dp/config.xml b/overlay/frameworks/base/core/res/res/values-sw600dp/config.xml deleted file mode 100755 index 3f631e9..0000000 --- a/overlay/frameworks/base/core/res/res/values-sw600dp/config.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - false - - diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index f4b3665..366cb09 100755 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -27,10 +27,6 @@ rotations as the default behavior. --> true - - - 0xFFFF6000 - - - - - - - - - - - - diff --git a/overlay/packages/apps/Camera2/res/values/config.xml b/overlay/packages/apps/Camera2/res/values/config.xml deleted file mode 100755 index b442aa4..0000000 --- a/overlay/packages/apps/Camera2/res/values/config.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - true - diff --git a/overlay/packages/apps/Mms/res/xml/mms_config.xml b/overlay/packages/apps/Mms/res/xml/mms_config.xml index 3d7cf29..87a6252 100755 --- a/overlay/packages/apps/Mms/res/xml/mms_config.xml +++ b/overlay/packages/apps/Mms/res/xml/mms_config.xml @@ -23,13 +23,13 @@ - 1045876 + 3145728 - 2592 + 480 - 2592 + 640 - SAMSUNG-GT-I9300-Mms + SAMSUNG-SM-P905-Mms - http://wap.samsungmobile.com/uaprof/GT-I9300.xml + http://wap.samsungmobile.com/uaprof/SM-905.xml diff --git a/overlay/packages/apps/Torch/res/values/config.xml b/overlay/packages/apps/Torch/res/values/config.xml deleted file mode 100755 index aadaeb4..0000000 --- a/overlay/packages/apps/Torch/res/values/config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - true - diff --git a/overlay/packages/apps/Trebuchet/res/values/config.xml b/overlay/packages/apps/Trebuchet/res/values/config.xml deleted file mode 100755 index dde1aa3..0000000 --- a/overlay/packages/apps/Trebuchet/res/values/config.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - true - true - true - diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml index 8dead20..2485fdd 100755 --- a/overlay/packages/services/Telephony/res/values/config.xml +++ b/overlay/packages/services/Telephony/res/values/config.xml @@ -26,6 +26,9 @@ true + + true + true diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 2692157..253ade2 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -34,7 +34,7 @@ on early-init setprop sys.io.scheduler noop 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 mkdir /persist 0771 system system diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index e90287b..36c5f0c 100755 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -105,9 +105,9 @@ /dev/gemini/ 0660 system camera /dev/mercury0 0660 system camera /dev/msm_vidc_reg 0660 system audio -/dev/msm_vidc_dec 0660 system audio -/dev/msm_vidc_dec_sec 0660 system audio -/dev/msm_vidc_enc 0660 system audio +/dev/msm_vidc_dec 0660 system camera +/dev/msm_vidc_dec_sec 0660 system camera +/dev/msm_vidc_enc 0660 system camera /dev/msm_rotator 0660 system system /dev/hw_random 0660 system system /dev/adsprpc-smd 0664 system system diff --git a/system.prop b/system.prop index 4d4acea..d95831b 100755 --- a/system.prop +++ b/system.prop @@ -1,17 +1,6 @@ -#audio -persist.audio.fluence.speaker=true -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 +# +# Samsung Galaxy Note Pro 12.2 +# # display lockscreen.rot_override=true @@ -26,6 +15,9 @@ ro.gps.agps_provider=1 ro.qc.sdk.izat.premium_enabled=0 ro.qc.sdk.izat.service_mask=0x0 +# Camera +camera2.portability.force_api=1 + # Media av.streaming.offload.enable=true audio.offload.gapless.enabled=true