Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Phones > Samsung Galaxy Nexus > (International) Galaxy Nexus - All Things Root



Reply
 
LinkBack Thread Tools
Old January 21st, 2012, 11:20 PM   #1 (permalink)
Junior Member
 
thehybridkiwi's Avatar
 
Join Date: Dec 2011
Location: Austin, TX
Posts: 31
 
Device(s): Galaxy Nexus
Thanks: 9
Thanked 5 Times in 5 Posts
Question 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!

thehybridkiwi is offline  
Reply With Quote
Sponsors
Old January 22nd, 2012, 12:03 AM   #2 (permalink)
Junior Member
 
thehybridkiwi's Avatar
 
Join Date: Dec 2011
Location: Austin, TX
Posts: 31
 
Device(s): Galaxy Nexus
Thanks: 9
Thanked 5 Times in 5 Posts
Default

Here's a detailed reply I received from the Android StackExchange site (link).
thehybridkiwi is offline  
Last edited by thehybridkiwi; April 28th, 2012 at 11:27 PM.
Reply With Quote
The Following User Says Thank You to thehybridkiwi For This Useful Post:
crankerchick (January 23rd, 2012)
Old January 22nd, 2012, 12:53 AM   #3 (permalink)
not really so scary
 
scary alien's Avatar
 
Join Date: Mar 2010
Location: Indy
Posts: 8,703
 
Device(s): Samsung Galaxy Nexus, Moto Droid X, Moto Xoom, HTC Droid Eris
Thanks: 6,638
Thanked 4,670 Times in 2,590 Posts
Default

Quote:
Originally Posted by thehybridkiwi View Post
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 :

Quote:
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!
scary alien is offline  
Reply With Quote
The Following 2 Users Say Thank You to scary alien For This Useful Post:
crankerchick (January 23rd, 2012), thehybridkiwi (January 22nd, 2012)
Reply

Galaxy Nexus
Current Rating:
Rate this Phone:

The Galaxy Nexus is the third official phone contracted by Google and the first phone to come with Android 4.0 Ice Cream Sandwich. Specs include a 1.2GHz dual-core processor, 1GB of RAM, 16/32GB of internal storage, a 4.65 inch 720p HD Super AMOLED... Read More


Bookmarks

Tags
root, su file, superuser.apk


Go Back   Android Forums > Android Phones > Samsung Galaxy Nexus > (International) Galaxy Nexus - All Things Root User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 07:10 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo