Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
39 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 ...
Caleb's user avatar
  • 1,964
34 votes

What do the terms "BL", "AP", "CP", and "CSC" mean in Odin?

CSC (Consumer Software Customization): It is specific to geographical region and carriers. It contains the software packages specific to that region, carrier branding and APN setting. PIT (Partition ...
user228145's user avatar
22 votes

Flashing Nexus 5 factory image fails on writing userdata

I encounter the same problem today :) flash-all script failed when writing userdata I have managed to solve this issue by manually continue the flashing process: 1) extract image-hammerhead-m4b30z....
kover's user avatar
  • 321
20 votes

What do the terms "BL", "AP", "CP", and "CSC" mean in Odin?

According to this XDA-Developers forum post and this Droidguiding article: BL stands for bootloader AP represents the system partition (possibly stands for Android partition); under previous Odin ...
Exercise To The Reader's user avatar
16 votes

How to unpack and edit boot.img for ROM porting?

Tools selection The method I present here relies on CyanogenMod's Android source code. While Google's AOSP only provides the tool to build the boot.img file, CyanogenMod also adds the unpackbootimg ...
WhiteWinterWolf's user avatar
12 votes
Accepted

How to flash Android O image in Moto G4 Plus

I'll supplement the answer of @beeshyams: since Android O is still in Dev Preview phase, the source code is still incomplete, and no custom ROM (LineageOS, etc.) could even base their work off it. ...
Andy Yan's user avatar
  • 9,539
11 votes
Accepted

What is the difference between Factory Images and Full OTA Images on the Android download site?

Factory images are meant to be flashed using fastboot or alternative low-level tools or environment. They come with batch and shell scripts to automate flashing. Flashing them requires a device's ...
Firelord's user avatar
  • 25.1k
10 votes

Why is there no option to choose size in TWRP's resize partition feature?

First to clarify, Resize Partition is different than Resize File System, TWRP provides latter option. It resizes the ext2/3/4 filesystem to the size of partition it's created on. Filesystem size can ...
Irfan Latif's user avatar
  • 20.6k
8 votes

How to flash Android O image in Moto G4 Plus

Impossible If Moto themselves did not update your device, there is no way you can obtain an authentic system image. Even when your device is updated, Motorola is very slow to update the latest image ...
beeshyams's user avatar
  • 41k
8 votes
Accepted

TWRP: Failed to mount '/data'

What you need to do is remove Crypto on Data To do that, in TWRP Settings Format Data Type "yes" Done
Evan Carroll's user avatar
  • 4,277
7 votes
Accepted

How to solve Android 7.1 flash failure with remote data too large?

Turns out that some old adb tooling was in my PATH variable, so I was using an old version of fastboot.. It all worked well when I used the right version! Will accept this as an answer in 2 days.
Michel's user avatar
  • 191
6 votes

Unable to Install TWRP / Cyanogenmod on Moto G 2013

As it's obviously the stock recovery you've used to flash CM, that won't work as it will do a signature check and thus reject the ZIP as being invalid. So here's what you do instead: put cm-12.1-...
Izzy's user avatar
  • 91.1k
6 votes
Accepted

Android device load process (preparing flashing)

Boot process of Android devices up to kernel stage is very vendor specific, device specific and contains mostly closed source code. You may see clear deviations of terminologies used and differences ...
Irfan Latif's user avatar
  • 20.6k
5 votes

What folder does cyanogenmod store its updates?

On LineageOS (the new Cyanogenmod in 2017) it is in /data/data/org.lineageos.updater/app_updates/
vinyll's user avatar
  • 151
5 votes
Accepted

Cheating KNOX by cracking stock ROM certificate

If it was that simple it would have been broken long back. Knox is almost fool proof and prevents any such attempts Samsung KNOX addresses security using a comprehensive, hardware-rooted trusted ...
beeshyams's user avatar
  • 41k
5 votes
Accepted

init: cannot execve('/system/bin/custom.sh'): Permission denied

