Hi,
Elvis Dowson wrote:
> Hi Michael,
> I am using the android-2.6-sdk-pre.
>
> This is how the code looks like right now.
>
> #define FORBIDDEN_MMAP_FLAGS (VM_WRITE)
>
> I made the modifications like you suggested, but it still didn't work.
>
>
> #if !defined(__i386__) && !defined(__arm__)
> #define FORBIDDEN_MMAP_FLAGS (VM_WRITE | VM_EXEC)
> #else
> #define FORBIDDEN_MMAP_FLAGS (VM_WRITE)
> #endif
>
>
> Here is an extract of the error messages from the console
It was correct.
>
> W/ProcessState( 1858): Opening '/dev/binder' failed: Permission denied
>
> Best regards,
>
> Elvis
ls -l /dev/binder, do you have? What are the permission? According to
the code
static int
open_driver()
{
if (gSingleProcess) {
return -1;
}
int fd = open("/dev/binder", O_RDWR);
if (fd >= 0) {
[...]
} else {
LOGW("Opening '/dev/binder' failed: %s\n", strerror(errno));
}
....
It fails if it can't open the device. So maybe the device don't exists
or you don't have
permission over the device. You can find the code here
frameworks/base/libs/utils/ProcessState.cpp. The binder is import for
process communication,
android don't use the standard unix IPC channel.
Michael
>
> >
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---