Hello all, :)
since we have unofficial nightlies but we don't have any tutorial how can we build our own package, I've decided to make one.
ATTENTION: I am not responsible for any damage you may cause to your phone. I MAY be wrong on this guide.
This guide is useful for those who:
1.) Want to learn building basics and get a bit into android development
2.) Don't like waiting for another nightly (I assume not, they come quite often)
3.) Want to contribute to our community by making custom ROMs
Prerequisites
1.) Linux computer 64-bit (I will use Ubuntu as example)
2.) Reasonable hardware (at least 4 GB RAM)
3.) At least 50 GB of free space on disc
4.) Reliable internet connection
5.) Patience and a bit of intelligence :good:
Instructions
1.) Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step).
What it does? This will prepare all the build packages and set build environment.
Yes, I'm aware that it is for Xperia T, but it is pretty much the same.
2.) In the command window type
What it does? This will initialize empty repository in /android/system directory.
3.) Add local manifest for flamingo device
Copy sony.xml (in zip atteched down the thread) to the directory above
What it does? This step assures you'll download device-specific repositories.
4.) Download the source code
What it does? This will download every single repository of CM12 (about 25 GB), takes long time, depending on your internet.
5.) Get prebuilts
What it does? Prepares some prebuilt apps (i.e. Terminal Emulator)
6.) Setup the build environment & prepare the device-specific code.
What it does? This magic command sets up all needed commands and makefiles for build. See this page.
7.) Build
What it does? Simple - builds the CM. Speed depends on your hardware. Don't expect less than three hours for the first time.
Zip with kernel is ready in out/target/product/flamingo ready to install, congratulations :good:
If you have any questions, suggestions, errors, feel free to ask.
since we have unofficial nightlies but we don't have any tutorial how can we build our own package, I've decided to make one.
ATTENTION: I am not responsible for any damage you may cause to your phone. I MAY be wrong on this guide.
This guide is useful for those who:
1.) Want to learn building basics and get a bit into android development
2.) Don't like waiting for another nightly (I assume not, they come quite often)
3.) Want to contribute to our community by making custom ROMs
Prerequisites
1.) Linux computer 64-bit (I will use Ubuntu as example)
2.) Reasonable hardware (at least 4 GB RAM)
3.) At least 50 GB of free space on disc
4.) Reliable internet connection
5.) Patience and a bit of intelligence :good:
Instructions
1.) Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step).
What it does? This will prepare all the build packages and set build environment.
Yes, I'm aware that it is for Xperia T, but it is pretty much the same.
2.) In the command window type
Code:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0
3.) Add local manifest for flamingo device
Code:
mkdir -p ~/android/system/.repo/local_manifests
What it does? This step assures you'll download device-specific repositories.
4.) Download the source code
Code:
repo sync
5.) Get prebuilts
Code:
cd ~/android/system/vendor/cm
./get-prebuilts
6.) Setup the build environment & prepare the device-specific code.
Code:
cd ~/android/system
. build/envsetup.sh
breakfast flamingo
7.) Build
Code:
brunch flamingo
Zip with kernel is ready in out/target/product/flamingo ready to install, congratulations :good:
If you have any questions, suggestions, errors, feel free to ask.
Aucun commentaire:
Enregistrer un commentaire