Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-04-2009, 10:05 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Android permission to open("/dev/mem",...)

I am designing an image processing application on Android that needs to access hardware registers from user space. The application is integrated to external/skia. First, I have to determine the virtual address of my hardware by doing a device open("/dev/mem", O_RDWR|O_SYNC) followed by a mmap(etc...)

Android Volume Deamon version 2.0

The open() is failing with a EACCES(13) error: I dont have permission.

I have noticed config files having the following flags:
in Kconfig.debug in kernel/arch/x86 and in other places.

I also tried to alter the AndroidManifest.xml for my application (Camera) to add a permission called "HARDWARE_TEST". The PackageManager rejected the permission at boot-up.

1. Who has permission to open the mem device ?
2. What is the usage of the config flags and can they help me?
3. Where is the master config file that generates all the generated files?
4. Is there anything I can do via the permission within the xml manifests ?




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"bash: /dev/null: Permission denied" on Ubuntu Login... sancho Ubuntu 10 10-08-2009 12:38 AM
"Bad address" reading /dev/mem chvince Linux - General 1 12-03-2008 07:06 PM
LXer: Kaffeine: Can't check DMA mode. Permission denied or no such device: "/dev/dvd" LXer Syndicated Linux News 0 04-15-2008 01:10 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
Startx Permission problems on /dev/null and /dev/mem on freshly compiled Eric_Cartman Linux - Kernel 2 09-09-2007 02:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration