[SCRIPT][Android 10+] Universal Mount SystemRW / SuperRW featuring MakeRW (read/write)

Search This thread

SavXL

Senior Member
Just tried to do this on my galaxy tab s8+ (sm-x800) and android 12 is currently not supported. I know I did the steps correctly since the ascii box showed up, but it sadly doesn't work. Just gonna post this here hoping it will eventually work in the future.
 

Attachments

  • Screenshot_20220523-172627_Termux.jpg
    Screenshot_20220523-172627_Termux.jpg
    222.1 KB · Views: 59

Sivalinga

New member
Dec 11, 2010
1
0
Just tried to do this on my galaxy tab s8+ (sm-x800) and android 12 is currently not supported. I know I did the steps correctly since the ascii box showed up, but it sadly doesn't work. Just gonna post this here hoping it will eventually work in the future.
everything is fixed here on the advice of the developer of the script for android 12
 

Attachments

  • systemrw_1.32.zip
    6.5 MB · Views: 168

SavXL

Senior Member
everything is fixed here on the advice of the developer of the script for android 12
I just tried using that zip in place of the previous flashable one and it gave me these errors. Was I supposed to nerge the pre-existing flashable zip with the one that you gave me, or was I supposed to replace it like I did when I got this error?
 

Attachments

  • Screenshot_20220524-145125_Termux.jpg
    Screenshot_20220524-145125_Termux.jpg
    608.1 KB · Views: 56

lebigmac

Senior Member
Jan 31, 2017
1,072
706
Is it summer holidays yet or what? So much interest in my thread right now it's crazy. I can't even keep up with every single comment there's just too many. I just want to say thank you to every single one of you for your enthousiastic interest in this amazing SystemRW / SuperRW feat. MakeRW by lebigmac project! (y)

Guys please stop wasting your time trying to get that old version to work in Android 12 + as it was originally not designed for such a new Android version. Just be patient for a couple more days and I will officially release BRAND NEW VERSION :D(y) which has Android 12+ support out of the box, auto-resize feature and more ;)(y)
I'm working on it hard as we speak... 🛠️

If you're Samsung or Realme device user just send me a message and we can work on a fix! Thanks (y)
 
Last edited:

TheShadowOfAGhost20

Senior Member
Mar 8, 2020
66
17
Rasht
I hope it's not an unrelatable and dumb question:
Can it fix Windows 11's WSA (Magisk-modified version) or at least affect it?
that is based on stock android 11 and has read-only problems with system files too.
 
  • Sad
Reactions: lebigmac

SavXL

Senior Member
Is it summer holidays yet or what? So much interest in my thread right now it's crazy. I can't even keep up with every single comment there's just too many. I just want to say thank you to every single one of you for your enthousiastic interest in this amazing SystemRW / SuperRW feat. MakeRW by lebigmac project! (y)

Guys please stop wasting your time trying to get that old version to work in Android 12 + as it was originally not designed for such a new Android version. Just be patient for a couple more days and I will officially release BRAND NEW VERSION :D(y) which has Android 12+ support out of the box, auto-resize feature and more ;)(y)
I'm working on it hard as we speak... 🛠️

If you're Samsung or Realme device user just send me a message and we can work on a fix! Thanks (y)
Thank you for giving us this update! I have a Samsung Galaxy Tab S8+ and tried to do your method before saying that it wouldn't work for Android 12. Hopefully your newer Android 12+ build of this will work without issue! :)
 

Prince.Paul.K

Senior Member
Jan 2, 2013
138
48
Bangalore
Android 12 firmware 22.5.25 xiaomi.eu is such a problem. Help with advice
View attachment 5624371

Look at last but one line. It says not enough space left in device. Just have a look of super.img size. You need free space minimum 3 to 4 times the size of super.img as first super.img is created, then extracted to individual partition images, finally merged back to new super image.
 

llcrs2015

Member
May 21, 2022
6
0
Look at last but one line. It says not enough space left in device. Just have a look of super.img size. You need free space minimum 3 to 4 times the size of super.img as first super.img is created, then extracted to individual partition images, finally merged back to new super image.
I have 256 gigabytes of memory on my device, of which 200 are free!
 

erichappy86122

New member
Sep 22, 2020
4
0
24
I really need to unlock my device and want help from BOSS, I've been trying to use your script for a month but I can't solve it, including switching to another WW version, I even used the original RAW but it didn't work either, Maybe I have something wrong
 

Attachments

  • photo_2022-05-29_00-05-50.jpg
    photo_2022-05-29_00-05-50.jpg
    167 KB · Views: 48

calrloca

New member
May 6, 2022
4
3
I really need to unlock my device and want help from BOSS, I've been trying to use your script for a month but I can't solve it, including switching to another WW version, I even used the original RAW but it didn't work either, Maybe I have something wrong
I'm very far to be the boss, but:
- your device should be unlocked or you wouldn't be at this point
- it looks all ok to me, have you remounted system as rw (with something like mount -o rw,remount /) before doing your stuff?
 

erichappy86122

New member
Sep 22, 2020
4
0
24
I'm very far to be the boss, but:
- your device should be unlocked or you wouldn't be at this point
- it looks all ok to me, have you remounted system as rw (with something like mount -o rw,remount /) before doing your stuff?

Thank you for your reply. This is ROG 3. I have UNLOCKed my device and rooted it into this systemRW. The moderator replied that the installation is indeed successful, but I don't know why it bootloops. I hope someone who flashes ROG3 Can explain my confusion, I have tried A10 and A12 and other firmware versions RAW, and I have tried manual and automatic installation and stuck in bootloop
 

lebigmac

Senior Member
Jan 31, 2017
1,072
706
Thank you for your reply. This is ROG 3. I have UNLOCKed my device and rooted it into this systemRW. The moderator replied that the installation is indeed successful, but I don't know why it bootloops. I hope someone who flashes ROG3 Can explain my confusion, I have tried A10 and A12 and other firmware versions RAW, and I have tried manual and automatic installation and stuck in bootloop
Hi. Maybe it's Android related problem? If you can successfully boot into custom recovery and remount your super partition's sub-partitions as rw there without crash or bootloop that means script actually worked but something is preventing Android from booting properly (probably some additional protection features) and you must try to figure out what's causing the problem on your device. Try to check the boot logs somehow. Search online how to do this. Running programs like dmesg, logcat could be useful. Please let us know if you find a solution to your ASUS device specific problem. Thanks! Good luck! (y)

The end of your log in that screenshot in post #1,751 looks correct (y)

To get back out of bootloop you can simply flash original stock read-only super.img and reset dm-verity and verification using the included avbctl program (from custom recovery)! Good luck! (y)
 
Last edited:
  • Like
Reactions: erichappy86122

erichappy86122

New member
Sep 22, 2020
4
0
24
Hi. Maybe it's Android related problem? If you can successfully boot into custom recovery and remount your super partition's sub-partitions as rw there without crash or bootloop that means script actually worked but something is preventing Android from booting properly (probably some additional protection features) and you must try to figure out what's causing the problem on your device. Try to check the boot logs somehow. Search online how to do this. Running programs like dmesg, logcat could be useful. Please let us know if you find a solution to your ASUS device specific problem. Thanks! Good luck! (y)

The end of your log in that screenshot in post #1,751 looks correct (y)

To get back out of bootloop you can simply flash original stock read-only super.img and reset dm-verity and verification using the included avbctl program (from custom recovery)! Good luck! (y)
I'm sorry to bother you like this, please help me if you have time, no rush but I really need to RW the device, thank you very much

 

lebigmac

Senior Member
Jan 31, 2017
1,072
706
Oh **** it's June 1st already. You know what that means.
That means meteorological summer time starts now. I guess I'll have to merge both the happy spring time version and the happy summertime edition into one single happy summertime edition then. 😃
Don't worry I'll hurry up with the release ;)
If you've waited this long for the new version then you are a true loyal customer. Thanks for your support! ;)(y)
A couple more days and it should be ready... 🕗 ⌛
 
Last edited:

Greenspoof

Senior Member
May 28, 2020
118
28
Belgique
Oh **** it's June 1st already. You know what that means.
That means meteorological summer time starts now. I guess I'll have to merge both the happy spring time version and the happy summertime edition into one single happy summertime edition then. 😃
Don't worry I'll hurry up with the release ;)
If you've waited this long for the new version then you are a true loyal customer. Thanks for your support! ;)(y)
A couple more days and it should be ready... 🕗 ⌛

