Reputation: 376
I compiled the kernel files for my device however, I don't know what platform files are for. Could you please tell me what are the functions of "kernel" and "platform" files? Thanks in advance.
Upvotes: 0
Views: 1232
Reputation: 28525
Android Operating System can be roughly split into 2 parts-
The Linux Kernel
The Android Framework.
The Android Framework is on top of the linux kernel and it is that which is referred as platform. Platform code consists of the Window manager, Event manager etc. It handles things like what should happen when the screen is touched, how windows are drawn and a host of other things. The linux kernel provides the scheduler ( heart of the OS ), drivers which interact with the H/W and a lot of other stuffs.
In short, the platform talks to the user with the aid of the underlying kernel. Generally, in android, most of the platform code is in java and kernel code is predominantly in C.
So until you have modified some platform java files you don't need to compile it. Your random.c
and cipher.c
should be part of the kernel and not the platform
Upvotes: 1
Reputation: 20936
Android OS consists of 4 main parts: Linux Kernel, Core Libraries, Application Framework and Applications. So everything that is connected with Linux Kernel in Android is usually called kernel and all other layers (except maybe Applications) are platform. When you're downloading AOSP (see instructions on source.android.com) you download platform where the kernel is usually comes prebuilt. But you can separately download kernel and modify it (what you've done).
Upvotes: 1