Question Can I flash stock boot.img to remove root? - Moto G30

Hello, I am wondering if I can flash the stock boot.img again to de-root my device in case I want to go back. Is it also possible to reflash the entire stock rom again from fastboot? If not how would I go about doing that.

Drysauce said:
Hello, I am wondering if I can flash the stock boot.img again to de-root my device in case I want to go back. Is it also possible to reflash the entire stock rom again from fastboot? If not how would I go about doing that.
Click to expand...
Click to collapse
Yes flashing the original unpatched boot.img will unroot.
If you made any changes while rooted, they will remain and may cause issues,

sd_shadow said:
Yes flashing the original unpatched boot.img will unroot.
If you made any changes while rooted, they will remain and may cause issues,
Click to expand...
Click to collapse
Thank you for your quick response.
unrelated question, but I also plan on porting TWRP onto this phone too. Is there any chance of bricking my phone if I were to boot up a custom recovery from fastboot, not flash, but BOOT it? If its incompatible would it just default back into fastboot or something like that?

Drysauce said:
Thank you for your quick response.
unrelated question, but I also plan on porting TWRP onto this phone too. Is there any chance of bricking my phone if I were to boot up a custom recovery from fastboot, not flash, but BOOT it? If its incompatible would it just default back into fastboot or something like that?
Click to expand...
Click to collapse
Only booting it shouldn't cause anything.

Kuntitled said:
Only booting it shouldn't cause anything.
Click to expand...
Click to collapse
ok thank you

Related

[Q] Update boot.img

