Related
Hi guys, today I am going to share this simple tutorial on how to root without unlocking bootloader of sprout.. Many people asked me how to do so I am here to create a simple tut for everyone..
Requirements
1. Any custom recovery for sprout (I prefer philz http://forum.xda-developers.com/cro...e-general/sprout-philz-touch-v6-57-9-t2887574 )
2. Fastboot files (google for minimal fastboot) and fastboot drivers
3. Supersu update zip (http://download.chainfire.eu/supersu)
Proceedure
1. Install fastboot drivers and fastboot files..
2. Rename the custom recovery as "recovery.img"
3. Place the recovery.img within fastboot directory (where the fastboot.exe located)
4. Put supersu.zip in root of your phone's sd card
5. Connect your android one device to pc using usb cable in fastboot mode (switch off phn and press power+vol up and then select fastboot)
6. Use the following fastboot command
Code:
fastboot boot recovery.img
This command will not flash the recovery, it will just let your phone boot into recovery and it will work on locked bootloader
7. You will get the recovery menu then. Install the previously downloader supersu.zip from external sd card using the recovery menu.
8. Congratulation, You have successfully rooted your android one device without unlocking bootloader...:good:
Here is a video guide created by @thesaurabh7777, u can check it..
https://www.youtube.com/watch?v=DxlowF80deY&list=UUAWTixiBL7GqKAZB5OLAwDA
Credit
1. @varun.chitre15 for custom recovery
2. @Chainfire for supersu.zip
thanks
Thank you. Just what i wanted.
Anyone tried? And how to unroot if needed ?
UPDATE : I tried. It works and works like charm. I have created CWM backup of my stock ROM, rooted device and installed xposed also.
You can always unroot from settings in SuperSu - Which essentially removes itself and su binaries.
coolkoushik07 said:
Hi guys, today I am going to share this simple tutorial on how to root without unlocking bootloader of sprout.. Many people asked me how to do so I am here to create a simple tut for everyone..
Requirements
1. Any custom recovery for sprout (I prefer philz http://forum.xda-developers.com/crossdevice-dev/android-one-general/sprout-philz-touch-v6-57-9-t2887574 )
2. Fastboot files (google for minimal fastboot) and fastboot drivers
3. Supersu update zip (http://download.chainfire.eu/supersu)
Proceedure
1. Install fastboot drivers and fastboot files..
2. Rename the custom recovery as "recovery.img"
3. Place the recovery.img within fastboot directory (where the fastboot.exe located)
4. Put supersu.zip in root of your phone's sd card
5. Connect your android one device to pc using usb cable in fastboot mode (switch off phn and press power+vol up and then select fastboot)
6. Use the following fastboot command
Code:
fastboot boot recovery.img
This command will not flash the recovery, it will just let your phone boot into recovery and it will work on locked bootloader
7. You will get the recovery menu then. Install the previously downloader supersu.zip from external sd card using the recovery menu.
8. Congratulation, You have successfully rooted your android one device without unlocking bootloader...:good:
Credit
1. @varun.chitre15 for custom recovery
2. @Chainfire for supersu.zip
Click to expand...
Click to collapse
This method applicable for moto G??
after rooting using this methord can i install cwm recovery without unlocking the bootloader? i want to backup my rom
austinpinto said:
after rooting using this methord can i install cwm recovery without unlocking the bootloader? i want to backup my rom
Click to expand...
Click to collapse
U can but u need flashable zip of recovery.. And u can backup and restore ur rom by booting into custom recovery too..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
U can but u need flashable zip of recovery.. And u can backup and restore ur rom by booting into custom recovery too..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
can i boot into custom recovery and backup my entire rom without root or unlocking the bootloader?
austinpinto said:
can i boot into custom recovery and backup my entire rom without root or unlocking the bootloader?
Click to expand...
Click to collapse
Yes u can
Sent from my Xperia Z1 Compact
archies20 said:
This method applicable for moto G??
Click to expand...
Click to collapse
Please dont quote whole op...
And no, it will not work in moto..
Sent from my Xperia Z1 Compact
successfully rooted but how to check weather boot loader is locked r unlocked,with root can i get ota update(if the provide any in the near future )r else should i have do any thing to lock bootloader... thank you bro for the tut...:good::good:
how to unroot?
Can the device be unrooted by simple using the option in SuperSU to receive OTA update?
mknits said:
Can the device be unrooted by simple using the option in SuperSU to receive OTA update?
Click to expand...
Click to collapse
Yes and ota update depends on what modification u have done to ur phn while being rooted..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
Yes and ota update depends on what modification u have done to ur phn while being rooted..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
Hi, if I root my device this way, just to backup some apps via TB, and not modify the system any other way, are you sure just unrooting will be enough to safely apply the Kitkat to Lollipop OTA?
I've read about this new "verified boot" thing in Lollipop, which essentially means if you modify system partition in any way, even if just to add the SU app/binaries, the OTA will fail (where it obviously didn't use to, before lollipop). I'm not sure if this verified boot thing will apply to the OTA for Kitkat to Lollipop too, or just updates From Lollipop to future versions.
(AP did an article just a couple of weeks back, check it out here: http://www.androidpolice.com/2014/1...e-means-update-will-fail-system-modified-way/ )
I have made a backup of Stock ROM before rooting it,so when LOLLIPOP arrives and in case i have changes some system files, i can simply restore the stoock ROM to recieve the updates right???
Rahil S said:
I have made a backup of Stock ROM before rooting it,so when LOLLIPOP arrives and in case i have changes some system files, i can simply restore the stoock ROM to recieve the updates right???
Click to expand...
Click to collapse
Yes u can.. In fact I also did the same..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
Yes u can.. In fact I also did the same..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
Thanks.
And even if i unlock bootloader, flashing the stock rom back with lock the bootloader again right or do i need to do it manually???
Rahil S said:
Thanks.
And even if i unlock bootloader, flashing the stock rom back with lock the bootloader again right or do i need to do it manually???
Click to expand...
Click to collapse
If u unlock bootloader, u have to lock bootloader manually after flashing stock rom..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
If u unlock bootloader, u have to lock bootloader manually after flashing stock rom..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
I have not unlocked bootloader just rooted it. Now do i need to flash stock rom back or removing supersu will make it stock?? I have only used SuperSu and link2sd app. Will be very helpfull if you can guide me. Thanks
Rahil S said:
I have not unlocked bootloader just rooted it. Now do i need to flash stock rom back or removing supersu will make it stock?? I have only used SuperSu and link2sd app. Will be very helpfull if you can guide me. Thanks
Click to expand...
Click to collapse
Yes it will
Sent from my Xperia Z1 Compact
Nice
---------- Post added at 04:16 PM ---------- Previous post was at 04:15 PM ----------
Good work
I have a rooted XT1068 and there is an official OTA update to 5.0.2, should I install it? Do I lose my root access?
egwktm said:
I have a rooted XT1068 and there is an official OTA update to 5.0.2, should I install it? Do I lose my root access?
Click to expand...
Click to collapse
You have to "Full unroot" in SuperSU settings and restore the stock recovery. Otherwise OTA will fail. After the OTA is installed, You can easily return to TWRP and flash SuperSU.
okay thanks! also instead of twrp could I use chainfire again?
Unfortunately, i tried to install OTA and now every time i turn on my phone it reboots and tries to install 5.02 only to get an error and it stays at twrp menu. So what can i do now?
lol after many reboots phone decided to tell me that update was unsuccessful so it works again.
more details pls for a beginner
I made the same mistake trying to flash OTA 5.02 over rooted device 4.4.4 . I got out of the loop by moving the download zip from system/cache to external sd...
just wanting to make sure I do all the right things and in order:
so in Super SU I go the FULL UNROOT
how do I then restore stock recovery?
Once I I have restored it what are the steps for the zip and install via stock recovery?
sorry about the boring questions - it's still a bit of a jungle for a beginner
egwktm said:
okay thanks! also instead of twrp could I use chainfire again?
Click to expand...
Click to collapse
Sure. But why? Twrp is superior in every aspect. It's like deliberately crippling your toaster so that only one slice fits.
Will I be able to install ota updates with stock recovery and after unroot if I do changes to /system?
dpdp73 said:
Will I be able to install ota updates with stock recovery and after unroot if I do changes to /system?
Click to expand...
Click to collapse
No
doppelhelix said:
Sure. But why? Twrp is superior in every aspect. It's like deliberately crippling your toaster so that only one slice fits.
Click to expand...
Click to collapse
Nice imagination.
But why do I often read that TWRP will be overwritten by Lollipop with custom recovery when rebooting the phone? Some people therefore recommend the Chainfire CF-Auto-Root instead.
So after unlocking bootloader can I flash TWRP in fastboot mode and superSU afterwards without those kind of problems?
Wolfcity said:
Nice imagination.
But why do I often read that TWRP will be overwritten by Lollipop with custom recovery when rebooting the phone?
Click to expand...
Click to collapse
It's a "feature" introduced by google for their nexus. I will quote the twrp website:
The stock ROM will automatically replace TWRP with the stock recovery. To prevent the stock ROM from replacing TWRP, boot TWRP, go to the mount menu and mount system, press the home button, then press Advanced ->File Manager. Browse to /system and select the file named recovery-from-boot.p then choose to rename the file to recovery-from-boot.bak
Or you flash the SuperSU.zip. That will prevent the override too.
doppelhelix said:
It's a "feature" introduced by google for their nexus. I will quote the twrp website:
The stock ROM will automatically replace TWRP with the stock recovery. To prevent the stock ROM from replacing TWRP, boot TWRP, go to the mount menu and mount system, press the home button, then press Advanced ->File Manager. Browse to /system and select the file named recovery-from-boot.p then choose to rename the file to recovery-from-boot.bak
Or you flash the SuperSU.zip. That will prevent the override too.
Click to expand...
Click to collapse
Thx a lot for your explantion.
This was one of the things that irritated me right from the start when I was checking out the possibilities of custom recovery/root within 5.0.
I heard about the file-renaming thing but didnĀ“t realize that superSu will do the job too and that it is a Nexus "feature" at all.
Helped me very much!
Here're the official links for Cherry Mobile One H940:
For fastboot flashable images:
Builds Available: LBY29G, LMY47O
Download: here
For OTAs:
Build: LBY29G -> LMY47O
Android Version: 5.1 (Beta) -> 5.1 Official
Download: here
Flashing Instructions:
A. Using ADB sideload (for recovery flashable update zips):
1.) Flash stock recovery.
2.) Boot to stock recovery.
3.) Perform up + power button to show menu.
4.) Select Apply update from ADB.
5.) Install ADB drivers if on Windows and not yet installed.
6.) Open cmd prompt.
7.) Change directory to where you downloaded the update zip.
8.) Issue cmd: adb sideload <update.zip filename>
9.) Wait until completed.
10.) Select reboot.
B. Using fastboot:
1.) Boot into bootloader.
2.) Flash image using fastboot flash <partition name> <image filename>.img command.
3.) Reboot using fastboot reboot command.
C. Using DD (for flashing images like system.img):
1.) Boot into custom recovery. (you could use fastboot boot custom-recovery.img so that you don't overwrite your existing one)
2.) Push image file to /sdcard using adb push command. (you might have to mount the sdcard partition before doing this)
3.) Open an ADB command shell.
4.) Go to /sdcard.
5.) Find the system partition by issuing a cat /proc/partitions command. It should be the one sized exactly 1GB (1,024,000 shown).
6.) Use dd if=/sdcard/<image filename>.img of=/dev/block/<name of partition> .
7.) Reboot either using custom recovery or just issuing an adb reboot after exiting from ADB command shell.
do you have another working file for LMY47O system.img? i'm getting a fastboot flash fail (chunk unkown) error. thanks
Reuploading now. Might be a bad upload from my end. Will post updated hashes later for the system.img.
intersectRaven said:
Reuploading now. Might be a bad upload from my end. Will post updated hashes later for the system.img.
Click to expand...
Click to collapse
same problem here
thank you
Uploaded. If it still fails, you might have to use dd to restore. Odd that it fails now when it was fine before. :/
OTA Flashing Error
Hello. I would like to ask why I cannot flash the OTA Update for CM1. I am currently on LBY29G, rooted, unlocked bootloader and stock recovery. Thanks.
erickho0407 said:
Hello. I would like to ask why I cannot flash the OTA Update for CM1. I am currently on LBY29G, rooted, unlocked bootloader and stock recovery. Thanks.
Click to expand...
Click to collapse
Go back to stock boot. Since you're rooted, I'm assuming your boot has been modified to be insecure.
intersectRaven said:
Go back to stock boot. Since you're rooted, I'm assuming your boot has been modified to be insecure.
Click to expand...
Click to collapse
Ok By going back to "stock boot," does this mean I have to re-lock the bootloader? I believe that I have only used the ALL-IN ONE TOOL in this thread to do the 3 things mentioned above, and also installed Lucky Patcher, Greenify, Busybox (Free) and Ad-Away in relation to root access, so I am not 100% sure by what you mean. Thanks again.
erickho0407 said:
Ok By going back to "stock boot," does this mean I have to re-lock the bootloader? I believe that I have only used the ALL-IN ONE TOOL in this thread to do the 3 things mentioned above, and also installed Lucky Patcher, Greenify, Busybox (Free) and Ad-Away in relation to root access, so I am not 100% sure by what you mean. Thanks again.
Click to expand...
Click to collapse
No you don't need to relock the bootloader. You just need to flash stock boot partition. This is usually replaced when rooting.
intersectRaven said:
No you don't need to relock the bootloader. You just need to flash stock boot partition. This is usually replaced when rooting.
Click to expand...
Click to collapse
Ok. So this means that I reflash boot.img right (would probably use fastboot). Thank you very much for assistance
Sir
can you capture ota for myphone uno
gabisonfire98 said:
Sir
can you capture ota for myphone uno
Click to expand...
Click to collapse
Unfortunately, I don't have an Uno so no.
still the same problem, will try DD **update still failed, and now can't flash old build...will try to restore a backup from CWM
Working internal detect for pc and file ?
marjoejoejoe said:
still the same problem, will try DD **update still failed, and now can't flash old build...will try to restore a backup from CWM
Click to expand...
Click to collapse
I see. Very weid. Might be some form of protection now for the system partition. I'll just take it down now so that no one else uses it.
intersectRaven said:
I see. Very weid. Might be some form of protection now for the system partition. I'll just take it down now so that no one else uses it.
Click to expand...
Click to collapse
I'll have another go at it later today. Was able to flash my own backup using CWM
marjoejoejoe said:
I'll have another go at it later today. Was able to flash my own backup using CWM
Click to expand...
Click to collapse
Still, it should be foolproof. I already checked and double-checked the system image I uploaded and it's mountable in Linux so it should restore correctly like the previous LBY image. I can't think of any other reason aside from some sort of protection that would disallow flashing of the system image through both fastboot and dd.
*On second thought, I'm reupping the image. I just flashed it using dd on my device and it works perfectly.
success, was running a windows 7 virtual machine in OSX. it must have been a protection, you are right...ran it using OSX instead (stupid me, why i didn't use it in the first place for fastboot).
files are good to go thanks man
Need help in Flashing the Stock Recovery.
Hi Guys,
I need help in flashing the stock recovery.
I've used the ALL-IN-ONE TOOL to unlock my phone's bootloader, flash the PhilZ Touch Customer recovery and Root my CM1
[http://forum.xda-developers.com/cro.../tool-master-tool-unlock-bootloader-t2997696]
However I'm unsuccessful flashing the stock recovery from the ALL-IN-ONE TOOL so I can update my phone's software to Android 5.1.1.
Can I flash the stock recovery using one of the files here? If yes, can someone please teach me how.
Thanks in advance!
OTG
Hi,
Just a quick question, after flashing using this ROM, will CM One support OTG? Or do I need to root the phone first? Is there a way to add support for OTG?
Pardon me if this may not be much related to the topic.
Hello everyone,
I'm in a little trouble. I need to install custom recovery on my Xperia SP C5302 but I have no PC.
How can I install TWRP ( preferred ) / CWM/Philz on my device ? Is there any way ?
Thank You.
Note : There's a cyber cafe beside my house. But all their computers are running Windows XP.
If there's no way to install without PC then can I be able to install custom recovery on my device with Win XP ?
Thanks again.
Do you have root?
TechnoSparks said:
Do you have root?
Click to expand...
Click to collapse
Yes I'm rooted and my bootloader is unlocked.
Are you ready to bear any risks?
TechnoSparks said:
Are you ready to bear any risks?
Click to expand...
Click to collapse
Yes I'm. but what kinda risk ? soft brick ? or something else ?
rhrokib said:
Yes I'm. but what kinda risk ? soft brick ? or something else ?
Click to expand...
Click to collapse
Most likely soft brick. But who knows, hard bricks even happen when they never touched anything for some people.
TechnoSparks said:
Most likely soft brick. But who knows, hard bricks even happen when they never touched anything for some people.
Click to expand...
Click to collapse
okay. Is there any way to install TWRP without PC then ?
or any custom recovery. philz, CWM anything
Install a terminal emulator by Jake Pelvich from Play store.
Extract the official TWRP img from the TWRP fota zip, or, if you already downloaded an official img, put it into the root of your internal storage.
For ease of access, but still mnemonic, rename the img into "twrp.img"
Open your terminal emulator, and enter "su" and run. This will make the terminal to request root, as you're elevating the shell into root.
Now, we "dd" the TWRP image into your FOTA partition. Copy and run the following:
Code:
dd if=/storage/emulated/0/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel bs=4096
Reboot to check if recovery is accessible after hitting volume up when LED lights up
TechnoSparks said:
Install a terminal emulator by Jake Pelvich from Play store.
Extract the official TWRP img from the TWRP fota zip, or, if you already downloaded an official img, put it into the root of your internal storage.
For ease of access, but still mnemonic, rename the img into "twrp.img"
Open your terminal emulator, and enter "su" and run. This will make the terminal to request root, as you're elevating the shell into root.
Now, we "dd" the TWRP image into your FOTA partition. Copy and run the following:
Reboot to check if recovery is accessible after hitting volume up when LED lights up
Click to expand...
Click to collapse
Thanks a lot. Maybe it works. But how to boot into recovery ?
explain me please.
rhrokib said:
Thanks a lot. Maybe it works. But how to boot into recovery ?
explain me please.
Click to expand...
Click to collapse
Like already mentioned, press volume button UP when the LED lights up during your XSP bootup
TechnoSparks said:
Like already mentioned, press volume button UP when the LED lights up during your XSP bootup
Click to expand...
Click to collapse
There is no LED during bootup. Either I didn't understand. I tried with software to boot into recovery. But my device just complete a reboot everytime. What to do ?
rhrokib said:
There is no LED during bootup. Either I didn't understand. I tried with software to boot into recovery. But my device just complete a reboot everytime. What to do ?
Click to expand...
Click to collapse
What ROM are you using? You need a ROM that can boot a FOTAKernel recovery, and not all of them can (especially stock based ones, since stock by default doesn't allow this).
Ditto.
If you are not using a ROM that supports booting from TWRP, then I can't suggest a method to install other recoveries without a PC.
I do not say it is impossible though, but it'll take a lot of brain power, and moderate understanding of shell scripting in order to reverse engineer the other recoveries provided in the dev subforum.
TechnoSparks said:
Ditto.
If you are not using a ROM that supports booting from TWRP, then I can't suggest a method to install other recoveries without a PC.
I do not say it is impossible though, but it'll take a lot of brain power, and moderate understanding of shell scripting in order to reverse engineer the other recoveries provided in the dev subforum.
Click to expand...
Click to collapse
I tried with Terminal Emulator and it seems okay. But I can't boot into recovery. Tried a lot of process. Doesn't work. Now can I install TWRP with pc ? or I need to flash my stock back to install from PC as I replaced my stock img file ?
Again if I flash stock now, will my bootloader be locked again ?
rhrokib said:
I tried with Terminal Emulator and it seems okay. But I can't boot into recovery. Tried a lot of process. Doesn't work. Now can I install TWRP with pc ? or I need to flash my stock back to install from PC as I replaced my stock img file ?
Again if I flash stock now, will my bootloader be locked again ?
Click to expand...
Click to collapse
Like already explained by Tomoms and me, you need a ROM that supports booting recovery from the FOTA partition in order for my explained method to work. You didn't also tell us which ROM you are using.
No, you dont need to flash your stock back. Leaving the FOTA partition replaced does no absolute harm at all.
If you flash stock, your bootloader will still remain unlocked. In order to relock, you will need to explicitly relock it, by using the relock bootloader option provided by flashtool. If you backed up your TA partition, restoring it will automatically relock your bootloader.
TechnoSparks said:
Like already explained by Tomoms and me, you need a ROM that supports booting recovery from the FOTA partition in order for my explained method to work. You didn't also tell us which ROM you are using.
No, you dont need to flash your stock back. Leaving the FOTA partition replaced does no absolute harm at all.
If you flash stock, your bootloader will still remain unlocked. In order to relock, you will need to explicitly relock it, by using the relock bootloader option provided by flashtool. If you backed up your TA partition, restoring it will automatically relock your bootloader.
Click to expand...
Click to collapse
Okay thanks everyone. I finally installed TWRP, CWM as well as Philz.
I was using 4.3 Stock. Finally installed those from Doomlord's thread. That was really handy to use.
again thank you all for supporting me.
rhrokib said:
Okay thanks everyone. I finally installed TWRP, CWM as well as Philz.
I was using 4.3 Stock. Finally installed those from Doomlord's thread. That was really handy to use.
again thank you all for supporting me.
Click to expand...
Click to collapse
Alright, good to know you finally installed the recoveries. 4.3 Stock ROM does not support my method explained in my recent post. And no problem!
Is there any way to root without TWRP? I'll be doing this for a family member, and want to keep it as stock as possible. I just want root to remove some stock apps they don't need, then probably unroot. Is there any way to do so? Otherwise I was thinking of flashing TWRP, rooting, then flashing back the stock recovery.
Purplezigar said:
Is there any way to root without TWRP? I'll be doing this for a family member, and want to keep it as stock as possible. I just want root to remove some stock apps they don't need, then probably unroot. Is there any way to do so? Otherwise I was thinking of flashing TWRP, rooting, then flashing back the stock recovery.
Click to expand...
Click to collapse
You can boot into twrp.
Use "fastboot boot twrp-recovery-file location"
Then you can just use the root shell from twrp to make changes, no need to flash SuperSU if you want the ROM unrooted.
mrmazak said:
You can boot into twrp.
Use "fastboot boot twrp-recovery-file location"
Then you can just use the root shell from twrp to make changes, no need to flash SuperSU if you want the ROM unrooted.
Click to expand...
Click to collapse
I'm not quite sure what you're saying, but it sounds like you're saying that I can boot into the TWRP image while I'm connected with fastboot, without actually installing TWRP?
Purplezigar said:
I'm not quite sure what you're saying, but it sounds like you're saying that I can boot into the TWRP image while I'm connected with fastboot, without actually installing TWRP?
Click to expand...
Click to collapse
That's right. You can just boot twrp instead of flashing it.
And when twrp is booted you can connect to phone with adb, you will have a shell with root privileges.
mrmazak said:
That's right. You can just boot twrp instead of flashing it.
And when twrp is booted you can connect to phone with adb, you will have a shell with root privileges.
Click to expand...
Click to collapse
Cool! So then I can just remove system installed apps that I don't want (e.g. Google Play Movies and Books)?
Purplezigar said:
Cool! So then I can just remove system installed apps that I don't want (e.g. Google Play Movies and Books)?
Click to expand...
Click to collapse
You could also read this thread as see if the twrp packages there are what you want to do.
They can all be run from the booted twrp.
https://forum.xda-developers.com/r1-hd/how-to/guide-ad-removal-debloat-block-ota-easy-t3429555
mrmazak said:
You could also read this thread as see if the twrp packages there are what you want to do.
They can all be run from the booted twrp.
https://forum.xda-developers.com/r1-hd/how-to/guide-ad-removal-debloat-block-ota-easy-t3429555
Click to expand...
Click to collapse
Awesome, thanks!