Reset Super Partition Layout (Fix Dynamic Partitions)
π²ππππ π΄ππππππππWarning β οΈ:
This script overwrites the super partition metadata. It does not wipe partition contents, but it resets the dynamic partition layout.
Use only if dynamic partitions are corrupted or flashing fails.
πΏStep 1: Boot into TWRP and open terminal
πΏStep 2: Run the wipe script
>In the terminal, type:
sh /sbin/wipe-super.sh
>Note:
By default, the script uses the bundled common super_empty.img.
To use your own image, place it inside the root of your internal storage.
OTG is also supported - if TWRP mounts your USB drive, you can place super_empty. img at the root of the OTG storage and the script will detect it.
πΏIf you want to verify view the log in terminal
>type:
cat /tmp/wipe-super.log
πΏHere's an example of logs to confirm if it's
>Successful:
wipe-super: starting
wipe-super: using /sbin/super_empty.img
0+1 records in
0+1 records out
5288 bytes (5.1 K) copied, 0.001684 s, 2.9 M/s
wipe-super: success
>Failure:
wipe-super: error - super_empty.img not found