[Q] Rooting for dummies - Android Software/Hacking General [Developers Only]

Hey guys,
First of all I'm a n00b here (so please bear with me). I've been reading all the info that I can about rooting but I still have a couple of questions.
Basically the process (high level) for rooting as far as I understood, basically consists of -> unlock bootloader -> install custom recovery image -> NAND backup -> install custom rom -> joy
I have a Nexus S i9023 but I have a few questions regarding the process above:
1) When I do the fastboot oem unlock, do I immediately lose the warranty of the phone ? If so, should I wait before rooting to make sure any problems with the phone show up and can be dealt with the warranty ? And bearing in mind that Samsung just handed out free GSII to the developers of CM7, how true really is this voiding the warranty thing ? If you do fastboot oem lock again, is there any traces of the root process ?
2) I already have apps and their settings installed. If I install a custom rom, or a custom kernel, am I going to lose those apps and settings ? Would be a pain to configure everything again.
3) When installing a custom rom I lose the OTA updates. If I reflash a NAND backup of my stock 2.3.4 unrooted Nexus S, will this bring me back to the same state as before rooting ? (with all updates coming in, etc).
4) Can I just flash a custom kernel instead of a custom rom ? For example, could I just flash NetArchy to benefit from the BLN notifications without needing a custom ROM altogether ?
5) I'm really interested in knowing what these guys are actually doing when they develop custom kernels and roms (which programming languages, etc). Do you have to be a real linux geek to do it ?
6) Is it better to use windows to do the flashing of roms ? I'm using Ubuntu right now and makes sense to me that using a Linux system to deal with another Linux system is the most appropriate as opposed to using Windows to deal with flash
Thanks a lot for any hints guys.... once again please bear with my n00bness

First of all you should have used google + search function more exensively.
Second of all watch this http://www.youtube.com/watch?v=JmvCpR45LKA
Third of all:
1) It is really true, as this are the rules, if they want to bend you over during warranty for rooting your device they can, if they even care about it depends on the moon phase and how the technicans breakfast was. I don't know what fastboot is but undoing rooting is usually not traceable.
If you should wait rather depends on if you want to wait. Problems can show now, later or never, who knows.
2) Custom Rom yes, Custom Kernel usually keeps settings. But this all depends on the included scripts in the flash files. You can use a backup tool of your choice to restore settings of apps. Restoring system app settings can cause problems though.
3) Yes, i believe so.
4) I don't know NetArchy, but yes you can only flash a custom kernel. Read the kernel developers thread and all infos though.
5) Your mixing two very different things, Rom developers ( or Rom cooks) usually repack firmwares with different apps, different start up scripts, partitions, themes etc. usually not too much in deepth work in the code going here.
Kernel developers change flags, driver support, include an extra library (like backlight notifications) or enable overclocking through flags/extra loaded moduls.
6) Doesn't really matter.
I can bare with n00bness, i'd just like everyone to invest more than 10min into the search/google.

