How to flash twrp persistently without working home button? - Galaxy S6 Q&A, Help & Troubleshooting

Hi,
I have an galaxy s6 with broken home button. I want to install lineageos, so the phone can be used with more current security updates.
I managed to use adb to boot to stock recovery or download mode, when the device is booted via usb debugging.
So I flashed twrp via odin. In Odin I found no option to boot into recovery after flashing.
On first reboot stock rom will replace twrp with the stock rom. So normally I need to enter twrp directly after flashing by using Vol Up + Home + Power.
Is there any way to prevent stock rom from replacing twrp?
Or any Idea how to enter twrp directly after flashing without the use of the home button?
Thanks a lot,
Butch

I guess, you could use adb commands to reboot into recovery.

yes, but I only managed it, when the phone is up and running via USB debugging. Is there any way To send adb command when the phone is off?
I am not familiar with fastboot, but it sounds like the phone is not booted to android when sending fastboot command. Is there a way to fastboot to recovery?

Related

[Q] P3100 Unlock Bootloader, FastBoot, Modes

I apologize if I have understood this all incorrectly, but kindly clarify the following for me.
What I have already done:
1. Installed CWM (ClockWorkMod) on the tablet: Galaxy Tab 2 7.0 using Odin
2. Installed the rooting zip file from external sd
3. Made a backup image on an external sd
What I need to do:
1. Flash a custom ROM onto the device from my PC using fastboot
Errors:
1. Fastboot devices returns nothing (absolutely no response... please find the attached pic)
2. Adb reboot bootloader - just reboots the OS (not in fastboot)
3. Fastboot oem unlock says waiting for device endlessly.
My Queries:
1.I have a recovery mode and download mode (aka odin mode). Is either of them the FASTBOOT mode or is fastboot something completely different. If so how to get into FASTBOOT mode??
I read I have to get a USB icon and a Fastboot mode display on screen. I do not.
2. Why is my device not showing under fastboot devices (on download mode, neither show the device.), but adb devices shows the device under recovery mode
3. Is it possible to flash a ROM using fastboot if I have CWM installed. Or does CWM disable fastboot?
4. Also does this device have a Fastboot mode at all? If yes how to get into Fastboot mode??
From what I've read here, there is no fastboot mode on the Tabs.
Balthazar B said:
From what I've read here, there is no fastboot mode on the Tabs.
Click to expand...
Click to collapse
In that case, how do I flash a custom ROM onto the device?
Thanks!
rtindru said:
In that case, how do I flash a custom ROM onto the device?
Thanks!
Click to expand...
Click to collapse
load it on your external sdcard, boot into cwm and do a fullwipe/factory reset then install the zip from sdcard. poof, rom installed
to boot into cwm, turn off the tablet.
press and hold power and volume down (the one closes to power button) once the samsung tablet logo appears let go of power and continue holding vol down until cwm appears (this can take a couple minutes)
Thanks then!
Darunion said:
load it on your external sdcard, boot into cwm and do a fullwipe/factory reset then install the zip from sdcard. poof, rom installed
to boot into cwm, turn off the tablet.
press and hold power and volume down (the one closes to power button) once the samsung tablet logo appears let go of power and continue holding vol down until cwm appears (this can take a couple minutes)
Click to expand...
Click to collapse
Well thanks for the info.

I can't install clockworkmod recovery on nexus s 4g

I rooted my NS4G running stock ics but I get an error when try to flash cwm recovery using ROM Manager. Any advise, I need help please.thanks
Galaxy Note
I'm assuming you unlocked via fastboot? You might be better off flashing the recovery image through there instead. You'll have better luck that way:
Snag the recovery image from here
Make sure the file is in the same location as adb. Turn your phone off and then power it on to the bootloader screen (pwr + vol up). Once there, open your command prompt, attach the phone via USB, and type fastboot devices to make sure your phone is recognized. Once you're okay there, proceed to type
fastboot flash recovery recovery-clockwork-5.0.2.0-crespo4g.img, this is assuming you haven't changed the name of the image. You can copy it and paste it as well.
Once you get the recovery image flashed, you'll need to ensure that the stock recovery doesn't replace CWM. Steps can be found in
This post
HTH

