Im trying to gain logical access to the device SDCard(Micro SD) by its block device file.

from a JNI layer - A Native library that is interfacing with a
priviliged APK application by this piece of code:

(x and y is replaced by the correct major and minor numbers of the device)

It worked under G1 and HTC Magic phone , but on Nexus One it doesnt -
i get Access Denied (errno 13).

it seems that the special block device file under nexus one has different permissions than the other devices.

What can i do, any ideas?