Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of Android .rc files

Tags:

linux

android

rc

What is the use of .rc files in Android framework. I see a lot of files what is there purpose. Also I have a little knowledge about linux but I see commands like

mkdir /dirName 0777 abc def

what does that mean. If I run this command on GNU-Linux it creates folder named dirName, 0777, abc and def. I know its like giving permissions while creating directory also abc and def are somewhat like owner or root, but not sure. Does commands in .rc file runs different in Linux normal kernel and in Android linux kernel. Is there any link or online material to study to learn the same that how can we write and use .rc files in Android. Thanks in advance.

like image 562
Aduait Pokhriyal Avatar asked Sep 19 '12 12:09

Aduait Pokhriyal


People also ask

What is .rc file?

A resource file is a text file with the extension . rc. The file can use single-byte, double-byte, or Unicode characters. The syntax and semantics for the RC preprocessor are similar to those of the Microsoft C/C++ compiler. However, RC supports a subset of the preprocessor directives, defines, and pragmas in a script.

What is the init rc file?

rc in system files . Init is the root process or the first user process to start in Android . It is the parent of all other processes . The process id (pid) of init is always 1 .

What does init do in Android?

init program is a key component of the Android bootup sequence, it initializes main elements of Android System. The Android init program process two files, executing the commands which it finds in them. First one is generic init. rc, common for all Android Devices.


1 Answers

Thanks for the reply. I already knew .rc files contains instructions for the compiler and what is the purpose of .rc files. (Definition of .rc file).

I was more concerned about its usage with context of Android and how commands are used. After searching a lot I finally found a link explaining basics of it (Android INIT Language).

As in my question I asked how mkdir command usage is different in android .rc file its well explaind in readme file in this link.

Thanks again.

like image 58
Aduait Pokhriyal Avatar answered Oct 24 '22 15:10

Aduait Pokhriyal