im trying to find the method behind having superuser access on android devices. basically i want my app to be able to remove system files, and so asking the user if its ok a
If I'm getting it right you want to grant your application root privileges. This is not possible with the standard Android image which is installed on the devices. The su command does not support changing to root.
You can however load a customized rooted ROM on your device other than that I'm afraid there is no solution.