Thanks for the info, much appreciated
I think I now have a clear picture about all that's involved and the risks.
Main reason I want to root is to be able to have backlight notifications and to have a rom/kernel that can tell me what has been keeping my phone in keep-awake state for no apparent reason in the 4636 history (stock Gingerbread doesn't show the keep awake page). Being able to lower the CPU speed when not using the phone would be quite a nice addition as well.
I did see the n00b video and I did research rooting for quite a few days. But there's so many information around and so many people say what they will that in the end it becomes difficult to see between the noise.
Thanks for clearing up the bits for me!

Related

[Q] To Root or Not to Root??

Hi, I am not very tech saavy and so I am hoping that I can get some good advice from people who are more techy than me. I hear alot about rooting for android devices but I'm not too sure of exactly what rooting is other than I understand that there are certain capabilities that you can't do unless your phone or android device is rooted. In my case I have a Galaxy Tab, I would like to be able to have a back up feature but I keep on coming across the phrasing that the device must be rooted first. I looked up a couple of websites to find out exactly what rooting means and they mention the pros of rooting, but I am wondering what the cons are and if it is really necessary for me to root my device or is this something that is meant more for the "advanced" users who may be using their devices for more serious persuits vs. the casual user who just likes to play here and there...I really hope that what I am trying to say makes sense to all you out there! So in a nutshell, I guess what I'd really like is a breakdown of the pros and cons of rooting your device and when and when NOT to do it...Thank you all for your thoughts!
It's up to the user to decide whether there is a function they need, that they can only get through gaining root access to the phone. It could be that you want to alter the appearance of your phone beyond what is normally possible, or there are features included in a custom ROM that you would like to have.
You mentioned wanting the ability to backup your phone and there's no better way than to root and flash a custom recovery to achieve that. With that done you can image your phone state to your SD card so that it can be restored in it's entirety any time you wish. (Nandroid Backup).
There are also apps that can only work with a rooted device which can give you more advanced control over your device. One example is Rom Manager which is commonly used to flash custom recoveries and ROMS to your phone, and gives you an easy way to manage your Nandroid backups. Of course there are many others.
Thanks to the hard working devs on xda it's never been easier to do all these things. If you want to learn more i would suggest having a look at SuperOneClick and Rom Manager and reading the appropriate threads. Browse through guides and ask questions when you want to know more.
Hope that helps.
BTW, the only 'cons' to rooting and having a custom recovery is that you lose the ability to receive official over the air updates while your phone is in that state. Restore the Nandroid backup you made of your stock ROM though and you can re-gain that ability. I suppose the biggest 'con' of all is people not doing their research and ending up with a non-functioning device when something goes wrong. As always, RTFM!

[Q] Root and Custom ROMs - Where to start?

I'm not the person that buys a new phone every 6 months. I'm probably going to use my Nexus S for 2 years or more. And because of that, I want it optimized so that I won't get jealous at those multi-core phones.
I can optimize the OS by just downloading something like Launcher Pro, but I want more. I like applications like Adfree and ShootMe, and VooDoo sound also looks very nice. But, I want more! Custom ROMs increase the speed, and then I could always overclock. So Cyanogen Mod 7 is also on my list.
But the problem is, I don't know where to start. There are SO MANY options in the world of Android. Of course, with some Googling I can find the best Custom ROM (CM7), but the internet isnt very clear about it all. I am an average user, so I don't want to much risks. I also don't understand 'geek language' (you know what I mean ), so these forums don't help me much either.
I know how to root (there are tons of youtube videos), and I can probably find a youtube video for installing CM7 as well, but like I said, I don't know where to start. Can somebody give me a push in the right direction? I hate to ask, but I couldn't find something like a noob guide...
Go to the android development section for nexus S and all topics are covered
willcpfc said:
Go to the android development section for nexus S and all topics are covered
Click to expand...
Click to collapse
Hmm I see you can root with or without fastboot oem unlock. I know fastboot oem unlock wipes all data, but if you do it when you get your phone, that isnt a problem. Is there any other (dis)advantage?
It seems there are a lot of methods to root. What is the best one (not the fastest)? I like the one from AllGamer, but it says 'via Clockwork Mod'. I don't know what that is, or what it does. I know I look like an idiot now, but I really can't find good explanations on the internet. Everyone supposes that you know a lot of stuff already.
Androyed said:
Hmm I see you can root with or without fastboot oem unlock. I know fastboot oem unlock wipes all data, but if you do it when you get your phone, that isnt a problem. Is there any other (dis)advantage?
It seems there are a lot of methods to root. What is the best one (not the fastest)? I like the one from AllGamer, but it says 'via Clockwork Mod'. I don't know what that is, or what it does. I know I look like an idiot now, but I really can't find good explanations on the internet. Everyone supposes that you know a lot of stuff already.
Click to expand...
Click to collapse
All the guides get you to the same result: root and a custom recovery with the exception of distortedloop's guide which keeps the bootloader locked and avoids an initial wipe. If you read through each thread, you'll realize that they all do the same thing. Some just helps you avoid terminal work, which is as easy as retyping what you see. Just pick one and follow all the steps. No reported advantages or disadvantages to unlocking the bootloader other than the wipe you are aware of.
Sent from my Nexus S using XDA App
Go to theunlockr.com It has alot of beginner friendly videos.
http://theunlockr.com/category/howto/android_how_tos/nexus-s-how-tos/
Sent from my Nexus S using XDA App
Thanks, both of you!
Unlocking the bootloader is needed for flashing ROMs, right? If that's true, I think I'll unlock it right away when I don't have any data/apps installed. The only thing that will suck is the ugly padlock sign when you start your phone, but who starts his phone anway...
By the way, changes a unlocked bootloader anything else except for a slightly different boot animation?
Some other questions: will you get OTA updates from Google when you have root enabled? And what if you use a Custom ROM? And what if you use a Custom Kernel? And what if you use Clockworkmod (that is a custom recovery, right?)?
And where do you need a custom kernel for? Is it only to overclock your device? I saw it is also necessary for VooDoo sound, which I like very much. Same question about Clockworkmod: if it's a custom recovery, what does it do? Is it for back-up/rom switching?
Androyed said:
Thanks, both of you!
Unlocking the bootloader is needed for flashing ROMs, right? If that's true, I think I'll unlock it right away when I don't have any data/apps installed. The only thing that will suck is the ugly padlock sign when you start your phone, but who starts his phone anway...
By the way, changes a unlocked bootloader anything else except for a slightly different boot animation?
Some other questions: will you get OTA updates from Google when you have root enabled? And what if you use a Custom ROM? And what if you use a Custom Kernel? And what if you use Clockworkmod (that is a custom recovery, right?)?
And where do you need a custom kernel for? Is it only to overclock your device? I saw it is also necessary for VooDoo sound, which I like very much. Same question about Clockworkmod: if it's a custom recovery, what does it do? Is it for back-up/rom switching?
Click to expand...
Click to collapse
Unlocking the bootloader is not required for flashing roms. On previous devices, it was necessary but we have a method in distortedloop's guide which can work around that.
You can still get OTA updates with root, however updating will cause you to lose root. Custom roms usually have a script to disable OTA updates. Kernels and custom recovery will not affect OTA updates.
Custom kernels are "custom" in itself and often offer more features such as the ability to overclock, file system hacks, as well as sound/graphic hacks which may not be included in a previous developer's custom rom. It leaves room for the user to pick what is suitable for him/her.
Custom recoveries are recoveries with extended features. These features may include the ability to backup/restore, wipe device between ROM builds, and more. Its main feature which I enjoy the most, is the ability to navigate between folders of your storage and choose a ZIP file to flash. Standard recovery requires anything flashed to be in the root of your storage as well as named "update.zip". Custom recoveries eliminates this requirement and lets you keep the name of your zip files as well as organize them in folders. There are more features, but that's up to you to discover and see what you'll actually use.
And again, thanks!
After reading the post above and an awesome explanation on a dutch forum, I now know what all those 'custom' things do.
First of all, I'm interested in root. There are some very useful applications that can only be used with root. After that, I'm going to flash a kernel (not overclock it), probably Netarchy's, for some speed improvement and most important of all, voodoo sound improvement! The last looks very promising.
If I'll get bored after that, (I probably tried out dozens of homescreen replacements and their themes by then), I'm going to flash a Custom ROM, and experiment with custom ROM themes. This is probably going to be Cyanogen Mod, but I'm going to wait till a stable release comes out for the Nexus S. If I'm still bored (we are probably talking about 1.5 years ahead), I'm going to overclock for optimal performance...
This is why I love Android. Why would you buy a new device every couple of months? There is so much to tweak! When I tried to find some information about flashing ROMs, I sure have learned how many possibilities Android has. It isn't easy for the average user, but if you get something awesome like voodoo sound in return, it is defenitely worth it!
Sorry, I got still two questions left:
Custom ROMs don't change anything from the outside, right? They are only deodexed? Or is there a difference between, let's say, MoDaCo's ROM and CM7, from the outside?
I heard some Custom ROMs have certain themes, but I suppose you could just as easy install the stock Gingerbread theme when for example MoDaCo ships with a different theme. Custom ROMs support themes after all.
Also, what is the difference between a theme from a homescreen replacement and a theme from a Custom ROM? Themes from Custom ROMs can change apps, because it is a deodexed ROM, so themes will probably also change the looks of the dialer for example. And themes from homescreen replacements will only change the homescreen. But will a theme from a homescreen replacement also change the notificationbar and the icons? Or do you have to install a Custom Rom for that?
Thanks in advance!

[Q] Should I root my samsung captivate?

So I've been reading all these articles about rooting the Samsung Captivate and they all seem to say that rooting gives you the equivalent of admin access and basically its really useful.
What I want to know is if it is safe? I'm not really good at these things and I'm afraid that if I root it I might just screw up my phone because I don't understand what I'm doing. Also I've read that rooting your phone can sometimes render your phone unusable...is that a serious issue for the captivate?
I mainly want to just be able to have a complete backup, and be able to download apps from third party websites. (I have AT&T) I think rooting lets you do all that.
Also, I see all this talk about ROM's or something and I really don't understand what that is.
If i root my phone, will it wipe any data I have stored on my phone, like contacts and apps or something? Will I still be able to receive software updates from AT&T?
Please help...Thanks sooo much!!!
Hello there,
In first place, ROMs it's the name we usually call for the OS images that you run in your phone. You have the manufacturer ROM, with (probably) operator stuff in it. You can have a very different OS image, with different layout, more options (there are beautiful things around like CyanogenMod), etc. So, installing new ROMs sometimes is like installing a new Android OS on your phone (not exactly but something like that).
Rooting your phone doesn't clean your data, but it's always a good practice to do an application/data backup. Backup software: Titanium Backup (i use it and i really like it).
By adding an Android Recovery loader, you will have the possibility to make a nandroid backup which really allows you to keep EVERYTHING! (that happens after you root the phone, of course).
Advantages of having a rooted phone:
* removing operator applications you don't like in the standard ROM
* run 'root-only' software
* installing new ROMS
* upgrading the OS version of your phone to higher than supported by the manufacturer (some features may not work in this case)
Disadvantages:
* you may void your warranty
* you may brick your phone
* you can be messing around for a long time before having your phone stable once again (if you are curious to keep trying different ROMS, and app2sd and other add-ons)
Bricking your phone may happen if in the procedure to root your phone you need to flash it. In my case, I have a LG P500 and had the Android 2.2.2 - to root it I had to flash a 2.2 version and that was the risky part (some people say that 1 in every 4 phones get bricked in this procedure which I find very exagerated!)
So read the procedures carefully and have your phone with battery full before doing any rooting procedures. Do things calmly, follow every single step and if your get unsure of something, stop, ask, and after that move forward. You will be really happy when your phone is rooted !!
thank you!
The previous responder was a little zealous with the warnings. I have a Captivate, which is rooted and running a custom ROM (CyanogenMod 7).
First, rooting will not brick your phone. In theory, you void your warranty by doing so, but it's really easy to restore to factory state.
I don't recommend a custom ROM for someone who has basic questions like you've just asked. I'd reccommend first trying to get root, and run apps like Titanium backup, SGS Tools, etc. Be careful, research what you're doing, and make lots of backups. So long as you can enter download mode, you can flash back to factory.
Sent from my SGH-I897 using XDA Premium App
I was right where you are last August. I agree with ADT who says that you should root first and then work with apps that require root. Titanium Backup has been the most valuable for me out of all of those.
The chances of bricking your phone when you only root it is minimal. I guess it's possible, but honestly, I cannot see how. There are 2 files that are required called Bootloaders. Think of these as the AT&T screen and then the Samsung screen in a stock Captivate. If you do anything that changes/replaces these, you stand a great chance of bricking your phone. You don't do this when you root, only when you do something like try a custom ROM.
When you root your phone, you won't really notice anything different at first. However, if you look at your apps you will see a new one called Superuser. It is the app that is needed to run "rooted" apps. Also, once you root your phone, you will be able to take advantage of Amazon's market which has a free app a day.
If you decide to "unroot", it can be done rather easily, and you will lose the ability to do things like run rooted apps and Amazon apps (including any you downloaded).
I would recommend that you read as many posts about rooting as possible before you finally make the plunge. Read, read and read again. Make sure you know what you are doing before you do it and the risk of damage is minimal. I have bricked my phone many times, including the power button not working and was lucky to get it back. I learned the hard way by not knowing to read, read and read again.
Good luck!!
One other quick point. If you decide to play with custom ROMs, I recommend you stick with the ones that run Froyo, not Gingerbread. The Gingerbread ROMs are just starting to come out and I believe are not for someone just starting out. The instructions are a bit more complicated and the chance of bricking your phone are much greater.
The Froyo ROMs are much easier to install. However, as said in my last post, I'd get used to rooting your stock phone first before going that way.
stick with froyo and play with custom roms. To install custom roms just flash the custom rom in the recovery mode.
You're right guys. I mean, changing the bootloader is the risky part of the process, not the rooting itself. But the risky part is flashing a ROM (if that's needed to root the phone)...
In my case I had to downgrade my phone (LG P500) before applying root, so it was risky from the start - anyway, depending on the phone model, rooting / installling bootloader can be more or less risky...
Samsung. Couldnt he always ODIN back?
Sent from my ADR6300