I need it to update driver from Snapdragon. Thanks for you work ! Right now with command line modified, it's running but bootloop via twrp and superpartition is 0bytes via termux. Thanks again !
 
  • Wow
Reactions: lebigmac

sunmughans

Senior Member
Jun 16, 2016
161
49
22
Indore
www.codeair.in
Oh **** it's June 1st already. You know what that means.
That means meteorological summer time starts now. I guess I'll have to merge both the happy spring time version and the happy summertime edition into one single happy summertime edition then. 😃
Don't worry I'll hurry up with the release ;)
If you've waited this long for the new version then you are a true loyal customer. Thanks for your support! ;)(y)
A couple more days and it should be ready... 🕗 ⌛
I'm a Samsung F22 user with OneUI4.1 (A12), I'm too excited for your new release of "System_rw" patch. ☺️
 
  • Like
Reactions: lebigmac

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Oh **** it's June 1st already. You know what that means.
    That means meteorological summer time starts now. I guess I'll have to merge both the happy spring time version and the happy summertime edition into one single happy summertime edition then. 😃
    Don't worry I'll hurry up with the release ;)
    If you've waited this long for the new version then you are a true loyal customer. Thanks for your support! ;)(y)
    A couple more days and it should be ready... 🕗 ⌛
    4
    Will this work on any device that has super? I have an s22 ultra international version and i need my system to be R/O to delete files. Thanks.
    Hi. Current version v1.32 does not work properly with some modern Samsung / Realme devices.
    I am currently working on a fix behind the scenes for all Samsung / Realme users out there ;)(y)
    2
    I really need to unlock my device and want help from BOSS, I've been trying to use your script for a month but I can't solve it, including switching to another WW version, I even used the original RAW but it didn't work either, Maybe I have something wrong
    I'm very far to be the boss, but:
    - your device should be unlocked or you wouldn't be at this point
    - it looks all ok to me, have you remounted system as rw (with something like mount -o rw,remount /) before doing your stuff?
    2
    Did you need to rename the super fixed to super_origin for Oneplus ?
    I did not have to rename.
    2
    Is it possible to use this on custom roms that use EROFS?
  • 146
    If you can't get this script to work on your device check out the brand new sophisticated superrepack tool by @munjeni


    logo_large.jpg

    SystemRW / SuperRW (feat. MakeRW) v1.32 by lebigmac
    NEW VERSION COMING SOON! STAY TUNED!;)(y)
    ANY TALENTED DEVELOPERS WANT TO CONTRIBUTE TO NEXT VERSION? PLEASE CONTACT ME NOW! THANKS! :love:(y)

    Creation date: February 2021
    Updated: August 2021

    Requirements:
    • rooted STOCK Android 10 or newer (custom ROM should already be R/W!)
    • 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 OR your system / product / vendor partitions depending on whether or not you've got super partition
    • extracts embedded read-only partitions (system, vendor, product...) from super if applicable
    • makes these partitions read/write-able
    • joins everything back together to new super.img OR NOT depending on whether or not you've got super partition
    • flashes read/write-able images back to device using the super fast Kolibass technique (only in recovery mode)

    NOTE:
    • Before running this experimental software on your device it is recommended to make a full backup of your device (just in case you are unlucky enough to end up in an irreversible bootloop)
    • Extract BUNDLE.zip (the included sysrw_repair.zip is only for fixing error 73!)
    • 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 you've got a super partition on your device you can run this command: adb shell "ls -l /dev/block/by-name/super"
    • To check whether or not your device has the notorious 'shared_blocks' read-only feature you can run this code:
      Bash:
      adb shell
      su
      for a in /dev/block/dm-*; do tune2fs -l $a | grep -e "feat" -e "vol"; done
    • To check whether or not the script worked correctly you can run this code:
      Bash:
      adb shell
      su
      for a in /dev/block/dm-*; do mount -o remount,rw $a; done
    Manual installation:
    • Extract flashable.zip and copy systemrw_*VERSION* folder into /data/local/tmp/
    • run this command to make the script executable:
      chmod +x /data/local/tmp/systemrw_*VERSION*/systemrw.sh
    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 installer binary will auto-detect whether or not your device has a super partition and launch the script accordingly with the proper command line arguments.

    Flashable zip custom usage:
    You can set these custom installation arguments in the included config.ini file.
    Simply extract the flashable.zip and modify the included config.ini file and then save the file. Then compress the systemrw_*VERSION* and META-INF folders again as a new .zip and install it in recovery.
    First line of config.ini contains the script arguments for those WITHOUT super partition.
    By default this line is completely empty (no space).
    Second line of config.ini contains the script arguments for those WITH super partition.
    For example if you already dumped your super_original.bin and want to skip that process next time you install the .zip then put this in line #2 of config.ini :
    in=`realpath /dev/block/by-name/super` size=15
    Remember if you decide to use custom arguments in config.ini then the first character should always be an empty space. If no arguments are used such as by default in line #1 (no super) then the line should be completely empty, no space, nothing.

    Script usage:
    If you've got no super partition then simply call the script with no arguments from the shell (see examples below).
    If you've got a super partition I would recommend using the optional size=15 parameter as well to give some extra free space (in MB) to each partition.
    Optional script arguments:
    Replace x with your custom value
    • in=x *THIS IS IGNORED IF YOU'VE GOT NO SUPER PARTITION*
      With this flag you can specify an existing super image as input and skip the entire dumping of the super image process. Here you can use the super_original.bin which you dumped earlier with systemrw or the official unsparsed super.img from your downloaded firmware. (unsparse with simg2img). It's also possible to use your super partition block device as input.
      If omitted, systemrw will dump super image from phone to ./img/super_original.bin
      (path is relative to the script)
    • out=x *THIS IS IGNORED IF YOU'VE GOT NO SUPER PARTITION*
      With this argument you can specify the output path of the new patched super file.
      If omitted, default output value is ./img/super_fixed.bin
    • size=x *ONLY RECOMMENDED IF YOU'VE GOT SUPER PARTITION*
      With this parameter you can specify the extra free space (in megabytes) that will be added to each partition. There is a limit as to how much extra free space you can add per partition. Check your lpdump.txt to find out the exact maximum extra size.
      If omitted, default extra size is 0 (shrink to minimum)

    Examples:
    Bash:
    adb shell
    su
    cd /data/local/tmp/systemrw_1.32
    chmod +x ./systemrw.sh
    
    # Run this command *IF YOU'VE GOT NO SUPER PARTITION*
    ./systemrw.sh
    
    # Run this command if you're first time user *AND YOU'VE GOT SUPER PARTITION*
    # Specify the extra free space in megabytes for each partition:
    ./systemrw.sh size=15
    
    # Plug an existing super image into the script like this *ONLY IF YOU'VE GOT SUPER PARTITION*
    ./systemrw.sh in=./img/super_original.bin size=15
    
    # Specify both the input file as well as the output destination *ONLY IF YOU'VE GOT SUPER PARTITION*
    ./systemrw.sh in=./img/super_original.bin out=./custom/path/super_fixed.bin size=15
    
    # EXPERT EXAMPLE:
    ./systemrw.sh in=`realpath /dev/block/by-name/super` out=./img/super_fixed.bin size=50

    Uninstallation:
    • To free up space and keep script as well as r/w capability you can simply delete /img subfolder at /data/local/tmp/systemrw_1.32/img
    • To delete script and keep r/w capability you can simply delete whole script folder at /data/local/tmp/systemrw_1.32
    • 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 (inside /tools/ subfolder - also available in recovery).

    Troubleshooting:
    If you get error 255 in custom recovery when trying to install flashable zip then try to install it manually. If you encounter this error please send me this file /tmp/recovery.log
    Make sure the script folder was correctly extracted to:
    /data/local/tmp/systemrw_*VERSION*
    If you can't run the script try making the file executable like this: chmod +x ./systemrw.sh
    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 have full read write access to the /data/local/tmp directory and that the containing files are not encrypted in custom recovery!
    If you get bootloop after successfully flashing super_fixed.bin then you can undo bootloop simply by re-flashing original stock super image and re-enabling dm-verity and verification with the included avbctl binary (inside /tools/ subfolder - also available in recovery). Those are the only changes performed by the script.
    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 enthousiasts (links can be found in the credits section below). Therefore I take absolutely no credit for the underlying core mechanisms of the script. 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 this annoying 'shared_blocks feature' was 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! This genius also showed me how to flash a 5GB file to my partition in just under 30 seconds! Much faster than fastboot! I still can't believe it!
    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.
    More thanks @gabrielfrias for his helpful comment
    Thanks @YOisuPU and of course @topjohnwu for discovering the 'shared_blocks feature'
    Thanks @HemanthJabalpuri for assisting me in optimizing the underlying algorithm!
    Thanks @aIecxs for helping me fix some shell scripting errors (y)

    Disclaimer:
    #Disclaimer v2.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 ensue from the (inappropriate) use of this software.
    • All responsibility, liability and risk lies with the end-user. You hereby agree not to abuse this software for illegal purposes.
    • Under no circumstances shall the comments & title section of the script (lines #1 - #100) as well as the included update-binary be modified or removed by the end-user without the original author's explicit consent.
    • Under no circumstances shall the end-user steal and / or abuse my entire SystemRW project or parts thereof (including but not limited to my update-binary, my script, my program logo, my program name or the names of my functions and/or my variables and more...) only to rename and republish my SystemRW / SuperRW feat. MakeRW project (or parts thereof) as his/her own creation without even mentioning original source!!! (yes this actually happened :( perpetrated by at least 2 fellow forum members...)
    • Unverified, unauthorized re-uploads of any files contained within this project to 3rd party websites are not permitted without the original author's prior knowledge and consent!
      If you want to share this software with your friends please just send them the link to this website. Thanks.
    • The end-user is allowed to improve the underlying algorithm (as long as no malicious code is added) and post his/her improvements, results and feedback right here in the official SystemRW / SuperRW feat. MakeRW project thread @ xda-developers.com
    • If the end-user wishes to re-use my SystemRW / SuperRW featuring MakeRW project (or any parts thereof) inside his/her own project then he/she shall first contact me! Thanks!
      If you want to make a video tutorial about this project please contact me first!
      Thank you! I can give you high resolution project logo and more!

    Please make sure to post your feedback and suggestions in the official thread right here.
    Enjoy customizing your fully read/write-able Android device! And feel free to share your Android system mods with other users in this thread! Thanks!


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


    1-jpg.5235933


    working-jpg.5525671


    Confirmed working on these devices:

    Download v1.32 mirror #1
    Download v1.32 mirror #2
    more official download mirrors coming soon!
    current status: experimental


    If you like this project and want to support further development of SystemRW / SuperRW feat. MakeRW & the creation of more amazing projects like this then please feel free to donate to the original developer by clicking the button below. Thanks! Your support is very much appreciated!
    Donate
    15
    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)
    8
    Is it summer holidays yet or what? So much interest in my thread right now it's crazy. I can't even keep up with every single comment there's just too many. I just want to say thank you to every single one of you for your enthousiastic interest in this amazing SystemRW / SuperRW feat. MakeRW by lebigmac project! (y)

    Guys please stop wasting your time trying to get that old version to work in Android 12 + as it was originally not designed for such a new Android version. Just be patient for a couple more days and I will officially release BRAND NEW VERSION :D(y) which has Android 12+ support out of the box, auto-resize feature and more ;)(y)
    I'm working on it hard as we speak... 🛠️

    If you're Samsung or Realme device user just send me a message and we can work on a fix! Thanks (y)
    8
    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 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
    }
    6
    New version 1.20 is ready! DOWNLOAD HERE
    Good news for those that don't have TWRP or couldn't get it to work in their TWRP. Now the script can also be run directly inside Android. Keep in mind that you will have to flash the patched images manually in this case using fastboot flash.

    The zip can still be flashed in TWRP (make sure zip signature verification isn't checked). This time I bundled my device's stock sh binary (which I used to develop the script) with the archive. Hopefully this will prevent avoidable sh-related syntax errors for some folks. The flashable zip installer update-binary automatically launches the script with the proper arguments using this bundled sh program (it's inside the tools subfolder).

    To those that were having difficulties running the previous version due to empty partitions or multiple partition groups inside their super : this has finally been fixed :D

    Please give this new version a try and let me know if it works for you or not and I will add it to the first post. Thanks for your feedback!