Giter VIP home page Giter VIP logo

android_device_blackview_alifep1pro's Introduction

android_device_blackview_alifep1pro

Device repository for Blackview Alife P1 Pro CM12.1

Currently broken features:

  • Fingerprint
  • Smart Cover
  • AudioFX

Thanks to:

  • DerTeufel1980
  • fire855
  • jianminglok
  • walter79

##How to compile:

  1. Get some free space on your harddisk (better to use a SSD) - 14gb download + 60gb for one build + 50gb ccache
  2. Get the latest CM 12.1 sources.
  3. Download my manifest from here and put it under .repo/local_manifests
  4. Repo sync again so the device tree, kernel and vendor repos are pulled.
  5. Apply all patches from device/blackview/alifep1pro/patches to CM sources. The folder names correspond to the folders in CM sources.
  6. (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).
  7. (Optional) Set up CCache if you want to build regularly to speed up future compilations.
  8. 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".
  9. 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).
  10. Once it's finished you can just flash it. Congratulations, you built your own CM 12.1 for the Alife P1 Pro!
  11. 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.
  12. 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!/

android_device_blackview_alifep1pro's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.