[Closed] Universal SystemRW / SuperRW feat. MakeRW / ro2rw (read-only-2-read/write super partition converter)

Status
Not open for further replies.
Search This thread

Pachacouti

Senior Member
Jul 8, 2020
389
92
55
The Capital above the Lower one...
First post I see today deserves a response:

I place extracted systemrw_1.32 in my adb folder.

I right click on adb folder and select open cmd window here.

adb push systemrw_1.32 /data/local/tmp/systemrw_1.32

adb shell

su

chmod +x /data/local/tmp/systemrw_1.32/systemrw.sh

cd /data/local/tmp/systemrw_1.32

./systemrw.sh size=80

Let it do its thing. But at this point watch for where it stores your super_fixed.bin, because to save doing this again, you can

adb pull /data/local/tmp/systemrw_1.32/img/super_fixed.bin

Now reboot into fastboot, remember I'm on A-only, so I actually do this:

fastboot --disable-verity --disable-verification flash vbmeta vblankmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vblankmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_vendor vblankmeta.img
fastboot --disable-verity --disable-verification flash boot Magisk'd _Bootloader.img
fastboot --disable-verity --disable-verification flash recovery Magik'd_Recovery-TWRP.img

fastboot --disable-verity --disable-verification flash super super_fixed.bin

The vblankmeta is my own blanked vmeta, renamed to also wipe system and vendor...

Now, after doing this I can:

Rellash stock bootloader, load Twrp to recovery, flash a zipped magisk, reboot, and up until magisk FORCED update can in fact read and write to system, but cant SU in GUI because magisk wants the internet to GIVE su (why adb shell su freezes...) and the update put's magisk in charge, removing the rw access we have, to the super (allowing rw system/vendor) to begin with, and how does it do it?

John wu thinks system is ro.

I would stop concentrating on system/vendor partitions, that are ro, and concentrate on a new way to load linux... boot it from the beginning of SUPER.img.

To the SUPER directory!!! instead of SYSTEM!


(A only cannot SEE sytem, fastboot cannot WIPE system, but I can flash and wipe super...!)

ooops... running away here... but all you read I learnt using this script to see I can access the system rw, but only in twrp...

If twrp can su from recovery, all else can be wiped, and reflashed with whatever else.
 

KimNatorz

New member
Sep 21, 2021
1
1
Thank u so much.. it's working on Redmi note 10.. I really wanted to install Dolby Atmos but failed because the file system is read only
 

Attachments

  • Screenshot_2021-09-22-01-44-01-377_jackpal.androidterm.jpg
    Screenshot_2021-09-22-01-44-01-377_jackpal.androidterm.jpg
    152 KB · Views: 47
  • Screenshot_2021-09-22-02-00-43-400_com.estrongs.android.pop.jpg
    Screenshot_2021-09-22-02-00-43-400_com.estrongs.android.pop.jpg
    698.3 KB · Views: 51
  • Screenshot_2021-09-22-01-50-46-886_com.topjohnwu.magisk.jpg
    Screenshot_2021-09-22-01-50-46-886_com.topjohnwu.magisk.jpg
    345.5 KB · Views: 51
  • Love
Reactions: lebigmac

Pachacouti

Senior Member
Jul 8, 2020
389
92
55
The Capital above the Lower one...
Thank u so much.. it's working on Redmi note 10.. I really wanted to install Dolby Atmos but failed because the file system is read only
To understand overlayfs is simple, you have an overlaid root. overlaid system symlinked to /

Root apps mostly fail just now, saying read only, because they look for /system, which is no longer the case, and so while you have root, since android 10_Q,

/system is actually conmtained WITHIN super, so dont expect fastboot to work, or root or twrp or... well, cheers magisk... nowt actually works in this a-only... rooted or not...

But hey, it feels good seeing that root in root checker... shame it means nowt with sysstem as root...
 

lebigmac

Account currently disabled
Jan 31, 2017
1,342
995
How can I use this, how do I connect the phone to the computer, and how do I put the script, I have lubuntu.
I try it from the zip with twrp, but it gives me the error 73. and it also does not work with the change of slot a and b.
Hi @Ricardo Cruz. Please send me your log files from this folder. Thanks.
/data/local/tmp/systemrw_1.32/log/

Here you can find official troubleshooting repair script instructions (Linux only).
 
Last edited:

lebigmac

Account currently disabled
Jan 31, 2017
1,342
995
Thank u so much.. it's working on Redmi note 10.. I really wanted to install Dolby Atmos but failed because the file system is read only
Hi @KimNatorz. Thanks for your feedback.
Please send me your log files from this folder and I will add you to list of successful devices on front page. Thanks.
/data/local/tmp/systemrw_1.32/log/

Enjoy a fully read/writeable device! (y)
 

Ricardo Cruz

Member
Sep 19, 2021
18
3
Motorola One Fusion+
Hola, [USER = 11816235] @Ricardo Cruz [/ USER]. Envíeme sus archivos de registro desde esta carpeta. Gracias.
/data/local/tmp/systemrw_1.32/log / [/ ICODE] Simplemente conecte el teléfono a la computadora usando un cable usb-c a usb-a. [URL='https://xdaforums.com/t/script-android-10-universal-mount-system-read-write-r-w.4247311/page-23#post-84901531'][B]Aquí[/B][/URL] puede encontrar las instrucciones oficiales del script de reparación de resolución de problemas (solo Linux). [/QUOTE] Hello, sorry for the delay, I imagine that these are the files that you ask me [/QUOTE]
 

Attachments

  • lpdump.txt
    1.6 KB · Views: 9
  • myargs.txt
    686 bytes · Views: 7
  • mylog.txt
    6.9 KB · Views: 7
  • Like
Reactions: lebigmac

Pablo_S

New member
Sep 22, 2021
1
0
Hola saludos! amigo soy nuevo por aqui tengo un Infinix hot 10 X682B quiero tener root eh visto demasiado tutorial en Youtube pero ninguno me da respuesta excepto un canal de una persona de la india que me dió a entrenar muy poco por su idioma obviamente hasta que me decidí a buscar en Google y encontré esta página donde me ví que era demasiado útil para mí problema quiero hacerlo por el método adb fastboot ya tengo algo de idea de cómo iniciar y conectar mi dispositivo pero no sé lo siguientes pasos de cómo instalarlo espero pueda ayudarme amigo se lo agradecería en el alma
 

lebigmac

Account currently disabled
Jan 31, 2017
1,342
995
Thanks @Ricardo Cruz your log looks good. Now run the included sysrw repair script in Linux while phone is connected through USB cable as described in the troubleshooting repair script instructions. Good luck!

Hola saludos! amigo soy nuevo por aqui tengo un Infinix hot 10 X682B quiero tener root eh visto demasiado tutorial en Youtube pero ninguno me da respuesta excepto un canal de una persona de la india que me dió a entrenar muy poco por su idioma obviamente hasta que me decidí a buscar en Google y encontré esta página donde me ví que era demasiado útil para mí problema quiero hacerlo por el método adb fastboot ya tengo algo de idea de cómo iniciar y conectar mi dispositivo pero no sé lo siguientes pasos de cómo instalarlo espero pueda ayudarme amigo se lo agradecería en el alma
Hello @Pablo_S please check first post in this forum thread for manual installation instructions. Good luck!
 

Ricardo Cruz

Member
Sep 19, 2021
18
3
Motorola One Fusion+
Thanks @Ricardo Cruz your log looks good. Now run the included sysrw repair script in Linux while phone is connected through USB cable as described in the troubleshooting repair script instructions. Good luck!


Hello @Pablo_S please check first post in this forum thread for manual installation instructions. Good luck!

Good morning, sorry I try to run sysrepair.sh, but nothing happens, the phone is off, in fastboot or I just connect it. I send you a screenshot of the script in lubuntu.
 

Attachments

  • Screenshot_2021-09-23_14-53-49.png
    Screenshot_2021-09-23_14-53-49.png
    164.5 KB · Views: 31

krasevalex

Member
Jun 10, 2019
13
17
60
Philadelphia
=== Moto G Power (2020) XT2041-4-SS FIRMWARE: Android 10 "SOFIA_RETAIL_QPMS30.80-109-5" ===
1)
systemrw_1.32 (./makesysrw.sh size=50) => error code 73 (either way auto or manual)
2)
sysrw_repair_v1.32 (USB stick Ubuntu Mate 21.4) => Successfully created patched super image at /media/ubuntu-mate/Drive-C/sysrw_repair/img/super_fixed.bin
3)
"fastboot flash super super_fixed.bin" (in FASTBOOTD) => was sent 8 sparses SUPER out of 8, no errors
4)
restarted phone => OK
5)
adb shell
su
mount -o remount,rw /
mount -o remount,rw /system
mount -o remount,rw /product
mount -o remount,rw /vendor
6)
weird things started appear...
build.prop 0 Kb and copying saved earlier file build.prop to /system does not help it stays empty... I could change permissions in properties but it didn't help build.prop empty and nothing I could do... I repeated system rw remount but now I started getting bad returns like "mount: '/system' not in /proc/mounts" as I never flashed rw super image...
7)
flashed super image again in FASTBOOTD => same results: build.prop empty and nothing you can do with it
8)
flashed super image again now just in BOOTLOADER but weirdly in bootloader there were only 6 sparses SUPER out of 6 (in FASTBOOTD there were 8 sparses out of 8) => same results: build.prop empty and nothing you can do with it
9)
flashed and restored my FIRMWARE: SOFIA_RETAIL_QPMS30.80-109-5 (without erasing: boot, recovery, metadata and user data partitions) phone is fine but ROOT the same RO :(

-----------------------------------------
P.S. I was afraid to flash SUPER to slots A and B like:
fastboot flash super_a super_fixed.bin
fastboot flash super_b super_fixed.bin

and I didn't do it even though I remember some guy mentioned that it helped with two slots...

I didn't take a chance... :) I just got my phone back after being dead bricked from Motorola service... in the bricked phone i had perfect touch screen in TWRP (3.5.0_10) damn! in the phone of the same model they send me back TWRP touch screen does not work... (looks like the different drivers are set for the touch screen)
 
Last edited:

lebigmac

Account currently disabled
Jan 31, 2017
1,342
995
Good morning, sorry I try to run sysrepair.sh, but nothing happens, the phone is off, in fastboot or I just connect it. I send you a screenshot of the script in lubuntu.
Hi @Ricardo Cruz. Thanks for your feedback. It looks like your device is not recognized by adb?
ready and the script is active, thank you very much for everything.
Did you get the sysrw_repair script to work inside your Linux environment? What was the problem?

Was super_fixed.bin created successfully and did you fastboot flash it to your super partition yet?
What is the result? Can you do this now?

1-jpg.5235933


=== Moto G Power (2020) XT2041-4-SS FIRMWARE: Android 10 "SOFIA_RETAIL_QPMS30.80-109-5" ===
1)
systemrw_1.32 (./makesysrw.sh size=50) => error code 73 (either way auto or manual)
2)
sysrw_repair_v1.32 (USB stick Ubuntu Mate 21.4) => Successfully created patched super image at /media/ubuntu-mate/Drive-C/sysrw_repair/img/super_fixed.bin
3)
"fastboot flash super super_fixed.bin" (in FASTBOOTD) => was sent 8 sparses SUPER out of 8, no errors
4)
restarted phone => OK
5)
adb shell
su
mount -o remount,rw /
mount -o remount,rw /system
mount -o remount,rw /product
mount -o remount,rw /vendor
Hi @krasevalex. Thanks for your feedback. Please send me your log files from this folder. Thanks.
/data/local/tmp/systemrw_1.32/log/

You can successfully boot device after flashing super_fixed.bin AND you can remount partitions as R/W? That sounds like a success to me. Congratulations!
6)
weird things started appear...
build.prop 0 Kb and copying saved earlier file build.prop to /system does not help it stays empty... I could change permissions in properties but it didn't help build.prop empty and nothing I could do... I repeated system rw remount but now I started getting bad returns like "mount: '/system' not in /proc/mounts" as I never flashed rw super image...
7)
flashed super image again in FASTBOOTD => same results: build.prop empty and nothing you can do with it
8)
flashed super image again now just in BOOTLOADER but weirdly in bootloader there were only 6 sparses SUPER out of 6 (in FASTBOOTD there were 8 sparses out of 8) => same results: build.prop empty and nothing you can do with it
9)
flashed and restored my FIRMWARE: SOFIA_RETAIL_QPMS30.80-109-5 (without erasing: boot, recovery, metadata and user data partitions) phone is fine but ROOT the same RO :(

-----------------------------------------
P.S. I was afraid to flash SUPER to slots A and B like:
fastboot flash super_a super_fixed.bin
fastboot flash super_b super_fixed.bin

and I didn't do it even though I remember some guy mentioned that it helped with two slots...

I didn't take a chance... :) I just got my phone back after being dead bricked from Motorola service... in the bricked phone i had perfect touch screen in TWRP (3.5.0_10) damn! in the phone of the same model they send me back TWRP touch screen does not work... (looks like the different drivers are set for the touch screen)
I think you need to run script again with larger custom size and generate new super_fixed.bin with the repair script and fastboot flash it manually to your super partition.
After that everything should work as expected.

Bash:
adb shell
su
cd /data/local/tmp/systemrw_1.32
./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` size=50

I started getting bad returns like "mount: '/system' not in /proc/mounts" as I never flashed rw super image...
/system is only in Android 9 and earlier. In Android 10+ it's called /
 
Last edited:

Ricardo Cruz

Member
Sep 19, 2021
18
3
Motorola One Fusion+
Hi @Ricardo Cruz. Thanks for your feedback. It looks like your device is not recognized by adb?

Did you get the sysrw_repair script to work inside your Linux environment? What was the problem?

Was super_fixed.bin created successfully and did you fastboot flash it to your super partition yet?
What is the result? Can you do this now?

1-jpg.5235933

Well, in my case, the device was not detected when running the script in linux lubuntu live, what I did was create a usb with permanent storage. but later I faced the problem of the space in the usb for the img files, and passed the sysrepair folder to the Windows hard disk, where there was space. I ran the script, rebooted in fastboot and when finished reboot. I probe with root xplorer and I was able to switch to r / w, in fact I already modified an xml file in the vendor folder and I keep the changes on save and reboot. Thanks.
 

Attachments

  • Screenshot_20210924-001029.png
    Screenshot_20210924-001029.png
    174.9 KB · Views: 20
  • Love
Reactions: lebigmac

krasevalex

Member
Jun 10, 2019
13
17
60
Philadelphia
Hi @Ricardo Cruz. Thanks for your feedback. It looks like your device is not recognized by adb?

Did you get the sysrw_repair script to work inside your Linux environment? What was the problem?

Was super_fixed.bin created successfully and did you fastboot flash it to your super partition yet?
What is the result? Can you do this now?

1-jpg.5235933



Hi @krasevalex. Thanks for your feedback. Please send me your log files from this folder. Thanks.
/data/local/tmp/systemrw_1.32/log/

You can successfully boot device after flashing super_fixed.bin AND you can remount partitions as R/W? That sounds like a success to me. Congratulations!

I think you need to run script again with larger custom size and generate new super_fixed.bin with the repair script and fastboot flash it manually to your super partition.
After that everything should work as expected. Enjoy a fully read/writeable device!

Bash:
adb shell
su
cd /data/local/tmp/systemrw_1.32
./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` size=50


/system is only in Android 9 and earlier. In Android 10+ it's called /
in fact I ran script with size=50 but as I wrote I have got an error code 73... i flashed super_fixed.bin manually besides i did it twice, first from FASTBOOTD (it was sent 8 sparses out of 8) and second time i flashed it from just BOOTLOADER (strangely only 6 sparses out of 6)... anyway in both cases i had problems with build.prop file and RW system and in both cases I executed command:
mount -o remount,rw /


here is an attached zip file with my logs...
 

Attachments

  • systemrw_1.32_logs.zip
    100.3 KB · Views: 11
Last edited:
  • Like
Reactions: lebigmac

lolvatveo

Senior Member
Nov 1, 2020
315
29
Biên Hòa city
except using lucky patcher to modify system apps on android 6.0.1 and android 7, i can't modify in any way, need help because above guide is only for android 10
 

flaxx187

Senior Member
Jun 23, 2013
154
5
Google Pixel 6a
- extract Bundle
- Flash the flashable file
- beeing happy

amazing work

testet with Poco F1

on /system/media I can create/rename new Files, but not move via root explorer why ?






on my redmi Note 10 Pro I got an error via TWRP, so I did it via adb
what is a super partition ?how I can check it ?


tried:

adb shell
cd /data/local/tmp/systemrw_1.32
chmod +x sytemrw.sh
./systemrw.sh

finally I got my rw system


I don't have to do this:

su
mount -o remount,rw /
mount -o remount,rw /system
mount -o remount,rw /product
mount -o remount,rw /vendor

right ?
 

Attachments

  • IMG_20210925_123357_1.jpg
    IMG_20210925_123357_1.jpg
    818.9 KB · Views: 19
  • lpdump.txt
    1.5 KB · Views: 3
  • mylog.txt
    5.9 KB · Views: 6
Last edited:
  • Love
Reactions: lebigmac

lebigmac

Account currently disabled
Jan 31, 2017
1,342
995
- extract Bundle
- Flash the flashable file
- beeing happy

amazing work

testet with Poco F1

on /system/media I can create/rename new Files, but not move via root explorer why ?






on my redmi Note 10 Pro I got an error via TWRP, so I did it via adb
what is a super partition ?how I can check it ?


tried:

adb shell
cd /data/local/tmp/systemrw_1.32
chmod +x sytemrw.sh
./systemrw.sh

finally I got my rw system


I don't have to do this:

su
mount -o remount,rw /
mount -o remount,rw /system
mount -o remount,rw /product
mount -o remount,rw /vendor

right ?
Hi. Thanks for your feedback.

on /system/media I can create/rename new Files, but not move via root explorer why ?

Usually if you can only rename system files or create empty system files this means you must run script again with larger custom size. Try for example size=50 or size=100
./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` size=50

Regarding error 255 in some recoveries this is already fixed in next version ;)

Enjoy a fully read/writeable device!
 
  • Like
Reactions: Slim2none4u

flaxx187

Senior Member
Jun 23, 2013
154
5
Google Pixel 6a
Hi. Thanks for your feedback.

on /system/media I can create/rename new Files, but not move via root explorer why ?

Usually if you can only rename system files or create empty system files this means you must run script again with larger custom size. Try for example size=50 or size=100
./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` size=50

Regarding error 255 in some recoveries this is already fixed in next version ;)

Enjoy a fully read/writeable device!
so shall I do it again with adb shell but write ?:
./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` size=50


50 mbmore ? that would be helpfull :D

thanks I helps :D

but i have still issue, but it is bc the app or my zip file idk.

The Size is now there, thanks made !
 

Attachments

  • Screenshot_2021-09-25-13-35-20-156_com.speedsoftware.rootexplorer.jpg
    Screenshot_2021-09-25-13-35-20-156_com.speedsoftware.rootexplorer.jpg
    148.9 KB · Views: 19
Last edited:

Pachacouti

Senior Member
Jul 8, 2020
389
92
55
The Capital above the Lower one...
Is it possible to make the system partition contained in super to auto resize itself using your script?

I was reading how to resize system and cottoned on to a method to have the available space adjust itself automatically, like if I deleted the product partition, the system would adapt to the availble space?

From what Ive read here, we're one step away from a completely rw system in this so called ro system...

It's like this as I see it:

So we resize, and change the format to a rw format, this is to make it rw perm, and have the resize we need to adjust automatically to any freed up space on the fly


Found:

For those looking for the actual resizepart command, I think this is what the OP had in mind: sudo parted /dev/mmcblk0 resizepart 3 100% where /dev/mmcblk0 is the drive and 3 is the partition


Can the above be added/adapted to the script? (for each partition within super?) - oh, and to super itself?? (random idea, mount bind super.img to super.img on sdcard...)

Ps, this will fix no space left problems :)

Ps, found here:

 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 243
    Welcome to the one and only, the original, universal,

    System-RW / Super-RW feat. Make-RW / ro2rw (read-only-2-read/write super partition converter) by lebigmac
    Also known as: THE-REAL-RW, FULL-RW, EXT4-RW, EROFS-RW, EROFS-2-RW, F2FS-RW, F2FS-2-RW, EROFS-2-EXT4-CONVERTER, F2FS-2-EXT4-CONVERTER, Super Resizer/Flasher, SYSTEM-RW / PRODUCT-RW / VENDOR-RW / ODM-RW, root enhancer, real root, FULL ROOT, RW MULTI TOOL and many more aliases!
    (NOTE: Full F2FS-RW support coming in 1. quartal 2023 ! Get your Samsungs ready!)



    The prophecy has finally been fulfilled.
    Making Android ten years younger!
    Inspiring a whole generation of talented developers and empowering the open source community.
    The Pandora's Box has been fully unlocked at last!
    The genie has been unleashed from within the bottle!
    Sesame! Open up now!
    Let the Olympic Android System Modding Games (OASMG) begin!
    The power is now in YOUR hands! And don't forget:
    With great power comes great responsibility!


    Creation date: February 2021
    Updated: January 2023

    Requirements:
    • rooted STOCK Android 10 or newer
    • at least 10+ GB free space on phone for dumping data
    Description:
    A script for all Android power users that wish to make their read-only Android 10+ system read/write-able again to remove bloatware and make more thorough customizations to their device.
    Script only modifies super and vbmeta partitions. /data partition is not affected. It's only used for dumping data and for storing script files.
    In a nutshell this is what the script is doing:
    • dumps your existing super partition
    • extracts embedded read-only sub-partitions (system, system_ext, odm, vendor, product...) from specified super image
    • makes these sub-partitions read/write-able using the one and only original MakeRW/ro2rw algorithm
    • joins everything back together to new super.img
    • flashes read/write-able patched super image back to device using the super fast Kolibass technique (only available in recovery mode)

    NOTE:
    • The script can be run both inside custom recovery and inside Android operating system.
      If you run script in Android mode you will need to fastboot flash the patched image(s) manually!
    • To check whether or not the script worked correctly you can run this code:
      Bash:
      adb shell
      su
      mount -o remount,rw /
      mount -o remount,rw /odm
      mount -o remount,rw /product
      mount -o remount,rw /system_ext
      mount -o remount,rw /vendor
      mount | grep dm- | head -5
    Manual installation:
    • Extract flashable.zip and copy sysrw_*VERSION* folder into /data/local/tmp/
    • run this command to make the script executable:
      chmod +x /data/local/tmp/sysrw_*VERSION*/sysrw
    Automatic installation:
    Installation of the script has never been this easy!
    Download the flashable.zip below, do NOT enable zip signature verification and simply install it in your custom recovery (works in TWRP, OrangeFox and PBRP!)
    The update binary will auto-detect the arguments in config.ini and launch the script accordingly

    Flashable zip custom usage:
    You can easily modify the custom script execution arguments in the included config.ini file. Simply extract the flashable.zip, edit the included config.ini file with notepad and then save the file. Next compress the sysrw_*VERSION* and META-INF folders again as a new flashable .zip and install it in recovery. Have fun playing around with your config.ini :D(y)

    Script usage:
    Simply execute the program from the terminal shell with or without custom arguments
    Optional script arguments:
    Replace x with your custom value
    • in=x
      Specify existing super image as input [OPTIONAL]
      Omitting this parameter is equivalent to using in=@auto which is equivalent to using your super block device as input
    • out=x
      Specify patched super image output file path [OPTIONAL]
      Omitting this parameter is equivalent to using out=@auto
      and the patched super image will be saved as ./img/super_patched.bin by default
    • size=x
      Specify the extra free space (in megabytes) to be added to each sub-partition of super.img [OPTIONAL]
      Omitting this parameter is equivalent to using size=@auto which will activate the auto-resize feature
    • -r
      Specify whether or not the patched super image should be output in raw file format [OPTIONAL]
      Omitting this parameter will create a sparse patched super image by default

    Usage examples:
    Bash:
    adb shell
    su
    cd /data/local/tmp/sysrw_1.33
    chmod +x ./sysrw
    
    #  Run program with default settings [RECOMMENDED]
    ./sysrw
    
    # Specify existing super image as input [OPTIONAL]
    ./sysrw in=./img/super_original.img
    
    # Specify patched super image output file path [OPTIONAL]
    ./sysrw out=./img/super_patched_new.img
    
    # Specify the extra free space (in megabytes) to be added to each sub-partition of super.img [OPTIONAL]
    ./sysrw size=15
    
    # Specify whether or not the patched super image should be output in raw file format [OPTIONAL]
    ./sysrw -r
    
    # EXPERT EXAMPLE (Warning! This command could potentially corrupt your system. Only use at your own risk in recovery mode!)
    ./sysrw in=img/super_original.bin out=`realpath /dev/block/by-name/super` -r

    Uninstallation:
    • To free up space and keep script as well as r/w capability you can simply delete /img subfolder at /data/local/tmp/sysrw_*VERSION*/img
    • To delete script and keep r/w capability you can simply delete whole script folder at /data/local/tmp/sysrw_*VERSION*
    • To undo all changes performed by the script you can simply reflash original stock read-only super image and re-enable dm-verity and verification either through adb/fastboot or with the included avbctl binary.

    Troubleshooting:
    If you can't get this script to work on your device check out the brand new sophisticated superrepack tool by @munjeni
    If you get any errors from the update-binary in your custom recovery during installation of the flashable .zip then please send me this log file /tmp/recovery.log
    and a screenshot of your error. Thanks! (y)
    Make sure the script folder was correctly extracted to:
    /data/local/tmp/sysrw_*VERSION*
    If you can't run the script try making the file executable like this: chmod +x ./sysrw
    If you still can't get it to work run which sh in your shell and replace the shebang in the first line of the script with the output of that command. Don't remove the first two #! symbols though. Then save the file and try again.
    Make sure you've got full read / write access to the /data/local/tmp directory and that the containing files are not encrypted in custom recovery!
    If you get a bootloop after successfully creating and flashing super_patched.bin then that's probably because you didn't properly disable your dm-verity and verification.
    To undo any bootloop simply re-flash original stock read-only super image and re-enable dm-verity and verification with the included avbctl binary or through adb/fastboot. Those are the only changes performed by the script. If you have any more questions just ask in this thread. Good luck!

    About:
    I did not come up with all this by myself. After searching for a solution for countless days without success, going even as far as learning hex editing - I accidentally came across a couple of very interesting threads burried deep inside the new forum interface where this method has been described by various rw enthousiasts (links can be found in the credits section below). Therefore most credit goes to these rw enthousiasts. I'm only the amateur who put it all together into a compact script so that everybody can enjoy an Android system that's read/write-able again. Just like it used to be in Android 9 or earlier. Before these annoying 'shared_blocks' and 'EROFS' read-only features were implemented.

    Credits:
    Huge thanks to @Brepro1 for allowing me to use his awesome tutorial and make it into a script. Without your tutorial guiding me I couldn't have created this script.
    Huge thanks to @Kolibass for allowing me to use his partition tools for Android. Without your tools this script would not work on the Android platform!
    Big thanks @munjeni for allowing me to use his amazing superunpack V1 tool in the initial version. It helped me to understand how these super images work.
    Thanks @AndyYan your great tutorial also helped me a lot for automating the script especially the lpdump part.
    Thanks @bynarie for making available his otatools package! A part of it was bundled with the initial version which helped me to create this universal version. It's still part of the troubleshooting repair script to fix error 73.
    Thanks @HemanthJabalpuri for assisting me in optimizing the underlying algorithm!

    Disclaimer:
    #Disclaimer v3.0​
    This open source software is provided as is without any kind of warranty or support whatsoever.
    By using and viewing this software you agree to the following terms:
    • Under no circumstances shall the author be held responsible for any damages that may occur from the (inappropriate) use of this software (or parts thereof).
    • All responsibility, liability and risk lies with the end-user. You hereby agree not to abuse this software for illegal purposes.
    • Please don't steal, hack, crack, mod, hex-edit, decompile, rebrand and / or abuse this software or parts thereof. Thank you!
    • This software can be re-uploaded to 3rd party websites indefinitely as long as the software itself (or any parts thereof) were not modified by unauthorized 3rd parties without the original author's prior knowledge and explicit written consent
    • This software (or parts thereof) were provided for free only for non-commercial, educational, personal, legal purposes
    • To use this software (or parts thereof) for commercial purposes, please rent a commercial usage license
      Thank you very much for your support! Thanks to your amazing support I can continue working on this project and other interesting projects like this. :D(y)

    Enjoy debloating and customizing your fully read/write-able next-gen Android device! :love:(y)

    Please post your feedback, suggestions and your Olympic Android System Mods (OASMG) @ the official SystemRW / SuperRW feat. MakeRW / ro2rw by lebigmac links below. Thanks :D(y)

    https://xdaforums.com/t/universal-s...tition-converter-resizer-by-lebigmac.4247311/

    https://xdaforums.com/t/closed-the-...n-converter-erofs-rw-ext4-rw-f2fs-rw.4536821/


    v1-31d_01-jpg.5309953
    v1-31d_03-jpg.5309957


    1-jpg.5235933


    working-jpg.5525671


    Confirmed working on these devices:


    Download

    current status: experimental


    If you like this project and want to support further development of it & the creation of more amazing projects like this then please feel free to donate to the original developer lebigmac by clicking the button below. Thanks! Your support is very much appreciated!

    Donate
    25
    Thread Closed

    Hello everyone

    As helpful as @lebigmac may be, no one – not even us – is above XDA's Forum Rules. Our work as moderators usually remains in the background but it felt necessary to provide some transparency here. After consulting our team I have decided to ban the OP of this thread for three months and it will remain locked until OP requests to open it back up after the ban expires. For some of you this will come as a complete surprise and may seem unfair but I would like to stress that we have invested a massive amount of energy and a mountain of patience to come to a resolve with lebigmac. Several moderators were involved. Despite our many efforts, (s)he persisted to openly accuse people of plagiarism, inciting conflict, call out the people involved and communicated in a very condescending and demeaning way.
    We of course regret this course of action. Developers and development is everything to us but boundaries must be respected. After several earlier time-outs we had no other option but to proceed this way. We're hoping this will bring back some peace in this feud as well. With so much going on in the world we really don't need opposing developer parties. Open source is about cooperation and improving existing code, not about bitter fights over protecting your own code, which is based on the work of others anyway. One questionable screenshot aside, there hasn't been any viable proof of plagiarism provided to us related to this project.

    Thank you all for your understanding and as always we remain available to answer your questions and concerns via PM. Have an amazing day!

    Kind regards
    Timmy
    Senior Moderator
    17
    If the script works on your device please send me your log files from this folder:
    /data/local/tmp/systemrw_1.32/log/

    And please write your phone model - Android version - firmware version

    Then I can add you to the list of successful devices and it will be helpful for further development. Thank you!(y)
    17
    Allow me to add some more information to above post of my teammate @Timmmmaaahh!

    The account of the author of this thread has been permanently suspended. In your own interest, I ask everybody not to promote a banned user or his website, blog, work etc. on XDA. Thanks very much for your cooperation.

    Regards
    Oswald Boelcke
    Senior Moderator
    10
    Okay I know you guys have been waiting a long time... Thanks for your patience, loyalty, support and your interest in this amazing project for the past year! Unfortunately there's lots of dubious copycats floating around by now. Remember you saw it here first ;)(y)
    The one and only, the original
    SystemRW / SuperRW featuring MakeRW by lebigmac
    This month new version should be ready :D(y)
    I'm working on it hard 🛠️⚙️⛏️🔧✂️🔨
    Hopefully we can start beta testing in 2nd half of April May June July August September October and then it should be ready for final release :love:
    I'm so excited!


    This is awesome! Unfortunately, it doesn't support Android 12 yet : ( .

    The new version has support for Android 12 and beyond! :ROFLMAO:

    Bash:
    sdkCheck(){
        sdkVersion=`getprop ro.build.version.sdk`
        if [ $sdkVersion -lt 29 ]; then
            printf "$app: Please install Android 10 or newer and try again\n\n" && exit 1
        else
            android=$(($sdkVersion - 19))
        fi
        printf "$app: Current Android version: %s\n" $android
    }