How To Guide [GUIDE] How to make your System RW / Super R/W read/write-able

Search This thread

lebigmac

Senior Member
Jan 31, 2017
1,042
679
Welcome to
SystemRW / SuperRW feat. MakeRW by lebigmac

This script removes the read-only lock of all partitions embedded in the super partition of your stock firmware.
This allows you to mount your device as R/W and fully debloat your device and customize your MIUI experience to make it run as smooth as silk!
MIUI 12 is great but it has a little bit too much bloatware.

Be very careful when debloating your device! One little mistake could cause bootloop!
Make lots of backups before modifying stuff!

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

NOTE: Before launching script make sure you've got full rw read/write access to the /data partition by first decrypting and then mounting /data partition as rw in your custom recovery!

working-jpg.5525671


v1-31d_01-jpg.5309953
v1-31d_03-jpg.5309957
 
Last edited:

gsser

Senior Member
Dec 22, 2012
1,438
591
Eskisehir
OnePlus 5T
OnePlus 8 Pro
@gsser it can work depending on how much effort you decide to put into it.
well if it is like that, then why is there even a non complete script when it can be done by the owner...

And since you have already asked how it is on x3 pro im saying it doesnt work.

"I'm looking forward to hearing from the Poco X3 Pro users how the script performs on your device."
 

lebigmac

Senior Member
Jan 31, 2017
1,042
679
@gsser Thanks for the screenshot and feedback. Please download latest v1.32

Feel free to send me your log files if you get any errors and I'll take a look. Thanks.
 
Last edited:
  • Like
Reactions: gsser

gsser

Senior Member
Dec 22, 2012
1,438
591
Eskisehir
OnePlus 5T
OnePlus 8 Pro
@gsser Thanks for the screenshot and feedback. Please download latest v1.31 that I uploaded today. And feel free to edit the script with your favorite text editor and change the super image dump path in line #333 to this. Then save file.

Code:
 sDumpTarget="/sdcard/super_original.bin"

Feel free to send me your log files if you get any errors so I can take a look. Thanks.
Only lines i could find about data were these and i edited the path to my sdcard, flashed it.

Edit just seen you edited your reply. Ill try
 

Attachments

  • IMG_20210423_010020.jpg
    IMG_20210423_010020.jpg
    368.5 KB · Views: 547
Last edited:

lebigmac

Senior Member
Jan 31, 2017
1,042
679
I'm not 100% sure if your changes will work properly. Feel free to give it a try.
Keep in mind if you change variables the script might not work as expected.

The reason why the script is installed to /data/local/tmp is because in /scard path you don't have execution permission. That's why it's better to launch script from /data/local/tmp

Poco x3 pro recovery don't have full r/w access to /data/local/tmp ?! That's crazy!
You can try launch script directly from android and it should work as expected.
 
Last edited:
  • Like
Reactions: gsser

gsser

Senior Member
Dec 22, 2012
1,438
591
Eskisehir
OnePlus 5T
OnePlus 8 Pro
I'm not 100% sure if your changes will work properly. Feel free to give it a try.
You can also use /sdcard path it should be the same thing as what you wrote. Good luck.
Please report back any errors thanks.

Keep in mind if you change LOC variable you must also copy the whole script folder to that new location.

The reason why the script is installed to /data/local/tmp is because in /scard path you don't have execution permission. Is better to launch script from /data/local/path

You don't have full access to /data/local/path in poco x3 pro?
This is how the folder looks rightnow. Do i need to do anything about it? Also what is LOC :c
Edit nvm, lol im blind
 

Attachments

  • Screenshot_2021-04-23-01-13-55-205_com.mixplorer.jpg
    Screenshot_2021-04-23-01-13-55-205_com.mixplorer.jpg
    125.1 KB · Views: 364

lebigmac

Senior Member
Jan 31, 2017
1,042
679
Not sure what you're trying to do but that path is totally messed up :eek:

Just run script in android operating system as described in the instructions if you don't have full read write access to /data/local/tmp from custom recovery

Have you tried manually mounting /data partition in orange fox? Maybe it's not mounted and that's why /data/local/tmp is unavailable.
 
Last edited:
  • Like
Reactions: gsser

gsser

Senior Member
Dec 22, 2012
1,438
591
Eskisehir
OnePlus 5T
OnePlus 8 Pro
Not sure what you're trying to do but that path is totally messed up ;)

Just run script in android operating system as described in the instructions if you don't have full read write access to /data/local/tmp from custom recovery

Have you tried manually mounting /data partition in orange fox? Maybe it's not mounted and that's why /data/local/tmp is unavailable.
All available recoveries have issue mounting data, some cant even mount mtp.

Ill try android one and see what happens.
 
  • Like
Reactions: lebigmac

lebigmac

Senior Member
Jan 31, 2017
1,042
679
Did you try manually mounting /data partition before flashing script from recovery?
It should look something like this mount -o remount,rw /data
 
Last edited:
  • Like
Reactions: gsser

gsser

Senior Member
Dec 22, 2012
1,438
591
Eskisehir
OnePlus 5T
OnePlus 8 Pro
LOC is a safety path check feature I had to implement because some folks were launching the script from God knows where and overwriting God knows what with dd lol.

Did you try manually mounting /data partition before running script?
mount -o remount,rw /data
Yeah, ill try android version then flash it with fastboot but im a bit confused. Do i execute this command or do i need to do other things? Sorry im a noob at these things

./makesysrw.sh in=./files/super/super_original.bin out=./custom/path/super_fixed.bin size=50


Actually ill stop here since i dont get the whole thing, i dont understand at all :/ once i tried to use linux and it was not fun for me... Im bad with command lines and scripts
 

lebigmac

Senior Member
Jan 31, 2017
1,042
679
After copying script folder into /data/local/tmp/
open command prompt and type this

Bash:
adb shell

su
cd /data/local/tmp/systemrw_1.32
chmod +x ./systemrw.sh
./systemrw.sh size=50
 
Last edited:

Top Liked Posts

  • 1
    Hi @lebigmac ,

    Your script is badass!
    Follow attached logs for Samsung S22+ (SM-G906B).

    I've only question, how can i flash the output (super_fixed.bin)? I've tried with Odin... but couldn't flash. (yes, i've put the super_fixed.bin inside a tar like: super.tar)

    Can you anyone give any advice?
  • 1
    Does it Works on Poco F3? Thanks
    Hi @emmanuelo7 . Thanks for your interest in my original SystemRW / SuperRW feat. MakeRW by lebigmac project (y)

    Please try it and if it not works then together we will make it work on your device with the help of your useful feedback! Thanks!
    Good luck (y)
    If you have any questions just ask me!
    1
    Hi @lebigmac ,

    Your script is badass!
    Follow attached logs for Samsung S22+ (SM-G906B).

    I've only question, how can i flash the output (super_fixed.bin)? I've tried with Odin... but couldn't flash. (yes, i've put the super_fixed.bin inside a tar like: super.tar)

    Can you anyone give any advice?
  • 9
    Welcome to
    SystemRW / SuperRW feat. MakeRW by lebigmac

    This script removes the read-only lock of all partitions embedded in the super partition of your stock firmware.
    This allows you to mount your device as R/W and fully debloat your device and customize your MIUI experience to make it run as smooth as silk!
    MIUI 12 is great but it has a little bit too much bloatware.

    Be very careful when debloating your device! One little mistake could cause bootloop!
    Make lots of backups before modifying stuff!

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

    NOTE: Before launching script make sure you've got full rw read/write access to the /data partition by first decrypting and then mounting /data partition as rw in your custom recovery!

    working-jpg.5525671


    v1-31d_01-jpg.5309953
    v1-31d_03-jpg.5309957
    3
    After copying script folder into /data/local/tmp/
    open command prompt and type this

    Bash:
    adb shell
    
    su
    cd /data/local/tmp/systemrw_1.32
    chmod +x ./systemrw.sh
    ./systemrw.sh size=50
    2
    Hi @mørningstαr thanks for your interest in this project. I am working on Android installer app that should make script installation much easier. Hopefully I can release it soon!
    2
    View attachment 5287597now do i need to flash the super_fixed.bin in script folder's files folder in fastboot? original super is approx. 8gb and fixed one is nearly half of it

    Yes. That file size difference is normal. One file is raw format the other one is sparse format.

    You should be able to flash the patched super image file like this:
    Bash:
    adb pull /data/local/tmp/systemrw_1.32/img/super_fixed.bin
    adb reboot bootloader
    fastboot flash super super_fixed.bin

    Can you please upload your log files from script folder? Thanks for your feedback. It helps with further development.
    1
    PS C:\adb> adb shell "ls -Alg /dev/block/by-name | grep 'super'"
    lrwxrwxrwx 1 root 16 1970-02-02 16:40 super -> /dev/block/sda23

    POCO X3 pro