diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..b6b37e6
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,30 @@
+#
+# Copyright 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This contains the module build definitions for the hardware-specific
+# components for this device.
+#
+# As much as possible, those components should be built unconditionally,
+# with device-specific names to avoid collisions, to avoid device-specific
+# bitrot and build breakages. Building a component unconditionally does
+# *not* include it on all devices, so it is safe even with hardware-specific
+# components.
+
+LOCAL_PATH := $(call my-dir)
+
+ifneq ($(filter sprout8,$(TARGET_DEVICE)),)
+include $(call all-makefiles-under,$(LOCAL_PATH))
+endif
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..981c16f
--- /dev/null
+++ b/BoardConfig.mk
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+LOCAL_PATH := device/google/sprout8
+
+# inherit from common sprout repo
+-include device/google/sprout-common/BoardConfigCommon.mk
+
+TARGET_OTA_ASSERT_DEVICE := sprout,sprout8
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/rootdir/root/init.sprout.rc:root/init.sprout.rc \
+ $(LOCAL_PATH)/rootdir/root/fstab.sprout:root/fstab.sprout
+
+TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/root/fstab.sprout
diff --git a/cm.dependencies b/cm.dependencies
new file mode 100644
index 0000000..4551eeb
--- /dev/null
+++ b/cm.dependencies
@@ -0,0 +1,12 @@
+[
+
+ {
+ "repository": "android_device_google_sprout-common",
+ "target_path": "device/google/sprout-common"
+ }
+ {
+ "repository": "android_kernel_mediatek_sprout",
+ "target_path": "kernel/mediatek/sprout"
+ }
+
+]
\ No newline at end of file
diff --git a/cm.mk b/cm.mk
new file mode 100644
index 0000000..d291805
--- /dev/null
+++ b/cm.mk
@@ -0,0 +1,15 @@
+$(call inherit-product, device/google/sprout8/sprout8.mk)
+
+# Common CM stuff
+$(call inherit-product, vendor/cm/config/common_full_phone.mk)
+
+PRODUCT_BUILD_PROP_OVERRIDES += BUILD_FINGERPRINT=5.1/LMY47O/1783956:user/release-keys PRIVATE_BUILD_DESC="sprout-user 5.1 LMY47O 1783956 release-keys"
+
+PRODUCT_NAME := cm_sprout8
+PRODUCT_DEVICE :=sprout8
+PRODUCT_BRAND := google
+PRODUCT_MANUFACTURER := Google
+PRODUCT_MODEL := A1
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ PRODUCT_DEVICE="sprout8"
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..15ef29e
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,291 @@
+
+
+
+
+
+ false
+
+
+ true
+
+
+
+ - "rndis\\d"
+
+
+
+
+ - wlan\\d
+
+
+
+
+ - 0
+ - 1
+ - 5
+ - 7
+ - 9
+
+
+
+ true
+
+
+ false
+
+
+ true
+
+
+ true
+
+
+ #ff00ff00
+
+
+ 0xffff0000
+
+
+ 0xffff0000
+
+
+ 0xff00ff00
+
+
+
+ true
+
+
+ false
+
+
+ false
+
+
+ ntp.nict.jp
+
+
+
+ - 1
+
+
+
+ 20
+
+
+ 20
+
+
+ 20
+
+
+
+
+
+
+ - "wifi,1,1,1,-1,true"
+ - "mobile,0,0,0,-1,true"
+ - "mobile_mms,2,0,2,60000,true"
+ - "mobile_supl,3,0,2,60000,true"
+ - "mobile_dun,4,0,2,60000,true"
+ - "mobile_hipri,5,0,3,60000,true"
+ - "mobile_fota,10,0,2,60000,true"
+ - "mobile_ims,11,0,2,60000,true"
+ - "mobile_cbs,12,0,2,60000,true"
+ - "wifi_p2p,13,1,0,-1,true"
+ - "bluetooth,7,7,2,-1,true"
+
+
+
+
+
+ - "1,1"
+ - "0,1"
+ - "7,1"
+
+
+
+
+ - bt-pan
+ - bt-dun
+
+
+
+ true
+
+
+ 20
+
+
+ 20
+
+
+ true
+
+
+ 600
+
+
+
+ - 16
+ - 32
+ - 50
+ - 100
+ - 140
+ - 180
+ - 240
+ - 300
+ - 600
+ - 1000
+ - 2000
+ - 3000
+ - 4000
+ - 8000
+ - 10000
+
+
+
+
+ - 30
+ - 40
+ - 50
+ - 60
+ - 70
+ - 80
+ - 102
+ - 102
+ - 102
+ - 102
+ - 102
+ - 180
+ - 200
+ - 210
+ - 230
+ - 255
+
+
+
+ 8
+
+
+
+ true
+
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+ 4
+
+
+ true
+
+
+ sys.perf.profile
+ 1
+
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
new file mode 100644
index 0000000..15e8866
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
@@ -0,0 +1,41 @@
+
+
+ - 0
+ - 120
+ - 250
+ - 20
+ - 0.5
+ - 1.0
+ - 25
+ - 6
+ - 15
+ - 60
+ - 80
+ - 85
+ - 45
+
+ 1.5
+ 1.5
+
+
+ 1209000
+ 988000
+ 754000
+ 497250
+
+ - 2.0
+
+ 120
+ 98
+ 75
+ 49
+
+ - 1728
+
+ .0002
+ .002
+ .02
+ .2
+ 2
+
+
\ No newline at end of file
diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
new file mode 100644
index 0000000..c947e51
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/rootdir/root/fstab.sprout b/rootdir/root/fstab.sprout
new file mode 100644
index 0000000..5d5708f
--- /dev/null
+++ b/rootdir/root/fstab.sprout
@@ -0,0 +1,14 @@
+# Android fstab file.
+#
+# 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/mtk-msdc.0/by-name/boot /boot emmc defaults defaults
+/dev/block/platform/mtk-msdc.0/by-name/recovery /recovery emmc defaults defaults
+/dev/block/platform/mtk-msdc.0/by-name/system /system ext4 ro wait
+/dev/block/platform/mtk-msdc.0/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,encryptable=/dev/block/platform/mtk-msdc.0/by-name/metadata
+/dev/block/platform/mtk-msdc.0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
+/dev/block/platform/mtk-msdc.0/by-name/protect1 /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check
+/dev/block/platform/mtk-msdc.0/by-name/protect2 /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check
+/dev/block/platform/mtk-msdc.0/by-name/oem /oem ext4 ro,nosuid,nodev wait
+/devices/platform/mtk-msdc.1/mmc_host* auto vfat defaults voldmanaged=sdcard1:auto
diff --git a/rootdir/root/init.sprout.rc b/rootdir/root/init.sprout.rc
new file mode 100755
index 0000000..93b66ef
--- /dev/null
+++ b/rootdir/root/init.sprout.rc
@@ -0,0 +1,24 @@
+# sprout storage specific rc file.
+
+import /init.sprout_common.rc
+
+mkdir /mnt/shell/emulated 0700 shell shell
+ mkdir /storage/emulated 0555 root root
+
+ mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
+ mkdir /storage/sdcard1 0700 root root
+
+ export EXTERNAL_STORAGE /storage/emulated/legacy
+ export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
+ export EMULATED_STORAGE_TARGET /storage/emulated
+ export SECONDARY_STORAGE /storage/sdcard1
+
+on fs
+ setprop ro.crypto.fuse_sdcard true
+
+service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
+ class late_start
+
+service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
+ class late_start
+ disabled
diff --git a/sprout8.mk b/sprout8.mk
new file mode 100644
index 0000000..81c7a5a
--- /dev/null
+++ b/sprout8.mk
@@ -0,0 +1,25 @@
+#
+# Copyright (C) 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Overlays
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
+# common sprout
+$(call inherit-product, device/google/sprout-common/sprout.mk)
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/rootdir/root/init.sprout.rc:root/init.sprout.rc \
+ $(LOCAL_PATH)/rootdir/root/fstab.sprout:root/fstab.sprout
diff --git a/vendorsetup.sh b/vendorsetup.sh
new file mode 100644
index 0000000..81ad508
--- /dev/null
+++ b/vendorsetup.sh
@@ -0,0 +1,2 @@
+add_lunch_combo cm_sprout8-userdebug
+add_lunch_combo cm_sprout8-eng