[Q] Rooting Question... - Android Software/Hacking General [Developers Only]

"Give a man a fish and he will eat for a day. Teach a man to fish and he will eat for a lifetime.”
What i am trying to say is if someone can lay down the foundation of Rooting an Android Device. I am not talking about any specific device, or the different Methods of Rooting (i.e. through recovery, through script, etc.) I am speaking about what file systems/files are being modified, replace, etc?
From what i understand Android release their OS's rooted, then third parties, (i.e. Samsung, Moto, Tmobile etc) take those releases and make changes. What changes do they make besides the themed, and service ones? the changes that unroot the phone.
If you wish you can lay down the foundation of sudo/su thats cool. However, i am not asking for the history of it.
Side Note:
Pls no trolling.
Posting comments like- "you shouldn't try this..", "Leave it to the experts..", and "You're going to break your device..." are Un-Welcome.
Thanx.

Rooting my touch 4g benefits or drawbacks
I wanted to find out if there are things that work differently like the market or other things if you root a phone. What are some of the benefits to rooting? I want to use my phone as a wifi hotspot for our computer without paying for it. Is that only possible with a rooted phone? Is a phone able to be unrooted if it needs to be? Thank you for your help.

rooted the HTC BEE WILDFIRE CDMA
i have rooted the HTC BEE WILDFIRE CDMA. it is different than the HTC BUZZ WILDFIRE GSM. using the [APP]SuperOneClick v1.5.5 (Root, Unroot, Enable Non-Market App, Get UNLOCK code)
now i cant find a recovery img that will work can any one point me the right way. there is no thread in for this phone.

There's nothing fundamentally changed when you root your phone. Make yourself familiar with Linux security and you're (almost) done. Your phone executes under the control of this model, be it rooted or not. In an unrooted phone, there are nevertheless a lot of processes running with root privileges so of course there's a "root" in an unrooted phone. But it is not available to the normal user, only to system processes.
The only difference is that on a rooted phone there is a way for a non-root process to acquire root privileges, i.e. run as root. That's just about all. Except for some, umhh, minor thing: You cannot install the program required to do so (e.g., su) as long as you're non-root. Only root can install any piece of code which changes the current user into root. Apps run as their own user (to each app, a separate user "account" is assigned, none of those having root privileges) and so can't install such a thing, at least not normally.
Some trick is needed (running an exploit, changing the ROM) to achieve this and this is what makes rooting such a tricky thing.
The fundamental thing to understand what is changed when you root your phone (and that barely anything changes really) is the Linux user/group security concept. It's all open, there's no hidden secret.

mizch said:
There's nothing fundamentally changed when you root your phone. Make yourself familiar with Linux security and you're (almost) done. Your phone executes under the control of this model, be it rooted or not. In an unrooted phone, there are nevertheless a lot of processes running with root privileges so of course there's a "root" in an unrooted phone. But it is not available to the normal user, only to system processes.
The only difference is that on a rooted phone there is a way for a non-root process to acquire root privileges, i.e. run as root. That's just about all. Except for some, umhh, minor thing: You cannot install the program required to do so (e.g., su) as long as you're non-root. Only root can install any piece of code which changes the current user into root. Apps run as their own user (to each app, a separate user "account" is assigned, none of those having root privileges) and so can't install such a thing, at least not normally.
Some trick is needed (running an exploit, changing the ROM) to achieve this and this is what makes rooting such a tricky thing.
The fundamental thing to understand what is changed when you root your phone (and that barely anything changes really) is the Linux user/group security concept. It's all open, there's no hidden secret.
Click to expand...
Click to collapse
thanx for taking the time to write this but i am hoping for something alittle more descriptive.

I've got an HTC Desire and want to root it in order to install some lag-fix to make smoother.
Question is: will rooting affect the updates I get from HTC?
Sent from my HTC Desire using XDA App

Related

Rooting question

Hello eveybody,
I just switched over from my HTC WinMo phone to this amazing Android EVO phone. I've continuously have been hearing the term "root" or "rooting" alot in this community. My question is sort of noobish; what does it mean to root your phone? Also, how can I do this to my phone?
It means you gain unrestricted access to the kernel of your phone. It allows you to install custom roms, themes, custom apps etc.
the easiest way i know of is to use unrevoked.com. they have an all-in-one method to give you full root in one fell swoop. good luck!
The way I picture rooting the phone is like jail breaking an iPod. So once my phone is rooted, I can download new apps, music, ringtones, wallpapers, themes, ect.??
On android you can download all that from the market, rooting takes customization to a whole other level. Just do a search and read up on it.
sent from the phone that is EVO
To me, rooting is admin like mode.
On your pc you have guest, limited and admin accounts. All accounts gave different levels of clearance.
I don't know much about linux but logging in as root gives you absolute highest permissions to do things. Imo, They sell these phones in non root able fashion so we don't break the os and ask for a replace ment due to malfunction. And to maybe lock us out of goodies that they want to up sell to us like adhoc wlan teathering.
Through the hard work of some folks, we can gain root access and have more fun. On the flip side, we can also do more damage as root.
I am rooted, but seldom use the root access. Imo Most people root so they can flash roms and teather for free.
Sent from my PC36100 using XDA App

[Q] About Root

First of all this isn't a "what is root!??!!??" nor a "OMG I BRICKED MY PHONE SOMEONE HALP!" type of question.
This is more of a "I want to understand what's going on under the hood" type of question.
I'm asking this because I haven't seen the answer anywhere and it'd probably take me several days putting together a bunch of tidbits of information about this to understand it.
What does getting root on an Android device involve? I've used 1-click tools, flashed kernels that include root (CF-Root, for example), used adb and nvflash. What goes on at the OS level?
Thanks in advance to any helpful soul that replies!
pretty much its granting sysadmin rights to your phone.
It gives you admin level access to the operating system. You can customize apps, looks, performance and a good host of other things including backups, flashing ROMs etc..
Thanks guys, but like I said, I know what rooting is and what it's for. I have both of my android devices rooted (Galaxy S and Asus Tablet).
What I want to know is, when you root a device, what's modified, what does rooting actually involve, under the hood.
Root is a Linux term. In Linux based operating systems there is a predefined user account called root. When a device I shipped to you, the manufacturer has prevented you from being able to be root user for safety, and to prevent you to add, remove or modify things at a system level. When you perform the procedure of rooting your device, you change the su binary in the system directory, usually through a security exploit, to remove these restrictions that the manufacturer has bestowed upon your device, and now you have full access to anything on your phone
Hope this is helpful, and I case you do not read my awesome signature, please hit the thanks button to show your appreciation if this helped
Root is a Linux term. In Linux based operating systems there is a predefined user account called root. When a device I shipped to you, the manufacturer has prevented you from being able to be root user for safety, and to prevent you to add, remove or modify things at a system level. When you perform the procedure of rooting your device, you add su binary in the system/bin directory, usually through a security exploit, to remove these restrictions that the manufacturer has bestowed upon your device, and now you have full access to anything on your phone
Hope this is helpful, and in case you do not read my awesome signature, please hit the thanks button to show your appreciation if this helped
Thanks again but, again that's not what I'm asking. OK here goes again:
- I know what rooting is
- I know what root is for
- Both my phone and my eePad are rooted
- I know what su is. I've used Linux and UNIX
What I want to know is, what is actually modified on the android OS when rooting the phone!
Is the kernel modified?
are permissions modified?
Is it an API thing?
Sent from my Transformer TF101 using Tapatalk
Rooting usually consists of 2 parts, the vector and payload:
All those rooting apps use various exploits to insert the payload. On devices that can install custom recoveries without rooting (ie unlocked bootloaders) they can merely use the recovery to directly install the payload.
There's dozens of vectors including making a 'superboot' kernal which include the payload and installs it on the first boot (i think?)
The payload is minimally the SU binary and the superuser app. Both are made by the same guy.
On the Dell Streak (which has an unlocked bootloader) rooting is just flashing an update.zip containing the SU binary and superuser app. A simple copy to /system. Newer rooting apps also include patches to plug up the exploit that they used themselves. Gingerbreak includes a dummy /system/bin/profile that plugs up the exploit used to install itself(?)
If the kernel is modified it's prob at runtime and not a hard patch, if it modifies it at all (i dont know), my assumption is that the linux kernal in android retains hooks that SU uses to link up with the system and normally it's simply not enabled by not including a SU binary. The superuser app of course just more or less a front end to SU (settings and logging)
Unlocked bootloader devices are likely the most reliable to root since they dont depend on exploit vectors, as updates plug them up they have to find a new vector or modify them, which means that there are open vectors that actual malware can use. Using a custom recovery to flash is the intended purpose of having an unlocked bootloader.
I'm very new to this so please forgive this old man. I'm 60 years old and bought a brand new Viewsonic G Tablet. Then after getting it I searched the internet on how to make it better. Seems everything depends upon "rooting" the device. I spent the day and now it's 11pm searching the net, watching youtube videos and reading about but no one actually gives you a step by step answer. I'm hoping one of you fine people help me out, please.
I guess I was wrong. Not one person has stepped forward to help me. Thank you so very much. I know what rooting is but what I don't know is how to root my Viewsonic G Tablet 2.2. You'd think I was asking for the code to a Swiss Bank Account. LOL With PC's I'm a wiz, or was until I reached 55 or so and then things were just going so fast and over my head. But when it comes to this, I'm like a brand new student trying to learn Japanese. All I need is for someone to please give me a step by step instruction on how to do it. If you'd like, I'll Paypal you some money for helping me.
Thank you
Philip Bock CSM US Army (Retired)
Thanks Manil! That's what I was looking for! It seems that most devices have a locked bootloader, and now I understand why it takes a bit longer (more than a few hours) to root each new device,
Sent from my Transformer TF101 using Tapatalk
pabock said:
I'm very new to this so please forgive this old man. I'm 60 years old and bought a brand new Viewsonic G Tablet. Then after getting it I searched the internet on how to make it better. Seems everything depends upon "rooting" the device. I spent the day and now it's 11pm searching the net, watching youtube videos and reading about but no one actually gives you a step by step answer. I'm hoping one of you fine people help me out, please.
I guess I was wrong. Not one person has stepped forward to help me. Thank you so very much. I know what rooting is but what I don't know is how to root my Viewsonic G Tablet 2.2. You'd think I was asking for the code to a Swiss Bank Account. LOL With PC's I'm a wiz, or was until I reached 55 or so and then things were just going so fast and over my head. But when it comes to this, I'm like a brand new student trying to learn Japanese. All I need is for someone to please give me a step by step instruction on how to do it. If you'd like, I'll Paypal you some money for helping me.
Thank you
Philip Bock CSM US Army (Retired)
Click to expand...
Click to collapse
I searched for "Viewsonic G Tablet 2.2 root" and found this http://droidpirate.com/2010/11/27/how-to-root-your-viewsonic-g-tablet/
Looks promising, no garantees though.