Has anyone got, or able to flash for me, the boot.img from stock N2506EX_23_150108?
Many gratitude points if you could upload for me ?
Thanks.
2nd
babelmonk said:
Has anyone got, or able to flash for me, the boot.img from stock N2506EX_23_150108?
Many gratitude points if you could upload for me
Thanks.
Click to expand...
Click to collapse
Hey I am also looking for this....on a side note are you looking for this because of wifi issues? has anyone found a fix?...pretty bummed wifi is not working on this thing
Could you install the dumps in http://forum.xda-developers.com/oppo-n3/help/looking-dump-boot-img-t2998030 Post #5, then unroot and run the OTAs to get you back up to current?
...
Lum_UK said:
Could you install the dumps in http://forum.xda-developers.com/oppo-n3/help/looking-dump-boot-img-t2998030 Post #5, then unroot and run the OTAs to get you back up to current?
Click to expand...
Click to collapse
I doubt that any stock rom will flash with twrp recovery....in the past with oppo phones (n1, 7a) its always needed stock recovery to flash stock roms...I guess we just play the waiting game until someone can upload the boot image from the updated rom. I'm pretty sure flashing that alone will get wifi back up and running. 07 Or if someone has the stock recovery they could upload....I am unsure if you can just rip it directly out of the rom and flash it....Also on oppo forums they have posted the rom for 5207 I am also unsure if you can flash that to the 5206.
The zip in that thread is images to flash in fastboot?
...
I would think you would have to flash each image individually.... system, boot, recovery ....unless if we start by flashing only the unmodified boot.img to see if it will fix wifi....but i doubt it because i suspect the wrong boot image is what screwed up wifi in the first place...someone please correct me if im wrong
c0dysm1th said:
I would think you would have to flash each image individually.... system, boot, recovery ....unless if we start by flashing only the unmodified boot.img to see if it will fix wifi....but i doubt it because i suspect the wrong boot image is what screwed up wifi in the first place...someone please correct me if im wrong
Click to expand...
Click to collapse
Yes, you're right; the boot image is not compatible with the upgrade; so downgrade to get root. I'm working on trying to upgrade again with the OTA upgrade and then getting the new boot.img and rooting that. More soon I hope!
FYI I tried your images, Lum_UK and found that I couldn't flash boot.img with fastboot, BUT I could dd them from within recovery, so I got myself up and running again.
Yes you'd have to flash all the images by hand one after the other.
edit: Replied before seeing babelmonk's response, please ignore this post.
steps?
babelmonk said:
Yes, you're right; the boot image is not compatible with the upgrade; so downgrade to get root. I'm working on trying to upgrade again with the OTA upgrade and then getting the new boot.img and rooting that. More soon I hope!
FYI I tried your images, Lum_UK and found that I couldn't flash boot.img with fastboot, BUT I could dd them from within recovery, so I got myself up and running again.
Click to expand...
Click to collapse
Can u please list the steps u took I'd like to get back up and running but don't want to screw this phone up any more ....(dd from recovery ) I'm not familiar with this if it is a command
babelmonk said:
Yes, you're right; the boot image is not compatible with the upgrade; so downgrade to get root. I'm working on trying to upgrade again with the OTA upgrade and then getting the new boot.img and rooting that. More soon I hope!
FYI I tried your images, Lum_UK and found that I couldn't flash boot.img with fastboot, BUT I could dd them from within recovery, so I got myself up and running again.
Click to expand...
Click to collapse
I can't get the OTA to work even after downgrading, but I do have a working system running 141228 with that hacked kernel, root and non-broken wireless.
Anyone want a nandroid of it? It's a slight upgrade at least
please
Lum_UK said:
I can't get the OTA to work even after downgrading, but I do have a working system running 141228 with that hacked kernel, root and non-broken wireless.
Anyone want a nandroid of it? It's a slight upgrade at least
Click to expand...
Click to collapse
please hook it up with that nandroid that i can flash in twrp
c0dysm1th said:
please hook it up with that nandroid that i can flash in twrp
Click to expand...
Click to collapse
Here you go, sorry it's taken so long
http://lum.uk/n3/files/N5206EX_23_141228_root_nocd.7z
Extract it into the TWRP backups folder and then restore like any other nandroid.
THANK YOU
Lum_UK said:
Here you go, sorry it's taken so long
http://lum.uk/n3/files/N5206EX_23_141228_root_nocd.7z
Extract it into the TWRP backups folder and then restore like any other nandroid.
Click to expand...
Click to collapse
Thank you how can i buy you a beer paypal?
c0dysm1th said:
Thank you how can i buy you a beer paypal?
Click to expand...
Click to collapse
Don't worry about it
Seems there's only about 4 or 5 people actively working on this phone here, so I'm sure we'll all end up helping each other at some point.
Lum_UK said:
Here you go, sorry it's taken so long
http://lum.uk/n3/files/N5206EX_23_141228_root_nocd.7z
Extract it into the TWRP backups folder and then restore like any other nandroid.
Click to expand...
Click to collapse
Thanks for that, though I haven't tried it yet. Can I ask what it changes? Is it worth the upgrade? My original firmware +root seems to work pretty well already so I may well leave it alone until L or CM comes out.
babelmonk said:
Thanks for that, though I haven't tried it yet. Can I ask what it changes? Is it worth the upgrade? My original firmware +root seems to work pretty well already so I may well leave it alone until L or CM comes out.
Click to expand...
Click to collapse
I have no idea what it changes as it's the firmware my International N5706 was shipped with when it was released last week. It may be different to the US model (though I believe the only difference between the two is the baseband) and is definitely different to the N5707 for Chinese users.
Dude, thanks!!! You saved my life!
I got wifi back AND root!
sivxo said:
I got wifi back AND root!
Click to expand...
Click to collapse
Hi ! when the zip file is downloaded, what is steps to install it please ?
thanks
marakud said:
Hi ! when the zip file is downloaded, what is steps to install it please ?
thanks
Click to expand...
Click to collapse
Sorry. Missed this. Did you manage?
Oppo neo 7 a33f custom recovery plzzz send me

Bootloop after flashing stock image

