My problem is theoretical at this moment. I am investigating if it is possible or not, before spending hours on it.
- I have a rooted phone.
- I want to add an entry to the IPTABLES on startup.
- If the phone is factory reset, I still want the entry to be added to IPTABLES.
My thought so far are:
- Altering the boot image and making the init.rc permanent, but I think that is to scary and risky.
- Create an app (apk) that is installed in
/system/appthat runs the ITPABLES command.
What are my chances of succeeding with number 2?
To run IPTABLES the apk needs root, the phone is rooted, but does the app have root access just because it is in
Normal apps trigger SuperSU to grant the app root, but I want it to do the IPTABLES thing without any popups. All unattended.