What is the "udev" in Android?
I am working on a an android device that uses 2.6.29 linux kernel image. The directory structure is not the same as a normal linux system, and there is no /etc/udev directory. I am looking for the equivalent of this because I want my device to act as a host, such that when I connect a usb storage device, it can automatically mount it to my specified directory.
Regards, archieval |
|
hi archieval, were you ever able to get udev rules properly working on Android? I tried following that link, but Google has removed it now. I have tried putting a udev directory in to /etc (which is a symlink to /system/etc)
In /etc/udev, I have a udev.conf file like this: Code:
# cat udev/udev.conf |
archieval,
Thanks for posting the solution, as well as taking the time to mark this "[SOLVED]". May you have the good fortune to need this solution again & discover this as your answer. (It has happened to others.) |
Hi guys!
There is no udev in android. The configurations such as mount points, permissions, etc. are put in a file called init.rc. This file is located in the top level directory of android OS. This file is written using the android init languange which is supposed to be described in the link I provided. Here is another link to that: http://www.kandroid.org/android_pdk/bring_up.html That init.rc file can be found in your android source code deep within the vendor/ folder. When you compile your android source code, that file will be included in the ramdisk.img. Regards, archieval |
All times are GMT -5. The time now is 02:06 AM. |