To Build a ROM we need to download the source of the ROM from Github.All the ROM sources can be found in Github.The source size varies from 20GB to 30GB.You will need to have a fast internet with unlimited plan to sync a ROM.
In this guide I am going to teach you how to sync/download a ROM source from Github.
-----------------------------------------------------------------------------------------------------
Step 1 : Create a directory where you want to sync the source of the ROM.Use the following command to create a directory. mkdir lineage
Here I named my directory as lineage, you can give it any name you like.
-----------------------------------------------------------------------------------------------------
Step 2 : Next step is to initiate the repo in the directory where you want to sync the source of the ROM. Before initiating we need to enter into the directory which we made. To enter into it use the following command.cd lineage
Then we have to initate the repo in the directory. Initiate code can usually found in README of android / manifest repo of the particular ROM in github.For Example : Lineage initiate code can be found in Android repo.
Use the initiate code from the screeshot above.
-----------------------------------------------------------------------------------------------------
Step 3 : If you are syncing the source of the ROM for first time, it will ask you your email id and github username.Use the follow command to enter your email id and github username.git config --global user.email "yourid@mail.com"
git config --global user.name "Your Name"
-----------------------------------------------------------------------------------------------------
Step 4 : Final step is to start syncing the source of the ROM. To start the sync you will need to enter the following command.
repo sync
-----------------------------------------------------------------------------------------------------
Use the initiate code from the screeshot above.
Post A Comment:
0 comments: