diff options
author | andi34 <skate4life@gmx.de> | 2015-08-12 12:41:03 +0200 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2015-08-12 21:51:14 +0200 |
commit | c3efcb0fc78724c830ca6895893dcc54c368a39e (patch) | |
tree | 31cfba19c3dd6afa03f12d41efa3f59ab48f00f0 | |
parent | aef65ac5b00bd1948816abae5232e70ee126e844 (diff) | |
download | device_samsung_espresso3g-c3efcb0fc78724c830ca6895893dcc54c368a39e.zip device_samsung_espresso3g-c3efcb0fc78724c830ca6895893dcc54c368a39e.tar.gz device_samsung_espresso3g-c3efcb0fc78724c830ca6895893dcc54c368a39e.tar.bz2 |
P51xx: move to espresso-common repo (1/2)
Change-Id: If95daa33ddb81c48920b2914b7e97863c2c45881
47 files changed, 10 insertions, 4151 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index ad43bbb..1757254 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -1,4 +1,5 @@ # +# Copyright (C) 2015 SlimRoms # Copyright (C) 2012 The CyanogenMod Project # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,107 +18,11 @@ # This variable is set first, so it can be overridden # by BoardConfigVendor.mk --include device/samsung/omap4-common/BoardConfigCommon.mk - -USE_CAMERA_STUB := true - -TARGET_NO_BOOTLOADER := true -TARGET_NO_RADIOIMAGE := true - -TARGET_BOARD_OMAP_CPU := 4430 -TARGET_BOOTLOADER_BOARD_NAME := piranha - -BOARD_NAND_PAGE_SIZE := 4096 -BOARD_NAND_SPARE_SIZE := 128 -BOARD_KERNEL_PAGESIZE := 2048 -BOARD_KERNEL_BASE := 0x40000000 -# BOARD_KERNEL_CMDLINE := - -# Init -TARGET_PROVIDES_INIT := true -TARGET_PROVIDES_INIT_TARGET_RC := true - -# Filesystem -TARGET_USERIMAGES_USE_EXT4 := true -BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 -BOARD_FLASH_BLOCK_SIZE := 4096 - -# Egl -BOARD_EGL_CFG := device/samsung/p5100/configs/egl.cfg -USE_OPENGL_RENDERER := true - -# Vold -BOARD_VOLD_MAX_PARTITIONS := 12 -BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true -BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true -TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/class/android_usb/f_mass_storage/lun%d/file" - -# Wifi -BOARD_WLAN_DEVICE := bcmdhd -BOARD_WLAN_DEVICE_REV := bcm4330_b1 -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 -WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko" -WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" -WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin" -WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin" -WIFI_DRIVER_FW_PATH_P2P := "/system/etc/wifi/bcmdhd_p2p.bin" -WIFI_DRIVER_MODULE_NAME := "dhd" -WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" -WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt" -WIFI_BAND := 802_11_ABG -BOARD_HAVE_SAMSUNG_WIFI := true -BOARD_NO_APSME_ATTR := true -BOARD_NO_WIFI_HAL := true +-include device/samsung/espresso-common/BoardConfigCommon.mk # Bluetooth -BOARD_HAVE_BLUETOOTH := true -BOARD_HAVE_BLUETOOTH_BCM := true BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/p5100/bluetooth BOARD_BLUEDROID_VENDOR_CONF := device/samsung/p5100/bluetooth/vnd_espresso10.txt -# Charger -BOARD_CHARGER_SHOW_PERCENTAGE := true - -# Sensors -BOARD_USE_LEGACY_SENSORS_FUSION := false - -# Security -BOARD_USES_SECURE_SERVICES := true - -# Selinux -BOARD_SEPOLICY_DIRS += \ - device/samsung/p5100/sepolicy - -BOARD_SEPOLICY_UNION += \ - device.te \ - dock_kbd_attach.te \ - file.te \ - file_contexts \ - geomagneticd.te \ - orientationd.te \ - gpsd.te \ - smc_pa.te \ - sysinit.te - -# Recovery -TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888" -BOARD_UMS_LUNFILE := "/sys/class/android_usb/f_mass_storage/lun0/file" -BOARD_USES_MMCUTILS := true -BOARD_HAS_NO_MISC_PARTITION := true -BOARD_HAS_NO_SELECT_BUTTON := true -BOARD_SUPPRESS_EMMC_WIPE := true -TARGET_RECOVERY_FSTAB := device/samsung/p5100/rootdir/etc/fstab.espresso10 -RECOVERY_FSTAB_VERSION := 2 -BOARD_HAS_DOWNLOAD_MODE := true - -BOARD_CUSTOM_BOOTIMG_MK := device/samsung/p5100/custombootimg.mk -BOARD_CANT_BUILD_RECOVERY_FROM_BOOT_PATCH=true - # Use the non-open-source parts, if they're present -include vendor/samsung/p51xx/BoardConfigVendor.mk diff --git a/camerawrapper/Android.mk b/camerawrapper/Android.mk deleted file mode 100644 index 9b4e0db..0000000 --- a/camerawrapper/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := \ - CameraWrapper.cpp - -LOCAL_SHARED_LIBRARIES := \ - libhardware liblog libcamera_client libutils - -LOCAL_C_INCLUDES += \ - system/core/include \ - system/media/camera/include - -LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw -LOCAL_MODULE := camera.$(TARGET_BOOTLOADER_BOARD_NAME) -LOCAL_MODULE_TAGS := optional - -include $(BUILD_SHARED_LIBRARY) -#include $(BUILD_HEAPTRACKED_SHARED_LIBRARY) diff --git a/camerawrapper/CameraWrapper.cpp b/camerawrapper/CameraWrapper.cpp deleted file mode 100644 index 7a13301..0000000 --- a/camerawrapper/CameraWrapper.cpp +++ /dev/null @@ -1,568 +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. - */ - -/** -* @file CameraWrapper.cpp -* -* This file wraps a vendor camera module. -* -*/ - - -#define LOG_NDEBUG 0 -//#define LOG_PARAMETERS - -#define LOG_TAG "CameraWrapper" -#include <cutils/log.h> - -#include <utils/threads.h> -#include <utils/String8.h> -#include <hardware/hardware.h> -#include <hardware/camera.h> -#include <camera/Camera.h> -#include <camera/CameraParameters.h> - -static android::Mutex gCameraWrapperLock; -static camera_module_t *gVendorModule = 0; - -static int camera_device_open(const hw_module_t* module, const char* name, - hw_device_t** device); -static int camera_device_close(hw_device_t* device); -static int camera_get_number_of_cameras(void); -static int camera_get_camera_info(int camera_id, struct camera_info *info); - -static struct hw_module_methods_t camera_module_methods = { - .open = camera_device_open, -}; - -camera_module_t HAL_MODULE_INFO_SYM = { - .common = { - .tag = HARDWARE_MODULE_TAG, - .module_api_version = CAMERA_MODULE_API_VERSION_1_0, - .hal_api_version = HARDWARE_HAL_API_VERSION, - .id = CAMERA_HARDWARE_MODULE_ID, - .name = "Espresso Camera Wrapper", - .author = "The CyanogenMod Project", - .methods = &camera_module_methods, - .dso = NULL, /* remove compilation warnings */ - .reserved = {0}, /* remove compilation warnings */ - }, - .get_number_of_cameras = camera_get_number_of_cameras, - .get_camera_info = camera_get_camera_info, - .set_callbacks = NULL, /* remove compilation warnings */ - .get_vendor_tag_ops = NULL, /* remove compilation warnings */ - .open_legacy = NULL, /* remove compilation warnings */ - .reserved = {0}, /* remove compilation warnings */ -}; - -typedef struct wrapper_camera_device { - camera_device_t base; - int id; - camera_device_t *vendor; -} wrapper_camera_device_t; - -#define VENDOR_CALL(device, func, ...) ({ \ - wrapper_camera_device_t *__wrapper_dev = (wrapper_camera_device_t*) device; \ - __wrapper_dev->vendor->ops->func(__wrapper_dev->vendor, ##__VA_ARGS__); \ -}) - -#define CAMERA_ID(device) (((wrapper_camera_device_t *)(device))->id) - -static int check_vendor_module() -{ - int rv = 0; - ALOGV("%s", __FUNCTION__); - - if(gVendorModule) - return 0; - - rv = hw_get_module_by_class("camera", "vendor", (const hw_module_t **)&gVendorModule); - if (rv) - ALOGE("failed to open vendor camera module"); - return rv; -} - -static char * camera_fixup_getparams(int id, const char * settings) -{ - android::CameraParameters params; - params.unflatten(android::String8(settings)); - - // fix params here - //params.set(android::CameraParameters::KEY_MIN_EXPOSURE_COMPENSATION, "-3"); - //params.set(android::CameraParameters::KEY_MAX_EXPOSURE_COMPENSATION, "3"); - - android::String8 strParams = params.flatten(); - char *ret = strdup(strParams.string()); - - ALOGD("%s: get parameters fixed up", __FUNCTION__); - return ret; -} - -char * camera_fixup_setparams(int id, const char * settings) -{ - android::CameraParameters params; - params.unflatten(android::String8(settings)); - - // fix params here - - android::String8 strParams = params.flatten(); - char *ret = strdup(strParams.string()); - - ALOGD("%s: set parameters fixed up", __FUNCTION__); - return ret; -} - -/******************************************************************* - * implementation of camera_device_ops functions - *******************************************************************/ - -int camera_set_preview_window(struct camera_device * device, - struct preview_stream_ops *window) -{ - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device || !window) - return -EINVAL; - - return VENDOR_CALL(device, set_preview_window, window); -} - -void camera_set_callbacks(struct camera_device * device, - camera_notify_callback notify_cb, - camera_data_callback data_cb, - camera_data_timestamp_callback data_cb_timestamp, - camera_request_memory get_memory, - void *user) -{ - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - ALOGV("%s", __FUNCTION__); - - if(!device) - return; - - VENDOR_CALL(device, set_callbacks, notify_cb, data_cb, data_cb_timestamp, get_memory, user); -} - -void camera_enable_msg_type(struct camera_device * device, int32_t msg_type) -{ - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - ALOGV("%s", __FUNCTION__); - - if(!device) - return; - - VENDOR_CALL(device, enable_msg_type, msg_type); -} - -void camera_disable_msg_type(struct camera_device * device, int32_t msg_type) -{ - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - ALOGV("%s", __FUNCTION__); - - if(!device) - return; - - VENDOR_CALL(device, disable_msg_type, msg_type); -} - -int camera_msg_type_enabled(struct camera_device * device, int32_t msg_type) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return 0; - - return VENDOR_CALL(device, msg_type_enabled, msg_type); -} - -int camera_start_preview(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, start_preview); -} - -void camera_stop_preview(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - VENDOR_CALL(device, stop_preview); -} - -int camera_preview_enabled(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, preview_enabled); -} - -int camera_store_meta_data_in_buffers(struct camera_device * device, int enable) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, store_meta_data_in_buffers, enable); -} - -int camera_start_recording(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return EINVAL; - - return VENDOR_CALL(device, start_recording); -} - -void camera_stop_recording(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - - VENDOR_CALL(device, stop_recording); -} - -int camera_recording_enabled(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, recording_enabled); -} - -void camera_release_recording_frame(struct camera_device * device, - const void *opaque) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - VENDOR_CALL(device, release_recording_frame, opaque); -} - -int camera_auto_focus(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - - return VENDOR_CALL(device, auto_focus); -} - -int camera_cancel_auto_focus(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, cancel_auto_focus); -} - -int camera_take_picture(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, take_picture); -} - -int camera_cancel_picture(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, cancel_picture); -} - -int camera_set_parameters(struct camera_device * device, const char *params) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - char *tmp = NULL; - tmp = camera_fixup_setparams(CAMERA_ID(device), params); - -#ifdef LOG_PARAMETERS - __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, tmp); -#endif - - int ret = VENDOR_CALL(device, set_parameters, tmp); - return ret; -} - -char* camera_get_parameters(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return NULL; - - char* params = VENDOR_CALL(device, get_parameters); - -#ifdef LOG_PARAMETERS - __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, params); -#endif - - char * tmp = camera_fixup_getparams(CAMERA_ID(device), params); - VENDOR_CALL(device, put_parameters, params); - params = tmp; - -#ifdef LOG_PARAMETERS - __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, params); -#endif - - return params; -} - -static void camera_put_parameters(struct camera_device *device, char *params) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(params) - free(params); -} - -int camera_send_command(struct camera_device * device, - int32_t cmd, int32_t arg1, int32_t arg2) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, send_command, cmd, arg1, arg2); -} - -void camera_release(struct camera_device * device) -{ - ALOGV("%s", __FUNCTION__); - ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - VENDOR_CALL(device, release); -} - -int camera_dump(struct camera_device * device, int fd) -{ - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, dump, fd); -} - -extern "C" void heaptracker_free_leaked_memory(void); - -int camera_device_close(hw_device_t* device) -{ - int ret = 0; - wrapper_camera_device_t *wrapper_dev = NULL; - - ALOGV("%s", __FUNCTION__); - - android::Mutex::Autolock lock(gCameraWrapperLock); - - if (!device) { - ret = -EINVAL; - goto done; - } - - wrapper_dev = (wrapper_camera_device_t*) device; - - wrapper_dev->vendor->common.close((hw_device_t*)wrapper_dev->vendor); - if (wrapper_dev->base.ops) - free(wrapper_dev->base.ops); - free(wrapper_dev); -done: -#ifdef HEAPTRACKER - heaptracker_free_leaked_memory(); -#endif - return ret; -} - -/******************************************************************* - * implementation of camera_module functions - *******************************************************************/ - -/* open device handle to one of the cameras - * - * assume camera service will keep singleton of each camera - * so this function will always only be called once per camera instance - */ - -int camera_device_open(const hw_module_t* module, const char* name, - hw_device_t** device) -{ - int rv = 0; - int num_cameras = 0; - int cameraid; - wrapper_camera_device_t* camera_device = NULL; - camera_device_ops_t* camera_ops = NULL; - - android::Mutex::Autolock lock(gCameraWrapperLock); - - ALOGV("camera_device open"); - - if (name != NULL) { - if (check_vendor_module()) - return -EINVAL; - - cameraid = atoi(name); - num_cameras = gVendorModule->get_number_of_cameras(); - - if(cameraid > num_cameras) - { - ALOGE("camera service provided cameraid out of bounds, " - "cameraid = %d, num supported = %d", - cameraid, num_cameras); - rv = -EINVAL; - goto fail; - } - - camera_device = (wrapper_camera_device_t*)malloc(sizeof(*camera_device)); - if(!camera_device) - { - ALOGE("camera_device allocation fail"); - rv = -ENOMEM; - goto fail; - } - memset(camera_device, 0, sizeof(*camera_device)); - camera_device->id = cameraid; - - if(rv = gVendorModule->common.methods->open((const hw_module_t*)gVendorModule, name, (hw_device_t**)&(camera_device->vendor))) - { - ALOGE("vendor camera open fail"); - goto fail; - } - ALOGV("%s: got vendor camera device 0x%08X", __FUNCTION__, (uintptr_t)(camera_device->vendor)); - - camera_ops = (camera_device_ops_t*)malloc(sizeof(*camera_ops)); - if(!camera_ops) - { - ALOGE("camera_ops allocation fail"); - rv = -ENOMEM; - goto fail; - } - - memset(camera_ops, 0, sizeof(*camera_ops)); - - camera_device->base.common.tag = HARDWARE_DEVICE_TAG; - camera_device->base.common.version = CAMERA_DEVICE_API_VERSION_1_0; - camera_device->base.common.module = (hw_module_t *)(module); - camera_device->base.common.close = camera_device_close; - camera_device->base.ops = camera_ops; - - camera_ops->set_preview_window = camera_set_preview_window; - camera_ops->set_callbacks = camera_set_callbacks; - camera_ops->enable_msg_type = camera_enable_msg_type; - camera_ops->disable_msg_type = camera_disable_msg_type; - camera_ops->msg_type_enabled = camera_msg_type_enabled; - camera_ops->start_preview = camera_start_preview; - camera_ops->stop_preview = camera_stop_preview; - camera_ops->preview_enabled = camera_preview_enabled; - camera_ops->store_meta_data_in_buffers = camera_store_meta_data_in_buffers; - camera_ops->start_recording = camera_start_recording; - camera_ops->stop_recording = camera_stop_recording; - camera_ops->recording_enabled = camera_recording_enabled; - camera_ops->release_recording_frame = camera_release_recording_frame; - camera_ops->auto_focus = camera_auto_focus; - camera_ops->cancel_auto_focus = camera_cancel_auto_focus; - camera_ops->take_picture = camera_take_picture; - camera_ops->cancel_picture = camera_cancel_picture; - camera_ops->set_parameters = camera_set_parameters; - camera_ops->get_parameters = camera_get_parameters; - camera_ops->put_parameters = camera_put_parameters; - camera_ops->send_command = camera_send_command; - camera_ops->release = camera_release; - camera_ops->dump = camera_dump; - - *device = &camera_device->base.common; - } - - return rv; - -fail: - if(camera_device) { - free(camera_device); - camera_device = NULL; - } - if(camera_ops) { - free(camera_ops); - camera_ops = NULL; - } - *device = NULL; - return rv; -} - -int camera_get_number_of_cameras(void) -{ - ALOGV("%s", __FUNCTION__); - if (check_vendor_module()) - return 0; - return gVendorModule->get_number_of_cameras(); -} - -int camera_get_camera_info(int camera_id, struct camera_info *info) -{ - ALOGV("%s", __FUNCTION__); - if (check_vendor_module()) - return 0; - return gVendorModule->get_camera_info(camera_id, info); -} diff --git a/cm.dependencies b/cm.dependencies index 856e0a1..a243080 100644 --- a/cm.dependencies +++ b/cm.dependencies @@ -4,6 +4,10 @@ "target_path": "device/samsung/omap4-common" }, { + "repository": "android_device_samsung_espresso-common", + "target_path": "device/samsung/espresso-common" + }, + { "repository": "android_kernel_samsung_espresso10", "target_path": "kernel/samsung/espresso10" }, @@ -30,7 +30,7 @@ $(call inherit-product, device/samsung/p5100/full_p5100.mk) # CyanogenMod specific overlay DEVICE_PACKAGE_OVERLAYS += device/samsung/p5100/overlay/cm -DEVICE_PACKAGE_OVERLAYS += device/samsung/p5100/overlay/cm-common +DEVICE_PACKAGE_OVERLAYS += device/samsung/espresso-common/overlay/cm-common ## Device identifier. This must come after all inclusions PRODUCT_DEVICE := p5100 diff --git a/configs/audio_effects.conf b/configs/audio_effects.conf deleted file mode 100644 index d681c69..0000000 --- a/configs/audio_effects.conf +++ /dev/null @@ -1,133 +0,0 @@ -# List of effect libraries to load. Each library element must contain a "path" element -# giving the full path of the library .so file. -# libraries { -# <lib name> { -# path <lib path> -# } -# } -libraries { - bundle { - path /system/lib/soundfx/libbundlewrapper.so - } - reverb { - path /system/lib/soundfx/libreverbwrapper.so - } - visualizer { - path /system/lib/soundfx/libvisualizer.so - } - pre_processing { - path /system/lib/soundfx/libaudiopreprocessing.so - } - downmix { - path /system/lib/soundfx/libdownmix.so - } -} - -# list of effects to load. Each effect element must contain a "library" and a "uuid" element. -# The value of the "library" element must correspond to the name of one library element in the -# "libraries" element. -# The name of the effect element is indicative, only the value of the "uuid" element -# designates the effect. -# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the -# generic effect type UUID. -# effects { -# <fx name> { -# library <lib name> -# uuid <effect uuid> -# } -# ... -# } - -effects { - bassboost { - library bundle - uuid 8631f300-72e2-11df-b57e-0002a5d5c51b - } - virtualizer { - library bundle - uuid 1d4033c0-8557-11df-9f2d-0002a5d5c51b - } - equalizer { - library bundle - uuid ce772f20-847d-11df-bb17-0002a5d5c51b - } - volume { - library bundle - uuid 119341a0-8469-11df-81f9-0002a5d5c51b - } - reverb_env_aux { - library reverb - uuid 4a387fc0-8ab3-11df-8bad-0002a5d5c51b - } - reverb_env_ins { - library reverb - uuid c7a511a0-a3bb-11df-860e-0002a5d5c51b - } - reverb_pre_aux { - library reverb - uuid f29a1400-a3bb-11df-8ddc-0002a5d5c51b - } - reverb_pre_ins { - library reverb - uuid 172cdf00-a3bc-11df-a72f-0002a5d5c51b - } - visualizer { - library visualizer - uuid d069d9e0-8329-11df-9168-0002a5d5c51b - } - downmix { - library downmix - uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f - } - agc { - library pre_processing - uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b - } - aec { - library pre_processing - uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b - } - ns { - library pre_processing - uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b - } -} -# Audio preprocessor configurations. -# The pre processor configuration consists in a list of elements each describing -# pre processor settings for a given input source. Valid input source names are: -# "mic", "camcorder", "voice_recognition", "voice_communication" -# Each input source element contains a list of effects elements. The name of the effect -# element must be the name of one of the effects in the "effects" list of the file. -# Each effect element may optionally contain a list of parameters and their -# default value to apply when the pre processor effect is created. -# A parameter is defined by a "param" element and a "value" element. Each of these elements -# consists in one or more elements specifying a type followed by a value. -# The types defined are: "int", "short", "float", "bool" and "string" -# When both "param" and "value" are a single int, a simple form is allowed where just -# the param and value pair is present in the parameter description -# pre_processing { -# <input source name> { -# <fx name> { -# <param 1 name> { -# param { -# int|short|float|bool|string <value> -# [ int|short|float|bool|string <value> ] -# ... -# } -# value { -# int|short|float|bool|string <value> -# [ int|short|float|bool|string <value> ] -# ... -# } -# } -# <param 2 name > {<param> <value>} -# ... -# } -# ... -# } -# ... -# } - -# -# TODO: add default audio pre processor configurations after debug and tuning phase -# diff --git a/configs/egl.cfg b/configs/egl.cfg deleted file mode 100644 index 3e1a8c6..0000000 --- a/configs/egl.cfg +++ /dev/null @@ -1 +0,0 @@ -0 1 POWERVR_SGX540_120 diff --git a/configs/gps.conf b/configs/gps.conf deleted file mode 100644 index 5015eb0..0000000 --- a/configs/gps.conf +++ /dev/null @@ -1,6 +0,0 @@ -NTP_SERVER=north-america.pool.ntp.org -XTRA_SERVER_1=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat -XTRA_SERVER_2=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat -XTRA_SERVER_3=http://gllto.glpals.com/4day/glo/v2/latest/lto2.dat -SUPL_HOST=supl.google.com -SUPL_PORT=7276 diff --git a/configs/gps.xml b/configs/gps.xml deleted file mode 100644 index 1c4aaa9..0000000 --- a/configs/gps.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<glgps xmlns="http://www.glpals.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.glpals.com/glconfig.xsd" > - <!--HAL Confguration --> - <hal - acPortName="/dev/ttyO0" - lBaudRate="115200" - gpioNStdbyPath="/sys/class/sec/gps/GPS_PWR_EN/value" - gpioNResetPath="/sys/class/sec/gps/GPS_nRST/value" - gpioDelayMs="250" - acNvStoDir="/data/gps/" - FactoryTestFilePath="/data/" - - acLogDirectory="/sdcard/gps/broadcom/" - - TISEnabled="true" - LPmode="false" - cp-cold-start="false" - cp-guard-time-sec="1" - - arp-supl-enable="true" - arp-supl-cap-msb="true" - arp-supl-cap-msa="true" - arp-supl-cap-ecid="false" - arp-supl-use-apn="false" - acSuplServer="supl.google.com" - SuplPort="7276" - tlsCertPath="/system/bin/gps.cer" - tlsEnable="false" - ReAidingIntervalSec="1200" - SuplUT1Seconds="20" - SuplUT2Seconds="20" - SuplUT3Seconds="20" - SuplVersion="1" - - LbsEnable="true" - LbsLocal="false" - LbsServer="BCMLS2.glpals.com" - LbsPort="7275" - LbsSyncLto="false" - SyncLto="true" - ltoFileName="lto2.dat" - acLtoDir="/data/gps/" - LbsSyncLtoThresholdDays="3" - LbsTAC="10101222" - LbsWlanEnable="false" - - IgnoreJniTime="true" - - SensorsEnable="false" - SensorsPowerSave="false" - SensorsLog="false" - - /> - - <gll - LogPriMask="LOG_INFO" - LogFacMask="LOG_GLLAPI | LOG_NMEA | LOG_RAWDATA" - FrqPlan="FRQ_PLAN_26MHZ_2PPM_26MHZ_300PPB" - RfType="GL_RF_47511_BRCM_EXT_LNA" - WarmStandbyTimeout1Seconds="10" - WarmStandbyTimeout2Seconds="15" - > - </gll> - <gll_features - EnableLowPowerEls="false" - EnableLowPowerPmm="true" - /> - -</glgps> diff --git a/configs/media_codecs.xml b/configs/media_codecs.xml deleted file mode 100644 index 9c94f1e..0000000 --- a/configs/media_codecs.xml +++ /dev/null @@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- Copyright (C) 2012 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. ---> - -<!-- -<!DOCTYPE MediaCodecs [ -<!ELEMENT MediaCodecs (Decoders,Encoders)> -<!ELEMENT Decoders (MediaCodec*)> -<!ELEMENT Encoders (MediaCodec*)> -<!ELEMENT MediaCodec (Type*,Quirk*)> -<!ATTLIST MediaCodec name CDATA #REQUIRED> -<!ATTLIST MediaCodec type CDATA> -<!ELEMENT Type EMPTY> -<!ATTLIST Type name CDATA #REQUIRED> -<!ELEMENT Quirk EMPTY> -<!ATTLIST Quirk name CDATA #REQUIRED> -]> - -There's a simple and a complex syntax to declare the availability of a -media codec: - -A codec that properly follows the OpenMax spec and therefore doesn't have any -quirks and that only supports a single content type can be declared like so: - - <MediaCodec name="OMX.foo.bar" type="something/interesting" /> - -If a codec has quirks OR supports multiple content types, the following syntax -can be used: - - <MediaCodec name="OMX.foo.bar" > - <Type name="something/interesting" /> - <Type name="something/else" /> - ... - <Quirk name="requires-allocate-on-input-ports" /> - <Quirk name="requires-allocate-on-output-ports" /> - <Quirk name="output-buffers-are-unreadable" /> - </MediaCodec> - -Only the three quirks included above are recognized at this point: - -"requires-allocate-on-input-ports" - must be advertised if the component does not properly support specification - of input buffers using the OMX_UseBuffer(...) API but instead requires - OMX_AllocateBuffer to be used. - -"requires-allocate-on-output-ports" - must be advertised if the component does not properly support specification - of output buffers using the OMX_UseBuffer(...) API but instead requires - OMX_AllocateBuffer to be used. - -"output-buffers-are-unreadable" - must be advertised if the emitted output buffers of a decoder component - are not readable, i.e. use a custom format even though abusing one of - the official OMX colorspace constants. - Clients of such decoders will not be able to access the decoded data, - naturally making the component much less useful. The only use for - a component with this quirk is to render the output to the screen. - Audio decoders MUST NOT advertise this quirk. - Video decoders that advertise this quirk must be accompanied by a - corresponding color space converter for thumbnail extraction, - matching surfaceflinger support that can render the custom format to - a texture and possibly other code, so just DON'T USE THIS QUIRK. - ---> - -<MediaCodecs> - <Include href="media_codecs_google_audio.xml" /> - <Include href="media_codecs_google_telephony.xml" /> - - <Decoders> - <MediaCodec name="OMX.TI.DUCATI1.VIDEO.DECODER" > - <Type name="video/mp4v-es" /> - <Type name="video/3gpp" /> - <Type name="video/avc" /> - <Quirk name="requires-allocate-on-input-ports" /> - <Quirk name="requires-allocate-on-output-ports" /> - </MediaCodec> - - </Decoders> - - <Encoders> - <MediaCodec name="OMX.TI.DUCATI1.VIDEO.MPEG4E" > - <Type name="video/mp4v-es" /> - <Type name="video/3gpp" /> - <Quirk name="requires-allocate-on-input-ports" /> - <Quirk name="requires-allocate-on-output-ports" /> - </MediaCodec> - - <MediaCodec name="OMX.TI.DUCATI1.VIDEO.H264E" type="video/avc" > - <Quirk name="requires-allocate-on-input-ports" /> - <Quirk name="requires-allocate-on-output-ports" /> - </MediaCodec> - - </Encoders> - - <Include href="media_codecs_google_video.xml" /> - <Include href="media_codecs_ffmpeg.xml" /> -</MediaCodecs> diff --git a/configs/media_codecs_google_video.xml b/configs/media_codecs_google_video.xml deleted file mode 100644 index dde73cf..0000000 --- a/configs/media_codecs_google_video.xml +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- Copyright (C) 2014 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. ---> - -<Included> - <Decoders> - <MediaCodec name="OMX.google.mpeg4.decoder"> - <Type name="video/mp4v-es" /> - <!-- - Use Google mpeg4 decoder for mpeg4 DP content which is not - supported by HW. A component can be used to support several - mimetypes, so non-DP mpeg4 usecases will not be affected by this. - --> - <Type name="video/mp4v-esdp" /> - <!-- profiles and levels: ProfileSimple : Level3 --> - <Limit name="size" min="2x2" max="352x288" /> - <Limit name="alignment" value="2x2" /> - <Limit name="block-size" value="16x16" /> - <Limit name="blocks-per-second" range="12-11880" /> - <Limit name="bitrate" range="1-384000" /> - <Feature name="adaptive-playback" /> - </MediaCodec> - <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp"> - <!-- profiles and levels: ProfileBaseline : Level30, ProfileBaseline : Level45 - ProfileISWV2 : Level30, ProfileISWV2 : Level45 --> - <Limit name="size" min="2x2" max="352x288" /> - <Limit name="alignment" value="2x2" /> - <Limit name="bitrate" range="1-384000" /> - <Feature name="adaptive-playback" /> - </MediaCodec> - <!-- STARGO: Remove adaptive-playback from H.264 decoder to fix Netflix --> - <MediaCodec name="OMX.google.h264.decoder" type="video/avc"> - <!-- profiles and levels: ProfileBaseline : Level51 --> - <Limit name="size" min="2x2" max="2048x2048" /> - <Limit name="alignment" value="2x2" /> - <Limit name="block-size" value="16x16" /> - <Limit name="blocks-per-second" range="1-983040" /> - <Limit name="bitrate" range="1-40000000" /> - </MediaCodec> - <!-- STARGO: end Netflix hack --> - <MediaCodec name="OMX.google.hevc.decoder" type="video/hevc"> - <!-- profiles and levels: ProfileMain : MainTierLevel51 --> - <Limit name="size" min="2x2" max="2048x2048" /> - <Limit name="alignment" value="2x2" /> - <Limit name="block-size" value="8x8" /> - <Limit name="block-count" range="1-139264" /> - <Limit name="blocks-per-second" range="1-2000000" /> - <Limit name="bitrate" range="1-10000000" /> - <Feature name="adaptive-playback" /> - </MediaCodec> - <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8"> - <Limit name="size" min="2x2" max="2048x2048" /> - <Limit name="alignment" value="2x2" /> - <Limit name="block-size" value="16x16" /> - <Limit name="blocks-per-second" range="1-1000000" /> - <Limit name="bitrate" range="1-40000000" /> - <Feature name="adaptive-playback" /> - </MediaCodec> - <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9"> - <Limit name="size" min="2x2" max="2048x2048" /> - <Limit name="alignment" value="2x2" /> - <Limit name="block-size" value="16x16" /> - <Limit name="blocks-per-second" range="1-500000" /> - <Limit name="bitrate" range="1-40000000" /> - <Feature name="adaptive-playback" /> - </MediaCodec> - </Decoders> - - <Encoders> - <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp"> - <!-- profiles and levels: ProfileBaseline : Level45 --> - <Limit name="size" min="16x16" max="176x144" /> - <Limit name="alignment" value="16x16" /> - <Limit name="bitrate" range="1-128000" /> - </MediaCodec> - <MediaCodec name="OMX.google.h264.encoder" type="video/avc"> - <!-- profiles and levels: ProfileBaseline : Level2 --> - <Limit name="size" min="16x16" max="896x896" /> - <Limit name="alignment" value="16x16" /> - <Limit name="block-size" value="16x16" /> - <Limit name="blocks-per-second" range="1-11880" /> - <Limit name="bitrate" range="1-2000000" /> - </MediaCodec> - <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es"> - <!-- profiles and levels: ProfileCore : Level2 --> - <Limit name="size" min="16x16" max="176x144" /> - <Limit name="alignment" value="16x16" /> - <Limit name="block-size" value="16x16" /> - <Limit name="blocks-per-second" range="12-1485" /> - <Limit name="bitrate" range="1-64000" /> - </MediaCodec> - <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8"> - <!-- profiles and levels: ProfileMain : Level_Version0-3 --> - <Limit name="size" min="2x2" max="2048x2048" /> - <Limit name="alignment" value="2x2" /> - <Limit name="bitrate" range="1-40000000" /> - <Feature name="bitrate-modes" value="VBR,CBR" /> - </MediaCodec> - </Encoders> -</Included> diff --git a/configs/media_profiles.xml b/configs/media_profiles.xml deleted file mode 100644 index 3b2a56a..0000000 --- a/configs/media_profiles.xml +++ /dev/null @@ -1,467 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2010 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. ---> -<!DOCTYPE MediaSettings [ - <!ELEMENT MediaSettings (CamcorderProfiles, - EncoderOutputFileFormat+, - VideoEncoderCap+, - AudioEncoderCap+, - VideoDecoderCap, - AudioDecoderCap)> - <!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)> - <!ELEMENT EncoderProfile (Video, Audio)> - <!ATTLIST EncoderProfile quality (timelapse720p|timelapse480p|timelapsehigh|timelapselow|480p|qcif|high|low) #REQUIRED> - <!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED> - <!ATTLIST EncoderProfile duration (30|60) #REQUIRED> - <!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED> - <!ELEMENT Video EMPTY> - <!ATTLIST Video codec (h264|h263|m4v) #REQUIRED> - <!ATTLIST Video bitRate CDATA #REQUIRED> - <!ATTLIST Video width CDATA #REQUIRED> - <!ATTLIST Video height CDATA #REQUIRED> - <!ATTLIST Video frameRate CDATA #REQUIRED> - <!ELEMENT Audio EMPTY> - <!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED> - <!ATTLIST Audio bitRate CDATA #REQUIRED> - <!ATTLIST Audio sampleRate CDATA #REQUIRED> - <!ATTLIST Audio channels (1|2) #REQUIRED> - <!ELEMENT ImageEncoding EMPTY> - <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> - <!ELEMENT ImageDecoding EMPTY> - <!ATTLIST ImageDecoding memCap CDATA #REQUIRED> - <!ELEMENT Camera EMPTY> - <!ATTLIST Camera previewFrameRate CDATA #REQUIRED> - <!ELEMENT EncoderOutputFileFormat EMPTY> - <!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED> - <!ELEMENT VideoEncoderCap EMPTY> - <!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED> - <!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED> - <!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED> - <!ELEMENT AudioEncoderCap EMPTY> - <!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED> - <!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED> - <!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED> - <!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED> - <!ELEMENT VideoDecoderCap EMPTY> - <!ATTLIST VideoDecoderCap name (wmv) #REQUIRED> - <!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED> - <!ELEMENT AudioDecoderCap EMPTY> - <!ATTLIST AudioDecoderCap name (wma) #REQUIRED> - <!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED> - <!ELEMENT VideoEditorCap EMPTY> - <!ATTLIST VideoEditorCap maxInputFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED> - <!ELEMENT ExportVideoProfile EMPTY> - <!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED> - <!ATTLIST ExportVideoProfile profile CDATA #REQUIRED> - <!ATTLIST ExportVideoProfile level CDATA #REQUIRED> -]> -<!-- - This file is used to declare the multimedia profiles and capabilities - on an android-powered device. ---> -<MediaSettings> - <!-- Each camcorder profile defines a set of predefined configuration parameters --> - <!-- Back Camera --> - <CamcorderProfiles cameraId="0"> - - <EncoderProfile quality="low" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="high" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="12000000" - width="1280" - height="720" - frameRate="30" /> - - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="480p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="720p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="12000000" - width="1280" - height="720" - frameRate="30" /> - - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="timelapselow" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapsehigh" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="12000000" - width="1280" - height="720" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="timelapseqcif" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse480p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse720p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="12000000" - width="1280" - height="720" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <ImageEncoding quality="90" /> - <ImageEncoding quality="80" /> - <ImageEncoding quality="70" /> - <ImageDecoding memCap="20000000" /> - - </CamcorderProfiles> - - <!-- Front Camera --> - <CamcorderProfiles cameraId="1"> - - <EncoderProfile quality="low" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="high" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="qcif" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="480p" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="timelapselow" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapsehigh" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="timelapseqcif" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse480p" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="192000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <ImageEncoding quality="90" /> - <ImageEncoding quality="80" /> - <ImageEncoding quality="70" /> - <ImageDecoding memCap="20000000" /> - - </CamcorderProfiles> - - <EncoderOutputFileFormat name="3gp" /> - <EncoderOutputFileFormat name="mp4" /> - - <!-- - If a codec is not enabled, it is invisible to the applications - In other words, the applications won't be able to use the codec - or query the capabilities of the codec at all if it is disabled - --> - <VideoEncoderCap name="h264" enabled="true" - minBitRate="64000" maxBitRate="20000000" - minFrameWidth="176" maxFrameWidth="1280" - minFrameHeight="144" maxFrameHeight="720" - minFrameRate="1" maxFrameRate="30" /> - - <VideoEncoderCap name="h263" enabled="true" - minBitRate="64000" maxBitRate="1000000" - minFrameWidth="176" maxFrameWidth="800" - minFrameHeight="144" maxFrameHeight="480" - minFrameRate="1" maxFrameRate="30" /> - - <VideoEncoderCap name="m4v" enabled="true" - minBitRate="64000" maxBitRate="20000000" - minFrameWidth="176" maxFrameWidth="1280" - minFrameHeight="144" maxFrameHeight="720" - minFrameRate="1" maxFrameRate="30" /> - - <AudioEncoderCap name="aac" enabled="true" - minBitRate="8192" maxBitRate="192000" - minSampleRate="8000" maxSampleRate="48000" - minChannels="1" maxChannels="2" /> - - <AudioEncoderCap name="amrwb" enabled="true" - minBitRate="6600" maxBitRate="23050" - minSampleRate="16000" maxSampleRate="16000" - minChannels="1" maxChannels="1" /> - - <AudioEncoderCap name="amrnb" enabled="true" - minBitRate="5525" maxBitRate="12200" - minSampleRate="8000" maxSampleRate="8000" - minChannels="1" maxChannels="1" /> - - <!-- - FIXME: - We do not check decoder capabilities at present - At present, we only check whether windows media is visible - for TEST applications. For other applications, we do - not perform any checks at all. - --> - <VideoDecoderCap name="wmv" enabled="false"/> - <AudioDecoderCap name="wma" enabled="false"/> - - <!-- - The VideoEditor Capability configuration: - - maxInputFrameWidth: maximum video width of imported video clip. - - maxInputFrameHeight: maximum video height of imported video clip. - - maxOutputFrameWidth: maximum video width of exported video clip. - - maxOutputFrameHeight: maximum video height of exported video clip. - - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder, - used to limit the amount of memory for prefetched YUV frames. - For this platform, it allows maximum ~1MB(~0.1MB per QVGA frame x 10 - frames) memory. - --> - - <VideoEditorCap maxInputFrameWidth="1280" - maxInputFrameHeight="720" maxOutputFrameWidth="1280" - maxOutputFrameHeight="720" maxPrefetchYUVFrames="5"/> - <!-- - The VideoEditor Export codec profile and level values - correspond to the values in OMX_Video.h. - E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline - and level 256 means OMX_VIDEO_AVCLevel3. - Please note that the values are in decimal. - These values are for video encoder. - --> - <!-- - Codec = h.264, Baseline profile, level 3 - --> - <ExportVideoProfile name="h264" profile= "1" level="256"/> - <!-- - Codec = h.263, Baseline profile, level 0 - --> - <ExportVideoProfile name="h263" profile= "1" level="1"/> - <!-- - Codec = mpeg4, Simple profile, level 3 - --> - <ExportVideoProfile name="m4v" profile= "1" level="16"/> -</MediaSettings> diff --git a/configs/wpa_supplicant.conf b/configs/wpa_supplicant.conf deleted file mode 100644 index 314897f..0000000 --- a/configs/wpa_supplicant.conf +++ /dev/null @@ -1,9 +0,0 @@ -update_config=1 -ctrl_interface=wlan0 -eapol_version=1 -ap_scan=1 -fast_reauth=1 -p2p_listen_reg_class=81 -p2p_listen_channel=1 -p2p_oper_reg_class=115 -p2p_oper_channel=48 diff --git a/custombootimg.mk b/custombootimg.mk deleted file mode 100644 index bf84033..0000000 --- a/custombootimg.mk +++ /dev/null @@ -1,22 +0,0 @@ -LZMA_BIN := $(shell which lzma) - - -$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \ - $(recovery_ramdisk) \ - $(recovery_uncompressed_ramdisk) \ - $(recovery_kernel) - @echo -e ${CL_CYN}"----- Compressing recovery ramdisk with lzma ------"${CL_RST} - rm -f $(recovery_uncompressed_ramdisk).lzma - $(LZMA_BIN) $(recovery_uncompressed_ramdisk) - $(hide) cp $(recovery_uncompressed_ramdisk).lzma $(recovery_ramdisk) - @echo ----- Making recovery image ------ - $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ - @echo -e ${CL_CYN}"----- Made recovery image -------- $@"${CL_RST} - $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) - - -$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) - $(call pretty,"Target boot image: $@") - $(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ - $(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw) - @echo -e ${CL_CYN}"Made boot image: $@"${CL_RST} diff --git a/dock_keyboard/NOTICE b/dock_keyboard/NOTICE deleted file mode 100644 index a415bfb..0000000 --- a/dock_keyboard/NOTICE +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright (C) 2012, Samsung Electronics - * Author : Heetae Ahn <heetae82.ahn@samsung.com> - * - * Based on inputattach.c - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * 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. - * - */ - - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - <one line to give the program's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - 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. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - <signature of Ty Coon>, 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/dock_keyboard/dock_keyboard_attach.c b/dock_keyboard/dock_keyboard_attach.c deleted file mode 100644 index 6312a5f..0000000 --- a/dock_keyboard/dock_keyboard_attach.c +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (C) 2012, Samsung Electronics - * Author : Heetae Ahn <heetae82.ahn@samsung.com> - * - * Based on inputattach.c - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * 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. - * - */ - -#include <linux/serio.h> - -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> - -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <fcntl.h> -#include <termios.h> -#include <string.h> -#include <assert.h> -#include <ctype.h> - -#define SERIO_SAMSUNG 0x3d -#define CONSOLE_PROC "/proc/consoles" -#define MAX_DEV_NAME_SIZE 64 -#define MAX_PATH_SIZE 128 -#define MAX_BUF_SIZE 255 -#define DELIM "/" - -void setline(int fd, int flags, int speed) -{ - struct termios t; - - tcgetattr(fd, &t); - - t.c_cflag = flags | CREAD | HUPCL | CLOCAL; - t.c_iflag = IGNBRK | IGNPAR; - t.c_oflag = 0; - t.c_lflag = 0; - t.c_cc[VMIN] = 1; - t.c_cc[VTIME] = 0; - - cfsetispeed(&t, speed); - cfsetospeed(&t, speed); - - tcsetattr(fd, TCSANOW, &t); -} - -int main(int argc, char **argv) -{ - - unsigned long devt; - int ldisc; - int type; - long id, extra; - int fd; - char c; - FILE *fp; - char uart_name[MAX_DEV_NAME_SIZE]; - char uart_path[MAX_PATH_SIZE]; - char buf[MAX_BUF_SIZE]; - char *token; - char *ptr; - - if (argc < 1 || argc > 2) - return 1; - - strncpy(uart_path, argv[1], MAX_PATH_SIZE); - token = strtok_r(argv[1], DELIM, &ptr); - - while (token) { - strncpy(uart_name, token, MAX_DEV_NAME_SIZE); - token = strtok_r(NULL, DELIM, &ptr); - } - - if (!(fp = fopen(CONSOLE_PROC, "r"))) { - fprintf(stderr, - "dock_kbd_attach: can't open console proc file\n"); - return 1; - } - - while (fgets(buf, MAX_BUF_SIZE, fp)) { - if (!strncmp(uart_name, buf, strlen(uart_name))) { - fprintf(stderr, - "dock_kbd_attach: UART %s is used by console\n", - uart_name); - fclose(fp); - return 1; - } - }; - - fprintf(stdout, "dock_kbd_attach: UART %s is not used by console\n", - uart_name); - - fclose(fp); - - if ((fd = open(uart_path, O_RDWR | O_NOCTTY | O_NONBLOCK)) < 0) { - fprintf(stderr, "dock_kbd_attach: can't open UART device\n"); - return 1; - } - - setline(fd, CS8, B9600); - id = 0; - extra = 0; - ldisc = N_MOUSE; - - if (ioctl(fd, TIOCSETD, &ldisc)) { - fprintf(stderr, "dock_kbd_attach: can't set line discipline\n"); - close(fd); - return 1; - } - - devt = SERIO_SAMSUNG | (id << 8) | (extra << 16); - - if (ioctl(fd, SPIOCSTYPE, &devt)) { - fprintf(stderr, "dock_kbd_attach: can't set device type\n"); - close(fd); - return 1; - } - - while (1) - read(fd, NULL, 0); - - ldisc = 0; - ioctl(fd, TIOCSETD, &ldisc); - close(fd); - - return 0; -} diff --git a/liblights/Android.mk b/liblights/Android.mk deleted file mode 100755 index aaa3a96..0000000 --- a/liblights/Android.mk +++ /dev/null @@ -1,33 +0,0 @@ -# -# Copyright (C) 2012 The Android Open Source Project -# 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. - -LOCAL_PATH:= $(call my-dir) -# HAL module implemenation stored in -# hw/<COPYPIX_HARDWARE_MODULE_ID>.<ro.board.platform>.so -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := lights.c - - -LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw - -LOCAL_SHARED_LIBRARIES := liblog - -LOCAL_MODULE := lights.piranha - -LOCAL_MODULE_TAGS := optional - -include $(BUILD_SHARED_LIBRARY) diff --git a/liblights/lights.c b/liblights/lights.c deleted file mode 100644 index aae53f3..0000000 --- a/liblights/lights.c +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (C) 2012 The Android Open Source Project - * 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. - */ - -#define LOG_TAG "lights" -#define LOG_NDEBUG 0 - -#include <cutils/log.h> -#include <stdint.h> -#include <string.h> -#include <errno.h> -#include <fcntl.h> -#include <pthread.h> -#include <sys/ioctl.h> -#include <sys/types.h> -#include <hardware/lights.h> - -static pthread_once_t g_init = PTHREAD_ONCE_INIT; -static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER; - -char const *const LCD_FILE = "/sys/class/backlight/panel/brightness"; - -void -init_g_lock(void) -{ - pthread_mutex_init(&g_lock, NULL); -} - -static int -write_int(char const *path, int value) -{ - int fd; - static int already_warned = 0; - - fd = open(path, O_RDWR); - if (fd >= 0) { - char buffer[20]; - int bytes = sprintf(buffer, "%d\n", value); - int amt = write(fd, buffer, bytes); - close(fd); - return amt == -1 ? -errno : 0; - } else { - if (already_warned == 0) { - ALOGE("write_int failed to open %s\n", path); - already_warned = 1; - } - return -errno; - } -} - -static int -is_lit(struct light_state_t const* state) -{ - return state->color & 0x00ffffff; -} - -static int -rgb_to_brightness(struct light_state_t const *state) -{ - int color = state->color & 0x00ffffff; - - return ((77*((color>>16) & 0x00ff)) - + (150*((color>>8) & 0x00ff)) + (29*(color & 0x00ff))) >> 8; -} - -static int -set_light_backlight(struct light_device_t *dev, - struct light_state_t const *state) -{ - int err = 0; - int brightness = rgb_to_brightness(state); - - pthread_mutex_lock(&g_lock); - ALOGD("set_light_backlight brightness=%d\n", brightness); - err = write_int(LCD_FILE, brightness); - pthread_mutex_unlock(&g_lock); - - return err; -} - -static int close_lights(struct light_device_t *dev) -{ - ALOGV("close_light is called"); - if (dev) - free(dev); - - return 0; -} - -static int open_lights(const struct hw_module_t *module, char const *name, - struct hw_device_t **device) -{ -int (*set_light)(struct light_device_t* dev, - struct light_state_t const* state); - - if (0 == strcmp(LIGHT_ID_BACKLIGHT, name)) { - set_light = set_light_backlight; - } - else { - return -EINVAL; - } - - pthread_once(&g_init, init_g_lock); - - struct light_device_t *dev = malloc(sizeof(struct light_device_t)); - memset(dev, 0, sizeof(*dev)); - - dev->common.tag = HARDWARE_DEVICE_TAG; - dev->common.version = 0; - dev->common.module = (struct hw_module_t*)module; - dev->common.close = (int (*)(struct hw_device_t*))close_lights; - dev->set_light = set_light; - - *device = (struct hw_device_t*)dev; - return 0;} - -static struct hw_module_methods_t lights_module_methods = { - .open = open_lights, -}; - -struct hw_module_t HAL_MODULE_INFO_SYM = { - .tag = HARDWARE_MODULE_TAG, - .version_major = 1, - .version_minor = 0, - .id = LIGHTS_HARDWARE_MODULE_ID, - .name = "Espresso10 Lights Module", - .author = "The CyanogenMod Project", - .methods = &lights_module_methods, -}; diff --git a/overlay/aosp-common/frameworks/base/core/res/res/values-large/config.xml b/overlay/aosp-common/frameworks/base/core/res/res/values-large/config.xml deleted file mode 100644 index f37c798..0000000 --- a/overlay/aosp-common/frameworks/base/core/res/res/values-large/config.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** Copyright 2009, 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. Do not translate. --> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <integer name="config_longPressOnPowerBehavior">1</integer> -</resources> diff --git a/overlay/aosp-common/frameworks/base/core/res/res/values-sw600dp/config.xml b/overlay/aosp-common/frameworks/base/core/res/res/values-sw600dp/config.xml deleted file mode 100644 index f37c798..0000000 --- a/overlay/aosp-common/frameworks/base/core/res/res/values-sw600dp/config.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** Copyright 2009, 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. Do not translate. --> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <integer name="config_longPressOnPowerBehavior">1</integer> -</resources> diff --git a/overlay/aosp-common/frameworks/base/core/res/res/values/config.xml b/overlay/aosp-common/frameworks/base/core/res/res/values/config.xml deleted file mode 100644 index 673a541..0000000 --- a/overlay/aosp-common/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,249 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** Copyright 2009, 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. Do not translate. --> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - - <!-- Flag indicating whether the surface flinger has limited - alpha compositing functionality in hardware. If set, the window - manager will disable alpha trasformation in animations where not - strictly needed. --> - <bool name="config_sf_limitedAlpha">true</bool> - - <!-- List of regexpressions describing the interface (if any) that represent tetherable - USB interfaces. If the device doesn't want to support tething over USB this should - be empty. An example would be "usb.*" --> - <string-array translatable="false" name="config_tether_usb_regexs"> - <item>"rndis0"</item> - </string-array> - - <!-- List of regexpressions describing the interface (if any) that represent tetherable - WiMAX interfaces. If the device doesn't want to support tethering over Wifi this - should be empty. An example would be "softap.*" --> - <string-array translatable="false" name="config_tether_wifi_regexs"> - <item>"wlan0"</item> - </string-array> - - <!-- List of regexpressions describing the interface (if any) that represent tetherable - bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this - should be empty. --> - <string-array translatable="false" name="config_tether_bluetooth_regexs"> - <item>"bt-pan"</item> - </string-array> - - <!-- Boolean indicating whether the wifi chipset has dual frequency band support --> - <bool translatable="false" name="config_wifi_dual_band_support">true</bool> - - <!-- Boolean indicating whether the wifi chipset supports background scanning mechanism. - This mechanism allows the host to remain in suspend state and the dongle to actively - scan and wake the host when a configured SSID is detected by the dongle. This chipset - capability can provide power savings when wifi needs to be always kept on. --> - <bool translatable="false" name="config_wifi_background_scan_support">true</bool> - - <!-- Flag indicating whether the we should enable the automatic brightness in Settings. - Software implementation will be used if config_hardware_auto_brightness_available is not set --> - <bool name="config_automatic_brightness_available">true</bool> - - <!-- If this is true, the screen will come on when you unplug usb/power/whatever. --> - <bool name="config_unplugTurnsOnScreen">true</bool> - - <!-- If this is true, the screen will fade off. --> - <bool name="config_animateScreenLights">true</bool> - - <!-- If true, the screen can be rotated via the accelerometer in all 4 - rotations as the default behavior. --> - <bool name="config_allowAllRotations">true</bool> - - <!-- Indicate whether the SD card is accessible without removing the battery. --> - <bool name="config_batterySdCardAccessibility">true</bool> - - <!-- Vibrator pattern for feedback about a long screen/key press --> - <integer-array name="config_longPressVibePattern"> - <item>20</item> - <item>40</item> - </integer-array> - - <!-- Vibrator pattern for feedback about touching a virtual key --> - <integer-array name="config_virtualKeyVibePattern"> - <item>0</item> - <item>15</item> - <item>25</item> - <item>35</item> - </integer-array> - - <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap --> - <integer-array name="config_keyboardTapVibePattern"> - <item>50</item> - </integer-array> - - <!-- Screen brightness used to dim the screen when the user activity - timeout expires. May be less than the minimum allowed brightness setting - that can be set by the user. --> - <integer name="config_screenBrightnessDim">20</integer> - - <!-- Minimum allowable screen brightness to use in a very dark room. - This value sets the floor for the darkest possible auto-brightness - adjustment. It is expected to be somewhat less than the first entry in - config_autoBrightnessLcdBacklightValues so as to allow the user to have - some range of adjustment to dim the screen further than usual in very - dark rooms. The contents of the screen must still be clearly visible - in darkness (although they may not be visible in a bright room). --> - <integer name="config_screenBrightnessDark">5</integer> - - <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. - The N entries of this array define N + 1 control points as follows: - (1-based arrays) - - Point 1: (0, value[1]): lux <= 0 - Point 2: (level[1], value[2]): 0 < lux <= level[1] - Point 3: (level[2], value[3]): level[2] < lux <= level[3] - ... - Point N+1: (level[N], value[N+1]): level[N] < lux - - The control points must be strictly increasing. Each control point - corresponds to an entry in the brightness backlight values arrays. - For example, if LUX == level[1] (first element of the levels array) - then the brightness will be determined by value[2] (second element - of the brightness values array). - - Spline interpolation is used to determine the auto-brightness - backlight values for LUX levels between these control points. - - Must be overridden in platform specific overlays --> - <integer-array name="config_autoBrightnessLevels"> - <item>6</item> - <item>12</item> - <item>18</item> - <item>28</item> - <item>40</item> - <item>65</item> - <item>100</item> - <item>150</item> - <item>250</item> - <item>350</item> - <item>500</item> - <item>800</item> - <item>1200</item> - <item>1800</item> - <item>3000</item> - <item>6000</item> - <item>12000</item> - <item>24000</item> - <item>36000</item> - <item>42700</item> - </integer-array> - - <!-- Array of output values for LCD backlight corresponding to the LUX values - in the config_autoBrightnessLevels array. This array should have size one greater - than the size of the config_autoBrightnessLevels array. - The brightness values must be between 0 and 255 and be non-decreasing. - This must be overridden in platform specific overlays --> - <integer-array name="config_autoBrightnessLcdBacklightValues"> - <item>30</item> - <item>33</item> - <item>36</item> - <item>40</item> - <item>45</item> - <item>50</item> - <item>55</item> - <item>60</item> - <item>70</item> - <item>80</item> - <item>90</item> - <item>100</item> - <item>120</item> - <item>150</item> - <item>180</item> - <item>200</item> - <item>210</item> - <item>220</item> - <item>230</item> - <item>240</item> - <item>250</item> - </integer-array> - - <!-- Array of output values for button backlight corresponding to the LUX values - in the config_autoBrightnessLevels array. This array should have size one greater - than the size of the config_autoBrightnessLevels array. - The brightness values must be between 0 and 255 and be non-decreasing. - This must be overridden in platform specific overlays --> - <integer-array name="config_autoBrightnessButtonBacklightValues"> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - </integer-array> - - <!-- Array of output values for keyboard backlight corresponding to the LUX values - in the config_autoBrightnessLevels array. This array should have size one greater - than the size of the config_autoBrightnessLevels array. - - Note: Galaxy Tab 2 has no keyboard so all values are zero. - --> - <integer-array name="config_autoBrightnessKeyboardBacklightValues"> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - </integer-array> - - <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be - autodetected from the Configuration. --> - <bool name="config_showNavigationBar">true</bool> - - <!-- Maximum number of supported users --> - <integer name="config_multiuserMaximumUsers">5</integer> - <!-- Whether UI for multi user should be shown --> - <bool name="config_enableMultiUserUI">true</bool> -</resources> diff --git a/overlay/aosp-common/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/aosp-common/frameworks/base/core/res/res/xml/power_profile.xml deleted file mode 100644 index 8dc8f8f..0000000 --- a/overlay/aosp-common/frameworks/base/core/res/res/xml/power_profile.xml +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -** -** Copyright 2009, 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. -*/ ---> -<device name="Android"> - <item name="none">0</item> - <item name="screen.on">247</item> - <item name="bluetooth.active">30</item> - <item name="bluetooth.on">1</item> - <item name="bluetooth.at">35690</item> - <item name="screen.full">630</item> - <item name="wifi.on">13</item> - <item name="wifi.active">90</item> - <item name="wifi.scan">170</item> - <item name="dsp.audio">120</item> - <item name="dsp.video">758</item> - <item name="radio.active">139</item> - <item name="radio.scanning">25</item> - <item name="gps.on">40</item> - <array name="radio.on"> - <value>4</value> - <value>4</value> - </array> - - <array name="cpu.speeds"> - <value>1504000</value> - <value>1400000</value> - <value>1200000</value> - <value>1000000</value> - <value>800000</value> - <value>600000</value> - <value>300000</value> - </array> - - <item name="cpu.idle">2.9</item> - <array name="cpu.active"> - <value>530</value> - <value>470</value> - <value>370</value> - <value>280</value> - <value>200</value> - <value>120</value> - <value>40</value> - </array> - - <!-- This is the battery capacity in mAh --> - <item name="battery.capacity">6860</item> -</device> diff --git a/overlay/aosp-common/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/aosp-common/frameworks/base/core/res/res/xml/storage_list.xml deleted file mode 100644 index b96131a..0000000 --- a/overlay/aosp-common/frameworks/base/core/res/res/xml/storage_list.xml +++ /dev/null @@ -1,52 +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 mountPoint="/mnt/sdcard". - Each storage should have both a mountPoint and storageDescription attribute. - The following attributes are optional: - - primary: (boolean) this storage is the primary external storage - removable: (boolean) this is removable storage (for example, a real SD card) - emulated: (boolean) the storage is emulated via the FUSE sdcard daemon - mtpReserve: (integer) 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"> - <!-- internal emulated storage --> - <storage - android:storageDescription="@string/storage_internal" - android:emulated="true" - android:primary="true" - android:mtpReserve="100" /> - - <storage android:mountPoint="/storage/sdcard1" - android:storageDescription="@string/storage_sd_card" - android:primary="false" - android:removable="true" /> - - <storage android:mountPoint="/storage/usbdisk0" - android:storageDescription="@string/storage_usb" - android:primary="false" - android:removable="true" /> -</StorageList> diff --git a/overlay/aosp-common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/aosp-common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml deleted file mode 100644 index ba79867..0000000 --- a/overlay/aosp-common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 2009, 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. - */ ---> -<resources> - <bool name="def_screen_brightness_automatic_mode">true</bool> -</resources> diff --git a/overlay/aosp-common/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/aosp-common/frameworks/base/packages/SystemUI/res/values/config.xml deleted file mode 100644 index 3a891ca..0000000 --- a/overlay/aosp-common/frameworks/base/packages/SystemUI/res/values/config.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** Copyright 2009, 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> - <!-- Whether we're using the tablet-optimized recents interface (we use this - value at runtime for some things) --> - <bool name="config_recents_interface_for_tablets">true</bool> - - <!-- Whether recents should use hardware layers for its taskviews. This flag can be enabled - for devices where the java drawing of round rects may be slow --> - <bool name="config_recents_use_hardware_layers">true</bool> - - <!-- Whether to use cheap, less good looking shadows for recents --> - <bool name="config_recents_fake_shadows">true</bool> -</resources> diff --git a/overlay/aosp-common/packages/apps/Settings/res/values/bools.xml b/overlay/aosp-common/packages/apps/Settings/res/values/bools.xml deleted file mode 100644 index f649186..0000000 --- a/overlay/aosp-common/packages/apps/Settings/res/values/bools.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 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. ---> - -<resources> - <!-- Whether or not the dock settings are to be displayed for this device when docked --> - <bool name="has_dock_settings">true</bool> -</resources> diff --git a/overlay/cm-common/frameworks/base/core/res/res/values/cm_arrays.xml b/overlay/cm-common/frameworks/base/core/res/res/values/cm_arrays.xml deleted file mode 100644 index 16ef3c0..0000000 --- a/overlay/cm-common/frameworks/base/core/res/res/values/cm_arrays.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2013-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. ---> - -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <!-- Defines the shutdown options shown in the reboot dialog. --> - <array name="shutdown_reboot_options" translatable="false"> - <item>@string/reboot_reboot</item> - <item>@string/reboot_soft</item> - <item>@string/reboot_recovery</item> - <item>@string/reboot_download</item> - </array> - - <!-- Do not translate. Defines the shutdown actions passed to the kernel. - The first item should be empty for regular reboot. --> - <string-array name="shutdown_reboot_actions" translatable="false"> - <item></item> - <item>soft_reboot</item> - <item>recovery</item> - <item>bootloader</item> - </string-array> -</resources> diff --git a/overlay/cm-common/frameworks/base/core/res/res/values/config.xml b/overlay/cm-common/frameworks/base/core/res/res/values/config.xml deleted file mode 100644 index be240bd..0000000 --- a/overlay/cm-common/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,59 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -** Copyright 2009, 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. Do not translate. --> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - - <!-- Hardware keys present on the device, stored as a bit field. - This integer should equal the sum of the corresponding value for each - of the following keys present: - 1 - Home - 2 - Back - 4 - Menu - 8 - Assistant (search) - 16 - App switch - 32 - Camera - 64 - Volume rocker - For example, a device with Home, Back and Menu keys would set this - config to 7. --> - <integer name="config_deviceHardwareKeys">64</integer> - - <!-- Hardware keys present on the device with the ability to wake, stored as a bit field. - This integer should equal the sum of the corresponding value for each - of the following keys present: - 1 - Home - 2 - Back - 4 - Menu - 8 - Assistant (search) - 16 - App switch - 32 - Camera - 64 - Volume rocker - For example, a device with Home, Back and Menu keys would set this - config to 7. --> - <integer name="config_deviceHardwareWakeKeys">64</integer> - - <!-- Is the device LTE capable --> - <bool name="config_lte_capable">false</bool> - - <!-- Performance profiles --> - <string name="config_perf_profile_prop">sys.perf.profile</string> - <string name="config_perf_profile_default_entry">1</string> - -</resources> diff --git a/p51xx-common.mk b/p51xx-common.mk index 7c6d478..30e8550 100755 --- a/p51xx-common.mk +++ b/p51xx-common.mk @@ -14,15 +14,10 @@ # limitations under the License. # -# Include omap4 common makefile -$(call inherit-product, device/samsung/omap4-common/common.mk) +# Include espresso-common makefile +$(call inherit-product, device/samsung/espresso-common/espresso-common.mk) -DEVICE_PACKAGE_OVERLAYS += device/samsung/p5100/overlay/aosp-common - -$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) - -# The gps config appropriate for this device -$(call inherit-product, device/common/gps/gps_us_supl.mk) +DEVICE_PACKAGE_OVERLAYS += device/samsung/espresso-common/overlay/aosp-common LOCAL_PATH := device/samsung/p5100 @@ -38,96 +33,4 @@ PRODUCT_PACKAGES += \ init.espresso10.rc \ ueventd.espresso10.rc -# GPS -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/gps.xml:system/etc/gps.xml - -# Wifi -PRODUCT_PACKAGES += \ - libwpa_client \ - hostapd \ - dhcpcd.conf \ - wpa_supplicant \ - wpa_supplicant.conf - -PRODUCT_PROPERTY_OVERRIDES += \ - wifi.interface=wlan0 \ - wifi.supplicant_scan_interval=15 - -# Media profiles -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \ - $(LOCAL_PATH)/configs/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ - $(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml - -# Keylayout -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/usr/keychars/espresso-gpio-keypad.kcm:system/usr/keychars/espresso-gpio-keypad.kcm \ - $(LOCAL_PATH)/usr/keychars/sec_keyboard.kcm:system/usr/keychars/sec_keyboard.kcm \ - $(LOCAL_PATH)/usr/keylayout/espresso-gpio-keypad.kl:system/usr/keylayout/espresso-gpio-keypad.kl \ - $(LOCAL_PATH)/usr/keylayout/sec_keyboard.kl:system/usr/keylayout/sec_keyboard.kl - -# Packages -PRODUCT_PACKAGES += \ - audio.primary.piranha \ - audio.r_submix.default \ - camera.piranha \ - hwcomposer.piranha \ - lights.piranha \ - libinvensense_mpl \ - power.piranha - -# Storage -PRODUCT_PROPERTY_OVERRIDES += \ - persist.sys.isUsbOtgEnabled=true - -# Charger -PRODUCT_PACKAGES += \ - charger \ - charger_res_images - -# Samsung dock keyboard -PRODUCT_PACKAGES += \ - dock_kbd_attach - -# These are the hardware-specific features -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ - 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.camera.xml:system/etc/permissions/android.hardware.camera.xml \ - frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ - frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \ - frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ - frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ - frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ - frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ - frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ - frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ - frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ - frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ - frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \ - frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ - frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ - frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ - frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml - -PRODUCT_CHARACTERISTICS := tablet - -PRODUCT_PACKAGES += \ - librs_jni \ - com.android.future.usb.accessory - -# Feature live wallpaper -PRODUCT_COPY_FILES += \ - packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml - -PRODUCT_PROPERTY_OVERRIDES += \ - ro.opengles.version=131072 - -PRODUCT_TAGS += dalvik.gc.type-precise - -$(call inherit-product, frameworks/native/build/tablet-dalvik-heap.mk) -$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk) $(call inherit-product, vendor/samsung/p51xx/p51xx-vendor.mk) diff --git a/rootdir/Android.mk b/rootdir/Android.mk deleted file mode 100644 index 1aeafd0..0000000 --- a/rootdir/Android.mk +++ /dev/null @@ -1,45 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -# boot.img parts -include $(CLEAR_VARS) -LOCAL_MODULE := fstab.espresso10 -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/fstab.espresso10 -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.espresso10.rc -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/init.espresso10.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := init.espresso10.usb.rc -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/init.espresso10.usb.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - -include $(CLEAR_VARS) -LOCAL_MODULE := ueventd.espresso10.rc -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/ueventd.espresso10.rc -LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) -include $(BUILD_PREBUILT) - - -# recovery.img parts -include $(CLEAR_VARS) -LOCAL_MODULE := twrp.fstab -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := ../recovery/root/etc/twrp.fstab -LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc -include $(BUILD_PREBUILT) diff --git a/rootdir/etc/fstab.espresso10 b/rootdir/etc/fstab.espresso10 deleted file mode 100644 index 2b15070..0000000 --- a/rootdir/etc/fstab.espresso10 +++ /dev/null @@ -1,17 +0,0 @@ -# Android fstab file. -#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system ext4 ro,barrier=1 wait -/dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs ext4 nosuid,nodev,barrier=1 wait,check -/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc,journal_async_commit wait,check,encryptable=footer -/dev/block/platform/omap/omap_hsmmc.1/by-name/CACHE /cache ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc,journal_async_commit wait,check - -# vold-managed volumes ("block device" is actually a sysfs devpath) -/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1* auto auto defaults wait,voldmanaged=sdcard1:auto,noemulatedsd -/devices/platform/omap/musb-omap2430/musb-hdrc/usb1* auto auto defaults voldmanaged=usbdisk0:auto,noemulatedsd - -# recovery -/dev/block/mmcblk0p5 /boot emmc defaults recoveryonly -/dev/block/mmcblk0p6 /recovery emmc defaults recoveryonly diff --git a/rootdir/etc/init.espresso10.rc b/rootdir/etc/init.espresso10.rc deleted file mode 100755 index 78d21a7..0000000 --- a/rootdir/etc/init.espresso10.rc +++ /dev/null @@ -1,460 +0,0 @@ -import init.espresso10.usb.rc - -on init - mkdir /mnt/shell/emulated 0700 shell shell - mkdir /storage 0751 root sdcard_r - mkdir /storage/emulated 0555 root root - mkdir /storage/sdcard1 0700 root root - mkdir /storage/usbdisk0 0700 root root - mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw - mkdir /mnt/media_rw/usbdisk0 0700 media_rw media_rw - - export EXTERNAL_STORAGE /storage/emulated/legacy - export EMULATED_STORAGE_SOURCE /mnt/shell/emulated - export EMULATED_STORAGE_TARGET /storage/emulated - export SECONDARY_STORAGE /storage/sdcard1:/storage/usbdisk0 - - # for backwards compatibility - symlink /storage/emulated/legacy /sdcard - symlink /storage/emulated/legacy /mnt/sdcard - symlink /storage/emulated/legacy /storage/sdcard0 - symlink /mnt/shell/emulated/0 /storage/emulated/legacy - symlink /storage/sdcard1 /extSdCard - symlink /storage/sdcard1 /mnt/extSdCard - symlink /storage/usbdisk0 /usbdisk0 - symlink /storage/usbdisk0 /mnt/usbdisk0 - -# Preload libjhead for camera - export LD_PRELOAD /system/lib/libjhead.so - -# Vibetonz - export VIBE_PIPE_PATH /dev/pipes - mkdir /dev/pipes 0771 shell shell - -# Vibetonz - chmod 0660 /dev/tspdrv - chown root shell /dev/tspdrv - -# change permissions for ION driver - chmod 0777 /dev/ion - -# PVR - chmod 0666 /dev/pvrsrvkm - -loglevel 7 - -on fs - mkdir /efs - mount_all /fstab.espresso10 - - setprop ro.crypto.fuse_sdcard true - -# We chown/chmod /efs because mount is run as root + defaults - chown radio system /efs - chmod 0775 /efs - - mount debugfs /sys/kernel/debug /sys/kernel/debug - -# Restorecon - restorecon /efs/nv.log - restorecon /efs/nv_data.bin - restorecon /efs/nv_data.bin.md5 - restorecon /efs/.nv_core.bak - restorecon /efs/.nv_core.bak.md5 - restorecon /efs/.nv_data.bak - restorecon /efs/.nv_data.bak.md5 - restorecon /efs/.nv_state - restorecon /efs/bluetooth/bt_addr - restorecon /efs/FactoryApp/factorymode - restorecon /efs/FactoryApp/hw_ver - restorecon /efs/FactoryApp/keystr - restorecon /efs/FactoryApp/serial_no - restorecon /efs/imei/mps_code.dat - restorecon /efs/wifi/.mac.info - -# pvr module - insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko - -on post-fs-data - # we will remap this as /storage/sdcard0 with the sdcard fuse tool - mkdir /data/media 0770 media_rw media_rw - chown media_rw media_rw /data/media - mkdir /data/misc/wifi 0770 wifi system - mkdir /data/misc/wifi/sockets 0770 wifi wifi - -# dmrpc - mkdir /data/smc 0770 drmrpc drmrpc - chown drmrpc drmrpc /data/smc/counter.bin - chown drmrpc drmrpc /data/smc/storage.bin - chown drmrpc drmrpc /data/smc/system.bin - -# radio - mkdir /data/misc/dhcp 0775 dhcp dhcp - mkdir /data/misc/radio 0771 radio system - mkdir /data/misc/radio/hatp 0771 radio system - chown radio radio /data/misc/radio - - chown dhcp dhcp /data/misc/dhcp - - write /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq 800000 - chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq - -#DVFS Lock - chown radio system /sys/power/cpufreq_min_limit - chown radio system /sys/power/cpufreq_max_limit - chown radio system /sys/power/cpufreq_table - chmod 0664 /sys/power/cpufreq_min_limit - chmod 0664 /sys/power/cpufreq_max_limit - chmod 0664 /sys/power/cpufreq_table - -# permissions for bluetooth. - setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" - chown bluetooth net_bt_stack ro.bt.bdaddr_path - chown bluetooth net_bt_stack /dev/ttyO1 - chmod 0660 /dev/ttyO1 - chmod 0660 /sys/class/rfkill/rfkill0/state - chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state - chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type - restorecon /sys/class/rfkill/rfkill0/state - restorecon /sys/class/rfkill/rfkill0/type - -# for samsung factory. - chown radio radio /efs/bluetooth - chmod 0755 /efs/bluetooth - chmod 0644 /efs/bluetooth/bt_addr - -# Change permission for sensor rev00 - chmod 755 /system/bin/geomagneticd - - chown system input /sys/class/input/input2/enable - chown system input /sys/class/input/input2/poll_delay - - chown system input /sys/class/input/input3/enable - chown system input /sys/class/input/input3/poll_delay - - chown system input /sys/class/input/input2/enable - chown system input /sys/class/input/input2/delay - chown system input /sys/class/input/input2/wake - - chown system input /sys/class/input/input3/enable - chown system input /sys/class/input/input3/delay - chown system input /sys/class/input/input3/filter_enable - chown system input /sys/class/input/input3/filter_len - chown system input /sys/class/input/input3/data - chown system input /sys/class/input/input3/status - chown system input /sys/class/input/input3/wake - chown system input /sys/class/input/input3/position - - chown compass input /sys/class/input/input3/offsets - chown compass input /sys/class/input/input3/dynamic_matrix - chown system input /sys/class/input/input3/threshold - chown system input /sys/class/input/input3/distortion - chown system input /sys/class/input/input3/shape - write /sys/class/input/input3/distortion "500 350 15" - - chown system input /sys/class/input/input4/enable - chown system input /sys/class/input/input4/delay - chown system input /sys/class/input/input4/filter_enable - chown system input /sys/class/input/input4/filter_len - chown system input /sys/class/input/input4/data - chown system input /sys/class/input/input4/status - chown system input /sys/class/input/input4/wake - chown system input /sys/class/input/input4/position - - chown compass input /sys/class/input/input4/offsets - chown compass input /sys/class/input/input4/dynamic_matrix - chown system input /sys/class/input/input4/threshold - chown system input /sys/class/input/input4/distortion - chown system input /sys/class/input/input4/shape - write /sys/class/input/input4/distortion "500 350 15" - - chown system input /sys/class/input/input5/enable - chown system input /sys/class/input/input5/delay - chown system input /sys/class/input/input5/filter_enable - chown system input /sys/class/input/input5/filter_len - chown system input /sys/class/input/input5/data - chown system input /sys/class/input/input5/status - chown system input /sys/class/input/input5/wake - chown system input /sys/class/input/input5/position - - chown compass input /sys/class/input/input5/offsets - chown compass input /sys/class/input/input5/dynamic_matrix - chown system input /sys/class/input/input5/threshold - chown system input /sys/class/input/input5/distortion - chown system input /sys/class/input/input5/shape - write /sys/class/input/input5/distortion "500 350 15" - - chown system input /sys/class/input/input6/enable - chown system input /sys/class/input/input6/delay - chown system input /sys/class/input/input6/filter_enable - chown system input /sys/class/input/input6/filter_len - chown system input /sys/class/input/input6/data - chown system input /sys/class/input/input6/status - chown system input /sys/class/input/input6/wake - chown system input /sys/class/input/input6/position - - chown compass input /sys/class/input/input6/offsets - chown compass input /sys/class/input/input6/dynamic_matrix - chown system input /sys/class/input/input6/threshold - chown system input /sys/class/input/input6/distortion - chown system input /sys/class/input/input6/shape - write /sys/class/input/input6/distortion "500 350 15" - - chown system input /sys/class/input/input7/enable - chown system input /sys/class/input/input7/delay - chown system input /sys/class/input/input7/filter_enable - chown system input /sys/class/input/input7/filter_len - chown system input /sys/class/input/input7/data - chown system input /sys/class/input/input7/status - chown system input /sys/class/input/input7/wake - chown system input /sys/class/input/input7/position - - chown system radio /sys/class/sensors/accelerometer_sensor/raw_data - chown system radio /sys/class/sensors/accelerometer_sensor/calibration - chown system radio /sys/class/sensors/accelerometer_sensor/vendor - chown system radio /sys/class/sensors/accelerometer_sensor/name - - chown system radio /sys/class/sensors/magnetic_sensor/vendor - chown system radio /sys/class/sensors/magnetic_sensor/name - - chown system radio /sys/class/sensors/proximity_sensor/state - chown system radio /sys/class/sensors/proximity_sensor/raw_data - chown system radio /sys/class/sensors/proximity_sensor/vendor - chown system radio /sys/class/sensors/proximity_sensor/name - - chown system radio /sys/class/sensors/light_sensor/lux - chown system radio /sys/class/sensors/light_sensor/raw_data - chown system radio /sys/class/sensors/light_sensor/vendor - chown system radio /sys/class/sensors/light_sensor/name - -# Change permission for TSP - chown system radio /sys/class/sec/tsp/cmd - chown system radio /sys/class/sec/tsp/cmd_status - chown system radio /sys/class/sec/tsp/cmd_result - chown media_rw media_rw /sys/class/sec/tsp/set_jitter - -# Change permission for switch - chmod 0660 /sys/class/sec/switch/uart_sel - chmod 0660 /sys/class/sec/switch/usb_sel - chmod 0600 /sys/class/sec/switch/jig_on - - chown system radio /sys/class/sec/switch/uart_sel - chown system radio /sys/class/sec/switch/usb_sel - chown radio radio /sys/class/sec/switch/jig_on - chown system radio /sys/class/sec/switch/adc - -# create data/gps for GPS demon - chown root system /dev/ttyO0 - chmod 0660 /dev/ttyO0 - chown root system /sys/class/sec/gps/GPS_PWR_EN/value - chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value - chown root system /sys/class/sec/gps/GPS_nRST/value - chmod 0664 /sys/class/sec/gps/GPS_nRST/value - mkdir /data/gps 771 system system - chown system system /data/gps - -#Change permission for backlight and lcd - chown system system /sys/class/backlight/panel/brightness - chown system radio /sys/class/lcd/panel/lcd_type - chown system radio /sys/class/lcd/panel/lcd_power - -# IrLED - chown system system /sys/class/sec/sec_ir/ir_send - chown system system /sys/class/sec/sec_ir/check_ir - -# Battery - chown system radio /sys/class/power_supply/battery/batt_reset_soc - chmod 0664 /sys/class/power_supply/battery/batt_reset_soc - -# for wifi - mkdir /efs/wifi 0775 system radio - -# for hdcp, amwbr - mkdir /data/misc/radio 0775 radio system - -# for hdmi factory test - chown radio system /sys/devices/platform/omapdss/display1/sec_timing - - setprop vold.post_fs_data_done 1 - -on boot - -# initialize the SGX driver -service pvrsrvinit /system/bin/pvrsrvinit - class core - user root - group root - oneshot - -service pvrsrvctl /system/vendor/bin/pvrsrvctl_SGX540_120 --start --no-module - class core - user root - group root - oneshot - -# SMC Service -service tf_daemon /system/bin/tf_daemon \ - -d -c /system/bin/smc.ini - class main - user root - group root - oneshot - disabled - -service smc_pa /system/bin/smc_pa_ctrl \ - -c /system/bin/smc.ini \ - start /system/bin/smc_pa.ift - class core - user root - group root - oneshot - -service orientationd /system/bin/orientationd - class main - user compass - group input - -service geomagneticd /system/bin/geomagneticd - class main - user compass - group system input - -# create virtual SD card at /storage/sdcard0, based on the /data/media directory -# daemon will drop to user/group system/media_rw after initializing -# underlying files in /data/media will be created with user and group media_rw (1023) -service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated - class late_start - oneshot - -# FUSE sdcard daemon for rich permissions (runs as media_rw) -service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1 - class late_start - disabled - -service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk0 /storage/usbdisk0 - class late_start - disabled - -service p2p_supplicant /system/bin/wpa_supplicant \ - -iwlan0 -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf \ - -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ - -ip2p0 -Dnl80211 -c /data/misc/wifi/p2p_supplicant.conf \ - -I/system/etc/wifi/p2p_supplicant_overlay.conf \ - -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \ - -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore - class main - socket wpa_wlan0 dgram 660 wifi wifi - disabled - oneshot - -service wpa_supplicant /system/bin/wpa_supplicant \ - -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ - -I/system/etc/wifi/wpa_supplicant_overlay.conf \ - -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore - class main - socket wpa_wlan0 dgram 660 wifi wifi - disabled - oneshot - -service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service dhcpcd_p2p /system/bin/dhcpcd -aABKL - class main - disabled - oneshot - -service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service iprenew_wlan0 /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_p2p /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_bt-pan /system/bin/dhcpcd -n - class main - disabled - oneshot - -service cpboot-daemon /sbin/cbd -d -p 8 - class main - user root - group radio cache inet misc audio sdcard_rw log sdcard_r - disabled - -on property:init.svc.pvrsrvinit=stopped - start cpboot-daemon - -# GPS -service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class main - socket gps seqpacket 0660 gps system - user gps - group system inet sdcard_rw - -# TVout -service TvoutService_C /system/bin/bintvoutservice - class main - user system - group system - -# Keyboard -service dock_kbd_attach /system/bin/dock_kbd_attach /dev/ttyO3 - class main - user root - oneshot - -# LPM -on property:ro.bootmode=charger - mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system wait ro - -on property:ro.bootmode=charger - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6860 - write /sys/class/android_usb/android0/functions adb - write /sys/class/android_usb/android0/enable 1 - write /sys/class/android_usb/android0/iManufacturer samsung - write /sys/class/android_usb/android0/iProduct $(ro.product.model) - start adbd - -on property:ro.bootmode=charger - start pvrsrvinit - -on property:ro.bootmode=charger - class_start charger - -service charger /charger - class charger - user root - -## CyanogenMod Performance Profiles -# Powersave -on property:sys.perf.profile=0 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave - -# Balanced, here interactive governor -on property:sys.perf.profile=1 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive - -# Performance -on property:sys.perf.profile=2 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance diff --git a/rootdir/etc/init.espresso10.usb.rc b/rootdir/etc/init.espresso10.usb.rc deleted file mode 100755 index e86a7bd..0000000 --- a/rootdir/etc/init.espresso10.usb.rc +++ /dev/null @@ -1,79 +0,0 @@ -on init - write /sys/class/android_usb/android0/iSerial ${ro.serialno} - write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung - write /sys/class/android_usb/android0/f_rndis/vendorID 04e8 - write /sys/class/android_usb/android0/f_rndis/wceis 1 - -on boot - write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} - write /sys/class/android_usb/android0/iProduct ${ro.product.model} - -on property:sys.usb.config=mtp - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 685c - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=mtp,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6860 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6863 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/bDeviceClass 224 - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/bDeviceClass 224 - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ptp - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6865 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ptp,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6866 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis,dm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis,acm,dm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/f_acm/instances 1 - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} diff --git a/rootdir/etc/ueventd.espresso10.rc b/rootdir/etc/ueventd.espresso10.rc deleted file mode 100644 index f67f204..0000000 --- a/rootdir/etc/ueventd.espresso10.rc +++ /dev/null @@ -1,58 +0,0 @@ -#for DSSCOMP -/dev/dsscomp 0666 system system -/dev/tiler 0666 system system - -#for SYSLINK -/dev/rpmsg-omx0 0660 system drmrpc -/dev/rpmsg-omx1 0660 system drmrpc -/dev/rproc_user 0660 system drmrpc -/dev/tf_driver 0660 drmrpc drmrpc -/dev/tf_ctrl 0660 drmrpc drmrpc - -#for Sensors -/dev/mpu 0660 system system -/dev/mpuirq 0660 system system -/dev/accelirq 0660 system system -/dev/compassirq 0660 system system -/dev/timerirq 0660 system system -/dev/i2c-4 0660 system system - -#for HSPA RIL -/dev/umts_boot0 0660 radio radio -/dev/umts_boot1 0660 radio radio -/dev/umts_ipc0 0660 radio radio -/dev/umts_rfs0 0660 radio radio -/dev/block/mmcblk0p8 0660 radio radio -/dev/umts_ramdump0 0660 radio radio -/dev/umts_router 0660 radio system -/dev/umts_csd 0660 radio system - -# hdcp -/dev/hdcp 0664 root root - -# used by RIL and GPS -/dev/ttyO0 0660 system radio -/dev/ttyGS0 0660 system system - -# for LTE RIL -/dev/cdma_boot0 0660 radio radio -/dev/lte_boot0 0660 radio radio -/dev/cdma_ipc0 0660 radio radio -/dev/lte_ipc0 0660 radio radio -/dev/cdma_rfs0 0660 radio radio -/dev/lte_rfs0 0660 radio radio -/dev/lte_spi 0660 radio radio -/dev/cdma_rmnet5 0660 radio radio -/dev/cdma_rmnet6 0660 radio radio -/dev/lte_rmnet4 0660 radio radio -/dev/ttyGS1 0660 radio radio -/dev/block/mmcblk0p4 0660 radio radio -/dev/modem_br 0660 radio radio -/dev/cdma_ramdump0 0660 radio radio -/dev/lte_ramdump0 0660 radio radio - -# For SGX -/dev/pvrsrvkm 0666 system system - -# For GCX -/dev/gcioctl 0666 system system diff --git a/sepolicy/device.te b/sepolicy/device.te deleted file mode 100644 index d938e5e..0000000 --- a/sepolicy/device.te +++ /dev/null @@ -1,3 +0,0 @@ -# Device types -type dock_device, dev_type; -type smc_device, dev_type; diff --git a/sepolicy/dock_kbd_attach.te b/sepolicy/dock_kbd_attach.te deleted file mode 100644 index 267763a..0000000 --- a/sepolicy/dock_kbd_attach.te +++ /dev/null @@ -1,8 +0,0 @@ -# dock_kbd_attach -type dock_kbd_attach, domain; -type dock_kbd_attach_exec, exec_type, file_type; - -init_daemon_domain(dock_kbd_attach) - -allow dock_kbd_attach dock_device:chr_file { open read write ioctl }; -allow dock_kbd_attach self:capability { sys_admin };
\ No newline at end of file diff --git a/sepolicy/file.te b/sepolicy/file.te deleted file mode 100644 index ee55a50..0000000 --- a/sepolicy/file.te +++ /dev/null @@ -1,2 +0,0 @@ -# Filesystem types -type sensor_data_file, file_type, data_file_type; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts deleted file mode 100644 index 58bf32a..0000000 --- a/sepolicy/file_contexts +++ /dev/null @@ -1,19 +0,0 @@ -# Dock -/dev/ttyO3 u:object_r:dock_device:s0 -/system/bin/dock_kbd_attach u:object_r:dock_kbd_attach_exec:s0 - -# DRM -/dev/tf_ctrl u:object_r:smc_device:s0 -/system/bin/smc_pa_ctrl u:object_r:smc_pa_exec:s0 - -# EFS -/dev/block/mmcblk0p1 u:object_r:efs_block_device:s0 -/dev/block/mmcblk0p8 u:object_r:efs_block_device:s0 - -# GPS -/system/bin/gpsd u:object_r:gpsd_exec:s0 - -# Sensors -/data/system/yas*.cfg u:object_r:sensor_data_file:s0 -/system/bin/geomagneticd u:object_r:geomagneticd_exec:s0 -/system/bin/orientationd u:object_r:orientationd_exec:s0 diff --git a/sepolicy/geomagneticd.te b/sepolicy/geomagneticd.te deleted file mode 100644 index fe1dd42..0000000 --- a/sepolicy/geomagneticd.te +++ /dev/null @@ -1,12 +0,0 @@ -# geomagneticd -type geomagneticd, domain; -type geomagneticd_exec, exec_type, file_type; - -init_daemon_domain(geomagneticd) - -allow geomagneticd input_device:chr_file { read open ioctl }; -allow geomagneticd input_device:dir { search read open }; -allow geomagneticd self:process { execmem }; -allow geomagneticd sensor_data_file:dir { write add_name remove_name create }; -allow geomagneticd sensor_data_file:file { create open read write getattr setattr rename }; -allow geomagneticd sysfs:file { write }; diff --git a/sepolicy/gpsd.te b/sepolicy/gpsd.te deleted file mode 100644 index 6fabca6..0000000 --- a/sepolicy/gpsd.te +++ /dev/null @@ -1,8 +0,0 @@ -# gpsd - GPS daemon -allow gpsd rild:unix_stream_socket { connectto }; -allow gpsd self:process { execmem }; -allow gpsd sysfs_wake_lock:file { read write }; - -# TODO - Label with gps_data_file -allow gpsd system_data_file:dir { write add_name }; -allow gpsd system_data_file:fifo_file { create setattr write open }; diff --git a/sepolicy/orientationd.te b/sepolicy/orientationd.te deleted file mode 100644 index 672c473..0000000 --- a/sepolicy/orientationd.te +++ /dev/null @@ -1,9 +0,0 @@ -# orientationd -type orientationd, domain; -type orientationd_exec, exec_type, file_type; - -init_daemon_domain(orientationd) - -allow orientationd input_device:chr_file { read write open ioctl }; -allow orientationd input_device:dir { search read open }; -allow orientationd self:process { execmem }; diff --git a/sepolicy/smc_pa.te b/sepolicy/smc_pa.te deleted file mode 100644 index de15f41..0000000 --- a/sepolicy/smc_pa.te +++ /dev/null @@ -1,8 +0,0 @@ -# smc_pa -type smc_pa, domain; -type smc_pa_exec, exec_type, file_type; - -init_daemon_domain(smc_pa) - -allow smc_pa self:capability { dac_override }; -allow smc_pa smc_device:chr_file { read write open ioctl }; diff --git a/sepolicy/sysinit.te b/sepolicy/sysinit.te deleted file mode 100644 index 2907f73..0000000 --- a/sepolicy/sysinit.te +++ /dev/null @@ -1,2 +0,0 @@ -# sysinit -allow sysinit surfaceflinger_exec:file { getattr }; diff --git a/usr/keychars/espresso-gpio-keypad.kcm b/usr/keychars/espresso-gpio-keypad.kcm deleted file mode 100644 index 1a3cb57..0000000 --- a/usr/keychars/espresso-gpio-keypad.kcm +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (C) 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. - -type SPECIAL_FUNCTION diff --git a/usr/keychars/sec_keyboard.kcm b/usr/keychars/sec_keyboard.kcm deleted file mode 100644 index f350ab9..0000000 --- a/usr/keychars/sec_keyboard.kcm +++ /dev/null @@ -1,334 +0,0 @@ -type FULL - -key A { - label: 'A' - base: 'a' - shift, capslock: 'A' -} - -key B { - label: 'B' - base: 'b' - shift, capslock: 'B' -} - -key C { - label: 'C' - base: 'c' - shift, capslock: 'C' -} - -key D { - label: 'D' - base: 'd' - shift, capslock: 'D' -} - -key E { - label: 'E' - base: 'e' - shift, capslock: 'E' - alt: '\u20ac' -} - -key F { - label: 'F' - base: 'f' - shift, capslock: 'F' -} - -key G { - label: 'G' - base: 'g' - shift, capslock: 'G' -} - -key H { - label: 'H' - base: 'h' - shift, capslock: 'H' -} - -key I { - label: 'I' - base: 'i' - shift, capslock: 'I' -} - -key J { - label: 'J' - base: 'j' - shift, capslock: 'J' -} - -key K { - label: 'K' - base: 'k' - shift, capslock: 'K' -} - -key L { - label: 'L' - base: 'l' - shift, capslock: 'L' -} - -key M { - label: 'M' - base: 'm' - shift, capslock: 'M' - alt: '\u00b5' -} - -key N { - label: 'N' - base: 'n' - shift, capslock: 'N' -} - -key O { - label: 'O' - base: 'o' - shift, capslock: 'O' -} - -key P { - label: 'P' - base: 'p' - shift, capslock: 'P' -} - -key Q { - label: 'Q' - base: 'q' - shift, capslock: 'Q' - alt: '@' -} - -key R { - label: 'R' - base: 'r' - shift, capslock: 'R' -} - -key S { - label: 'S' - base: 's' - shift, capslock: 'S' -} - -key T { - label: 'T' - base: 't' - shift, capslock: 'T' -} - -key U { - label: 'U' - base: 'u' - shift, capslock: 'U' -} - -key V { - label: 'V' - base: 'v' - shift, capslock: 'V' -} - -key W { - label: 'W' - base: 'w' - shift, capslock: 'W' -} - -key X { - label: 'X' - base: 'x' - shift, capslock: 'X' -} - -key Y { - label: 'Y' - base: 'y' - shift, capslock: 'Y' -} - -key Z { - label: 'Z' - base: 'z' - shift, capslock: 'Z' -} - -key 0 { - label: '0' - number: '0' - base: '0' - shift, capslock: '=' - alt: '}' -} - -key 1 { - label: '1' - number: '1' - base: '1' - shift, capslock: '!' -} - -key 2 { - label: '2' - number: '2' - base: '2' - shift, capslock: '"' - alt: '\u00b2' -} - -key 3 { - label: '3' - number: '3' - base: '3' - shift, capslock: '\u00a7' - alt: '\u00b3' -} - -key 4 { - label: '4' - number: '4' - base: '4' - shift, capslock: '$' -} - -key 5 { - label: '5' - number: '5' - base: '5' - shift, capslock: '%' -} - -key 6 { - label: '6' - number: '6' - base: '6' - shift, capslock: '&' -} - -key 7 { - label: '7' - number: '7' - base: '7' - shift, capslock: '/' - alt: '{' -} - -key 8 { - label: '8' - number: '8' - base: '8' - shift, capslock: '(' - alt: '[' -} - -key 9 { - label: '9' - number: '9' - base: '9' - shift, capslock: ')' - alt: ']' -} - -key SPACE { - label: ' ' - base: ' ' -} - -key ENTER { - label: '\n' - base: '\n' -} - -key TAB { - label: '\t' - base: '\t' -} - -key COMMA { - label: ',' - base: ',' - shift, capslock: ';' -} - -key PERIOD { - label: '.' - base: '.' - shift, capslock: ':' -} - -# QWERTZ: - -key SLASH { - label: '-' - base: '-' - shift, capslock: '_' -} - -# QWERTZ: circumflex accent -key GRAVE { - label: '\u005e' - base: '\u005e' - shift, capslock: '\u00b0' -} - -# QWERTZ: latin small letter sharp s -key MINUS { - label: '\u00df' - base: '\u00df' - shift, capslock: '?' - alt: '\\' -} - -# QWERTZ: acute accent -key EQUALS { - label: '\u00b4' - base: '\u00b4' - shift, capslock: '\u0060' -} - -# QWERTZ: latin capital letter u with diaeresis -key LEFT_BRACKET { - label: '\u00dc' - base: '\u00fc' - shift, capslock: '\u00dc' -} -# QWERTZ: plus sign -key RIGHT_BRACKET { - label: '+' - base: '+' - shift, capslock: '*' - alt: '~' -} - -# QWERTZ: less-than sign -key BACKSLASH { - label: '<' - base: '<' - shift: '>' - alt, capslock: '|' -} - -# QWERTZ: latin capital letter o with diaeresis -key SEMICOLON { - label: '\u00d6' - base: '\u00f6' - shift, capslock: '\u00d6' -} - -# QWERTZ: latin capital letter a with diaeresis -key APOSTROPHE { - label: '\u00c4' - base: '\u00e4' - shift, capslock: '\u00c4' -} - -key POUND { - label: '#' - base: '#' - shift, capslock: '\'' -}
\ No newline at end of file diff --git a/usr/keylayout/espresso-gpio-keypad.kl b/usr/keylayout/espresso-gpio-keypad.kl deleted file mode 100644 index 383fe6b..0000000 --- a/usr/keylayout/espresso-gpio-keypad.kl +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 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. - -key 114 VOLUME_DOWN WAKE -key 115 VOLUME_UP WAKE -key 116 POWER WAKE diff --git a/usr/keylayout/sec_keyboard.kl b/usr/keylayout/sec_keyboard.kl deleted file mode 100644 index 6dfffca..0000000 --- a/usr/keylayout/sec_keyboard.kl +++ /dev/null @@ -1,92 +0,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 11 0 -# QWERTZ: latin small letter sharp s -key 12 MINUS -# QWERTZ: acute accent -key 13 EQUALS -key 14 DEL -key 15 TAB -key 16 Q -key 17 W -key 18 E -key 19 R -key 20 T -key 21 Z -key 22 U -key 23 I -key 24 O -key 25 P -# QWERTZ: latin capital letter u with diaeresis -key 26 LEFT_BRACKET -# QWERTZ: plus sign -key 27 RIGHT_BRACKET -key 28 ENTER -key 29 CTRL_LEFT -key 30 A -key 31 S -key 32 D -key 33 F -key 34 G -key 35 H -key 36 J -key 37 K -key 38 L -# QWERTZ: latin capital letter o with diaeresis -key 39 SEMICOLON -# QWERTZ: latin capital letter a with diaeresis -key 40 APOSTROPHE -# QWERTZ: circumflex accent -key 41 GRAVE -key 42 SHIFT_LEFT -# QWERTZ: less-than sign -key 43 BACKSLASH -key 44 Y -key 45 X -key 46 C -key 47 V -key 48 B -key 49 N -key 50 M -key 51 COMMA -key 52 PERIOD -# QWERTZ: hyphen-minus -key 53 SLASH -key 54 SHIFT_RIGHT -key 57 SPACE -key 58 CAPS_LOCK -key 61 APP_SWITCH -key 100 ALT_RIGHT -key 103 DPAD_UP -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 108 DPAD_DOWN -key 111 FORWARD_DEL -key 113 VOLUME_MUTE -key 114 VOLUME_DOWN -key 115 VOLUME_UP -key 139 MENU -key 150 EXPLORER -key 152 POWER -key 158 BACK -key 163 MEDIA_NEXT -key 165 MEDIA_PREVIOUS -#key 185 APPS - NOT IMPLEMENTED -#key 187 TOGGLE KEYBOARD - NOT IMPLEMENTED -#key 190 VOICE INPUT - NOT IMPLEMENTED -key 191 LANGUAGE_SWITCH -key 192 NOTIFICATION -key 207 MEDIA_PLAY_PAUSE -key 215 ENVELOPE -key 217 SEARCH -key 224 BRIGHTNESS_DOWN -key 225 BRIGHTNESS_UP -key 359 HOME -key 523 POUND
\ No newline at end of file |