(GUIDE) making ROM from source without DATA loss

Search This thread

Karthick Chandran

Senior Member
Mar 23, 2014
1,660
3,947
Chennai
if u dont have internet connection to make a ROM this guide is for you and you dont need to have download for GB's of file ;)
first im taking carbon ROM for example

1.You will need to set up some directories in your build environment:
To create them run:

mkdir -p ~/bin
mkdir -p ~/carbon

2.Install the Repository
Enter the following to download the "repo" binary and make it executable:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

You may need to reboot for these changes to take effect. Now enter the following to initialize the repository:

cd ~/carbon

Repositories:
Before you continue --> run this in the terminal:

repo init -u https://github.com/CarbonDev/android.git -b kk

3.now open carbon folderand press ctrl + H if u see .repo folder u can continue to next

repo sync --> firsy sync for 5mins to load the folder and then stop syncing by closing terminal

4.after that see the manifest.xml with notepad or any suitable one and you can see link for the packages EXAMPLE: android_art search in the cyanogenmod or in which u want to build

5.im sharing link database of packages for building carbon rest u have the job to search and typer in github
package which to be downloaded for carbon ROM is here http://d-h.st/zru

6.after making source proper --> Building the System --->>>Initialize the environment with the envsetup.sh script. Note that replacing "source" with a single dot saves a few characters, and the short form is more commonly used in documentation.

. build/envsetup.sh
lunch

Enter the number of the build you want to start and press enter:

make carbon -j7 = Run Squisher/Run Opticharger
make otapackage -j7 = No Squisher/No Opticharger

optional --> Submitting Patches
Patches are always welcome! Please submit your patches via CarbonDev Gerrit! You can do this by using these commands:
Setting up for repo upload: (run these commands once)
git config --global review.review.carbonrom.org.username <Your username registered at CarbonDev gerrit>
git config --global review.review.carbonrom.org.email <Your email registered at CarbonDev gerrit>


(From root android directory)
. build/envsetup.sh
repo start kk .

(Make your changes and commit)
repo upload .

Note: "." meaning current directory For more help on using this tool, use this command: repo help upload
Make your changes and commit with a detailed message, starting with what you are working with (i.e. vision: Update Kernel) Commit your patches in a single commit. Squash multiple commit using this command: git rebase -i HEAD~<# of commits>

To view the status of your and others' patches, visit EAMPLE:Carbondev Code Review

if you want to build :
CYANOGENMOD -->do steps upto initialisng repo ------------https://github.com/CyanogenMod/android

OMNIROM -->do steps upto initialisng repo ------------https://github.com/omnirom/android

CARBON -->do steps upto initialisng repo ------------https://github.com/CarbonDev/android


dont click thanks if i helped you because thanks button is gonna damage :p

CREDITS:
---------> Ramsudharsan madhavan for teaching me
---------> Guru sanjay my friend helping me to download
---------> and me for thinking this idea in my school time :p
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    if u dont have internet connection to make a ROM this guide is for you and you dont need to have download for GB's of file ;)
    first im taking carbon ROM for example

    1.You will need to set up some directories in your build environment:
    To create them run:

    mkdir -p ~/bin
    mkdir -p ~/carbon

    2.Install the Repository
    Enter the following to download the "repo" binary and make it executable:

    curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

    You may need to reboot for these changes to take effect. Now enter the following to initialize the repository:

    cd ~/carbon

    Repositories:
    Before you continue --> run this in the terminal:

    repo init -u https://github.com/CarbonDev/android.git -b kk

    3.now open carbon folderand press ctrl + H if u see .repo folder u can continue to next

    repo sync --> firsy sync for 5mins to load the folder and then stop syncing by closing terminal

    4.after that see the manifest.xml with notepad or any suitable one and you can see link for the packages EXAMPLE: android_art search in the cyanogenmod or in which u want to build

    5.im sharing link database of packages for building carbon rest u have the job to search and typer in github
    package which to be downloaded for carbon ROM is here http://d-h.st/zru

    6.after making source proper --> Building the System --->>>Initialize the environment with the envsetup.sh script. Note that replacing "source" with a single dot saves a few characters, and the short form is more commonly used in documentation.

    . build/envsetup.sh
    lunch

    Enter the number of the build you want to start and press enter:

    make carbon -j7 = Run Squisher/Run Opticharger
    make otapackage -j7 = No Squisher/No Opticharger

    optional --> Submitting Patches
    Patches are always welcome! Please submit your patches via CarbonDev Gerrit! You can do this by using these commands:
    Setting up for repo upload: (run these commands once)
    git config --global review.review.carbonrom.org.username <Your username registered at CarbonDev gerrit>
    git config --global review.review.carbonrom.org.email <Your email registered at CarbonDev gerrit>


    (From root android directory)
    . build/envsetup.sh
    repo start kk .

    (Make your changes and commit)
    repo upload .

    Note: "." meaning current directory For more help on using this tool, use this command: repo help upload
    Make your changes and commit with a detailed message, starting with what you are working with (i.e. vision: Update Kernel) Commit your patches in a single commit. Squash multiple commit using this command: git rebase -i HEAD~<# of commits>

    To view the status of your and others' patches, visit EAMPLE:Carbondev Code Review

    if you want to build :
    CYANOGENMOD -->do steps upto initialisng repo ------------https://github.com/CyanogenMod/android

    OMNIROM -->do steps upto initialisng repo ------------https://github.com/omnirom/android

    CARBON -->do steps upto initialisng repo ------------https://github.com/CarbonDev/android


    dont click thanks if i helped you because thanks button is gonna damage :p

    CREDITS:
    ---------> Ramsudharsan madhavan for teaching me
    ---------> Guru sanjay my friend helping me to download
    ---------> and me for thinking this idea in my school time :p
    1