Device repository for Elephone P8000 CM12.1
Currently broken features:
- Smart Cover
- DerTeufel1980
- fire855
- jianminglok
- walter79
- valascus
- Restorn
##How to compile:
- Get some free space on your harddisk (better to use a SSD) - 14gb download + 60gb for one build + 50gb ccache
- Get the latest CM 12.1 sources.
- Download my manifest from here and put it under .repo/local_manifests
- Repo sync again so the device tree, kernel and vendor repos are pulled.
- Apply all patches from device/elephone/p8000/patches to CM sources. The folder names correspond to the folders in CM sources.
- (Optional) Make sure you run a stock ROM (11/05/15 recommended) or an already existing CM 12.1 version. Run ./extract-files.sh from the device tree while your phone is connected to USB and has ADB enabled. This will pull all pre-compiled binaries and put it under /vendor/elephone/p8000. You can also skip this step and use my vendor_elephone_p8000 repo (recommended).
- (Optional) Set up CCache if you want to build regularly to speed up future compilations.
- Apply patches: /device/elephone/p8000/patches/apply-patch.sh and /device/mediatek/mtk6753_common/patches/apply-patch.sh
- Go to the root of CM and run ". build/envsetup.sh" followed by "lunch cm_p8000-userdebug" and "mka bacon". If you want a debug build, swap "user" with "userdebug" or "eng".
- Go grab yourself a coffee. A full build with empty CCache takes around 5 hours on my machine (i5 Dualcore with Hyperthreading, 8 GB RAM and SSD).
- Once it's finished you can just flash it. Congratulations, you built your own CM 12.1 for the P8000!
- Contribute to the project if you find a bug or want to improve something :) Feel free to play around with the sources or use parts of it for your own project. Just make sure you give credits and everything is alright.
- optional: if yo get this error: 'android_errorWriteWithInfoLog' was not declared in this scope install this patch: https://android.googlesource.com/platform/system/core/+/75ac84c0bf57d646dfae468916fcdcc071570293%5E!/