yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] isitolo:
yop man

this script work for me on a samsung SM-A326B

i had to use total commander as file explorer for writing on /system

thx a lot <3
[Android Software/Hacking General [Developers Only]] thor48:
thanks a lot sir! worked on redmi note 10 miui global 12.5.3 android 11, now i can install dolby atmos 😁
[Android Software/Hacking General [Developers Only]] rafik23:
hi

what is meaning for error 70

here is the last lines logging output:

systemrw: Removing 'shared_blocks feature' of vendor.img...
e2fsck 1.45.4 (23-Sep-2019)
systemrw: Read-only lock of vendor.img successfully removed

systemrw: Shrinking size of vendor.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img to 371958 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img is now 371958 (4k) blocks long.

systemrw: Custom size of vendor.img in bytes: 1649369088
systemrw: Custom size of vendor.img in MB: 1572
systemrw: Custom size of vendor.img in 512-byte sectors: 3221424

systemrw: Increasing filesystem size of vendor.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img to 402678 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img is now 402678 (4k) blocks long.

=================================================

systemrw: Joining all extracted images back into one single super image...
systemrw: Please wait and ignore the invalid sparse warnings...

Not enough space on device for partition vendor with size 1649369088

systemrw: Error! failed to create super_fixed.img file. Error code: 70

curtana:/data/local/tmp/systemrw_1.32 #
[Android Software/Hacking General [Developers Only]] MartheusSss:
I finally made it work on Android 12 MIUI 13 and stay encrypted!

Before if I flash the file it will show unable to mount storage since it's encrypted and my recovery still no support for that. And I have many reasons not to flash DFE (and my Rom is a fastboot Rom)

SO I *format my data since it can remove encryption then flash magisk then this file and *format my data again. Finally I can make this ROM ultra debloated and put stuff in system to make it a GAMING Rom thank you soooo much
[Android Software/Hacking General [Developers Only]] NisseGurra:
Got RW on android 12:

Device: Zenfone 8, ROM AospExtended-v9.0-I006D-OFFICIAL-20220227-0100

Had to mod systemrw.sh,

Added:

elif (( $sdkVersion == 31 )); then

android=12
[Android Software/Hacking General [Developers Only]] LordArrin:
Confirmed working on Zeblaze Thor 6. Thanks, man!
[Android Software/Hacking General [Developers Only]] NisseGurra:
No luck with samsung S22, logs look ok but no RW
[Android Software/Hacking General [Developers Only]] rafik23:
hi , i appreciate tour work ,and work perfectly with orangefox recovery
[Android Software/Hacking General [Developers Only]] NisseGurra:
More work on the S22, got super_fixed.bin built but no boot when installed with fastbootd. How to find what is stopping it to boot properly?
[Android Software/Hacking General [Developers Only]] rafik23:
hi , after making changes to R/W and making necessary desired modification on super.img, how to to make it R/O again ?

for unroot & flash it with stock files with super.img modified
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @papuruth @Denny@83

Can you both please send me this folder from your phone? I need to check your log files to find out the reason for your bootloop. Thanks (y)

/data/local/tmp/systemrw_1.32/log

slot _B is slot 1 and slot _A is slot 0 I believe ;) I know this dynamic super partition thing can be super confusing sometimes.

Yes super_original.bin is in raw format and is much larger (10 GB) while super_fixed.bin is in sparse format which is only 6 GB and you can flash it much quicker with fastboot!

If you can only create empty files that usually means you must run script again with larger custom size. Maybe size=25 or size=50

Boot loop it's always very very sad :cry:

What exactly did you do before you caused the bootloop on your device? Was the bootloop caused by flashing super_fixed.bin ? Unfortunately that's possible on some devices.

Don't worry you can easily fix bootloop by restoring original stock read-only super.img that you downloaded from your phone manufacturer's website (same version as installed on device) or the one dumped by the script. You should also re-enable dm-verity and verification using the included avbctl program from custom recovery.

Good luck!(y)

Hi @rafik23 to go back to read-only you can flash back your original stock read-only super.img (y)

Error 70 means too much custom size! Try smaller size for example size=50 or less
[Android Software/Hacking General [Developers Only]] Khuongkun:
Thanks very much. works complete on my mi pad 5 pro miui 13 android 11.

why is the internal memory reported 45GB
[Android Software/Hacking General [Developers Only]] dokterade:
@lebigmac can't wait for the next update. Wish me luck this time. Very very need this tweak for my Redmi 9A....
[Android Software/Hacking General [Developers Only]] rafik23:
hi thank you for answer

but i want to integrate my modified super with stock boot and reconvery

when I do it with RW super il enter to bootloop sequence , it work when flash super modified with boot modified(rooted) and i don't remember for recovery if its from stock rom or custom recovery

I will test it later and answer for wich recovery
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi thanks for your interest in this project. Where is your mylog.txt?

You can find it here : /data/local/tmp/systemrw_1.32/log/mylog.txt

Please show me your log files so I can fix any errors. Thanks (y)

Hello to Vietnam!

Script works great on your mi pad 5 pro miui 13 android 11 ? That's great news! Congratulations! Enjoy customizing your read/write-able system! :love:(y)

Try this command in terminal as root user : df -h
[Android Software/Hacking General [Developers Only]] rafik23:
hi again

I tested it work only with boot rooted and super fixed RW and any recovery no matter
[Android Software/Hacking General [Developers Only]] Anatolii-orsk:
Redmi 9A
[Android Software/Hacking General [Developers Only]] dokterade:
You do it in custom rom right? I think from your we can see that the rom has rw capability before you apply this tweak
[Android Software/Hacking General [Developers Only]] Anatolii-orsk:
The system was both in R/O and remained
[Android Software/Hacking General [Developers Only]] dokterade:
Owh how poor we are :)
[Android Software/Hacking General [Developers Only]] Denny@83:
Hi, I attach my files

had no problem in restoring phone, thanks
[Android Software/Hacking General [Developers Only]] rootadvisor:
Hello, Any news About android 12? i changed the Script to have android 12 ... (i know is not supported ) this model S22+5G (SM-S906B)

THis is the logs at the end it generates a .BIN that i changed to .IMG a put that in a tar and used ODIN to flash

with no success, the phone booted normally and / still in read only.

Here is my logs
[Android Software/Hacking General [Developers Only]] footjobs:
RUN THE SCRIPT FROM ANDROID STUDIO
[Android Software/Hacking General [Developers Only]] footjobs:
its easy that way but you will have to fastboot flash super super_fixed.bin I had a hard time with the phone I had
[Android Software/Hacking General [Developers Only]] Johncaffee:
Sorry I don't understand. It's easy or not ?

Thank you very much 😊🙏
[Android Software/Hacking General [Developers Only]] footjobs:
its easy the way i told you to try it
[Android Software/Hacking General [Developers Only]] vt102:
For some reason, the scrip fails to remove 'shared_blocks' feature from an odm partition (I modified the script as is mentioned here so that odm partition is also handled by the script) even though according to the log the feature was successfully removed (log is attached). Nonetheless, after the fixed super is flashed + reboot, tune2fs still shows that the feature is still present on this partition, and therefore remounting it in rw mode fails. All the other super partitions are fine - they can be mounted and 'shared_blocks' is no longer there.

Does somebody have an idea what can be the problem?
[Android Software/Hacking General [Developers Only]] Johncaffee:
Hello :)

I try to do it but I'm not sure of the script I have to write.

Can you help me please ?

Thank you :)
[Android Software/Hacking General [Developers Only]] lebigmac:
Wait a second you successfully removed all shared_blocks from your subpartitions and phone still read-only? What the?!

Hi again @Johncaffee

You can successfully boot into a Linux environment but you're having trouble executing the sysrw_repair.sh script file in terminal? Is that it?

Click here for a more detailed mini tutorial on how to start the sysrw_repair script (with picture!) Good luck!(y)
[Android Software/Hacking General [Developers Only]] Anatolii-orsk:
Hi! Yeah, the log's say the system is in RW, but its not... Help? If you need additional data, Im at your service!
[Android Software/Hacking General [Developers Only]] Artesna:
Cool script! It gave me error 73 when packing into new super.bin, but I just flashed the new files in the img folder manually in fastboot and now I have rw apparently, the mount -o remount,rw / is supposed to return nothing when it's gone right?

Device is Oneplus Nord N10 5G EU variant. Running android 10. Thanks a lot for this, I've been banging my head against a wall for weeks trying to find a way to make things rw, vendor specially. This is huge for me thanks a lot! Now it's time to brick my device probably editing vendor files lol.
[Android Software/Hacking General [Developers Only]] vyaskd:
can you tell the process and sw version of ur 7t plz?
[Android Software/Hacking General [Developers Only]] Tomcar:
Shure.

OOS 11.0.5.1 HD65BA​

Automatic installation.

After getting "Error 73" changed to my Arch installation, copied the "sysrw_repair_v1.32§ folder into my home folder, changed permissions for the "Tools" folder and started "chmod +x ./sysrw_repair.sh"

That´s all.

FYR, 2 days later i decided to switch to "Xtended" Rom. Didn´t like it so i returned to OOS. This time the installation was flawless without "Error 73"
[Android Software/Hacking General [Developers Only]] Kibahor:
I tested the script manually, and it was a success.

I tested on an unsupported android version (android 12 - sdk 31).

My rom is : xiaomi.eu_multi_MINote10LITE_V13.0.1.0.SFNMIXM_v13-12-fastboot

So I followed the instructions, remove security of sdk in the script, copy the script in /data/local/tmp.

After generating the new image with the script, I copied the file to my laptop and flash in fastboot with : fastboot flash super_fixed.bin

After reboot, I was able to mount system partition as R/W. Thanks for this little script ^^ !
[Android Software/Hacking General [Developers Only]] vyaskd:
Thnx for reply, what permission u set? rwrr?

And pls tell what do u mean by started "chmode......" Command. Was that in terminal emulator or twrp. Pls explain as I am not expert in lynix command.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi.

Did you run the original script on the phone itself yet? Did it fail with error 73 ?

Next you want to boot into live Ubuntu Linux setup disk or any other Linux distro of your choice. You don't even have to install it to your computer's hard drive.

Copy the sysrw_repair folder to your local drive

Then open terminal inside the sysrw_repair folder

Don't forget to plug in your phone with USB cable!

Now type this

chmod +x ./sysrw_repair.sh
./sysrw_repair.sh

Good luck! (y)
[Android Software/Hacking General [Developers Only]] vt102:
If possible, please fix the problem with odm partition (the one I wrote about yesterday and that you mentioned some time ago as well)
[Android Software/Hacking General [Developers Only]] vyaskd:
Thnks for help and ur work bro. My problem is that I have flashed rw sript successfully on OP7t and I can edit or delete system and system ext files but can't "product" folder and even can't replace host file in etc folder. Any solution?
[Android Software/Hacking General [Developers Only]] IMSoley:
Tried it on Android 13, didn't work.

Could you provide a solution, please?
[Android Software/Hacking General [Developers Only]] Johncaffee:
Thank you :) I try know.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi there.

How to make it work in Android 12 and later

You are welcome. Congratulations! Enjoy debloating your system :love:(y)

/ (system), /system_ext and /vendor can all be successfully remounted as rw but /product not? That's quite unusual. Usually it's /odm that's making trouble. Can you please show your logs? Maybe there is a clue somewhere. Thanks (y)
[Android Software/Hacking General [Developers Only]] IMSoley:
Tried that and after flashing the bin file (fastboot flash super super_fixed.bin), blackscreen.
[Android Software/Hacking General [Developers Only]] lebigmac:
Please show your logs. Maybe there is a clue somewhere. Thanks (y)

Logs can be found in this location:

/data/local/tmp/systemrw_1.32/log/

If it's a very new device I wouldn't be surprised if your device manufacturer has added additional protection features that break this script. This rw vulnerability has been out there for long time now. Device manufacturers had plenty of time to close this rw vulnerability in new Android versions.
[Android Software/Hacking General [Developers Only]] IMSoley:
I used this command BTW!

./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` out=./img/super_fixed.bin size=50

Please check the attached files for logs.
[Android Software/Hacking General [Developers Only]] vyaskd:
Thanks for reply 🙂 here are my log files. Hope there is some solution for system/product and system/reserve folder.
[Android Software/Hacking General [Developers Only]] mrbox23:
I have got around error 73 on op+ devices with chmod -R 0777 systemrw
[Android Software/Hacking General [Developers Only]] Mr. Shtein:
Hi! Tell me what I'm doing wrong. Smartphone OnePlus 8 OOS 12.

1. Copied the system_1.32 in /data/local/tmp/ and commented out line 415

2. Made the file executable

3. I did it via adb on the computer./systemrw.sh

4. Completed ./systemrw.sh size=100

5. Copied the super_fixed file.bin and super_original to the computer

6. Rebooted the smartphone in fastboot and executed fastboot flash super super_fixed.bin

7. Completed the upload to the system

Unfortunately, absolutely nothing has changed, the system, as it was ro, has remained.
[Android Software/Hacking General [Developers Only]] vt102:
I presume that you meant 'ro' instead of 'rw' in the sentence above.

If so, then you should remount a partition that you want to change by running:

mount -o remount,rw /dev/block/dm-<some number corresponding to a partition you want to change>

See the first post of the thread for more info. The operation in this thread doesn't change default mount options that Android uses to mount partitions during boot, it just makes it possible to remount them with r/w permissions.
[Android Software/Hacking General [Developers Only]] Mr. Shtein:
Thanks, it's works! But I can't remount /system partition

I tried
[Android Software/Hacking General [Developers Only]] vt102:
You should use device name, and not mount point name. In other words, last argument to 'mount' commant should be not '/system' (which is a mount point), but '/dev/block/dm-<something>', which is a device name for a partition that is mounted in '/system'. To find which device corresponds to which mount point, run a command 'mount|grep dm-'.
[Android Software/Hacking General [Developers Only]] Mr. Shtein:
I could only find /system_ext
[Android Software/Hacking General [Developers Only]] lebigmac:
Congratulations :love: ! It's work on your system partition! In Android 10 and newer /system partition is mounted at / !

If you get no error after remounting your partition as rw (as seen in screenshots below) that means it's work!

Thanks for helpful suggestions by @vt102 on previous page (y)
[Android Software/Hacking General [Developers Only]] Mr. Shtein:
I first mount /, and next tried mount /system, but

mount: '/system' not in /proc/mounts
[Android Software/Hacking General [Developers Only]] vt102:
As lebigmac explained, '/system' in A10+ is not a separate mount point, but just a directory inside '/' - therefore it is not in /proc/mounts. If '/' is mounted r/w, then everything in it, including '/system', is writable
[Android Software/Hacking General [Developers Only]] Mr. Shtein:
I didn't put it quite right. The mount -o remount,rw / command does not give an error, but the partition itself remains ro
[Android Software/Hacking General [Developers Only]] vt102:
Try to mount the partition, and immediately after that look at the output of 'dmesg' command - often messages there give a clue about a problem (the relevant ones will be at the end, since you would have just executed the command)
[Android Software/Hacking General [Developers Only]] degr_ramos:
@lebigmac what's the proper command to flash super_fixed.bin in fastboot?
[Android Software/Hacking General [Developers Only]] ShadoV90:
I needed to use

fastboot flash super <path to super_fixed.bin>

For example

fastboot flash super D:\Op8Pro\super_fixed.bin

You can drag your file to cmd window and path will create automatically, so when you will type "fastboot flash super" hit one space and drag file to cmd window.
[Android Software/Hacking General [Developers Only]] degr_ramos:
Thanks it worked. But I want to revert to r/o only. When I flash super_original.bin it shows invalid sparse magi but it still flash but ended up bootloop.
[Android Software/Hacking General [Developers Only]] degr_ramos:
I will not go back to r/o only. I retried doing manual method 3 times until I got satisfied with the available size of vendor. I'm using MIUI 13 A12. Thanks a lot
[Android Software/Hacking General [Developers Only]] Yevgen.A:
Oneplus owners never flash in this way, you would brick your phone.

"fastboot flash super super_origin.bin" will not unbrick.

Can confirm 1.32 it is working on Oneplus 8t by flashing using TWRP
[Android Software/Hacking General [Developers Only]] ShadoV90:
Maybe, i did it on oxygenos 12 on oneplus 8 pro and didn't brick my device. Also after confirm that sadly i can't mount partitions to rw even with modified super i flashed super original. In fact i lost fingerprint sensor somehow, but flashed the same version of full rom i get it back (luckily without wipe anything).

So, you can be right. I didn't brick my device, but if there's chance to do it, better not use that command by oneplus users and flash it through TWRP if possible.
[Android Software/Hacking General [Developers Only]] Techguy777:
I'm wondering is this possible with Samsung One UI 3.1 or 4.1?

Would it be possible to do it after the system is setup or do you need to do it while your flashing a rom in twrp. I've used it on my Poco F3 while flashing stock or EU rom and it works fine but I don't believe I can use it after the rom has already been setup and if that's the case I can't think of how it would ever be possible to use on stock Samsung device any thoughts guys?
[Android Software/Hacking General [Developers Only]] vyaskd:
Hell Devs, updated my Oneplus 9 on android 12 and there is no TWRP for OP9 Android 12. Tried currently available TWRP to flash this script, but phone cant enter in to twrp.

anyone can pls provide full guide abt how to flash this script manually in windows 10, or in phone itself.
[Android Software/Hacking General [Developers Only]] kukuku9996:
This is awesome! Unfortunately, it doesn't support Android 12 yet : ( .
[Android Software/Hacking General [Developers Only]] KxKose:
I tried all ways but i can't understand this situation. That's only Cache and Data partitions is R/W. When i change Mount section in Twrp, the change is not applied. I tried commands (remount) in terminal and sometimes no error or anything with again not applied, sometimes it says '* not in proc/mounts'.

I did manuel installion but same. Copied to correct folder and runned commands as you said. It says already R/W but not. It seems like automatically return to R/O or protection from something.

So what do you advice?

Device= Mi 8 SE (Android10)

Magisk+rooted
[Android Software/Hacking General [Developers Only]] KxKose:
Also my device support A/B partition system unluckily. Therefore i applied manual+not super partitions method with different ways but results not changed and strangely not stable and consistent

I can probably edit manually mount file (in proc/mounts). But i think it will reset itself. @lebigmac
[Android Software/Hacking General [Developers Only]] lebigmac:
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!

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

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
}
[Android Software/Hacking General [Developers Only]] mrrocketdog:
yohoooo !!! thank you sooo much. cant donate right now but you certainly have my gratitude.:good:
[Android Software/Hacking General [Developers Only]] Facebooook:
Hi lebigmac,

Are you remember my OnePlus Nord Loop mount problem ? In your new version I hope my phone will have fully r/w.
[Android Software/Hacking General [Developers Only]] SPM.Jaba:
Hooray it turned out Oneplus 9R oxygen 11.2.8.8

just manually it turned out like this

Copy systemrw_1.32 folder to /data/local/tmp & make script systemrw.sh executable (chmod +x)

Reboot into TWRP, launch terminal & run command /data/local/tmp/systemrw_1.32/systemrw.sh size=100
[Android Software/Hacking General [Developers Only]] Johncaffee:
Hi !

"Invalid sparse file format at header magic"...

I don't understand.

Have you the same ?

EDIT : It's ok. Just wait a long time and all is good.
[Android Software/Hacking General [Developers Only]] vyaskd:
Hey, can u plz explain the process of doing this manual flash in linux. I m windows user, dont know anything abt linux except running linux via usb drive.
[Android Software/Hacking General [Developers Only]] Johncaffee:
You boot into linux.

plug the phone.

right click in sysrepair folder.

type :

chmod +x sysrepair.sh (or the name of file)

./sysrepair.sh

Wait. Done.
[Android Software/Hacking General [Developers Only]] vyaskd:
Thanks bro. Few questions: should I install adb on linux as in i do in windows, phone should be bootes in fastboot mode or normal switched on mode? I mean what are essential pre requisites on mobile and linux? And what are initial commands before starting commands mentioned in OP, eg: adb shell or su or anything else.
[Android Software/Hacking General [Developers Only]] Johncaffee:
Install adb in linux, yes. And Android studio maybe.

Just enter in the folder Sysrepair.

After, open terminal in it.

Connect your phone (not fastboot or another, just normal boot).

Now run these commands:

chmod +x ./sysrw_repair.sh

And

./sysrw_repair.sh

And wait (a long time). And it's ok :)
[Android Software/Hacking General [Developers Only]] sexyboi:
Doesnt work on android 12