My 8 general rooting questions.

Hello. Well i got a Galaxy S2 and think of doing one step forward, but first i would
like to clear a few things in my mind. So here are my questions.
1) I read about secure and insecure kernels. What is the difference ? That on a secure kernel
the user has no root access while on an insecure the user has full access to the entire system ?
2) What is an insecure/original kernel ? Are those give to public by Samsung, therefor
called original ?
3) Lets asume i want to make that step and root my phone with Odin. What kernel do
i choose ? There are so many available online. I download just any? I have to take
into consideration the current kernel and firmware i have on my phone right now?
I see on xda GT-I9100_BOKE3_insecure,GT-I9100_BOKE3_insecure, GT-I9100_BOKG2_insecure
and many others. How do i know which one i need ?
4) It looks that Odin and adding a new kernel is not enough to root. There are applications
like SuperOneClick, that root the device, but what is the point in adding a new kernel.
5) After rooting, do i have to be careful installing any kind of applications? I mean
i dont want applications to be installed and not to be able to remove them in case i would
unroot my mobile.
6) Let's say i've done my job (changing some configuration files) and there is no reason
for me to have my phone root anymore. I just unroot it with SuperOneClick. But what happens
with the kernel and firmware? How to i reset them to default ? Again how do i know which
kernel or firmware i have to install again. Is there any topic for that in our forum?
7) Another topic is Samsung updates. Right now, if there is an available update, i get informed by
Kies. After rooting and adding a new kernel, will i still get notifications or i will
have to do all the updates manualy ?
8) As last, after rooting is it possible to get it 100% back to the stage where it was before rooting the device?
Thank you in advance.

