Are su/sudo available in android, can root be performed without rom flash? - Desire Q&A, Help & Troubleshooting

Hello guys, seem like I will be moving to this part of xda in a couple of weeks
I have several questions though, mostly regarding roms and rooting. I have used linux for sometime and from what I understand su/sudo/gksu/gksudo etc. are not available in android? I mean I cannot gain root access in the same way as on the desktop. And if I root the device it will not lose warranty, as I can unroot it later on similar to SPL/HardSPL in winmo. The other question is, I think I am going to be OK with the stock rom, as the desire is some pretty fast hardware, so can I root it without installing rooted rom, again as HardSPL in winmo. I will probably need the root access for some applications, like task manager, otherwise I will probably only use the phone, browser, mp3, social stuff, gps, email, videos like I did in the past.
I am sorry if these questions were asked before, I read the tutorials in the first post, however things are still not quite clear for me

You don't have to install a custom ROM if you use unrevoked for root, it just adds the superuser app to your current ROM. However it will flash the recovery, so it voids your warranty anyway. There is no way to avoid this.
No idea about su/sudo though, I know nothing about linux

Well,I kinda have the same questions...First off,there is the su command in Android which is equal to the sudo command in Ubuntu etc.To give an example,I was trying out the ezHero rom on my Hero the other day and jit was enabled with this process:in terminal emulator you type in su,and then it asks for superuser permissions(probably only available through root?) and then you type jit-on and some other things happen that don't really matter here.I believe I answered half your question.Now,if root can be achieved through terminal...I don't think so!It's above my head though...

Thanks guys, that cleared up a lot
About this recovery, I guess if I can unroot and flash "stock recovery" if there is such a thing, it will not be a problem, is this the case? If I can't maybe I should buy a used device instead of a new one.
About the su/sudo, I have used mostly Ubuntu, and in the users menu I usually had 2 users - admin and root, once I set up a root password. Then I used the admin user and if I needed root access for something I did it with su or sudo + <command>, requiring password, or if it was software launcher requiring root access with a path gksudo + <regular parameters/command> in the launcher properties. For example, as far as I know you cannot change attributes like readable/writeable or edit files which are not personally belonging to your user without root access . It is a really neat and simple feature on the desktop and I am puzzled as to why they removed it from the stock rom. I didn't include this in the original post so that it is not too confusing.
Anyway thanks guys, having been with winmo for the last few years, I will finally give android a go and see if it works for me

Yeah it is relatively easy to flash to complete stock ROM and recovery. There's a guide somewhere in the developer board.

Invisible Elf said:
You don't have to install a custom ROM if you use unrevoked for root, it just adds the superuser app to your current ROM. However it will flash the recovery, so it voids your warranty anyway. There is no way to avoid this.
Click to expand...
Click to collapse
No. Just no.
There's nothing in the warranty agreement to suggest that (there is a line that confirms that in the N1 agreement, though), and countless people have sent their rooted Desires back to HTC for repairs, and they've all been repaired. They just won't repair it if the ROM you flashed broke some hardware (ie overheated the LED and made it short-circuit).

Thanks guys, then I'll get a new device, great

Related

Question about rooting and installing custom roms.....