[Q] question about how the app "superuser" works... (behind the scenes)

Hello,
I have a question about how the "superuser"-app works behind the scenes.
As far as i know: The "superuser"-app can be used to grant root-permissions only to the programs, that I want. All other programs are still not running in root. Is this right?
If I'm right on that... Why does only the app super-user does have root after rooting the phone via e.g. the zergrush-exploit and other apps still not have root permissions although the phone has been rooted? Isn't there a security gap ?
In my point of view it could be possible, that any other app could take the root-rights just like the app "superuser" does it. If I'm not right, I don't get it, why only "superuser" gets root and all other apps can't get root unless "superuser" gives them root...
Isn't it a security gap? I just don't get it... how is this achieved?
Is it absolutely (or nearly absolutely) safe, that no other programs can get root-permissions when I use "superuser"? As I already said before, I'm really curious about, why or how this can be achieved and "guaranteed"...
Thanks in very much advance.
Kind regards
mr. salt
I think it's barely possible, that I'm the only one who is interessted how this app is working or wondering about the same security issues, which come along with my questions above?
I would appreciate an sophisticated answer very much!
greetings
mr. salt
sea_salt said:
Hello,
I have a question about how the "superuser"-app works behind the scenes.
As far as i know: The "superuser"-app can be used to grant root-permissions only to the programs, that I want. All other programs are still not running in root. Is this right?
If I'm right on that... Why does only the app super-user does have root after rooting the phone via e.g. the zergrush-exploit and other apps still not have root permissions although the phone has been rooted? Isn't there a security gap ?
In my point of view it could be possible, that any other app could take the root-rights just like the app "superuser" does it. If I'm not right, I don't get it, why only "superuser" gets root and all other apps can't get root unless "superuser" gives them root...
Isn't it a security gap? I just don't get it... how is this achieved?
Is it absolutely (or nearly absolutely) safe, that no other programs can get root-permissions when I use "superuser"? As I already said before, I'm really curious about, why or how this can be achieved and "guaranteed"...
Thanks in very much advance.
Kind regards
mr. salt
Click to expand...
Click to collapse
Ok let me see if I can explain this the best way I can. When you root your phone you are giving yourself the ability to run apps that require root. This ability is turned off by default in android. Now lets compare this to Linux, when you run an app as root you have t run the sudo command and then enter your password each and every time you want to run it with rooted rights. SuperUser is an app that when prompted will remember the selection you choice so you dont have to allow it every time you run the app and with out opening a terminal to type the commands to allow it to run as root.
You are looking at the app of super user more as a stand alone app instead of being a front end UI for the commands that you would have to run to get the same out come.
As for the security, to be honest the best security is common sense. As it is a simple fact that PC, phone, internet, server ect security is only as good as the hacker trying to get into it. If he/she really wants your info they are gonna get it. Take a look at what happened to the US DOD and they have a far more secure setup then anything on the market.

