Mounting partitions in TWRP as RW for dynamic partitioned devices

Last update : 3/8/2024 (Samsung Galaxy S9 enters the list)

Intro

This is the (slightly) more detailed version of the 23/8/2021 blogpost where I talked about mounting partitions in TWRP as RW for dynamic partitioned phones like the X3P.

Here's hoping Android upgrades won't fuck stuff up even worse...

Guide

  1. Boot to TWRP (or whatever TWRP-based recovery you get), if you haven't booted already.
  2. In TWRP, enter Mount & tick (mount) the partitions you want to mount as RW. At this moment, the partitions will be mounted as RO, but it's fine - it'll change on the next step.
  3. Where this Mount option depends on whatever recovery you use (unless it's LineageOS recovery or something based off that; in which case you can't), so take your time discovering this option.

  4. Browse to Advanced > Terminal, & enter "mount -o rw,remount [partition to modify]"
  5. Here's some examples for the partitions :

  6. Edit your system files as you please - copy, cut, delete, whatever.

Tested devices list

Success (TWRP mounts partitions as RO, but can be mounted as RW with this guide)

No testing needed (due to lack of dynamic partition & TWRP mounts partitions as RW in A11 & beyond; make sure mount system partition read-only setting is unchecked if available)

No testing needed (dynamic partitions)

Fail (TWRP unable to mount partition)

Untested for now

Index - Cellphone

Main Page