Hi guys, i'm new to doing this for Google Android as i've never owned an Android phone before. A friend of mine wanted me to do it for him because i've done iphone jailbreaking, PSP / DS hacking, installing custom roms on many mobile platforms. The only one i haven't done is Android but he feels that it's safer that i do it for him.
I owned a HTC Touch Pro and know how the process works, but it seems for Android devices, you have to "root" it first by bypass some sort of CID or SPL check??
Anyway my question is, can someone give me a rough and quick explanations on how this work for Android phones, or more specifically the HTC Desire?? My friend simply wants custom roms installed on his phone, just like how it is for the windows mobile devices like the Touch Pro or Touch Pro 2 etc.
So do i simply root it first, and then install the custom rom and that's it?? Are there any extra steps i must take as well such as updating the kernel or something??
I know for rooting, you have to create a gold card. I have found guides for those, but if anyone can give me guides on how to install custom roms or any other helpful infos that i need to them, please do. It seems it's not as easy and straightforward as it is for Windows Mobile phones........
and apparently, rooting the phone means that some apps won't be usable?? It seems there are some downsides to this as well. If anyone can give me as much info related to rooting or installing custom roms for Android devices, that would be awesome.
chaoscreater said:
Hi guys, i'm new to doing this for Google Android as i've never owned an Android phone before. A friend of mine wanted me to do it for him because i've done iphone jailbreaking, PSP / DS hacking, installing custom roms on many mobile platforms. The only one i haven't done is Android but he feels that it's safer that i do it for him.
I owned a HTC Touch Pro and know how the process works, but it seems for Android devices, you have to "root" it first by bypass some sort of CID or SPL check??
Anyway my question is, can someone give me a rough and quick explanations on how this work for Android phones, or more specifically the HTC Desire?? My friend simply wants custom roms installed on his phone, just like how it is for the windows mobile devices like the Touch Pro or Touch Pro 2 etc.
So do i simply root it first, and then install the custom rom and that's it?? Are there any extra steps i must take as well such as updating the kernel or something??
I know for rooting, you have to create a gold card. I have found guides for those, but if anyone can give me guides on how to install custom roms or any other helpful infos that i need to them, please do. It seems it's not as easy and straightforward as it is for Windows Mobile phones........
and apparently, rooting the phone means that some apps won't be usable?? It seems there are some downsides to this as well. If anyone can give me as much info related to rooting or installing custom roms for Android devices, that would be awesome.
Click to expand...
Click to collapse
basically what it is, when google made android, they locked us out of accessing system files, kinda like the windows directory on winmo fones if you get me, by rooting your fone you regain access to them system files in order to flash a rom there are 3 steps,
1) rooting (Lets us mod the system)
2) install custom recovery (Recovery is where you can flash roms and other update files)
3) get the rom you want, (copy the .zip to the root of your sd card, then just flash it via recovery)
thats it all done
thanks for your reply mate.
But i've read from a few topics that rooting is only required for branded devices, and i don't think my friend's HTC Desire is branded at all, will i still need to root his phone though?
Also, how do i install the custom recovery?? This is the first time i've learned about this, all the other guides i found were similar to how you install custom roms for Windows Mobile, just using the RUU_Flasher (something like that), it's like an automated installer that flashes your phone so you don't have to do anything else at all so it's very simple. Could you link me to the custom recovery thing you talked about??
So basically, the recovery thing is kinda like an app that you launch from Android itself, and then it'll install the rom found on the root of your memory card??
Oh and lastly, i've read something about the SPL and kernel as well, do those matter??
One question about rooting...
Is this something you do one time and it keeps forever? For example, I'm actually in android 2.1, but android 2.2 is going to be released soon. If I root my device now but I update it later to android 2.2 will be still rooted or should I root it again?
I'm asking this question because the root process needs an specific boot/ROM and updating the phone might update one or both of them, making the rooting process unavailable for the time being.
chaoscreater said:
But i've read from a few topics that rooting is only required for branded devices, and i don't think my friend's HTC Desire is branded at all, will i still need to root his phone though?
Click to expand...
Click to collapse
This is incorrect.
If the phone is unbranded, you don't need a goldcard, but you still need to "root" it to install custom ROMs.
In reality, what we call "rooting" here is a two stage process.
The first stage is to get a custom recovery on your device, which allows you to flash custom ROMs.
The second stage is to flash a ROM which allows you to gain root access to the device when in operation.
There are plenty of threads and guides on these forums that can take you through the process. IMHO, UnRevoked3 is the best solution.
Regards,
Dave
AzureusPT said:
Is this something you do one time and it keeps forever? For example, I'm actually in android 2.1, but android 2.2 is going to be released soon. If I root my device now but I update it later to android 2.2 will be still rooted or should I root it again?
Click to expand...
Click to collapse
If you install a ROM via an HTC RUU, or an OTA update, you will almost certainly lose root. So, once rooted, always flash ROMs that are pre-rooted via a custom recovery image. If you allow an HTC update to replace your bootloader, you may end up with a device that is no longer rootable by current methods.
Regards,
Dave
foxmeister said:
This is incorrect.
If the phone is unbranded, you don't need a goldcard, but you still need to "root" it to install custom ROMs.
In reality, what we call "rooting" here is a two stage process.
The first stage is to get a custom recovery on your device, which allows you to flash custom ROMs.
The second stage is to flash a ROM which allows you to gain root access to the device when in operation.
There are plenty of threads and guides on these forums that can take you through the process. IMHO, UnRevoked3 is the best solution.
Regards,
Dave
Click to expand...
Click to collapse
Ok so i basically use the UnRevoked3 app to install all that stuff on the Desire, and then put the custom rom image file on the root of my memory card, and where do i go from there?? I know i obviously have to install it but how? Will there be any apps installed on the phone by the UnRevoked3 program, and that i use the app to install the custom rom?
And btw i haven't gotten the phone yet so couldn't try this out so just wanna know exactly how this works.
Thanks for your reply btw, i appreciate it.
If you've got a custom recovery on your phone (via UnRevoked3 say), in order to install a custom ROM you need to:
a) Power down your phone
b) Power up your phone whilst holding volume down
c) Using the volume up/down keys navigate to "Recovery" and the power button to select. This will take you into your recovery image.
d) From here, you can then make Nandroid backups, flash new ROMs, wipe the device etc, etc
Regards,
Dave
foxmeister said:
If you've got a custom recovery on your phone (via UnRevoked3 say), in order to install a custom ROM you need to:
a) Power down your phone
b) Power up your phone whilst holding volume down
c) Using the volume up/down keys navigate to "Recovery" and the power button to select. This will take you into your recovery image.
d) From here, you can then make Nandroid backups, flash new ROMs, wipe the device etc, etc
Regards,
Dave
Click to expand...
Click to collapse
AHH ic ic, this is similar to hacking a PSP and install a custom firmware
ok i think i got the gist of it overall. Just one last question, what is Nandroid?? I read the FAQ on the homepage for UnRevoked3 and it mentioned something like this, or was it Nand?? I forgot, but it's one of those things that couldn't be flashed or changed permanently. I know nand is quite a common term for PSP and iPhones, so just wondering what this is for or what it means on Android...
here's an old video which shows how fake flash recovery works:
once you root your phone, you can use this procedure to flash roms:
vol down + power to enter hboot
choose Recovery option using vol buttons and power to confirm
once red triangle shows up, vol up + power, then choose apply update.zip to enter fake flash recovery
from there, you can backup your rom, wipe everything, flash new roms/radios, partition sd card...
thanks for your help, yup i got it.
But i just want to know what is Nandroid?? I read the FAQ on the homepage for UnRevoked3 and it mentioned something like this, or was it Nand?? I forgot, but it's one of those things that couldn't be flashed or changed permanently. I know nand is quite a common term for PSP and iPhones, so just wondering what this is for or what it means on Android...
btw i just watched the video and what's the difference between:
apply sdcard:update.zip
and
install zip from sd card
it's around the 0:39 on the video.
apply update.zip is to enter recovery
install zip from sd card is used to choose rom or radio from sd card to flash
nandroid backup is system image that you create prior to flashing. In case something goes wrong, you can restore your backup, and have everything as it was, without any consequences (that's how it should be in theory, to tell the truth I haven't used it yet )
djoni1980 said:
apply update.zip is to enter recovery
install zip from sd card is used to choose rom or radio from sd card to flash
nandroid backup is system image that you create prior to flashing. In case something goes wrong, you can restore your backup, and have everything as it was, without any consequences (that's how it should be in theory, to tell the truth I haven't used it yet )
Click to expand...
Click to collapse
ok but for the "apply update.zip", how is it that it enters recovery?? I thought you ARE in the recovery, and thus you get those options as shown in that video??

[Q] Unroot EVO and still keep a custom rom?

Is this possible? I know most unroot the phone to take it in for service/exchange etc but my situation is different. I have to use Good for Enterprise to access my company's email and as you may know, Good does not allow rooted phones. So, I have no choice but to unroot my Evo.
The image that is used in unrooting is a stock ROM. What I want to do is setup my phone - the way I want it with Mikfroyo - with all the tweaks etc and then "just do the unrooting part". If that makes any sense - I don't need any superuser permissions etc.
Long story short - can a phone be unrooted with a custom ROM instead of a stock ROM?
im pretty sure this is impossible dude, sorry, just leave it all rooted, whats the problem
I know you can't unroot and keep a custom ROM but I wonder if there is a way to hide the fact that you're rooted from the app. What kind of message pops up when you install it?
Sent from my PC36100 using XDA App
It just says that Good cannot run on a rooted phone and just locks the app - I have to call IT to get an unlock code using the device ID that is displayed in Good's pop-up message.
It has to be checking for something specific and I bet there is a way to fudge it but unfortunately that's outside my realm of understanding. I would ask one of the devs here about it.
What permissions does the App request when you install? It could just check for SuperUser
SSjon said:
What permissions does the App request when you install? If could just check for SuperUser
Click to expand...
Click to collapse
I which case you could either delete superuser or use it to block the app... perhaps?
I am sure its more complicated than that - if they are touting themselves as a replacement for blackberry security for iPhones and Android - I seriously doubt a simple fudging of the superuser permissions will deceive it. Also, I'd like to comply with my company's requirements for using an Android phone so I don't get into trouble.
So from what I understand - you cannot have a custom ROM on an unrooted phone. Thanks so much guys - I'll just have to learn to live with the bloated stockware and manual restores arghh......
It's not possible.... to unroot, you'd have to RUU, which returns the phone back to stock. And then, you'd have no way of flashing a custom rom unless you rooted again
ok this is one thing that I am starting to not understand here...
so many people when they answer - say "yes" it can be done or "no" it can not be done...
...ummm where is the why? It would be very informative to know such things or if someone has even tried said thing before.
like why can't you just run a ROM or other flash file from renaming the file and letting the stock loader do the flashing? ......answer: because the stock loader does a file signature check - see? that makes sense and answers the why. it also helps users to retain the information as well as understand it.
I would love to know why the OP can't just run the unrevoked s-on tool from here http://unrevoked.com/rootwiki/doku.php/public/forever#custom_splash (in the FAQ section) without removing his custom ROM and just make sure he doesn't use any apps that need the su access. sounds like it should work? has someone done this and found that it does not work? flashing back to s-on should just prevent flashing to any other ROM's I would think from everything I have read in this forum.
or once s-on is back does it also check the current ROM on the phone and would cause some issues? would be great information to know. because if the security only checks file signatures of flies to be flashed and not the current ROM it seems like the OP could do what he is wanting to.
well, just thought I would ask to see if I could gain some more understanding as to the mechanics of everything
It would be good to know if this works with Good for Enterprise. I am stuck on an SGS 2.1 with Telstra and want a non stock ROM but really need to use Good.
ushkand said:
Is this possible? I know most unroot the phone to take it in for service/exchange etc but my situation is different. I have to use Good for Enterprise to access my company's email and as you may know, Good does not allow rooted phones. So, I have no choice but to unroot my Evo.
Click to expand...
Click to collapse
I did not know that, and that SUCKS. My company's piloting Good now, and I was really looking forward to it. This just infuriates me. Mobile device makers are getting away with things that desktop/laptop makers never dreamed of trying. We shouldn't even NEED to "root" a phone. Imagine if you needed to hack your Windows machine in order to get the admin password and be able to install whatever you want. Now yes, I get that companies often do add those restrictions on their devices, and that they need to protect their data. Allowing access to company data on a personal device might make it a little more of a gray area, but it still blows. Good should be able to develop a system that can be secure, even if you have root access.
Here's a thread I just found. It sounds like you can just delete su and the superuser.apk. I think you can keep the custom rom, but you probably wouldn't be able to run anything that needs root, like Wireless Tether, Titanium Backup, or whatever. But you could probably have a flashable zip to re-add them when you need them. Or maybe one of the temp root methods would work. But it makes me furious that this is needed.
http://androidforums.com/droid-x-all-things-root/207397-good-enterprise.html
bkrodgers said:
I did not know that, and that SUCKS. My company's piloting Good now, and I was really looking forward to it. This just infuriates me. Mobile device makers are getting away with things that desktop/laptop makers never dreamed of trying. We shouldn't even NEED to "root" a phone. Imagine if you needed to hack your Windows machine in order to get the admin password and be able to install whatever you want. Now yes, I get that companies often do add those restrictions on their devices, and that they need to protect their data. Allowing access to company data on a personal device might make it a little more of a gray area, but it still blows. Good should be able to develop a system that can be secure, even if you have root access.
Here's a thread I just found. It sounds like you can just delete su and the superuser.apk. I think you can keep the custom rom, but you probably wouldn't be able to run anything that needs root, like Wireless Tether, Titanium Backup, or whatever. But you could probably have a flashable zip to re-add them when you need them. Or maybe one of the temp root methods would work. But it makes me furious that this is needed.
http://androidforums.com/droid-x-all-things-root/207397-good-enterprise.html
Click to expand...
Click to collapse
My thoughts exactly
Update- I was able to get Good running finally on a custom rom - However, I had to forgo my superuser capabilities. I just renamed both the Su and Superuser.apk and then was able to run Good without any issues. I can easily restore Superuser access by adb when I need to. The good thing is that with the recovery being there, I can still flash updates without needing superuser access.
Thank you all for your help.
ushkand said:
Update- I was able to get Good running finally on a custom rom - However, I had to forgo my superuser capabilities. I just renamed both the Su and Superuser.apk and then was able to run Good without any issues. I can easily restore Superuser access by adb when I need to. The good thing is that with the recovery being there, I can still flash updates without needing superuser access.
Thank you all for your help.
Click to expand...
Click to collapse
Thanks for the information. What is the ROM that you are using?
bkrodgers said:
Or maybe one of the temp root methods would work.
Click to expand...
Click to collapse
are there still temp root methods that work on the EVO?
I am using Mikfroyo 4.5.
Just came across this thread and was seeing if your GFE was still working? I have a DX and put a custom ROM and could not get it to work. I'm waiting for my new PIN and have removed SU to see if it works.
ushkand said:
Update- I was able to get Good running finally on a custom rom - However, I had to forgo my superuser capabilities. I just renamed both the Su and Superuser.apk and then was able to run Good without any issues. I can easily restore Superuser access by adb when I need to. The good thing is that with the recovery being there, I can still flash updates without needing superuser access.
Thank you all for your help.
Click to expand...
Click to collapse
I rooted my HTC Salsa to install apps2sd which is great, but what commands do i have to run and where to be able to rename su.apk ?
Thanks,
Mike

[Q] 4EXT Recovery Updater "stops unexpectedly" on every menu option

Please can someone assist with my problem loading 4EXT recovery.
I've downloaded and installed 4EXT Recovery Updater 2.1.4 and installed it on my HTC Desire (with S-OFF). When I run it I'm presented the disclaimer and asked for for root permission (which I give) and I then see the menu (Online Install, Check for news, Recovery etc..).
Any option I select gives me
"Sorry The application 4EXT Recovery Updater (process ext.recovery.updater) has stopped unexpectedly. Please try again".
I guess there must be something about my phone it doesn't like, but what? Other apps appear stable.
I've tried removing, deleting files, rebooting and re-installing.
Any ideas would be most gratefully received, thanks.
Other info:
Used Revolutionary to get S-OFF
HBOOT 6.93.1002
Installed RMD Recovery 1.0.34 succesfully from fastboot on PC-USB
Stock ROM
Model HTC Desire A8181
Android 2.3.3
Baseband 32.56.00.32U_5.17.05.23
Kernel 2.6.35.10-g3f43272
Build 3.14.405.1 CL96875 release-keys
Software (Gingerbread) 3.14.405.1
MICROP-031d
RADIO 5.17.05.23 Jul 22 2011,16:19:16
Contact the developer directly via email or his thread.
Droidzone said:
Contact the developer directly via email or his thread.
Click to expand...
Click to collapse
Only way he can post in his thread is via tapatalk or XDA app, until he has 10 posts.
Or obviously, post 9 spams first
Just use fastboot?
fastboot erase recovery
fastboot flash recovery recovery_name.img
k3lcior said:
Just use fastboot?
fastboot erase recovery
fastboot flash recovery recovery_name.img
Click to expand...
Click to collapse
And where does he get recovery_name.img from?
Fine for one off, but asking people to upload it every time he needs latest version is far from ideal. Better the app works since that's the only way to download it
Sent from my HTC Desire using Tapatalk
Thanks for your replies.
Yes, I don't have enough credits to contact madmaxx82 directly Better earn some more, I guess. I don't suppose someone who does could possibly alert him to my humble post, please?
I've not been able to find 4EXT Touch in .img form anywhere, and wouldn't expect to really. So doing a fastboot flash is unlikely to be a viable solution.
Ok..
Sent from my HTC Desire using Tapatalk
hi,
may i suggest you remove ext4 permission from su applist.
Pm sent
I suspect busybox. Stock rom must be the problem there..
But let's see.
Ahhhhhhhhh!!!!
Thank you all for your assistance, especially madmaxx82 for his PM which enabled me to solve the problem.
Confession time, I think.
I'm a noob to smartphones and Android as you can probably tell, and have been reading loads of blogs, forums etc. etc. trying to understand rooting benefits, issues and procedures. I've read so much that it's starting to hurt. There is so much info out there including some heroic posts on rooting from first principles. However, a lot of techniques have been superceded and you often run up against dead ends, finding that the method you hoped to use is now outdated. Noobs have to be patient enough to solve the puzzle piece by piece. I'm very patient, fortunately.
With that in mind prepare to gasp in amazement at a big hole in my knowledge of this subject after days of reading. Everyone refers to S-OFF and rooting as the big things to achieve on the way. S-OFF I got fairly quickly, but the term "rooting" is badly misused by many and not well described in terms of what constitutes a rooted system. Usually people tell you what you can do with a rooted phone and not the necessary software components you find in one. Until madmaxx82's PM I didn't appreciate that apps need superuser to do their work. Also, In my naivity I thought that apps accessed the filesystem on their own using some kind of system API rather than needing busybox to issue commands.
I know, horrific isn't it - how do I manage to feed myself, you're wondering.
Anyway, after flashing superuser and installing busybox I was able to use the 4EXT Recovery updater and now have 4EXT recovery installed. After getting used to that I'll upgrade to Touch.
Ironically, if I'd just flashed a pre-rooted ROM rather than trying to root my own stock ROM, I'd never have run into this difficulty. Now, I wonder what adventures lie ahead on the road to total enlightenment.
Thanks again for your help, Gentlemen.
grmm22 said:
Thank you all for your assistance, especially madmaxx82 for his PM which enabled me to solve the problem.
Confession time, I think.
I'm a noob to smartphones and Android as you can probably tell, and have been reading loads of blogs, forums etc. etc. trying to understand rooting benefits, issues and procedures. I've read so much that it's starting to hurt. There is so much info out there including some heroic posts on rooting from first principles. However, a lot of techniques have been superceded and you often run up against dead ends, finding that the method you hoped to use is now outdated. Noobs have to be patient enough to solve the puzzle piece by piece. I'm very patient, fortunately.
With that in mind prepare to gasp in amazement at a big hole in my knowledge of this subject after days of reading. Everyone refers to S-OFF and rooting as the big things to achieve on the way. S-OFF I got fairly quickly, but the term "rooting" is badly misused by many and not well described in terms of what constitutes a rooted system. Usually people tell you what you can do with a rooted phone and not the necessary software components you find in one. Until madmaxx82's PM I didn't appreciate that apps need superuser to do their work. Also, In my naivity I thought that apps accessed the filesystem on their own using some kind of system API rather than needing busybox to issue commands.
I know, horrific isn't it - how do I manage to feed myself, you're wondering.
Anyway, after flashing superuser and installing busybox I was able to use the 4EXT Recovery updater and now have 4EXT recovery installed. After getting used to that I'll upgrade to Touch.
Ironically, if I'd just flashed a pre-rooted ROM rather than trying to root my own stock ROM, I'd never have run into this difficulty. Now, I wonder what adventures lie ahead on the road to total enlightenment.
Thanks again for your help, Gentlemen.
Click to expand...
Click to collapse
have a read of teh rooting faq linked via my signature. Should help clarify quite a lot for you hopefully.
rootSU said:
have a read of teh rooting faq linked via my signature. Should help clarify quite a lot for you hopefully.
Click to expand...
Click to collapse
I think I read the rooting guide at one point in my journey and found it very useful indeed. Much appreciated In my noob head I still managed to associate the superuser app with unrEVOked, specifically, rather than 'a rooted phone no matter how achieved'.
I'm wondering is this is a true and complete definition of rooting? "A rooted phone is one in which apps can be granted root access permissions when needed. Rooting always means installing the superuser app so that this can happen. For superuser to function the security flag has to be set to S-OFF. There are several ways of installing superuser and setting S-OFF but these two things are the essence of a rooted phone".
Superuser is a two pronged armament that communicates with the Linux based core Android system and gives you permission to interact with and modify system files, and run certain system programs which require elevated permissions. One, the superuser binary, /system/bin/su provides this functionality, while another, superuser.apk is a gui which allows you to control which apps should be given permissions, and provides an interface to su binary. Busybox is a Linux 'Swiss army knife' utility, much like the multi purpose knife, it is a collection of different Linux utilities, like mount, format, file system check, grep, sed, tar, .. you name any Linux based binary, most of it in Android is provided by busybox. You want to reboot the phone, you need busybox.
Neither of them require s off. Rooting is the process of unsecuring your boot image, and installing superuser and busybox..Once that's done, you can modify and see stuff on /data, that is application data. But you still can't modify system files in /system, on the fly if you're simply rooted (though you can modify them from recovery). That is protected by the radio security flag. S off allows you to do that.
I think that's enough info for one day.
Well I for one would .like.more
Sent from my HTC Desire using Tapatalk
Well there's nothing new that I can tell you!
Droidzone said:
Superuser is a two pronged armament that communicates with the Linux based core Android system and gives you permission to interact with and modify system files, and run certain system programs which require elevated permissions. One, the superuser binary, /system/bin/su provides this functionality, while another, superuser.apk is a gui which allows you to control which apps should be given permissions, and provides an interface to su binary. Busybox is a Linux 'Swiss army knife' utility, much like the multi purpose knife, it is a collection of different Linux utilities, like mount, format, file system check, grep, sed, tar, .. you name any Linux based binary, most of it in Android is provided by busybox. You want to reboot the phone, you need busybox.
Neither of them require s off. Rooting is the process of unsecuring your boot image, and installing superuser and busybox..Once that's done, you can modify and see stuff on /data, that is application data. But you still can't modify system files in /system, on the fly if you're simply rooted (though you can modify them from recovery). That is protected by the radio security flag. S off allows you to do that.
I think that's enough info for one day.
Click to expand...
Click to collapse
Thank you. That's the clearest description of the mechanics of rooting that I have read.
I'm going to go and lie down for a bit now.
Ice cream cools the mind
Sent from my HTC Desire using Tapatalk

