Project

General

Profile

Actions

Issue #969

closed

Factory reset doesn't function on encrypted devices.

Added by Richard "Cylus" Palmer over 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Category:
Framework
Target version:
Start date:
09/19/2014
Due date:
% Done:

0%

Estimated time:
Resolution:
invalid
Device:
Galaxy S 3 (I9300)
Grant:
Type of work:

Description

When attempting to perform a factory reset from the version of ClockworkMod distributed on the Replicant site, the reset will fail on encrypted devices, saying that /data cannot be mounted (as ClockworkMod doesn't have the decryption key). When trying to perform a factory reset from Replicant, Replicant reboots into ClockworkMod, which still can't preform the reset. However, when sent over from Replicant, the reset silently fails.

In either of these cases, the correct behavior would be to format the partition instead of trying to mount it and delete its files, but that does not happen.

I don't know if all GT-I9300s have the same partition sizes and layout, but for my device's drive setup, running this was necessary to perform the actual reset:

adb shell mke2fs -t ext4 /dev/block/mmcblk0p12 3022844

Actions

Also available in: Atom PDF