[Guide] Compiling AOKP & Cyanogenmod for the Motorold Droid Razr / Razr Maxx [XT912]
#1
Posted 23 November 2012 - 08:02 PM
This guide is for anybody that wants to compile their own android roms for the Motorola Droid Razr / Razr Maxx from source.
Everything here is pretty self explanatory and its all copy/paste to make it easier. I recommend that you have a dedicated
machine running Ubuntu and don't use a Virtual Machine like VirtualBox which will probably work but will take forever to compile.
A good internet connection helps too since you'll be syncing over a gigabyte of data from the repositories. Other than that all
you need is some time and a little patience and you're good to go!
Requirements -
O/S
Ubuntu 10.04 LTS or better
Ubuntu 12.04.1 LTS (Precise Pangolin) is still experimental but it works fine for me
[ ]
System -
Dual Core CPU (2Ghz is recommended)
2Gb RAM (minimum, 4Gb is recommended)
25GB of hard drive space is required to compile (80Gb is recommended)
If you plan on compiling different flavors or android and storing the
repositories on your system for future builds then definetely have plenty
of hard drive space. I use a 250Gb hard drive for my dedicated Ubuntu machine.
Installing the necessary tools to compile Android
Copy/Paste in Terminal
32bit/64bit systems
64bit systems only
X11 tools
Creating the dynamic link for libx11.so
Installing the Java Development Kit [JDK 1.6.37]
Download the Java SE 6 Update 37 JDK
Move jdk-6u37-linux-x64.bin to your /home directory
Run each of the following lines one at a time
Open a new terminal window and type the following to edit .bashrc
gedit ~/.bashrc
This will open the text editor
Add the following lines to the top
Save and close the text editor
Download the Android SDK
[ ]
Extract the SDK to your /home folder so the structure is like this ~/android/sdk making sure that everything is in the sdk directory
In terminal type gedit ~/.bashrc
Add the following lines below the lines we previously added for the Java paths
Save and close the text editor
Adding the device paths
Open a new terminal window and paste the following
The text editor will open
Add the following lines
Save and close
In terminal paste the following
Now open the Android SDK by typing the following
(make sure you're in the android directory, if not then type cd ~/android)
When the SDK Manager opens we need to install some repos
Check the boxes for the following
-SDK Tools
-Android SDK platform-tools
Click install and wait for it to finish
How to a acquire repositories needed to build android
Open a terminal window and input each line individually
This will install the git/repo tools to /home/bin/
Close terminal and reboot your system for everything to work properly
Open a new terminal window and type the following
Enter the following line below the previously added Android paths
Save and close the text editor
How to compile AOKP [JB]
Initialize the repo
Local manifiest for AOKP
Sync the repo
[You can add the -jX argument, X being the number of cores your CPU has for faster syncing,
example: repo sync -j4]
Syncing the repo can take a couple of hours to complete depending on your download speed.
Once the repo has completed syncing you are ready to build your rom
You should still be in /android/system/ (system can be whatever you named it previously)
To begin the long task of building your rom type the following into the terminal window
Building the rom can take from 4-6 hours depending on your system so be patient and just let it build.
How to compile Cyanogenmod 9 [ICS]
Initialize the repo
Local manifiest for CM9 [ICS]
Sync the repo
[You can add the -jX argument, X being the number of cores your CPU has for faster syncing,
example: repo sync -j4]
Getting the prebuilts that are required to build Cyanogenmod
Compile your rom
How to compile Cyanogenmod 10 [JB]
Initialize the repo
Local Manifiest for CM10 [JB]
Sync the repo
[You can add the -jX argument, X being the number of cores your CPU has for faster syncing,
example: repo sync -j4]
Getting the required prebuilts (make sure you're still in /home/android/system)
Compile your rom
How to find your newly compiled rom after the build process completes
You can find your newly compiled rom as a prepackaged flashable zip in the following location
Your newly compiled rom comes complete with Superuser or SuperSU and busybox pre-installed so it's ready to flash with Safestrap! In the same folder where
you found your rom there is also a MD5 hash code that is used to check data integrity, I usually copy that too. If you want to try other roms there are more repos
at the STS-Dev-Team github site in the android_local_STS directory located . You will find more options for AOKP, CM9, CM10 and CNA (codenameandroid)
in both stock and kexec. The repos get updated by the team every so often so check the dates on the local manifests and read the change logs for more information.
To start the build process again you will need to clean out your previous build by doing the following
In terminal type
This will remove the previous build so make sure that you have aquired your newly compiled rom
before executing this step.
Assuming you are going to build the same rom again then do this again
Now that you have compiled your rom it's time to customize it any way you like and flash away!
A huge thanks goes out to and of the who are the two guys who have made it possible for Motorola Droid Razr / Razr Maxx
owners to be able to have custom roms. They have put forth a lot of time and effort to make all of this possible and without them we would have nothing to flash!
- lownslow200sx, andlaw and BytecodeMe like this
#2
Posted 23 November 2012 - 08:03 PM
#3
Posted 30 November 2012 - 05:56 AM
#4
Posted 02 December 2012 - 01:20 PM
Google +: https://plus.google....816019544/posts
#5
Posted 07 December 2012 - 02:43 PM
#6
Posted 07 December 2012 - 09:20 PM
#7
Posted 07 December 2012 - 09:55 PM
Google is your best friend, just search for what you want to learn and you will find quite a bit of info on the subject. Hope that helpsso im highly interested in learning how to develop roms and such, can someone put me in a good direction to learn? how can i customize my rom after i have compiled it?
#8
Posted 28 December 2012 - 08:07 AM
In the end, if i could receive any help from someone, I'd like to be able to take Aokp, move the status bar just above, or maybe below the navbar. I'd also like to incorporate Paranoid settings to change the workspace to tablet mode so i can keep the normal navbar and normal statusbar, just right ontop or below the other.
If anyone could help with any info on recompiling Aokp with these modifications, it would be greatly appreciated and I'm sure others would enjoy it as well. I'd love to start developing Roms with any spare time I have, but I just need a little push in the right direction with some thorough instructions.
Thanks!
Also tagged with one or more of these keywords: AOKP, CM9, CM10
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users