[Nexus 5] TWRP Install No Root

Hi,
Is it possible to install TWRP v3.0.0.0 on a LG Nexus 5 HAMMERHEAD v6.0.1 (MMB29Q) without rooting? Not that it's something I absolutely need to do but by browsing through different sites and tutorials, it seems possible although my own tests prove the contrary...
Firstly, on TWRP official website, it's written that you can:
Fastboot Install Method (No Root Required):
You will need the platform-tools from the Android SDK on your computer. Find the SDK Only section on the page linked and install the SDK and download only the platform-tools to get adb and fastboot binaries.
Windows users will need proper drivers installed on your computer. You can try the Naked ADB drivers or the Universal ADB drivers if you don't already have a working driver installed
On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
adb reboot bootloader
You should now be in fastboot mode. Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:
fastboot flash recovery twrp.img
fastboot reboot
Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
Click to expand...
Click to collapse
I tried this method but it didn't work at all:
After typing fastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP.
Click to expand...
Click to collapse
Even I booted directly to TWRP recovery mode after I manually flashed it, it obviously didn't patched the stock ROM since after I later booted the phone normally in Android system and rebooted in recovery mode, the stock recovery mode was back, no TWRP!
Secondly, when I used Nexus Root Toolkit (NRT) v2.1.4, I had no choice but to root if I wanted to flash the custom recovery (TWRP). I successfully rooted and installed TWRP permanently using the tool.
Therefore, is installing TWRP without rooting some kind of myth that maybe worked with previous Android build and TWRP versions or is there actually really a way to do so?
I just did it yesterday on the March patch but had to flash twrp twice. The first time it bypassed recovery and booted into the os. After booting back into the bootloader and flashing twrp again it did boot into twrp.
Sent from my Nexus 5X using XDA Free mobile app
To install TWRP, the phone needs to have an unlocked bootloader, not root.
You can flash TWRP using fastboot commands. After flashing TWRP in fastboot, use the volume and power button to boot directly into recovery.

Mi4c wont boot twrp anymore

SUMMARY OF PROBLEM WHAT HAPPENED:
1.Flashed an miui 8 stable rom from xiaomi.eu not official rom so it shouldn't lock bootloader.
2.Cant boot into any recovery i just get miui boot up logo then then it turns off.
3.Cant root via kingroot and other root apps ect to flash twrp via flashify.
4. Cant manually enter fastboot due to damaged volume down button not working *(The plastic​ film. On the button ripped off)*
5.Don't know other way to enter fast boot please help!
:crying:
Fix your volume button first
By flashing MIUI you most likely updated your bootloader to nougat, which removed TWRP. You need to apply for xiaomi permission to unlock bootloader and then reflash TWRP in fastboot. If you can't go into fastboot you should be able to use ADB commands or a terminal app.
Edit: Terminal app requires root to reboot so that's not an option. I can't try adb because I don't have access to PC right now.

[GUIDE] [TA-1032] How to unlock bootloader, install TWRP and Magisk

