Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to compile AOSP with superuser
    primarykey
    data
    text
    <p>I am trying to figure out how to compile the AOSP with superuser. I was pointed to this question: <a href="https://stackoverflow.com/questions/5597139/build-android-with-superuser/12624051#12624051">Build Android with Superuser</a>. The instructions seem a little unclear and I also do not understand exactly what is going on. It also seems to talk about this allowing su privileges on android apps. I am not trying to get this on apps. I was trying to have root access when running some code in the main android source(specifically trying to open a socket in DisplayDevice.cpp).</p> <p>I have asked a similar question here(<a href="https://stackoverflow.com/questions/15302363/create-a-socket-in-android-codenot-in-android-application-getting-permission-d">Create a socket in android code(not in android application) getting Permission Denied</a>). I figured that since I was put on the right track and now know that I need to compile the code as superuser, I should just ask another question. </p> <p>I have added the su-binary code to my AOSP code as per instructions from the first SO question. I have also changed my init.rc, but am under the impression that I need to do something to make those changes go through as well. This is not talked about in the question. Right now when I run make su-binary I get "make: Nothing to be done for `su-binary'.". I think something was wrong here. I am using the makefile specified by m-ric. I also was not sure if I needed the Superuser.apk since I am not working with code that will be found in an Android app. </p> <p>If anyone could point me in the right direction for this I would be really grateful. I am happy to provide more information if needed.</p>
    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.
 

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