How to access system.prop in kernel?

788 views
Skip to first unread message

Yogi

unread,
Nov 29, 2011, 6:10:52 AM11/29/11
to android...@googlegroups.com
Hello,

User space apps has APIs given by framework such as getprop()/setprop()/getint/setint. Is there any possible way with which we can read system.prop entries in kernel?


- Yogi

white

unread,
Nov 30, 2011, 2:16:15 AM11/30/11
to Android Linux Kernel Development
As I know there are no method to access on kernel side.
You can try it with user file system read.
But I don't recommend that way.

prop file is not for kernel mode, but for user mode

On 11월29일, 오전3시10분, Yogi <yogesh.th...@gmail.com> wrote:
> Hello,
>
> User space apps has APIs given by framework such as
> getprop()/setprop()/getint/setint. Is there any possible way with which we
> can read system.prop entries in kernel?
>

> - <company_name>
> - <board_name>
> - Android.mk
> - product_config.mk
> - *system.prop*
>
> - Yogi

Yogi

unread,
Nov 30, 2011, 2:26:02 AM11/30/11
to android...@googlegroups.com
Thanks for info.

1,. I was actually trying to create one entry in prop file. It was set by VOLD and will be accessed by all apps.

2. VOLD is setting preferred file system, whether FAT32 or EXT2 etc.

3. Now if kernel cant access it, then by any chance, how can a device driver, say - a USB gadget driver - can access information from VOLD such as supported file system is FAT support or EXT support?

Thanks.


2011/11/30 white <kyungt...@gmail.com>

Reply all
Reply to author
Forward
0 new messages