Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It is quite natural that you get <code>Permission Denied</code> error. This is simply because you don't have correct permission :). Check out <a href="http://source.android.com/tech/security/index.html#the-android-permission-model-accessing-protected-apis" rel="nofollow noreferrer">android permission model</a>!</p> <p>Imagine a scenario like a normal user in an operating system and you write a program which tries to open a socket like yours. You would most probably face the same problem, depending on where the named socket is to be created.</p> <p>As you are trying to create the socket in <a href="https://android.googlesource.com/platform/frameworks/native/+/27e2562868dcd3ad26f9b4677b64ae272941704e/services/surfaceflinger/DisplayDevice.cpp" rel="nofollow noreferrer">DisplayDevice.cpp</a> (compiling android from the source), you may be interested in compiling the source as a superuser. <a href="https://stackoverflow.com/a/12624051/782094">Here</a> is a solution posted by <a href="https://stackoverflow.com/users/808044/m-ric">m-ric</a> (I have never tested it).</p> <p>Some useful pointers/references in similar direction and which I found useful during research on this enthralling topic are:</p> <ol> <li><a href="https://android.stackexchange.com/questions/18857/how-to-build-compile-su-from-source">https://android.stackexchange.com/questions/18857/how-to-build-compile-su-from-source</a></li> <li>execv command => <a href="http://code.google.com/p/superuser/source/browse/trunk/su/su.c?r=2#169" rel="nofollow noreferrer">http://code.google.com/p/superuser/source/browse/trunk/su/su.c?r=2#169</a></li> <li><a href="https://github.com/ChainsDD/su-binary" rel="nofollow noreferrer">https://github.com/ChainsDD/su-binary</a></li> <li><a href="http://e2e.ti.com/support/omap/f/849/p/178679/648158.aspx#648158" rel="nofollow noreferrer">http://e2e.ti.com/support/omap/f/849/p/178679/648158.aspx#648158</a></li> <li>A video from Google I/O 2011 <a href="http://www.youtube.com/watch?v=5yorhsSPFG4" rel="nofollow noreferrer">http://www.youtube.com/watch?v=5yorhsSPFG4</a></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload