• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[International / GSM] What are the superuser.apk and su files?

I've done a lot of reading into rooting of Android devices. I really want to know exactly what is going on at each step before I commit to the process.

I'm a little confused as to where the superuser.apk and su files come from. It doesn't look like they are official Google files, but rather files created by a (random) individual. That said, how safe are these files?

From research, I have a general understanding of their purpose. I was wondering if anyone knew what these files were (executables? scripts?), what they contained and how they generally work.

Thanks!
 
Here's a detailed reply I received from the Android StackExchange site (link).

That's an excellent summary! Here's the text of that post for the benefit of others who don't want the extra clicks :):

su (short for Switch User) is a binary executable. It's used by Android and other *nix based systems to allow a process to change the user account it is associated with. The reason it's important from a rooting standpoint is that su without any other parameters will switch to the root user, meaning that processes that require root permission for their functionality need to invoke su (since by default they are not being run by root).

Superuser is an Android application (.apk is an Android application package). It works as a sort of "gatekeeper" to the su binary. Applications which attempt to invoke su will be forced to route through Superuser, which will then prompt the user if it is an unknown or new application. The user then has the option of approving or denying the access to su and optionally having Superuser remember their decision so it can automatically apply it for subsequent calls by that app. By doing this, the only apps which are granted root permissions are ones that the user chooses.

The Superuser app is also often referred to as the "whitelist app" for root--vs. a blacklist that would be used to deny access, the Superuser whitelist app is used to allow access (either temporary or permanent (when you select "remember this setting")).

By the way, one is no good without the other... Simply having su installed won't give you root, since it reads a database maintained by the Superuser app.

Cheers!
 
Back
Top Bottom