Search code examples
androidlinuxadbandroid-4.2-jelly-bean

Android permission denied for /dev directory


I need to be able to read/write file "/dev/block/mmcblk0" from Android application code. But it is not read/write. What to do in this case? I use Jelly Bean.


Solution

  • You must be loged as root user (root the device).

    @user1379574:

    No, you can't.

    That is a system directory, not yours, you usually don't have nothing to do here...

    And if you need to do something here you must have permissions to do it (been root).