Hi guys, my nexus 5x is locked bootloader and i was running the last Android 7.1.1 stock. I decided to try the last CM14.1, entered TWRP and made a backup. I installed CM14.1 and gapps and my phone was in a bootloop. I decided then to restore my backup, restoration was successful but when i pressed reboot system, I was in a bootloop, at Google dots logo. I flashed successfully the DP 7.1.1 image but couldn't get out the bootloop. Flashed the last stock 7.0 image with the same result. I can access fastboot and recovery but until now couldnt get my phone to start and get out this bootloop. What can I do? Is it a hardware issue as i read somewhere on XDA?
Any help and advices please, I live in a country with no Google service center and I am desperate.
If flashing full stock (all not only system) and full wiping doesn't solve your issue sounds like the infamous hardware problem.
Make sure you didn't restore efs backup taken with twrp 3.0.2.1 otherwise look for efs fix.
​
MaxOptim said:
If flashing full stock (all not only system) and full wiping doesn't solve your issue sounds like the infamous hardware problem.
Make sure you didn't restore efs backup taken with twrp 3.0.2.1 otherwise look for efs fix.
Click to expand...
Click to collapse
And how to perform was fix when I can't access Android, fastboot is limited due to locked bootloader and recovery is stock? What's the procedure?
ybregeon2016 said:
​
And how to perform was fix when I can't access Android, fastboot is limited due to locked bootloader and recovery is stock? What's the procedure?
Click to expand...
Click to collapse
You can't.
If you have a locked bootloader all you can do is to flash a full ota package from stock recovery and to wipe/factory reset if it let you to.
If it doesn't fix your issue unfortunately you have to RMA the phone.
MaxOptim said:
You can't.
If you have a locked bootloader all you can do is to flash a full ota package from stock recovery and to wipe/factory reset if it let you to.
If it doesn't fix your issue unfortunately you have to RMA the phone.
Click to expand...
Click to collapse
Forgive my ignorance but how can I do this?
ybregeon2016 said:
Forgive my ignorance but how can I do this?
Click to expand...
Click to collapse
follow instructions here: https://developers.google.com/android/ota
MaxOptim said:
follow instructions here: https://developers.google.com/android/ota
Click to expand...
Click to collapse
Actually I was talking about the RMA, I bought it in Egypt.
ybregeon2016 said:
Actually I was talking about the RMA, I bought it in Egypt.
Click to expand...
Click to collapse
ah, no idea then, sorry.
ybregeon2016 said:
Hi guys, my nexus 5x is unlocked bootloader and i was running the last Android 7.1.1 stock. I decided to try the last CM14.1, entered TWRP and made a backup. I installed CM14.1 and gapps and my phone was in a bootloop. I decided then to restore my backup, restoration was successful but when i pressed reboot system, I was in a bootloop, at Google dots logo. I flashed successfully the DP 7.1.1 image but couldn't get out the bootloop. Flashed the last stock 7.0 image with the same result. I can access fastboot and recovery but until now couldnt get my phone to start and get out this bootloop. What can I do? Is it a hardware issue as i read somewhere on XDA?
Any help and advices please, I live in a country with no Google service center and I am desperate.
Click to expand...
Click to collapse
when you restored from your backup, was EFS checked when you restored? if it was then you have an EFS file corruption. I personally wrote up a solution to this, here's a link: http://forum.xda-developers.com/nexus-5x/help/efs-file-corruption-fix-t3502473
make sure you follow the instructions, this has to be done with the Nexus root toolkit command window open with your phone in TWRP recovery and hooked up to your computer. if you try this, let me know how it goes and if you need help.
edit: your bootloader is unlocked which I know for sure, you can still boot into bootloader and re-root and install twrp back onto your phone even though you're boot looping. I know because the same thing happened to me and was still able to flash a custom recovery.
Yeah it is the EFS problem related to buggy versions of TWRP. Just use dd to to clear the EFS partitions - the chipset will luckily autogenerate the EFS contents on first boot.
Next time dont restore EFS partition from your backups and everything will be perfectly okay.
Makes me wonder how many hundreds of people have sent the device to RMA because of this issue.
dominoeflux said:
when you restored from your backup, was EFS checked when you restored? if it was then you have an EFS file corruption. I personally wrote up a solution to this, here's a link: http://forum.xda-developers.com/nexus-5x/help/efs-file-corruption-fix-t3502473
make sure you follow the instructions, this has to be done with the Nexus root toolkit command window open with your phone in TWRP recovery and hooked up to your computer. if you try this, let me know how it goes and if you need help.
edit: your bootloader is unlocked which I know for sure, you can still boot into bootloader and re-root and install twrp back onto your phone even though you're boot looping. I know because the same thing happened to me and was still able to flash a custom recovery.
Click to expand...
Click to collapse
Man i remind you that my bootloader is locked and for this reason can't start twrp.
ybregeon2016 said:
Man i remind you that my bootloader is locked and for this reason can't start twrp.
Click to expand...
Click to collapse
In your original post you said it was unlocked....and how can it be locked when you don't mention locking it flashing it back stock?
dominoeflux said:
In your original post you said it was unlocked....and how can it be locked when you don't mention locking it flashing it back stock?
Click to expand...
Click to collapse
Bad typing, my bootloader is locked. It was unlocked then after flashing a firmware with LGUP it was locked again.
ybregeon2016 said:
Bad typing, my bootloader is locked. It was unlocked then after flashing a firmware with LGUP it was locked again.
Click to expand...
Click to collapse
Oohhh OK I got you...have you been able to look in doing a tot recovery with Odin? I'm almost home so I'll see what I can do to help u out
Edit: have u tried unlocking it again in bootloader?
LGUP install a firmware as a TOT, it was a TOT file. Isnt Odin for Samsung phones?
tauio111 said:
Yeah it is the EFS problem related to buggy versions of TWRP. Just use dd to to clear the EFS partitions - the chipset will luckily autogenerate the EFS contents on first boot.
Next time dont restore EFS partition from your backups and everything will be perfectly okay.
Makes me wonder how many hundreds of people have sent the device to RMA because of this issue.
Click to expand...
Click to collapse
Forgive me but what is DD?
I have a locked bootloader with stock recovery. What is this DD you are talking about? Will it be successful with this bootloader and stock?
ybregeon2016 said:
Forgive me but what is DD?
I have a locked bootloader with stock recovery. What is this DD you are talking about? Will it be successful with this bootloader and stock?
Click to expand...
Click to collapse
try this command: fastboot flashing unlock when in bootloader mode.
If it works flash TWRP and do the guide which was mentioned before my previous post.
​
tauio111 said:
try this command: fastboot flashing unlock when in bootloader mode.
If it works flash TWRP and do the guide which was mentioned before my previous post.
Click to expand...
Click to collapse
This command is to unlock the bootloader right? But I guess if the OEM unlock is not selected in developer options within Android, it won't work, or correct me if I am wrong.
ybregeon2016 said:
​
This command is to unlock the bootloader right? But I guess if the OEM unlock is not selected in developer options within Android, it won't work, or correct me if I am wrong.
Click to expand...
Click to collapse
You can try. I heard somewhere that it may work if you apply it before booting the android the first time (technically your android cant boot at the moment).
tauio111 said:
You can try. I heard somewhere that it may work if you apply it before booting the android the first time (technically your android cant boot at the moment).
Click to expand...
Click to collapse
Failed (remote: OEM unlock is not allowed)

