ads

dimanche 13 septembre 2015

[GUIDE] How to build your own rom from sources for Grand 2



:DBuild your own rom today for Grand 2 or any

I. Installation of the required packages
II. Installing JAVA
III.Source
IV.building the rom


Things need for building:
A computer or laptop with 6gb ram and 500gb hdd with i5 processor
OS ubuntu/linux im using ubuntu 14
An good internet :)
Time


I.INSTALLING of required packages (ubuntu 64bit)
code: copy and paste this in terminal

Code:


sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386




II. Installing JAVA

Code:


sudo add-apt-repository ppa:webupd8team/java


Code:


sudo apt-get update


Code:


sudo apt-get install oracle-java6-installer

Check Java version

Code:


$ java -version



III. SOURCE
Install repo:


Code:


mkdir ~/bin
PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo




create working directory

Code:


mkdir ~/any name for e.g rom
cd ~/rom




Initialize Repo

Code:


repo init -u chosen-manifest
AOKP: https://github.com/AOKP/platform_manifest.git -b Branch
Cyanogenmod: https://github.com/CyanogenMod/android.git -b Branch

for E.g
 repo init -u https://github.com/CyanogenMod/android.git -b cm12.1




The longest part

Code:


repo sync

till it finish drink cup of tea or 10 if u have slow internet
if process stucks use Ctrl+c to break and resume with

Code:


Repo sync



Initialize the environment

Code:


. build/envsetup.sh

Create a file with the name local_manifest.xml in the .repo directory. To see this directory, you have to press Ctrl-H in your file manager.

Create it with

Code:


gedit ~/rom/.repo/local_manifest.xml

Paste the following lines to the editor

Code:


<manifest>
<project name="CyanogenMod/android_device_samsung_ms013g" path="device/samsung/ms013g" remote="github" revision="lollipop"/>
<project name="CyanogenMod/android_device_samsung_ms013g-common" path="device/samsung/ms013g-common" remote="github" revision="lollipop"/>
<project name="CyanogenMod/samsung-kernel-ms013g" path="kernel/samsung/ms013g" remote="github" revision="lollipop"/>
<project path="vendor/samsung" name="TheMuppets/proprietary_vendor_samsung.git" remote="github" revision="samsung"/>
</manifest>


Save the file.
run


Code:


repo sync

again to get the files needed.

Download the necessary prebuilts from cyanogenmod by running


Code:


~/rom/vendor/cm/get-prebuilts

and you are done


IV.Building rom
now build

Code:


brunch ms013g

nd building process starts. Now have patience. Building takes around half an hour on fast systems and a lot more on older and slower machines.

When everything worked as it should you will find your new ROM-image in ~/rom/out/target/product/ms013g

It is called cm-12.1-DATE-UNOFFICIAL-ms013g-zip. You can flash.


Dont forget to press thanks :good:



Aucun commentaire:

Enregistrer un commentaire