title: How do I get root access in Android while building from source?
body: <p>I have built an Android version for Intel x86_64 from the <a href="https://01.org/projectceladon/" rel="nofollow noreferrer">Intel Celadon source code</a>. The generated Android image is running on my machine. However, I do not have root access in the Terminal app in the Android device. I don't want the <code>adb shell</code>. I need the root access (<code>sudo</code>) in the Android Terminal app. How can I get that?</p>
  
  <p>In previous Android builds, it was done by changing the <code>init.rc</code> as described in this <a href="https://stackoverflow.com/questions/5597139/build-android-with-superuser">StackOverflow link</a>. However, this process does not work anymore because of SELinux update in Android. My guess is that there is some <code>capability</code> specification added. Can anybody give any clue on how to build Android from source to give <code>root</code> or <code>sudo</code> access in a Terminal app?</p>