Stock recovery broken after attempted TWRP.

So I'm new to this whole rooting thing. I unlocked the bootloader and tried to install TWRP, however, things didnt go to plan. Found out I can't use Android Pay with an unlocked bootloader so I want to go back. When I flashed the TWRP, Recovery mode is gone. If I try to go into "reboot to recovery" in the bootloader, It starts a constant loop of the HTC logo. I need to be able to get the stock recovery back so that I can do a factory reset. Can anyone guide me into achieving this? Thanks a million
BFitzy said:
So I'm new to this whole rooting thing. I unlocked the bootloader and tried to install TWRP, however, things didnt go to plan. Found out I can't use Android Pay with an unlocked bootloader so I want to go back. When I flashed the TWRP, Recovery mode is gone. If I try to go into "reboot to recovery" in the bootloader, It starts a constant loop of the HTC logo. I need to be able to get the stock recovery back so that I can do a factory reset. Can anyone guide me into achieving this? Thanks a million
Click to expand...
Click to collapse
Do you have your stock recovery backed up? If so flash that. Else you should look around here for one that matches your firmware.
Tarima said:
Do you have your stock recovery backed up? If so flash that. Else you should look around here for one that matches your firmware.
Click to expand...
Click to collapse
Thanks for the reply, I have successfully flashed twrp so the phone works for now. I need CID:HTC__001 with nougat recovery, any idea where I can find that?
BFitzy said:
Thanks for the reply, I have successfully flashed twrp so the phone works for now. I need CID:HTC__001 with nougat recovery, any idea where I can find that?
Click to expand...
Click to collapse
Take a look here:
https://forum.xda-developers.com/showpost.php?p=71095853&postcount=1807
Tarima said:
Take a look here:
https://forum.xda-developers.com/showpost.php?p=71095853&postcount=1807
Click to expand...
Click to collapse
Thank you so much! phone is now back to stock!

[Stock Recovery] [Oreo 8.0.0] [XT1789-05] [TELCEL-MX]Backup Stock Recovery

I haven't heard anything about an working method for backup stock recovery in A/B partition system, anyone knows how to do that? I already tried adb, Flashfire, TWRP, there's no recovery partition, help
All3nS3mpai said:
I haven't heard anything about an working method for backup stock recovery in A/B partition system, anyone knows how to do that? I already tried adb, Flashfire, TWRP, there's no recovery partition, help
Click to expand...
Click to collapse
Yeah, there is no recovery partition in our phone... Why do you want to backup it?
Technical said:
Yeah, there is no recovery partition in our phone... Why do you want to backup it?
Click to expand...
Click to collapse
Because i want to install a custom one(TWRP) and still able to reinstall the stock if a new OTA is released
All3nS3mpai said:
Because i want to install a custom one(TWRP) and still able to reinstall the stock if a new OTA is released
Click to expand...
Click to collapse
You will brick your phone as simple as that... You cannot use slots A/B with stock and AOSP simultaneously.
Read the guides on my signature and take care.
Technical said:
You will brick your phone as simple as that... You cannot use slots A/B with stock and AOSP simultaneously.
Read the guides on my signature and take care.
Click to expand...
Click to collapse
And I don't want to, what I'm trying to say is that if I want to go back to stock I can do it fully, including recovery, I don't want to have two systems installed at the same time, just stock or AOSP. And thanks for that post, I'll check it, I'm new in this.
All3nS3mpai said:
And I don't want to, what I'm trying to say is that if I want to go back to stock I can do it fully, including recovery, I don't want to have two systems installed at the same time, just stock or AOSP. And thanks for that post, I'll check it, I'm new in this.
Click to expand...
Click to collapse
If you return to stock, the recovery is included. You don't need the stock recovery to go back to stock ROM. There is also a guide for "returning to stock".
Technical said:
If you return to stock, the recovery is included. You don't need the stock recovery to go back to stock ROM. There is also a guide for "returning to stock".
Click to expand...
Click to collapse
Even if the zip file doesn't include a recovery.img?
All3nS3mpai said:
Even if the zip file doesn't include a recovery.img?
Click to expand...
Click to collapse
Recovery is in our boot.img. Flash that and you'll have stock recovery.
Technical said:
If you return to stock, the recovery is included. You don't need the stock recovery to go back to stock ROM. There is also a guide for "returning to stock".
Click to expand...
Click to collapse
Does unlocking the bootloader stops the phone from receiving OTA?

Question [RISOLTO]stock recovery

hi guys, I have to send the phone for assistance and I need to reset the phone with root, I have TWRP 3.6.x.x and I need to go back to stock recovery does anyone know how?
giuseppe18 said:
hi guys, I have to send the phone for assistance and I need to reset the phone with root, I have TWRP 3.6.x.x and I need to go back to stock recovery does anyone know how?
Click to expand...
Click to collapse
dirty flash ota rom
HessNL said:
dirty flash ota rom
Click to expand...
Click to collapse
just do a full ota installation? and also restore the recovery as well?
giuseppe18 said:
just do a full ota installation? and also restore the recovery as well?
Click to expand...
Click to collapse
As far as I know yes but you need to root it again like what you normally do with and to be sure flash ota rom again be because of a/b partitions but you also need to do the root again when you flash the rom for the second time
HessNL said:
As far as I know yes but you need to root it again like what you normally do with and to be sure flash ota rom again be because of a/b partitions but you also need to do the root again when you flash the rom for the second time
Click to expand...
Click to collapse
thanks i did the full ota for both partitions

Categories

Resources