Steps for creating an Android ROM

Source: Internet
Author: User

There are two ways to create an Android ROM:

  • The method for compiling Android source code is complicated and will be introduced later;
  • Create or customize the ROM based on the existing ROM.

    This document describes how to customize a ROM.

    The machine I used here is Nexus One, so I downloaded a third-party ROM, which is based on Android farmer ROM 2.4. Of course, you can also use the ROM provided by CyanogenMod. In fact, Android farmer's ROM is customized based on the ROM.

    Decompress the ROM. For example, the file name of Android farmer ROM 2.4 is:

    N1_2.4_signed 2.zip

    After decompression, you can see in the directory:

    • Boot. imgfile, which is a system image, including some basic files for Linux kernel and system startup.
    • META-INF directory, where the main system updates the script, path is: META-INF/com/google/android/updater-script
    • The system/app directory contains all the built-in applications in this directory, such as calendar, contacts, and gmail. You can put your apk file in this directory, in this way, you can directly install
    • System/bin directory, system command, can be executed after logging on through the adb shell, such as top
    • System/etc directory, similar to the/etc directory of linux
    • System/font directory, font
    • System/framework directory, android framework, is a java implementation that supports java Development under the dalvik Virtual Machine
    • System/lib directory, android Local Shared Library, all so files, is a local shared library compiled by c, c ++
    • The system/media directory contains a few media files, such as bootanimation.zip. Some png images in the compressed package are used for boot animation, which can be used to change the boot screen. Some audio files in the audio directory are used for ringtones and notifications.

      In fact, the main step of this article is to customize the ROM is how to package the unlocked ROM signature. If it is only packaged back to zip, android does not recognize it, an error is reported when the ROM package is verified.

      After you place the custom apk file in the system/app directory, you can also change the boot screen, add custom ringtones, and add commands (under system/bin, then you need to package the package back to the zip file.

      Then, you need to use the signature tool to sign the zip package. The signature tool can be found:

      Http://androidforums.com/developer-101/8665-how-signing-roms.html

      Download. You must register a user to log on before downloading. The downloaded tool is executed in windows.

      Run:

      Autosign. bat

      Set CLASS_PATH for the first time and add testsign. jar. The setting process is very simple. First, enter 2:

      Then it will guess that your testsign. jar is in the current directory, So enter yes:

      Select 4, manually enter the ROM path to be signed, and then enter yes:

      The signature process takes some time and requires patience. After the signature, no new file is generated. It is completed by modifying the original file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.