title: How can I run a shell script on Android Things device at boot with root permissions?
body: <p>I've installed Android Things DP4 on a Raspberry Pi 3. Now I need to execute a ifconfig as root in order to set a static IP. Tried:</p>
  
  <p>-installed an Android app in the <code>/system/app</code> folder with world executable perms</p>
  
  <p>-installed an Android app in the <code>/system/private-app</code> folder with world executable perms</p>
  
  <p>-created <code>init.d</code> with a executable shell script file (folder didn't exist before)</p>
  
  <p>All this failed miserably... </p>