Android is open source that is a full operating system, including the kernel. Ui, libraries, and key apps are available for free. That means anyone (with the right technical skills) can build Android from the source and flash it onto a compatible device. Thus, in this post, we’ll tell you about How to Make A Custom ROM Compatible With Your Device.

Customization of ROM Compatible allows various groups, some commercial and some hobbyists, to develop alternative distributions of Android. This customization is commonly referred to as “custom ROMs” however a better name would be “custom firmware.”

With the necessary building blocks, you can build your own custom ROM with your personalized version of Android.



It is possible to build custom Android firmware for any computing device capable of running a modern operating system. To make life easier, we’ll limit ourselves to building Android devices to devices that have been supported “out of the box”.

However, to build Android you are going to need access to a Linux machine or a Mac. In both cases, you will be using the terminal a lot and need to be confident with shell commands.

Other than that, you will need 130GB of disk space and probably around 8GB of RAM. Building Android isn’t quick and synchronizing the source repository with my local machine took almost 24 hours.

Also, a full clean build will take several hours to complete, and even after making a minor change you might need to wait 10 to 20 minutes for a build.

How to Make A Custom ROM Compatible With Your Device:

The basic process to Make A Custom ROM Compatible With Your Device. You need to download and build Android from the Android Open Source Project. Then, modify the source code to get your custom version.

Google provides some excellent documentation about building AOSP with the steps given. Here are some of the general steps are:

#1. Set up a Build Environment:

It includes installing the right development tools, the Java Development Kit, and getting all the paths and directories right.

Ubuntu 14.04 is the recommended build environment for Linux users and OS X 10.11 for Mac users. You need to install OpenJDK 8 on Linux and Oracles JDK 8 on OS X. On OS X. Also, need the Macports installed along with Xcode and the Xcode command-line tools.

#2. Grab the Source:

This is done using the “Repo” tool and git while it takes a long time. For a large download, you must sync with the main source tree will be incremental.

#3. Obtain Proprietary Binaries:

Some of the drivers are only released in binary form.

Obtain Proprietary Binaries

#4. Choose a Target:

By using the “lunch” tool.

#5. Start the Build:

You can start the build using make. While GNU make can handle parallel tasks with a -jN argument. It’s common to use several tasks N that’s between 1 and 2 times the number of hardware threads on the computer being used for the build.

Also, Read This:

How to Transfer Your Photos From Google Photos to Synology Photos: Export It with 7 Easy Steps:

If you find your machine struggles during the build process then try something like “make -j2”. To get build errors that seem related to memory, especially about the Jack server and memory then do these two things:

  • export ANDROID_JACK_VM_ARGS=”-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation”
  • change the jack.server.max-service in $HOME/.jack-server/ to 1
#6. Flash the Build onto your Device:

By using adb and fastboot .out/host/darwin-x86/bin/ or ./out/host/darwin-x86/bin/ for OS X or Linux respectively.

Flash the Build onto your Device

Important Point:

To build custom versions of Android, we need to pause and assess the enormity of the task ahead, while keeping our expectations in check. If you have absolutely no coding experience, zero experience with using the command line (on Linux or macOS), or no idea what a “Makefile” then you should avoid it.

Android is a complete operating system that’s complex and contains many different subsystems. By creating an operating system as complex and useful as Android didn’t happen overnight, which means any customization that you wish to perform is going to have to start small.

Final Words:

Here are the two modifications on How to Make A Custom ROM Compatible With Your Device. Thus, in this post, we have made a very basic and there are loads more that could be done including pre-installing other apps, adding ringtones & wallpapers, and tweaking the kernel.

We hope that this has given you a taste of what is possible or at least give you an idea about how to build AOSP.


Please enter your comment!
Please enter your name here