Code:
TRY THIS AT YOUR OWN RISK! This could brick your phone. It shouldn't but it can. If you brick your phone, or anything stops working on your phone, YOU are responsible.
Reboot combinations:
Fastboot: Shutdown and with USB cable hold power and volume down until it says FASTBOOT MODE at the bottom
Recovery: Shutdown and with USB cable hold power and volume down until the
Code:
Please release key to power off *
dissapears.
Unlocking Bootloader
Code:
Note: This will delete all user data! Backup all your data before doing this!
This part of the guide is part of the tutorial made by @Arin59 at https://forum.xda-developers.com/nokia-3/how-to/method-to-unlock-bootloader-nokia-3-pie-t4012285
First of all convert your serial number (should look like NE1*************) to MD5 Hash and enable OEM Unlock in developer options.
Then reboot to fastboot and type
Code:
fastboot oem key {HASH}
then type
Code:
fastboot flashing unlock
.
To reboot to Android, run fastboot reboot.
Installing TWRP
Code:
This will delete your user data, but it should be already deleted.
You can use any TWRP image made for this device but I had the most success with https://forum.xda-developers.com/nokia-3/development/twrp-teamwin-recovery-nokia-3-t3762512 .
Flash your TWRP Image chosen with
Code:
fastboot flash recovery your-recovery-image.img
and then reboot to recovery.
In TWRP go to Wipe and then Format Data and type yes.
Install Magisk
Install Magisk normally.
< waiting for device >
I put the phone in fastboot mode and ran fastboot with the oem key md5 hash command but it just said "< waiting for device >". I think it might be because I forgot to install the Nokia 3 USB drivers. I'm using a linux computer, do I need to find OS specific drivers?
edit: And now my phone is stuck in fastboot mode and for some reason will not shutdown no matter how long I hold down the power button for.
Totalitor said:
I put the phone in fastboot mode and ran fastboot with the oem key md5 hash command but it just said "< waiting for device >". I think it might be because I forgot to install the Nokia 3 USB drivers. I'm using a linux computer, do I need to find OS specific drivers?
edit: And now my phone is stuck in fastboot mode and for some reason will not shutdown no matter how long I hold down the power button for.
Click to expand...
Click to collapse
If you're using a linux computer, you should try running the command with sudo.
If it doesn't work, try with another cable (or computer if it doesn't work) and try again.
#AC said:
If you're using a linux computer, you should try running the command with sudo.
If it doesn't work, try with another cable (or computer if it doesn't work) and try again.
Click to expand...
Click to collapse
Thanks. I've since got it working. For some reason I had to use the -i argument (the interface argument) along with the code for the device (0x2e04) "fastboot -i 0x2e04 <command>".
However, I've recently bypassed the "NO COMMAND" screen and gained access to TWRP custom recovery but in trying to shut down the phone, it shuts down fine but only boots up in fastboot mode. Even using the fastboot reboot command from adb tools boots it up in fastboot mode. This is a problem as I need to boot it in its normal mode so I can download the magisk.zip file required for installing magisk but I seem to be unable to do so.
Totalitor said:
Thanks. I've since got it working. For some reason I had to use the -i argument (the interface argument) along with the code for the device (0x2e04) "fastboot -i 0x2e04 <command>".
However, I've recently bypassed the "NO COMMAND" screen and gained access to TWRP custom recovery but in trying to shut down the phone, it shuts down fine but only boots up in fastboot mode. Even using the fastboot reboot command from adb tools boots it up in fastboot mode. This is a problem as I need to boot it in its normal mode so I can download the magisk.zip file required for installing magisk but I seem to be unable to do so.
Click to expand...
Click to collapse
Try holding volume up and down at the same time while holding the power button.
#AC said:
Try holding volume up and down at the same time while holding the power button.
Click to expand...
Click to collapse
Thanks, it worked.
Though I tried wiping, but it didn't solve the booting issue. Unsure how to proceed at this point. I feel like I've tried everything. Actually, I just checked my /boot folder and it's empty...is that why it's always booting into fastboot?
I tried using adb to sideload the magisk.zip file but then the phone rebooted into stock recovery??
Any and all guides on this say to download the magisk.apk either into the SD card or internal storage, but I don't have a micro SD card and I can't access the normal mode of the phone to download anything.
What can I do?
I've flashed TWRP successfully but forgot to download the magisk.apk. Now whenever I boot up my phone, it boots into stock recovery mode automatically, even if I tell TWRP to reboot into system it reboots into Stock Android recovery. I can still access TWRP by holding down the up + power buttons on boot though, but I can't access the normal mode of the phone anymore.
I tried using TWRP's sideload feature with ADB tools to sideload Magisk.zip and it said it succeeded but in using TWRP's install feature to find the zip file, it wasn't in /sideload/ or /storage/ as both were empty.
How can I temporarily restore normal functionality so I can simply download the Magisk manager.apk?

Categories

Resources