33 votes
Accepted

How can I reboot into recovery from fastboot?

(Self answering here because I only found this answer after hours of dredging through 200 page threads of forum posts.) There are two non-standard but semi-prevalent methods that may work depending ...
user avatar
  • 1,845
28 votes
Accepted

After flashing TWRP with Odin, nothing happens and the OEM recovery is still there

Before you flash the recovery, untick the Auto Reboot option in ODIN. Then flash the recovery. After flashing in done, reboot your device directly to recovery mode from download mode by pressing Vol ...
user avatar
23 votes
Accepted

Difference between installing SuperSU using Play Store versus a custom recovery that installs it from a file?

Root access (typically) requires several components that work in concert with one another. A somewhat simplified view of what you need is: A native su binary. This can be invoked from the command ...
user avatar
  • 36.5k
14 votes

How to flash a custom recovery with heimdall (without touching the main system)?

It depends on your PIT partition file. Before you do anything using heimdall, print the partition table of your phone. sudo heimdall print-pit The output of the file is the location assigned to ...
user avatar
  • 141
14 votes

Removing encryption from recovery

The answer for me involved a number of things, but I think one is really the key. Use the "recovery" Command, bro This uses CyanogenMod's/AOSP's recovery program to wipe the user data and disable ...
user avatar
  • 2,492
14 votes
Accepted

Entering safe mode from adb shell

Note: The solution is tested on Android 4.2.1, 5.0.2 and 5.1.1. The value for the system property persist.sys.safemode determines whether the phone should boot into safe mode or in normal mode. ...
user avatar
  • 23.6k
12 votes
Accepted

Why can't I write to recovery using fastboot on A/B device?

That's expected. Devices with A/B partition scheme don't have a recovery partition. You can only boot in recovery mode with fastboot boot twrp.img. But to permanently flash recovery to device which ...
user avatar
  • 17.9k
11 votes

Removing encryption from recovery

On my Moto G 3rd Gen (osprey), neither calling recovery nor wiping LUKS header (at start and end of partition) worked - I still needed to enter the encryption password during Cyanogen Mod bootup, then ...
user avatar
  • 111
11 votes

Is there a way to root an Android phone without unlocking the bootloader?

This can be marked a duplicate of questions like this, but it's a device-specific question. It cannot be answered in a generic way, should be “How to root XYZ Android device without unlocking ...
user avatar
  • 17.9k
10 votes

Can we backup the stock recovery.img in any way?

EXTRACTING BOOT.IMG FROM STOCK ROM or OTHER IMG LIKE RECOVERY ETC. REQUIREMENT: 1. Download adb required tools. 2. PC 3. Phone Drivers (for other phones google it out) for spreadtrum phones:...
user avatar
  • 759
10 votes

After flashing TWRP with Odin, nothing happens and the OEM recovery is still there

Per this page, WARNING: Do not boot into Samsung's ROM without first applying our Root .zip. Samsung's OTA updates install /system/etc/install-recovery.sh and /system/recovery-from-boot.p, which ...
user avatar
  • 3,805
9 votes
Accepted

How to enable USB Debugging in Android if forgotten pattern for screen-unlock?