CM9 will ship with SU disactivated.

This in my honest opinion is a excellent idea. And wish they would of done it along time ago.
Many of you may not give it a second glance, but among all the furor and concern about permissions requested by market apps and privacy, all Custom ROMs (CyanogenMod included) ship with one major security risk — root!
We have been struggling with how to handle this for quite a bit, and took a first step with the first public CyanogenMod 9 alpha builds, by disabling the previously-default root access over USB. You can still get adb root access by running “adb root” in terminal, should you ever need it.
We recently merged 3 patches into CyanogenMod 9, to further address this: http://goo.gl/eCjDV http://goo.gl/oWAFI and http://goo.gl/34vai.
What follows is an explanation of the changes, how they affect you and our reasoning behind them.
What do the patches do?
They disable root selectively and in a configurable way. Users will be able to configure their exposure to root as:
Code:
Disabled
Enabled for ADB only
Enabled for Apps only
Enabled for both
How does this change affect the usage of your device, and root apps you have installed?
On a default CyanogenMod installation, root usage will have to be explicitly enabled by the user. This means that the user is fully aware that any application that uses root may perform actions that could compromise security, stability and data integrity. Once enabled, the process mirrors that of the current process, apps that request root will be flagged by the SuperUser.apk and the user will have to grant selective access.
Why the change?
At CyanogenMod, security has always been one of our primary concerns, however, we were hesitant to make a change that might disrupt the current root ecosystem. With CyanogenMod 9 we have the opportunity to do things better, whether its the code in the OS, UI/UX, or security – we are taking this time to do things with a fresh approach.
Shipping root enabled by default to 1,000,000+ devices was a gaping hole. With these changes we believe we have reached a compromise that allows enthusiasts to keep using root if they so desire but also provide a good level of security to the majority of users.
What concerns remain?
Many of you reading this are savvy enough to note a remaining hole in this approach – recovery and unlocked bootloaders. The bootloaders are out of our hands, there is little to nothing we can do on that front.
Regarding recovery – with unlocked bootloaders, a malicious user could just flash a new recovery image (without any potential security we could apply) or just dump the data partition. This however, requires physical access to the device. As such, the security standards for this are highly reliant on you, the device owner. Data encryption is available in ICS to safeguard your data. (Warning for emmc only users – encrypted /data means recovery will be non-functional.)
The onus is on you to secure your device; take care of your possessions, and this risk is minimal. Always make sure you take devices out of your car before you go into the mall and remove them from pockets before washing laundry. Common sense is a basic security tool.
But Why?
We honestly believe there are limited uses for root on CyanogenMod, and none that warrant shipping the OS defaulted to unsecured.
Click to expand...
Click to collapse
Hope it works out for them, I think it's a pretty good idea.
Sent from my HTC Glacier using xda premium
It better be easy to reactivate because last time i checked, you need root to change ur rom
Sent from my HTC Glacier using XDA
THEindian said:
It better be easy to reactivate because last time i checked, you need root to change ur rom
Sent from my HTC Glacier using XDA
Click to expand...
Click to collapse
1) it's a setting in the OS, you either pick ADB only / APP only or / Both
2) you still physically still have root access. You'll still have s-off, and have SuperUser in the /bin or /xbin file system.
3) this just allows people who what Cyanogen Mod on their phone to get it w/o having to worry about security risk of applications running SU access and damaging something.
4) this could/may/will pave the way for OE manufacturers to incorporate a similar feature into their OS shipping from the factories.
i actually find this a good idea for new comers, so that they don't mess up their devices
I'm glad to see this. Needlessly running with root access at all times can be a big security issue.
THEindian said:
It better be easy to reactivate because last time i checked, you need root to change ur rom
Sent from my HTC Glacier using XDA
Click to expand...
Click to collapse
not true, all you need is custom recovery which can be flashed via fastboot, i have s-on with cwm recovery and went from stock rom to ics
edit: + This is a good approach for newcomers

"To Root or not to Root?" that's the question...

I don't want to know how to root, I can find my answer for that on Google, however what I don't get is what it does...
I know it unlocks the device somehow, but can't I simply access everything in the system if I compile android from source and install it on the device?
I have downloaded the android source and I believe I can access every possible thing, so why is rooting needed?
If I install an app as a system app, won't it automatically have the permissions to do what I need it to do?
AFAIK rooting is for the people you'd call the end user/consumer or whatever.
If you have a new phone and want to install one of the many custom ROMs around, you simply need a rooted phone.
A custom ROM is in easy terms a custom made User Interface for the phone.
There is lot more complicated stuff going on under the hood, but in general you change the look and feel of you phone's UI.
The phone has to be rooted, because the manufacturers and net providers around pack a lot of useless crap called "bloatware" (like Samsung Shop and Samsung Play and Samsung Sing and Dance and Music and whatnot) on your phone, which often makes it slower than it can be without it.
But naturally the big corps don't want you to be able to get rid of that **** too easily, which is why you don't have access to the system folders as a normal user.
I guess in your case it's possible that you (if you compiled android from source and installed it on your device) so to say have an already rooted phone, since Android itself is rooted by default. Like I said, the manufacturers are the ones to unroot Android in order to dictate which apps their customers might or might not use.
But I'm a noob and am not sure how you would install Android on your phone if it's new (and unrooted by default?) if you haven't rooted it before?
meh, hope that helped a bit at least...
root- you would love to do it after reading this..
Root? what is it?
it is what i call full access to our phone, flash new roms, have dual boot (example- you can have to os like ics and JB), can access the evasive /data folder which holdes the apk/setups of apps installed from playstore and many other things..
If you are concerned about warranty you can unroot your phone and give in your phone for warranty. i have given my phone for warranty like this.
The most important thing i like about root is that i can fix my phone myself (if it is a software problem). any other question please ask, and i will answer it.
Thanks if helped!
I don't have the time for development anymore. I used to play with stuff like that years ago, but life has taken me away from it. I'd still like to be able to access everything on my phone and play with custom roms, and root lets me do that. The end consumer comment is a good one.
As for to root or not root, I tell most people who ask me to root for them what they use their phone for and explain what they would get out of rooting, and explain the risks involved. Seems that people who understand what rooting does are able to do it themselves, and the ones that ask you to do it for them usually decide against it after hearing "there is a tiny chance that your phone could get bricked" lol
If you just want to play emulators etc, how would you benefit from rooting?
IMO rooting is very useful if you want to keep touching system things in a stock rom, optimizing and debloating it, installing other people ROMs, etc... I believe that if you compile your own flavour of android and find no restriction doing whatever you want, you don't need to.
Android phone without root is nothing
McFex said:
AFAIK rooting is for the people you'd call the end user/consumer or whatever.
Click to expand...
Click to collapse
:good:
McFex said:
But I'm a noob and am not sure how you would install Android on your phone if it's new (and unrooted by default?) if you haven't rooted it before?
Click to expand...
Click to collapse
Some phones can just be flashed (for example via usb) which gives you full control, others can be cracked.

Categories

Resources