diff options
| author | Dirk Rettschlag <dirk.rettschlag@gmail.com> | 2014-01-24 14:08:00 +0100 |
|---|---|---|
| committer | Dirk Rettschlag <dirk.rettschlag@gmail.com> | 2014-01-24 14:08:00 +0100 |
| commit | dda5956c6a082f536351d2b0b53a2c86c52a0606 (patch) | |
| tree | 2f709574efeb55183f04abc8432062fd7cc2709b | |
| parent | 0023f0799dbe009347711af9a4bb23b0e5a4513a (diff) | |
Adapt to AOKP
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
| -rw-r--r-- | BoardConfig.mk | 5 | ||||
| -rw-r--r-- | cm.dependencies | 10 | ||||
| -rw-r--r-- | cm.mk | 17 | ||||
| -rw-r--r-- | cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java | 76 | ||||
| -rwxr-xr-x | vendorsetup.sh | 3 |
5 files changed, 2 insertions, 109 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 6fbc104..f5d0971 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -17,6 +17,8 @@ # inherit from common apq8064 -include device/oppo/apq8064-common/BoardConfigCommon.mk +TARGET_OTA_ASSERT_DEVICE := n1,N1 + # Kernel TARGET_KERNEL_CONFIG := cyanogenmod_n1_defconfig @@ -27,9 +29,6 @@ BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/oppo/n1/bluetooth COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS BOARD_FIX_FACE_DETECTION_SCORE := true -# CM Hardware -BOARD_HARDWARE_CLASS += device/oppo/n1/cmhw - # Filesystem BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760 BOARD_CACHEIMAGE_PARTITION_SIZE := 536870912 diff --git a/cm.dependencies b/cm.dependencies deleted file mode 100644 index 5d71102..0000000 --- a/cm.dependencies +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "repository": "android_device_oppo_apq8064-common", - "target_path": "device/oppo/apq8064-common" - }, - { - "repository": "android_kernel_oppo_n1", - "target_path": "kernel/oppo/n1" - } -] @@ -1,17 +0,0 @@ -$(call inherit-product, device/oppo/n1/full_n1.mk) - -# Inherit some common CM stuff -$(call inherit-product, vendor/cm/config/gsm.mk) - -# Enhanced NFC -$(call inherit-product, vendor/cm/config/nfc_enhanced.mk) - -# Inherit some common CM stuff. -$(call inherit-product, vendor/cm/config/common_full_phone.mk) - -PRODUCT_NAME := cm_n1 -PRODUCT_DEVICE := n1 -PRODUCT_GMS_CLIENTID_BASE := android-oppo - -TARGET_VENDOR_PRODUCT_NAME := CM -TARGET_VENDOR_DEVICE_NAME := N1 diff --git a/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java b/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java deleted file mode 100644 index 169e2e2..0000000 --- a/cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2013 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. - */ - -package org.cyanogenmod.hardware; - -import org.cyanogenmod.hardware.util.FileUtils; - -import android.os.SystemProperties; - -import java.io.File; - -/** - * Adaptive backlight support (this refers to technologies like NVIDIA SmartDimmer, - * QCOM CABL or Samsung CABC). - */ -public class AdaptiveBacklight { - - private static String FILE_CABC = "/sys/class/graphics/fb0/cabc"; - - /** - * Whether device supports an adaptive backlight technology. - * - * @return boolean Supported devices must return always true - */ - public static boolean isSupported() { - File f = new File(FILE_CABC); - - if(f.exists()) { - return true; - } else { - return false; - } - } - - /** - * This method return the current activation status of the adaptive backlight technology. - * - * @return boolean Must be false when adaptive backlight is not supported or not activated, or - * the operation failed while reading the status; true in any other case. - */ - public static boolean isEnabled() { - if (Integer.parseInt(FileUtils.readOneLine(FILE_CABC)) == 1) { - return true; - } else { - return false; - } - } - - /** - * This method allows to setup adaptive backlight technology status. - * - * @param status The new adaptive backlight status - * @return boolean Must be false if adaptive backlight is not supported or the operation - * failed; true in any other case. - */ - public static boolean setEnabled(boolean status) { - if (status == true) { - return FileUtils.writeLine(FILE_CABC, "1"); - } else { - return FileUtils.writeLine(FILE_CABC, "0"); - } - } -} diff --git a/vendorsetup.sh b/vendorsetup.sh deleted file mode 100755 index a2fc22e..0000000 --- a/vendorsetup.sh +++ /dev/null @@ -1,3 +0,0 @@ -add_lunch_combo cm_n1-user -add_lunch_combo cm_n1-userdebug -add_lunch_combo cm_n1-eng |