Details for that can be found in our usb-debugging tag-wiki (where I've just added them): By default, USB debugging is disabled with stock ROMs (some custom ROMs however have it enabled by default)....
user avatar
  • 89.2k
8 votes

How to check if your bootloader is unlocked

Assuming your device adheres to some Android standards, you'd want to run fastboot oem device-info. Often you can also run fastboot reboot-bootloader to get into the bootloader which often says right ...
user avatar
  • 1,234
7 votes
Accepted

Is there a way to get a disk image of the user storage space on modern Android devices?

After doing some more research, I think I've found a partial solution here: http://forum.xda-developers.com/showthread.php?t=2450045 First, you need to get ADB set up on your computer. In Linux it's ...
user avatar
  • 161
7 votes

What does rooting, bootloader, twrp and recovery mean?

Bootloader The low level implementation of a system which can be used to flash software onto your phone's partitions. Often used to flash root privileges or Stock Roms. Recovery The recovery is ...
user avatar
  • 1,823
7 votes
Accepted

Recover Android system with TWRP Recovery

Looking at the installation instructions of the ROM you flashed, I am guessing in the TWRP/ CWM options, under Advanced Wipe , one of the options " Wipe Dalvik Cache, Cache, System and Data " (likely ...
user avatar
  • 37.9k
7 votes
Accepted

If I reset my phone, will it also TRIM the fragmented eMMC?

Android supports fstrim but it only works if the phone is idle for a long time while charging It's not so. On newer versions, Android runs fstrim with a daily schedule, provided that the conditions ...
user avatar
  • 17.9k
6 votes

how to add a custom lock for the recovery and/or bootloader?

Encrypt your filesystem. You'll need to enter a password or PIN on every boot to decrypt it, so as soon as the device is rebooted none of your personal data will be readable. TWRP even supports ...
user avatar
6 votes

How to check if your bootloader is unlocked

i'm no expert, but if you go to the bootloader, by (on my nexus 4) holding volume down then power up, then it says
user avatar
  • 512
6 votes
Accepted

corrupted /data partition?

Try doing what it suggests... run e2fsck -b 8193 /dev/block/platform/msm_sdcc.1/by-name/userdata. If that doesn't work, try running mke2fs /dev/block/platform/msm_sdcc.1/by-name/userdata. You can ...
user avatar
  • 716
6 votes
Accepted

Installing TWRP on a Samsung device, no fastboot (using ADB or other ways)

There is no fastboot mode on Samsung. You must use the ODIN mode, which is an alternative to fastboot. On Linux there is a client application called Heimdall which talks to phones via Odin mode. So ...
user avatar
  • 725
6 votes
Accepted

Is a factory reset from recovery different from one started in the OS?

There is only one difference — on Lollipop and higher, a factory reset from Settings will remove Factory Reset Protection from your device. It will ask you to enter your device and/or Google ...
user avatar
  • 50.3k
6 votes
Accepted

ADB app uninstall from bootloader

No, it is not possible to remove the app from bootloader. ADB daemon is not running in the device in that tiny environment when the device is in fastboot mode and stock recovery doesn't offer shell ...
user avatar
  • 23.6k
6 votes

Samsung 4 left in rain and now black screen - can i recover files?

If you know for sure your phone can be powered on, then there might just be another doable (albeit technical) way. I've extracted photos and contacts from another S4 of my classmate a while ago using ...
user avatar
  • 9,372
6 votes
Accepted

Will trying to flash an unofficial update with stock recovery harm my device?

Stock recovery should just fail, it will look for a digitally signed package from the manufacturer, not find it, and error out without making changes. If the developer who made the package ...
user avatar
  • 5,836
5 votes

Is there a way to get a disk image of the user storage space on modern Android devices?

Joshua pretty much answered the question. However, Izzy gave extra insight to tackle them odd/rare variations of the same problem. I would like to contribute (my first contribution post in over 10 ...
user avatar
  • 51
5 votes

Removing encryption from recovery

Provided that you're using TWRP or similar. reboot to TWRP (enter password), and make a backup of Data partition to external SD or OTG Drive reboot to TWRP (cancel password), and format Data ...
user avatar
5 votes

How to enable USB Debugging in Android if forgotten pattern for screen-unlock?

Based on OP's clarification done in the comments below Izzy's answer, I propose the following solution if one's device is locked out and ADB is not enabled under Settings. Note that this method is ...
user avatar
  • 23.6k
5 votes
Accepted

What does rooting, bootloader, twrp and recovery mean?

Ahh, since you have no knowledge regarding rooting and all I'll just explain in the simplest form. Imagine that you have bought a laptop from HP which Congress preloaded with a windows installation ...
user avatar
  • 292
5 votes
Accepted

Stock recovery can flash root packages and custom recovery ZIPs but not custom ROMs

Now, you should be clear on 2 things: All flashable packages are signed. They can be stock OTA zips, root packages or even custom recovery or ROM zips. So what is the difference between the "signed"...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible