Oppo Find 5 XenonHD Support
diff --git a/overlay/find5/frameworks/base/core/res/res/values/config.xml b/overlay/find5/frameworks/base/core/res/res/values/config.xml
new file mode 100755
index 0000000..f2fa835
--- /dev/null
+++ b/overlay/find5/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2011, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+**     http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+     for different hardware and product builds. -->
+<resources>
+
+   <!-- Hardware 'face' 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
+         For example, a device with Home, Back and Menu keys would set this
+         config to 7. -->
+    <integer name="config_deviceHardwareKeys">7</integer>
+</resources>
diff --git a/overlay/find5/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/find5/frameworks/base/packages/SystemUI/res/values/dimens.xml
new file mode 100755
index 0000000..8521e54
--- /dev/null
+++ b/overlay/find5/frameworks/base/packages/SystemUI/res/values/dimens.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (c) 2006, 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>
+    <!--  Tablet UI Stuff -->
+    <!-- The minimum height of the notification panel window -->
+    <dimen name="notification_panel_min_height">250dp</dimen>
+    <!-- Bottom margin (from display edge) for status bar panels -->
+    <dimen name="panel_float">10dp</dimen>
+    <!-- The width of the ticker, including the icon -->
+    <dimen name="notification_ticker_width">280dp</dimen>
+    <!-- The width of the notification panel window -->
+    <dimen name="notification_panel_width">290dp</dimen>
+    <!-- The height of the notification panel title -->
+    <dimen name="notification_panel_title_height">120dp</dimen>
+    <!--  Amount of Margin to offset NavRing in Portrait Mode -->
+    <dimen name="navring_left_margin_port">-390dp</dimen>
+    <!--  Amount of Margin to offset NavRing in Landscape Mode -->
+    <dimen name="navring_left_margin_land">-650dp</dimen>
+    <!--  Height of NavRing in Tablet Mode Landscape -->
+    <dimen name="navring_height_tablet_landscape">325dp</dimen>
+    <!--  Height of NavRing in Tablet Mode Portrait -->
+    <dimen name="navring_height_tablet_portrait">300dp</dimen>
+    <!--  Radius of NavRing in Tablet Mode Landscape -->
+    <dimen name="navring_radius_tablet_landscape">250dp</dimen>
+    <!--  Radius of NavRing in Tablet Mode Landscape -->
+    <dimen name="navring_radius_tablet_portrait">200dp</dimen>
+</resources>
diff --git a/overlay/find5/frameworks/base/packages/SystemUI/res/values/styles.xml b/overlay/find5/frameworks/base/packages/SystemUI/res/values/styles.xml
new file mode 100755
index 0000000..fd76870
--- /dev/null
+++ b/overlay/find5/frameworks/base/packages/SystemUI/res/values/styles.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2006 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 xmlns:android="http://schemas.android.com/apk/res/android">
+    <style name="TextAppearance.SystemBar.Expanded" parent="@*android:style/TextAppearance.StatusBar" />
+
+    <style name="TextAppearance.SystemBar.Expanded.Clock">
+        <item name="android:textSize">30dp</item>
+        <item name="android:fontFamily">sans-serif-light</item>
+        <item name="android:textStyle">normal</item>
+        <item name="android:textColor">#ffffff</item>
+    </style>
+    <style name="TextAppearance.SystemBar.Expanded.Date">
+        <item name="android:textSize">12dp</item>
+        <item name="android:textStyle">normal</item>
+        <item name="android:textColor">#cccccc</item>
+        <item name="android:textAllCaps">true</item>
+    </style>
+</resources>
diff --git a/overlay/find5/packages/apps/ROMSettings/res/values/config.xml b/overlay/find5/packages/apps/ROMSettings/res/values/config.xml
new file mode 100755
index 0000000..34a88e6
--- /dev/null
+++ b/overlay/find5/packages/apps/ROMSettings/res/values/config.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <!-- Whether can use color tuning -->
+    <bool name="has_color_tuning">false</bool>
+
+    <!-- Whether device has led charging feature -->
+    <bool name="has_led_charging_feature">true</bool>
+</resources>
diff --git a/overlay/find5/packages/apps/Settings/res/values/config.xml b/overlay/find5/packages/apps/Settings/res/values/config.xml
new file mode 100755
index 0000000..8fddbf7
--- /dev/null
+++ b/overlay/find5/packages/apps/Settings/res/values/config.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     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.
+-->
+
+<resources xmlns:xliff="urnasis:names:tc:xliff:document:1.2 ">
+
+    <!-- LED Flashlight -->
+    <bool name="has_led_flash">true</bool>
+
+</resources>
diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk
index 6d11ff3..4c209c6 100644
--- a/products/AndroidProducts.mk
+++ b/products/AndroidProducts.mk
@@ -27,4 +27,5 @@
 	$(LOCAL_DIR)/xenonhd_n7100.mk\
         $(LOCAL_DIR)/xenonhd_mb886.mk \
         $(LOCAL_DIR)/xenonhd_m7.mk \
-        $(LOCAL_DIR)/xenonhd_xt907.mk
+        $(LOCAL_DIR)/xenonhd_xt907.mk \
+        $(LOCAL_DIR)/xenonhd_find5.mk
diff --git a/products/xenonhd_find5.mk b/products/xenonhd_find5.mk
new file mode 100755
index 0000000..5e69a12
--- /dev/null
+++ b/products/xenonhd_find5.mk
@@ -0,0 +1,25 @@
+# Inherit AOSP device configuration for find 5.
+$(call inherit-product, device/oppo/find5/full_find5.mk)
+
+# Inherit GSM common stuff.
+$(call inherit-product, vendor/xenonhd/configs/gsm.mk)
+
+# Inherit common
+$(call inherit-product, vendor/xenonhd/products/common.mk)
+
+# Overlays
+PRODUCT_PACKAGE_OVERLAYS += vendor/xenonhd/overlay/find5
+
+# Setup device specific product configuration.
+PRODUCT_NAME := xenonhd_find5
+PRODUCT_BRAND := Oppo
+PRODUCT_DEVICE := find5
+PRODUCT_MODEL := Find 5
+PRODUCT_MANUFACTURER := Oppo
+
+# Set build fingerprint / ID / Product Name ect.
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=occam BUILD_FINGERPRINT=OPPO/oppo_12069/FIND5:4.1.1/JRO03L/1362469752:user/release-keys PRIVATE_BUILD_DESC="msm8960-user 4.1.1 JRO03L eng.oppo.20130328.172033 release-keys"
+
+# Copy bootanimation.zip
+PRODUCT_COPY_FILES += \
+    vendor/xenonhd/proprietary/m7/media/bootanimation.zip:system/media/bootanimation.zip
diff --git a/vendorsetup.sh b/vendorsetup.sh
index a688946..cd986bc 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -26,3 +26,4 @@
 add_lunch_combo xenonhd_i9305-userdebug
 add_lunch_combo xenonhd_n7000-userdebug
 add_lunch_combo xenonhd_n7100-userdebug
+add_lunch_combo xenonhd_find5-userdebug