As evident from init source code: ... static bool ExpandArgsAndExecv(const std::vector<std::string>& args) { ... return execv(c_strings[0], c_strings.data()) == 0; } ... if (...
Irfan Latif's user avatar
  • 20.6k
4 votes

"com.android.phone has stopped" after dirty flashing CM13

I tried Sebastian's solution, but the error persisted. The accepted answer results in losing all your SMS, therefore was not an option for me. However, after booting into recovery mode and deleting ...
gedenkt's user avatar
  • 41
4 votes

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

One effective way with Heimdall is to just run sudo heimdall flash --RECOVERY twrp.img Worked for me on an S3 AT&T Then when phone reboots, go into recovery via adb reboot recovery
KhoPhi's user avatar
  • 624
4 votes
Accepted

Error when flashing recovery to Moto G4 Plus Xt1640 - Image not signed or corrupt

Yeah, I had the same error. The US XT1644 variant can't use the boot.img for the XT1643 and below. I was able to root by installing SuperSU. Run this command: fastboot boot twrp-3.0.2-0-athene.img ...
jack's user avatar
  • 56
4 votes

Where does the term flashing come from?

ROM is a short for read-only memory. Nowadays, it is often a writable memory that is not written in normal operation. In past days, it used to be rather EPROM/EEPROM. The term flashing probably comes ...
v6ak's user avatar
  • 1,165
4 votes
Accepted

Is my Android device booting into a "stealth" partition?

Seems I’ve found the answer at https://andi34.github.io/faq.html Quote: I can't change my rom, wipe / format doesn't work. Nothing changed after flashing with Odin. 16 GB Tab 2 have a known ...
e-sushi's user avatar
  • 201
4 votes

Can't flash custom TWRP recovery image on Motorola Moto G7 Power phone

G7 Power, being a new device, has the new A/B partition layout, requiring new installation procedures that differ from standard A-only devices. This is clearly outlined in the thread where you got ...
Andy Yan's user avatar
  • 9,539
4 votes
Accepted

How to boot system-as-root device always as rooted?

If you go through How Magisk works and How to manually root a phone it would be easy for you to figure out why it's impossible to achieve what you are looking for. init is the very first process ...
Irfan Latif's user avatar
  • 20.6k
4 votes
Accepted

Can I flash Android on device with overwritten mmcblk0?

/dev/mmcblk0 is whole MMC storage chip which includes GUID partition table (GPT) and all partitions. On Android devices some of these eMMC partitions hold bootloaders (like sbl, aboot on Qualcomm ...
Irfan Latif's user avatar
  • 20.6k
4 votes

Sahara fail while trying to flash a rom into my phone

See here how I solved this problem. Somehow Windows is blocking the flashing of the device, that's why the sahara error occurs. https://superuser.com/questions/1538067/cannot-flash-qualcomm-with-...
BogisW's user avatar
  • 241
4 votes
Accepted

How to create filesystem in TWRP? Getting error: "Unable to format to remove encryption"

I had the same problem, and what worked for me, I formatted it from command line, so while in fastboot mode I typed: fastboot format userdata Then I flashed TWRP and rebooted into it and the files in ...
Robert Tattorn's user avatar
4 votes
Accepted

How to flash custom or stock ROM with Odin mode working? (from a bad flashed Galaxy A20, see image)

Flashing the correct img solved the problem: heimdall flash --RECOVERY TWRP-3.3.1.0_A20_V1.2_by_Agrim720\[Black-themed\].img.img File was found here: XDA-forum Device: A205GUBU4ASK2 Previously ...
dawid's user avatar
  • 220
4 votes
Accepted

Is it possible to create an operating system other than Android for Android devices?

Something like a secondary bootloader. Is that possible? Yes it's possible. As you mentioned, since the boot chain up to bootloader stage is closed source and binaries are signed with OEM's private ...
Irfan Latif's user avatar
  • 20.6k
4 votes
Accepted

/system/etc/ld.config.version_identifier.txt not found and how to check for VNDK compliancy

Instead of the path /system/etc/ld.config.version_identifier.txt On Google Pixel 1 (Sailfish) use /system/etc/ld.config.vndk_lite.txt - this probably will work for other devices on Android 10 and ...
Mark's user avatar
  • 435
3 votes

(Why) is it required to flash in order to install Google Play on CyanogenMod?

As can be seen here, an answer has already been found. It appears that the only thing that justifies an installation as system app, for the Google Apps, is to make them unable to be uninstalled via ...
Grimoire's user avatar
  • 2,959

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