Wiped recovery partition and bricked my galaxy s4 - Galaxy S 4 Q&A, Help & Troubleshooting

I wiped recovery partition by issuing following command in adb console.
Code:
dd if=/data/cm-11-20160320-NIGHTLY-jflte-recovery.img of=/dev/block/mmcblk0p10
reboot recovery
now my phone stucked up in the boot-up screen. I guess the image i flashed into recovery partition was invalid and because i issued 'reboot recovery' command it tries to boot from recovery image which is invalid. Is there a way to delete bcb (bootloader control block) in order to delete that 'reboot recovery' command ?

rasminoj said:
I wiped recovery partition by issuing following command in adb console.
Code:
dd if=/data/cm-11-20160320-NIGHTLY-jflte-recovery.img of=/dev/block/mmcblk0p10
reboot recovery
now my phone stucked up in the boot-up screen. I guess the image i flashed into recovery partition was invalid and because i issued 'reboot recovery' command it tries to boot from recovery image which is invalid. Is there a way to delete bcb (bootloader control block) in order to delete that 'reboot recovery' command ?
Click to expand...
Click to collapse
No way to boot into download mode?

GDReaper said:
No way to boot into download mode?
Click to expand...
Click to collapse
yes. how can i proceed to restore recovery or clear bcb ?

rasminoj said:
yes. how can i proceed to restore recovery or clear bcb ?
Click to expand...
Click to collapse
You are making it way to hard.
Just flash TWRP in download mode. That's all.

Lennyz1988 said:
You are making it way to hard.
Just flash TWRP in download mode. That's all.
Click to expand...
Click to collapse
Thanks. I put the phone in download mode. Then by using Odin i flashed twrp recovery. Problem solved. Thank you all.

Related

Not rebooting into recovery mode?

On step three of the AndroidandMe.com tutorial once I have to enter "adb reboot recovery" in command prompt it reboots the phone but does not goto the menu and whatnot. It just has a /!\ with a android under it. What does that mean and how do I fix it?
Reflash the recovery image.
mortzz said:
Reflash the recovery image.
Click to expand...
Click to collapse
I did, no luck):

Rooting on a Mac using SuperOneClick

Hi guys, I wonder if there is anyone out there who knows about rooting an S4 on a Mac. I found a guide on another forum, which suggested doing it using SuperOneClick (through Mono). I managed to open SOC, but the "Shell Root" function doesn't work. I think it's a problem with the USB connection, because the Mac doesn't treat the phone as if it was a drive - the only way to access it through USB is with a software called Android File Transfer.
Many, many thanks in advance because I've spent a whole week trying various workarounds and nothing has worked so far!
Use Heimdall to flash TWRP and then flash supersu from TWRP.
audit13 said:
Use Heimdall to flash TWRP and then flash supersu from TWRP.
Click to expand...
Click to collapse
Thank you! I can't try it now but when I have time I will let you know how it goes
I've flashed TWRP, but how do I now get SuperSU onto my phone? Thanks in advance
Connect the phone to your Mac and it should mount as a drive, then copy supersu.zip to the phone memory or micro sd card, then boot to twrp and flash supersu.
audit13 said:
Connect the phone to your Mac and it should mount as a drive, then copy supersu.zip to the phone memory or micro sd card, then boot to twrp and flash supersu.
Click to expand...
Click to collapse
Is the TWRP supposed to run when I start in recovery mode? I can only open in default android system recovery
When flashing, select the no reboot option. Once TWRP has been flashed, remove the USB cable from the phone, remove the phone battery, wait about 5 seconds, replace battery, and boot directly to recovery using the home, volume up, and power button combination.
chrissy_a said:
Is the TWRP supposed to run when I start in recovery mode? I can only open in default android system recovery
Click to expand...
Click to collapse
1. Download and install heimdall.
2. Open terminal and browse to the folder where you have downloaded the recovery TWRP.
3. Type the following command "heimdall flash --recovery recovery.img" (without the " " and make sure to rename the recovery file to recovery.img).
Lennyz1988 said:
1. Download and install heimdall.
2. Open terminal and browse to the folder where you have downloaded the recovery TWRP.
3. Type the following command "heimdall flash --recovery recovery.img" (without the " " and make sure to rename the recovery file to recovery.img).
Click to expand...
Click to collapse
ERROR: Partition "recovery" does not exist in the specified PIT.
chrissy_a said:
ERROR: Partition "recovery" does not exist in the specified PIT.
Click to expand...
Click to collapse
"heimdall flash --RECOVERY recovery.img"
try it with capitals.
Sounds like my suggestion didn't work. Did you get any errors?
Lennyz1988 said:
Type the following command "heimdall flash --recovery recovery.img" (without the " " and make sure to rename the recovery file to recovery.img).
Click to expand...
Click to collapse
Lennyz1988 said:
"heimdall flash --RECOVERY recovery.img"
try it with capitals.
Click to expand...
Click to collapse
audit13 said:
Sounds like my suggestion didn't work. Did you get any errors?
Click to expand...
Click to collapse
I just tried it again. Doing it Lennyz1988's way, the upload was successful but afterwards it rebooted my phone straight away. When I turned off and launched recovery mode I got two errors which were only on screen for like 1ms (I had to record it on my camera to read them) - It showed 'Installing system update', and then 'no command', and then launched into the stock recovery mode.
chrissy_a said:
I just tried it again. Doing it Lennyz1988's way, the upload was successful but afterwards it rebooted my phone straight away. When I turned off and launched recovery mode I got two errors which were only on screen for like 1ms (I had to record it on my camera to read them) - It showed 'Installing system update', and then 'no command', and then launched into the stock recovery mode.
Click to expand...
Click to collapse
Do it again and now with this command:
heimdall flash --RECOVERY recovery.img --no-reboot
That should solve it.
Lennyz1988 said:
Do it again and now with this command:
heimdall flash --RECOVERY recovery.img --no-reboot
That should solve it.
Click to expand...
Click to collapse
Now it is just stuck on the Samsung S4 logo with "Recovery Booting..." in the corner :/
What happened when you tried flashing twrp with heimdall using my suggestion?
audit13 said:
What happened when you tried flashing twrp with heimdall using my suggestion?
Click to expand...
Click to collapse
When I tried it with heimdall it seemed to upload okay, but then just started in normal recovery mode. But at that point I hadn't changed the img filename to recovery.img . I've tried it again with the new filename but now it just has the same problem as when I do it via the command line - it's frozen on the S4 logo with "Recovery booting" in the top left
chrissy_a said:
When I tried it with heimdall it seemed to upload okay, but then just started in normal recovery mode. But at that point I hadn't changed the img filename to recovery.img . I've tried it again with the new filename but now it just has the same problem as when I do it via the command line - it's frozen on the S4 logo with "Recovery booting" in the top left
Click to expand...
Click to collapse
What does it say your model is when you are booted into download mode?
Lennyz1988 said:
What does it say your model is when you are booted into download mode?
Click to expand...
Click to collapse
Product name: GT-I9505
You're using heimdall to flash the tar version of twrp? You're booting directly to recovery after flashing? You're disabling auto reboot?
audit13 said:
You're using heimdall to flash the tar version of twrp? You're booting directly to recovery after flashing? You're disabling auto reboot?
Click to expand...
Click to collapse
I was flashing the .img version, not tar. Should I try it with tar?
And yes to the other two questions.
P.s. thank you again for all you guys' continued help

P9 lite Bootloop, but can use fastboot

Today I tried to restore an old backup through TWRP, but for some reason my phone is now in bootloop and I cannot access TWRP anymore. Nevertheless, I can use Fastboot. How can I proceed in order to be able to boot into TWRP and restore a backup?
Thank you for your help
p.s. the bootloader is ofc unlocked
Pav90 said:
Today I tried to restore an old backup through TWRP, but for some reason my phone is now in bootloop and I cannot access TWRP anymore. Nevertheless, I can use Fastboot. How can I proceed in order to be able to boot into TWRP and restore a backup?
Thank you for your help
p.s. the bootloader is ofc unlocked
Click to expand...
Click to collapse
Enter fastboot mode. Open cmd and type fastboot reboot recovery
RazOne said:
Enter fastboot mode. Open cmd and type fastboot reboot recovery
Click to expand...
Click to collapse
I tried, but it does not work. For example, `fastboot reboot` and `fastboot reboot bootloader` work. Any idea why? I tried to install again the recovery and it succeeded, but I could not boot into it :/
EDIT. it seems that `fastboot reboot recovery` command does not exist. How to get there then?
Pav90 said:
I tried, but it does not work. For example, `fastboot reboot` and `fastboot reboot bootloader` work. Any idea why? I tried to install again the recovery and it succeeded, but I could not boot into it :/
EDIT. it seems that `fastboot reboot recovery` command does not exist. How to get there then?
Click to expand...
Click to collapse
Hmm..you need to flash recovery again via fastboot. ( fastboot flash recovery ) .
me too who can help me please

[Need help]Rooting moto g4 plus in stock june security patch level.

I want to root my moto g4 plus(unlocked bootloader and twrp flashed). Anyone knows how to root moto g4 plus. And i also want to know that how to increase battery backup after rooting(is it a myth).
@ADITYA_KUMAR this has been asked and explained many times and once more.
- Take Backup
- get Elemental-X kernel (see development section and download correct one )
- flash with TWRP
- get latest SuperSU : SuperSU
- now you can follow same guide of MM from step 5 : Guide
Don't Forget to Take Backup..
____Mdd said:
@ADITYA_KUMAR this has been asked and explained many times and once more.
- Take Backup
- get Elemental-X kernel (see development section and download correct one )
- flash with TWRP
- get latest SuperSU : SuperSU
- now you can follow same guide of MM from step 5 : Guide
Don't Forget to Take Backup..
Click to expand...
Click to collapse
How to take backup and restore it. I flashed twrp image. Before rebooting twrp works fine. But after rebooting i am not able to open twrp. I think it got removed.
ADITYA_KUMAR said:
How to take backup and restore it. I flashed twrp image. Before rebooting twrp works fine. But after rebooting i am not able to open twrp. I think it got removed.
Click to expand...
Click to collapse
What happens if you select Recovery from Bootloader ? Is it booting in Stock Recovery ?
In TWRP go to Backup and make backup of /system /data /boot.
If anything bad happens while flashing/Rooting then you can restore it.
The first time, you must open TWRP from the bootloader directly or the recovery gets overwritten.
For rooting, you can flash Magisk instead of flashing SuperSu. Other steps remain exactly the same.
____Mdd said:
What happens if you select Recovery from Bootloader ? Is it booting in Stock Recovery ?
In TWRP go to Backup and make backup of /system /data /boot.
If anything bad happens while flashing/Rooting then you can restore it.
Click to expand...
Click to collapse
When i booted into recovery mode. It shows no command.
ADITYA_KUMAR said:
When i booted into recovery mode. It shows no command.
Click to expand...
Click to collapse
That's stock Recovery, you need to flash TWRP again.
____Mdd said:
That's stock Recovery, you need to flash TWRP again.
Click to expand...
Click to collapse
I flashed twrp 2 times. But every time i restarted my phone it removed automatically.
ADITYA_KUMAR said:
I flashed twrp 2 times. But every time i restarted my phone it removed automatically.
Click to expand...
Click to collapse
Did you flashed TWRP and with the next command booted immediately into twrp?
strongst said:
Did you flashed TWRP and with the next command booted immediately into twrp?
Click to expand...
Click to collapse
Commands used:
Fastboot flash recovery name.img
It gives output as image not signed or corrupt.
After that i typed command fastboot reboot bootloader.
I open recovery mode. It opens twrp. But after i restart my phone. It automatically removes the twrp.
ADITYA_KUMAR said:
Commands used:
Fastboot flash recovery name.img
It gives output as image not signed or corrupt.
After that i typed command fastboot reboot bootloader.
I open recovery mode. It opens twrp. But after i restart my phone. It automatically removes the twrp.
Click to expand...
Click to collapse
This is your problem. You must open recovery from the bootloader menu the very first time. Or TWRP is overwritten with stock recovery. I don't know why that is. But that is how it is...
baunthiyal said:
This is your problem. You must open recovery from the bootloader menu the very first time. Or TWRP is overwritten with stock recovery. I don't know why that is. But that is how it is...
Click to expand...
Click to collapse
It means that i don't have to run the fasboot reboot bootloader command and after finishing the flashing i have to open the recovery mode directly?
Yes
ADITYA_KUMAR said:
It means that i don't have to run the fasboot reboot bootloader command and after finishing the flashing i have to open the recovery mode directly?
Click to expand...
Click to collapse
Reboot into bootloader.
Flash recovery - fastboot flash recovery twrp-xxx.img
Open recovery from bootloader menu (by using the volume and power buttons)
From there you can reboot and your recovery will work normally after this, most probably.
baunthiyal said:
Reboot into bootloader.
Flash recovery - fastboot flash recovery twrp-xxx.img
Open recovery from bootloader menu (by using the volume and power buttons)
From there you can reboot and your recovery will work normally after this, most probably.
Click to expand...
Click to collapse
I need to root my stock nougat( june version).What should i do after that.
I'll tell you what I did.
1. Flash Elemental Ex kernel. https://forum.xda-developers.com/moto-g4-plus/development/kernel-elementalx-g4-0-01-t3424836
2. Flash Magisk. https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
baunthiyal said:
Reboot into bootloader.
Flash recovery - fastboot flash recovery twrp-xxx.img
Open recovery from bootloader menu (by using the volume and power buttons)
From there you can reboot and your recovery will work normally after this, most probably.
Click to expand...
Click to collapse
It didn't work. I flashed twrp. I opened recovery mode by using volume down to scroll to recovery mode and power button to select it. I booted in twrp mode and rebooted system from there. After that i power off my phone and tried to open twrp again, but it is showing no commands only. I didn't boot into twrp again.
ADITYA_KUMAR said:
It didn't work. I flashed twrp. I opened recovery mode by using volume down to scroll to recovery mode and power button to select it. I booted in twrp mode and rebooted system from there. After that i power off my phone and tried to open twrp again, but it is showing no commands only. I didn't boot into twrp again.
Click to expand...
Click to collapse
Try commands,
fastboot oem fb_mode_set
fastboot flash recovery name.img
Fastboot oem fb_mode_clear
Then directly boot into recovery,
Then again boot into recovery through twrp itself (there is option for it in reboot) or try anything.
Thank you guys i successfully rooted my moto g4 plus(xt1643)

flashing oneplus one

howto flash the one without working volume controls??
is this possible?
Yes, it is possible. LineageOS has an option to boot to recovery or fastboot via the standard reboot dialogue.
You can also use adb commands "adb reboot recovery" or "adb reboot fastboot".
kekerosberg said:
Yes, it is possible. LineageOS has an option to boot to recovery or fastboot via the standard reboot dialogue.
You can also use adb commands "adb reboot recovery" or "adb reboot fastboot".
Click to expand...
Click to collapse
thanks for the reply. is there any manual to do so?
for im´m an absolute newbie on this. adb and faastboot are installed on my ubuntu machine.
Depends on what you are trying to accomplish.
Flash TWRP recovery? You may also use LineageOS recovery instead of TWRP if you want. Follow their instructions https://twrp.me/oneplus/oneplusone.html
Flash LineageOS? Follow the wiki instructions https://wiki.lineageos.org/devices/bacon/install
Beware that unlocking the bootloader will erase all data on the phone.
kekerosberg said:
Yes, it is possible. LineageOS has an option to boot to recovery or fastboot via the standard reboot dialogue.
You can also use adb commands "adb reboot recovery" or "adb reboot fastboot".
Click to expand...
Click to collapse
yes i tried but failed because in the last step i had to reboot in recovery with the volume control and start button, because at that point iḿ in fastboot mode and adb reboot recovery won work?!
yes i tried but i failed because in the last step i had to reboot in recovery with the volume control and start button, because at that point i'm in fastboot mode and adb reboot recovery won't work?!
While in fastboot mode, you may boot into recovery using "fastboot reboot recovery". Almost there, good luck!
kekerosberg said:
While in fastboot mode, you may boot into recovery using "fastboot reboot recovery". Almost there, good luck!
Click to expand...
Click to collapse
doesn't work on my ubuntu machine. "unkown rebbot target recvery..
i tried .guess i check it on my win machine.
You can also reboot to recovery from within the OS by using "adb reboot recovery". It should work if you were able to reboot to fastboot using this method.
unfortunately it does not work while being in fastboot mode.
adb says device 'null'not found..
Yes, you are supposed to use adb from whatever OS you have installed, CM, CyanogenOS, LOS, ...
but?
is flashing possible without being in fastboot mode? just using adb?
I understood that you had already flashed the recovery. Now you need to boot into the recovery to flash an OS.
Fastboot is used to flash the recovery.
Recovery is used to flash the OS.
yes i think that's it and therefore i had to reboot to recovery without working controls..
koeskemc said:
yes i think that's it and therefore i had to reboot to recovery without working controls..
Click to expand...
Click to collapse
any idea?
kekerosberg said:
I understood that you had already flashed the recovery. Now you need to boot into the recovery to flash an OS.
Fastboot is used to flash the recovery.
Recovery is used to flash the OS.
Click to expand...
Click to collapse
yes, and that's my prob how to boot into recovery without using any controls?
or is there another way?e.g adb sideload??
You have a working operating system installed? Cyanogenmod, LineageOS or something similar?
Use the power button to boot into the operating system. Then connect the phone to your PC and "adb reboot recovery".
hello again.
i got a new prob. i've istalled twrp(don know how!)
with terp i imstalled lineage 18.1...zip.
but after booting i alwasy get twrp and not the os.
whats my fault
or do ihavr to istall the .img file??instead of.zip?
hello again,
everything's fine so far. i got lineage os on boot up! but how to get back to twrp again to install gapps??

Categories

Resources