[Q] Where to start?

I got myself a brand new nexus S and Ive got some questions
Im debating on using a custom ROM or just go stock ICS.
A good reason why people use custom ROMs is because of better battery because of the kernel. so would it be possible to flash a better kernel on stock ICS?
If I am going with Custom,
whats the most Recommended:
way of rooting(1 click or manual, and why)
Custom recovery
best kernel
best ROM
is it possible to save a custom UI(so you could do dual booting through custom UI u made)
WoolyMarmot said:
I got myself a brand new nexus S and Ive got some questions
Im debating on using a custom ROM or just go stock ICS.
A good reason why people use custom ROMs is because of better battery because of the kernel. so would it be possible to flash a better kernel on stock ICS?
If I am going with Custom,
whats the most Recommended:
way of rooting(1 click or manual, and why)
Custom recovery
best kernel
best ROM
is it possible to save a custom UI(so you could do dual booting through custom UI u made)
Click to expand...
Click to collapse
You can flash a stock kernel on stock ICS, this is what i have done in the past and it was great. However I will note that the new ROM modifications that increase usable System RAM make a very noticeable difference with no negatives as far as i see. You also get things like notification power toggles, more lockscreen options and so on with a custom ROM.
Anyway, to answer your questions:
1) Best way of rooting: We have a Nexus device so i would not waste time using one clicks. Unlock the bootloader using fastboot, flash a custom recovery and then either flash superuser.zip or a custom ROM. This allows the most versatility when changing ROMs, mainly if you ever decide to flash or restore a stock ROM. The Nexus S allows you to lock the bootloader if you ever need to so warranty issues based on unlocked bootloaders are minimal.
2) ClockWorkMod is generally the most favorable, compatible and least buggy of the lot. TWRP, although good, has a couple of hidden bugs in it and is no longer being developed. Further, CWM now gives you the option between a Touch based recovery and a button based one. This is up to you as they're both essentially the same, but i still prefer the buttons.
3) There is no best kernel, just the best for you. Find the features you want in a kernel first, and then pick a handful and try them all. If you are using a ROM with fixes for the extra RAM (CM9, Slim, etc), you will need a kernel that supports this.
4) Same with kernels. CyanogenMod is generally a good choice. Although on the surface it looks just like stock it is heavily modified. Others have only minor modifications and additions, practically a stock experience with a couple of extra features. Pick a handful with features you want and try each for a couple of days. Feel free to switch kernels from the one that comes with each ROM.
Custom UI? If you mean bootloader or something like that, not really. There have been one or two devs who have tried to make this possible (not specific to the Nexus S) but i don't think their (working?) attempts have taken off. Don't get your hopes up here though.
Harbb said:
1) Best way of rooting: We have a Nexus device so i would not waste time using one clicks. Unlock the bootloader using fastboot, flash a custom recovery and then either flash superuser.zip or a custom ROM. This allows the most versatility when changing ROMs, mainly if you ever decide to flash or restore a stock ROM. The Nexus S allows you to lock the bootloader if you ever need to so warranty issues based on unlocked bootloaders are minimal.
4) Same with kernels. CyanogenMod is generally a good choice. Although on the surface it looks just like stock it is heavily modified. Others have only minor modifications and additions, practically a stock experience with a couple of extra features. Pick a handful with features you want and try each for a couple of days. Feel free to switch kernels from the one that comes with each ROM.
Click to expand...
Click to collapse
1. Im fairly new to android OS and while I do generally understand what youre saying its best you give me some links. The only root Ive done with a phone so far are 1 clicks
4. can you elaborate more of why cyanogenmod is a good rom. I hear about it alot and people recommend it,but why?
also, what ROM do you use yourself?
WoolyMarmot said:
1. Im fairly new to android OS and while I do generally understand what youre saying its best you give me some links. The only root Ive done with a phone so far are 1 clicks
4. can you elaborate more of why cyanogenmod is a good rom. I hear about it alot and people recommend it,but why?
also, what ROM do you use yourself?
Click to expand...
Click to collapse
It'll all make sense as soon as you do it, I assumed you had a read through some rooting guides for the Nexus S.
The Nexus S uses a little flashing utility called fastboot. fastboot gives us the ability to replace certain parts of our phone with customised versions. For example, you can replace the stock Recovery partition (which only lets you install Google-signed .zip files) with a custom one, such as TWRP or ClockWorkMod (which let you install any correctly-formatted .zip file). To be able to use fastboot, you need to unlock the bootloader. On our phones it is possible to lock it again afterward with no trace, but the phones warranty would technically be voided (<-- scare tactics). So basically, you unlock the bootloader, flash a custom recovery and then you can freely install a .zip file through the recovery which gives you root privileges. Afterward with this new recovery, feel free to install custom ROMs and the such straight through it.
I personally used Zedomax's guide found here. This does exactly what i stated above and gives you all of the tools to do it, as well as a video. Just follow the video to a T and you'll be fine, it is all pretty simply laid out. I personally use CWM recovery though, not TWRP as it is no longer being developed. I'm pretty sure i explained what each of the steps do above.
CyanogenMod, unlike most other ROMs, have a somewhat large team of developers working together. They add many features to many phones which are often ported to other ROMs, whether it be the concept or the code. It is a great ROM once stable with countless features and they generally do a great job making sure everything is just about perfect, and there is plenty of support and a large userbase. This doesn't mean it's the best, it is just one of the most known.
I personally use Slim ICS daily right now. Largest benefit at the moment is compatibility with CMs bigmem mod, the phone loves the extra RAM.
well in that case I dont wanna use cyanogenmod. I was thinking something as close to stock(or just simple) as possible because I plan on using themes and widgets to customize it.
1 more question before I root, does it matter which version of OS it has? For example, this guide: http://forum.xda-developers.com/showthread.php?t=1007782
nvm, phone already rooted
new question: is it possible to dual boot roms? Ive been reading and they say its possible with using particular apps and an SD card, but the nexus S has no sd slot so...

Categories

Resources