As a follow up to an earlier question (Android ioctl – root permissions and usage), is it possible to create a separate native executable and package it in an APK?
The app needs root access and isn’t going into the Android marketplace, but I’d like to be able to install it without using a script that pushes an extra executable onto the device.
You can put it into assets and copy it to the app’s private directory on first run. After you set the executable bit, you should be able to run it.