Create inode at startup

by Luca Belluccini » Sat, 31 Jan 2009 14:43:06 GMT

Sponsored Links
 I am using emulator environment for testing some device drivers.
At startup, I'm executing insmod mymodule.ko to load my module (for a
fake device).
Now I need to create my inode. Now, I'm doing it by using busybox.
I think there is a "standard way" to do it. But there is no
Should I create it manually into mymodule? How to set permissions
after that? Maybe during init process?



Other Threads

1. screenBrightness of 0.0 == ???

In my app I want to completely dim the screen for a period of time and
later restore the brightness.  Dimming works fine:

 WindowManager.LayoutParams lp = getWindow().getAttributes();
 lp.screenBrightness = 0.0f;

But this seem to put the phone into an odd state whereby touch events
are no longer received and when I later try to restore the screen
brightness, either by setting it to 1.0 or -1.0 - nothing happens!
The only way I can get the screen back is to hit the end button and
menu out of the screen lock.

Is this the correct behavior?  Is there any way to work around it and
A) receive touch events while the screen is dimmed and B)
programatically restore the brightness?

NOTE: things work as expected with non zero brighness values such as


2. Problem installing Cupcake OS update on ADP1

I am encountering a strange error when attempting to install the
Cupcake (1.5) OS update on my Dev Phone 1, and I've seen no solution
to it anywhere.  Hopefully this group's assembled experts can help.

Here's what I have done.  First I download the OS update image here:

The download appears to proceed normally enough and results in a 46.2
MB (47,344 kB) file on my computer.  I rename it to '' and
copy it to the SD card on my ADP1 device (which has been mounted on my
computer via the USB cable).

Next I power down the device, and restart it while holding down the
Home button.

After a few seconds, the "triangle" screen shows up.  I then press Alt
+L, and the following text appears:

    Android system recovery utility
    E:Can't open /cache/recovery/command

    Home+Back - reboot system now
    Alt+L - toggle log text display
    Alt+S - apply
    Alt+W - wipe data/factory reset

Then I press Alt+S:

    Installing from sdcard...
    Finding update package...
    Opening update package...
    Verifying update package...
    E:No signature (413 files)
    E:Verification failed
    Installation aborted.

    Press Home+Back to reboot

...Which returns me to Square 1.  What now?  It seems to have found
the file just fine, but for some reason doesn't like it.
What's missing?

Note that the process I am following is as described here:

since blog posts and forum threads seem to be the only places the
update procedure is recorded (please correct me if I'm wrong -- I
could find no official document detailing the correct procedure).

I'm really stymied by this, and I'd be most grateful for any insights
which anyone could offer.  Thanks!


3. Unsure of SimpleCursorAdapter ? Need help

4. How to change default target activity of an intent

5. In an ExpandableListView, how can I show one additional line (footer) at the end of the child results?

6. It is not easy to play mp4 file when I use opencore V2.03 on Android SDK 1.5

7. Getting resource ID from Image view