Hi all,
i have an android tablet which is able to mount usb disks
i have rooted it. and have root permittion
i need to read 1024 first sector of my usb disk in android
i have make a program to do that with randomaccess file
but it gives me an exception which says /dev/block/sda (permission denied)
please help me to do that
thanks
here is the code
byte[] buff = new byte[1024];
try {
RandomAccessFile ra = new RandomAccessFile("/dev/block/sda", "r");
// here the exception occures
ra.readFully(buff);
MessageBox(new String(buff));
} catch (Exception e) {
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en