Parsing problems with init.rc files in Android

Source: Internet
Author: User

The init.rc file will pass through the import/init.${ro.hardware}.rc file, and this ro.hardware should be a detailed attribute. This ro.hardware assignment should be assigned in the INIT process.


This Ro.hardware value setting is implemented in/SYSTEM/CORE/INIT.C and is assigned by hardware. Hardware is first assigned to/proc/cpuinfo. The comandline will then be detected.

Assuming that there are androidboot.hardware in the Comandline, the parameter will be used in the parsing of the Init process and will be assigned to hardware.

That is to say that there are androidboot.hardware in CmdLine. Then the value of Ro.hardware is this value, assuming no ro.hardware value is/proc/cpuinfo


For example, I am participating in this project comandline Androidboot.hardware = QILIANP1, then import in init.rc the detailed file corresponding to, init.qilianp1.rc


Parsing problems with init.rc files in Android

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.