Why do people root?

I'm still rather new to Android, and I was wondering- why do people root their phone exactly? If I root my phone, will it run slower? Also, can I run the stock ROM my phone ships with if I root it?
unity04 said:
I'm still rather new to Android, and I was wondering- why do people root their phone exactly? If I root my phone, will it run slower? Also, can I run the stock ROM my phone ships with if I root it?
Click to expand...
Click to collapse
We root, because we must... It doesn't make the phone slower. It does the opposite (With the right kernel, that is )
Rooting ONLY means, that you have the right, to accss the ROM (Read-only memory) where the system files are saved...
Which means, yes. You can have root access, on a stock-ROM phone
(If interested, check my signature ^^)
unity04 said:
I'm still rather new to Android, and I was wondering- why do people root their phone exactly? If I root my phone, will it run slower? Also, can I run the stock ROM my phone ships with if I root it?
Click to expand...
Click to collapse
Rooting just gives you more control over your phone, the ability to easily freeze/delete system apps, flash alternate kernels, etc... You can run your stock ROM whilst rooted, it won't slow you down.
Rooting also opens the door to being able to flash (i.e. install) alternate, custom ROMs among other things.
A basic rooted stock ROM is a good place to start out, and learn your way around things before you decide, or not, to start flashing custom kernels, ROMs, etc... OR you can happily cruise along on a fully stock phone.
Just a quick summary; there's lots more specific info available on this site, and the intarwebz to give you more detail if needed.
I'm fairly new, so hopefully I get this right. Someone can correct me if I'm wrong.
My guess is that you're coming from iPhone if you're asking if it will slow it down since jailbreaking tended to do that. It won't slow it down unless you install apps and mods that run in the background and stuff.
All rooting is, is allowing programs to run as the root user (I *think* I'm right here). This means that they can access parts of the system that are unavailable to be modified on unrooted ROMs. This means you can get things that tweak system level functionality. It's very similar to jailbreaking an iPhone except apps in the Play Store aren't prohibited from having root functionality baked in.
Yes you can root the stock ROM.
Hope that answers it for you, and I hope I got it right. It's tough trying to figure some of this stuff out. Nothing out there really explains why things are done, but only HOW they're done. Bit of a nuisance trying to get into this in that regard.
myrdog said:
I'm fairly new, so hopefully I get this right. Someone can correct me if I'm wrong.
My guess is that you're coming from iPhone if you're asking if it will slow it down since jailbreaking tended to do that. It won't slow it down unless you install apps and mods that run in the background and stuff.
All rooting is, is allowing programs to run as the root user (I *think* I'm right here). This means that they can access parts of the system that are unavailable to be modified on unrooted ROMs. This means you can get things that tweak system level functionality. It's very similar to jailbreaking an iPhone except apps in the Play Store aren't prohibited from having root functionality baked in.
Yes you can root the stock ROM.
Hope that answers it for you, and I hope I got it right. It's tough trying to figure some of this stuff out. Nothing out there really explains why things are done, but only HOW they're done. Bit of a nuisance trying to get into this in that regard.
Click to expand...
Click to collapse
You just said, what I said ((and the other bloke, after me) xD
Yes, you answered it. But in a way, that no n00b would understand, unless he wrote it himself (You) lol
There are many reasons to root, my favorites are that I can access the root or the phone, meaning I can replace the rooms, kernels to my liking. I can overclock or underclock the phone. One more than I like to do it use ad blocker so I don't need to deal with the stupid ads that are in free apps
Sent from my Galaxy Nexus using XDA
We root because we like to have good phones .
And the benefits like custom colors, kernels, ROMs, and all that is nice.
Nexus S (GSM i9020a)
GummyNex (9.0)
Air Kernel (3.45)
OC 1000/200 (Lionheart)
Live OC (100 -Noop)
v6 Supercharged
To get the most out of my phone. Especially in the g1 days, you pretty much had to root because of the phones limitations
Sent from my Galaxy Nexus using xda premium
You root to gain admin access to your phone. You'd never use a computer without admin access, same on a phone. You can tweak and change anything you can imagine with root access.
And no it doesn't make it slower, actually can make it faster.
Root access doesn't do anything in itself. It just gives you administrator access to all of the system files.
Once you have that access, you can start tweaking.
Root is only required for deep-level back-up programs, some file explorers, and rom tweakers such as Rom Manager.
Day to day stuff, Android is pretty open to anything.
Sent from my Galaxy Nexus using xda premium
Rooting allows you to release the full potential of your phone.
http://forum.xda-developers.com/showthread.php?p=21328733
Sent from my Galaxy Nexus using Tapatalk 2
Its not just system access, its a way of life!

[Q] Rooted, didn't do nandroid backup -- any chance of recovering data?

My fiancee's EVO 4g was in desperate need of replacing, so we went and got new phones. She had been playing this damned Smurf Village game for about a year and a half, and I thought I'd pull a white knight -- root the phone, back it up on Titanium, transfer the backup to the new phone, root that, restore. She insists she's okay starting over, but I thought it'd be a nice gesture. Rooting the new phone (LG Optimus G) was a piece of cake. The EVO 4g took me some time to get it to work ...
In my poor attempts at multitasking, I didn't do a nandroid backup and completely overlooked where it said it would restore to factory settings.
Is all lost? I did a search on it while it was plugged into the PC as an external drive and found a bunch of (edit: Smurf-related) files, so I feel like the data might still be there.
If not, it's all good. I learned from my mistake (I mean, c'mon, big_onion, every damn set of instructions says "make a nandroid backup") but if there's any way to get it back it might make her day.
Data restoration aside, after flashing Superuser, I still can't get TitaniumBackup to obtain superuser privileges. Any ideas what I might've done wrong? The method I used was to unlock the bootloader via HTC site, then flashboot recovery, then flash superuser. The app is there, but it doesn't seem to issue SU rights to TitaniumBackup.
Best way to gain root is to flash any custom rom here on xda. Unless it is a completely stock rom it is rooted and works without any issues. I rooted my second og evo a few days ago and had the same issue with the stock rom. After flashing a custom rom I had full root access.
Now as far as data goes most apps store that on the sdcard. I suggest installing the game on the new phone then power off and insert your old sdcard into the new phone. Hopefully it will use the old data and return your wife's game to her last state and make you look like a champ.
Sent from my PC36100 using xda app-developers app
jlmancuso said:
Best way to gain root is to flash any custom rom here on xda. Unless it is a completely stock rom it is rooted and works without any issues. I rooted my second og evo a few days ago and had the same issue with the stock rom. After flashing a custom rom I had full root access.
Click to expand...
Click to collapse
Uhm...
You don't root android by flashing a rooted custom rom on a non root phone.
Rooting a phone must be done via a PC there is no other way.
Some stock roms ARE root.
The reason you had problems is because you were root and tried to install a non-root stock rom, if you would have installed a rooted stock rom you would of had no problems.
smh
Umm root is done by rom. Unlocking bootloader is the part done by pc.
You can be unlocked without root but can not root until you are unlocked. Rooting is the granting of admin rights to the user's apps.
I did not have an issue because I installed a non rooted rom. The rom was already on the phone which is the same spot the op is in. He is unlocked but not rooted. The htcdev unlock does not grant root rights to the current stock rom. Also the flashable zip did not grant the rom root rights.
jlmancuso said:
Umm root is done by rom.
Click to expand...
Click to collapse
You don't go from not being rooted to being rooted by flashing a custom rom on the phone from the recovery menu, unless you accidentally flashed a non-root rom while you were already root.
Unlocking bootloader is the part done by pc.
Click to expand...
Click to collapse
They're both done via PC at the same time with the same program (Unrevoked3 is only temporary nand)
Unrevoked Forever unlocks the bootloader permanently via recovery with an .img
http://wiki.rootzwiki.com/UnrEVOked
Wow man this will be my last response here about this but I want to say a couple quick things. First did you even read the link you posted? Yes with unrevoked you can gain nand unlock and root at the same time but if you also read it says this.
Does unrevokedĀ³ give me root?
Yes. It previously did not; as of version 3.0, it does.
So root and nand unlock are not the same and is not always done at the same time. It is possible to be nand unlocked and not have root. Which is the case when you use htcdev unlock. Do your homework before you go making statements please.
I am not here trying to run anyone down and start fights but I am here to spread knowledge and help out others with problems. If you give someone bad information it will cause problems down the line later. Most people will assume you know what you are talking about when you make a post even if the information is not correct. So please take the time and make sure your information is correct before you post it.
So take a look at links I have posted and see what root is, how it is used, and see the difference.
This is a general overview of the root permission (depending on os it is called many different things)
http://en.wikipedia.org/wiki/Superuser
This is what it means with the android
http://www.ubergizmo.com/2012/05/rooting-for-android-what-why-and-how/
Again not fighting but giving information that is benifical to everyone.
Peace,
Love, and
Happiness
Fail troll is fail.
OP has the information he needs.
He already is rooted and needs permanent unlock which is what Unrevoked Forever does, which is linked in the link I posted.
Edit: The PM j sent me.
jlmancuso said:
Hey man. I am not trolling. The information is real. I am a knowledgeable dev and don't want anyone getting the wrong information. Bad information leads to big mistakes that can be a devs worst nightmare. Just read the articles and if you still don't agree well that is fine by me. I at least tried to give you the correct information.
Have a nice day and enjoy this beautiful day.
Sent from my PC36100 using xda app-developers app
Click to expand...
Click to collapse
I guess he thinks Unrevoked Forever is bad information and harmful to Evos.
Backedup
If you backed up the game, you can always download titanium backup and restore. Make sure you didn't delete the files from sd-card (they should be there). Sorry if this was already answered or i'm wrong. :fingers-crossed:
edit: if its a stock rom and you backup every app with titanium back up you could.
jlmancuso is having a hard week. i would give him a break. as far as i can tell he's genuinely trying to be helpful and is catching crap from all sides these days. eventually he will slow down and not accidentally provoke people (or take things personally). but he seems like valuable asset to the community overall so i'm rooting for him. OP good luck with your issue.
It's already unlocked, via the instructions from the HTC dev site. I didn't use Unrevoked -- I tried, and got a message about something being too new of a version. I'll dig around more, but I before I spent too much time I wanted to make sure I could restore the data on the stupid Smurf game for her.
I did NOT do a Titanium Backup of anything on there before I started. The LG Optimus G doesn't have an SD card, so I can't just swap SD cards. I can copy files from the EVO to the PC then to the LGOG. I think I might install Smurfs on the new phone, root it, then just try and copy the Smurf files from the EVO over to the Optimus G and see if overwriting the data files would restore her game.
Will report back on whether or not it works, or if I can't get superuser working.
And chill out, friends. I appreciate all sorts of info, even if it's not what I'm looking for. Y'all rock.
I am not taking it personally and dont think unrevoked is harmful. I am not going to argue with anyone about the facts. I posted the articles al5uwtqind if anyone wants to read them and learn more than cool. The information is for the benefit of everyone. Call troll or a$$ or whatever. I am here to help like most everyone.
Knowledge is power so empower someone else today.
Peace,
Love, and
Happiness
Sent from my PC36100 using xda app-developers app
big_onion said:
Data restoration aside, after flashing Superuser, I still can't get TitaniumBackup to obtain superuser privileges. Any ideas what I might've done wrong? The method I used was to unlock the bootloader via HTC site, then flashboot recovery, then flash superuser. The app is there, but it doesn't seem to issue SU rights to TitaniumBackup.
Click to expand...
Click to collapse
I think he meant "Htcdev site" then "fastboot flash recovery", but it seems like Big_Onion did everything right as far as rooting the phone, but there can be other reasons why Titanium is not working properly. It could be Titanium data needs to be wiped or it could be an issue with busybox. He never said he was not rooted, he only said that superuser was not giving Titanium root permissions, which has happened to me also. I wish he would have ran the root checker app too, to verify did he really have root or not. Then it would be easier to tell which path to take.
And also, why are we arguing over unrevoked and unrevoked-forever? Those don't work on the newer stock roms, because they were patched in 2011 by the first Gingerbread update on. Since big_onion used the Htcdev site, he is likely on Gingerbread. They, unrevoked3 and forever, would only work if he downgraded the radios to the ones which came with either Eclair or Froyo, the two previous operating systems. Titanium backup only needs an unlocked bootloader from the Htcdev site, and superuser permissions from the superuser app to work. Anything else is just extra, at least on Gingerbread.

Categories

Resources