Device repository for Blackview Alife P1 Pro CM12.1
Currently broken features:
- Fingerprint
- Smart Cover
- AudioFX
- DerTeufel1980
- fire855
- jianminglok
- walter79
##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/blackview/alifep1pro/patches to CM sources. The folder names correspond to the folders in CM sources.
- (Optional) Make sure you run a stock ROM 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/blackview/alifep1pro. You can also skip this step and use my vendor_blackview_alifep1pro repo (recommended).
- (Optional) Set up CCache if you want to build regularly to speed up future compilations.
- Go to the root of CM and run ". build/envsetup.sh" followed by "lunch cm_alifep1pro-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 Alife P1 Pro!
- 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!/