yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
It gives me this error on redmi note 11 on a custom rom

--------------------------------------------------

| SystemRW v1.32 automated script by lebigmac |

| @xda ©2021 Big thank you to @Kolibass @Brepro1 |

|@munjeni @AndyYan @gabrielfrias @YOisuPU @bynarie |

| without your help this would not be possible! |

--------------------------------------------------

systemrw: Custom input detected: ./img/super_original.bin

systemrw: Custom size detected: 1000 MB

systemrw: Initiating procedure...

systemrw: Device is in Android mode. Ignoring

systemrw: Current device: Xiaomi Redmi Note 11

systemrw: Current Android version: 11

systemrw: Current SELinux status: Permissive

systemrw: Current slot is: 0

systemrw: Your super partition is located at: /dev/block/sda9

systemrw: / is read-only

systemrw: /product is read-only

systemrw: /vendor is read-only

systemrw: Adjusting permissions...

systemrw: Attempting to disable dm-verity and verification...

./systemrw.sh[454]: ./tools/avbctl: inaccessible or not found

./systemrw.sh[454]: ./tools/avbctl: inaccessible or not found

./systemrw.sh[454]: ./tools/lpdump: inaccessible or not found

systemrw: Unpacking embedded partitions from ./img/super_original.bin

./systemrw.sh[454]: ./tools/lpunpack: inaccessible or not found

systemrw: Please make sure the super file exists and try again.

spes:/data/local/tmp/systemrw_1.32_flashable/systemrw_1.32 #

Edit: I tried in the official rom as well still gives me the same error.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi you didn't install it properly

Path should look like this /data/local/tmp/systemrw_1.32

Good luck! (y)
[Android Software/Hacking General [Developers Only]] akrox:
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?
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi thanks for sharing your log. It looks promising. Did you reboot to bootloader and manually fastboot flash the super_fixed.bin to your super partition yet as suggested by the script? WAIT! Before you do this make sure you've got a proper backup of your original stock super partition in case anything goes wrong! You can find your original super.img in sparse format when you download your current FASTBOOT ROM MIUI firmware from official Xiaomi servers

Or use the one dumped by script (it's in raw format though so you might want to sparse it with img2simg)

If you've got any further questions just ask! Good luck (y)
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
when I try to flash using recovery, after dumping original.bin it gives an error messsage

unable to mount storage.
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
thanks. Flashing fixed worked.
[Android Software/Hacking General [Developers Only]] lebigmac:
Got a screenshot?

What do you mean it worked? Can you do this now? :love:(y)
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
yes after flashing fixed.bin but I'm still confused why flashing from recovery didn't work
[Android Software/Hacking General [Developers Only]] ghost9640:
Okay so everything work as planned but now I have a question hopefully not annoying so here goes I ran

Everything as prescribed and now I have a .bin file how to I get this to flash or install
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
you need to transfer the super_fixed.bin to pc & then put phone into fastboot & flash the super_fixed.bin using the command

fastboot flash super super_fixed.bin
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
I have a question. Whenever I want to change a rom do I have to first install the rom then this package & then flash super_fixed.bin ?

If I already have the super_fixed.bin for that rom & never executed this script. can I just change the rom script to flash super_fixed.bin instead of super.img Will That work? or can i just flash this bin file over the rom? will that still give me rw permission? In other words can I just create a rom that already has rw permission?
[Android Software/Hacking General [Developers Only]] wsdyleon:
everthing goes well ，but rw cannot work，

my phone is xiaomi civi with vab partions。

i just wanna modify the system
[Android Software/Hacking General [Developers Only]] ghost9640:
fastboot'd not fastboot btw but so far its working on 13/15 yall are st8 G im sooo greartful
[Android Software/Hacking General [Developers Only]] ghost9640:
:cool::cool::cool:

quick and painless im thinking i may want to give more than what is here now tho can i do this one more time on general purpose???
[Android Software/Hacking General [Developers Only]] ronaldocoyle:
Ok I figured it out. Turns out I just needed to flash with bigger partition size. Works fine on redmi note 11 android 11.

I have a suggestion. Since it modifies the rom & no modification to phone is needed maybe you could build a simple mobile app that let's people to just edit & restitch super.img with system rw. That way everyone can easily share custom roms easily without worrying about rw protection.
[Android Software/Hacking General [Developers Only]] lebigmac:
Congratulations! It looks like it worked for you :D(y)

This mount -o remount,rw /system should be changed to this mount -o remount,rw /

What used to be /system in Android 9 and earlier is now / in Android 10+

If you can mount / as rw and delete stuff but you cannot create files inside / that means you must run script again with larger custom size. Then script will give you some extra space to work with :D Don't worry next version of script which will be released in the next 2 weeks already has fully working auto-resize feature ;)(y)

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

Sure you can run script multiple times ;)(y)

Hello. Open systemrw.sh script file with text editor and replace line # 238 with this one:

makeRW $fName

Now save file and try again. Good luck! (y)
[Android Software/Hacking General [Developers Only]] Prince.Paul.K:
Hope it will support sdkversion=31. As of now script is failing sdkCheck().

Else will it work if I modify to add version 31 in the script?

Hatsoff for the contribution..!!(y)(y)
[Android Software/Hacking General [Developers Only]] llcrs2015:
Help. I do not have TWRP on Mi 11 pro, how to flash the received FIX without TWRP via fastboot?
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @Prince.Paul.K thanks for your interest in this SystemRW / SuperRW feat. MakeRW by lebigmac project and for your kind words :D(y)

I hope THIS will answer your question regarding the sdkCheck() function ;)(y)

Good luck! (y)

Hello @llcrs2015 Did you run script in Android as root? Then you should have the super_fixed.bin file in /img subfolder of script path.

Just reboot device to bootloader and flash it and make sure you've got an original stock super.img at hand in case anything goes wrong. Good luck! (y)
[Android Software/Hacking General [Developers Only]] Prince.Paul.K:
That is quite promising to see that things are future proof in the nearer time frame..!!

Will try and will definitely come back with the experience.
[Android Software/Hacking General [Developers Only]] llcrs2015:
What commands to prescribe when flashing via fastboot in ADB?
[Android Software/Hacking General [Developers Only]] jroki:
You need fastbootd by typing fastboot reboot fastboot

Then type fastboot flash super super_fixed.bin
[Android Software/Hacking General [Developers Only]] jroki:
For Samsung users without TWRP rename the super_fixed.bin to >>> super. Img then use 7zip to compress it to Tar

Then flash through odin
[Android Software/Hacking General [Developers Only]] Shun_5377:
A few days ago, my device (ROG Phone 5) (running Android 12, and previously successfully gained write and read permissions to the System folder) was stuck in a boot loop. Then, I flashed the original bin file generated by the script, but to no avail, and ended up in booting my device into EDL mode and restoring stock firmware.

Is there any img file I need to flash in addition to the original img?

Thanks.
[Android Software/Hacking General [Developers Only]] llcrs2015:
Thank you!!!!!!
[Android Software/Hacking General [Developers Only]] llcrs2015:
Edited under Android 12
[Android Software/Hacking General [Developers Only]] GAMB.exe:
redmi k40 gaming, global (india) rom miui 13, twrp - after successful conversion of super to rw and its automatic flashing, the device goes into bootloop.

is there any chance the new version will work fine for me?

Or is the problem unique to my device with a specific firmware?
[Android Software/Hacking General [Developers Only]] ghost9640:
Day 3 works perfectly y'all are massively appreciated boot logos r essential you should've seen my bosses face when I showed him Android peeing on apple... Priceless
[Android Software/Hacking General [Developers Only]] Prince.Paul.K:
@lebigmac

I have successfully done it on Redmi Note 10 pro (sweet/sweetin) Android 12. Modified /vendor to fix the green tint issue while flashing sweet MIUI rom by EU on sweetin. I badly needed this because banking apps were detecting root and were not working. Flashed super_fixed.bin and unrooted.

Will it be possible to make it back readonly (tune2fs -O read-only vendor.img) ?

Thanks a trillion for your script and other devs for their tools..!!
[Android Software/Hacking General [Developers Only]] akrox:
Thanks for your attention. I did tried this... and indeed i was able to flash it with odin. But it did nothing as lebigmac said it doesn't work for samsung yet!
[Android Software/Hacking General [Developers Only]] jroki:
What Samsung device are you having S22 has f2fs file system not yet supported
[Android Software/Hacking General [Developers Only]] akrox:
My device is Samsung S22+ (SM-G906B)
[Android Software/Hacking General [Developers Only]] Eng.Raman:
Can this script make full RW (777) for ( /apex/com.android.art/ ) ?
[Android Software/Hacking General [Developers Only]] SavXL:
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.
[Android Software/Hacking General [Developers Only]] Sivalinga:
everything is fixed here on the advice of the developer of the script for android 12
[Android Software/Hacking General [Developers Only]] SavXL:
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?
[Android Software/Hacking General [Developers Only]] lebigmac:
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)
[Android Software/Hacking General [Developers Only]] TheShadowOfAGhost20:
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.
[Android Software/Hacking General [Developers Only]] SavXL:
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! :)
[Android Software/Hacking General [Developers Only]] makrodus:
Successfully passed on Poco x3 Pro, android 12, MAUI 13.
[Android Software/Hacking General [Developers Only]] llcrs2015:
Android 12 firmware 22.5.25 xiaomi.eu is such a problem. Help with advice
[Android Software/Hacking General [Developers Only]] Prince.Paul.K:
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.
[Android Software/Hacking General [Developers Only]] llcrs2015:
I have 256 gigabytes of memory on my device, of which 200 are free!
[Android Software/Hacking General [Developers Only]] erichappy86122:
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
[Android Software/Hacking General [Developers Only]] calrloca:
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?
[Android Software/Hacking General [Developers Only]] erichappy86122:
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
[Android Software/Hacking General [Developers Only]] lebigmac:
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)
[Android Software/Hacking General [Developers Only]] erichappy86122:
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

log.txt

drive.google.com
[Android Software/Hacking General [Developers Only]] degr_ramos:
Is it possible to use this on custom roms that use EROFS?
[Android Software/Hacking General [Developers Only]] Targonus:
Realme Narzo 30A. Сценарий не работает...plox help
[Android Software/Hacking General [Developers Only]] lebigmac:
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... 🕗 ⌛
[Android Software/Hacking General [Developers Only]] Greenspoof:
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 !
[Android Software/Hacking General [Developers Only]] sunmughans:
I'm a Samsung F22 user with OneUI4.1 (A12), I'm too excited for your new release of "System_rw" patch. ☺️
[Android Software/Hacking General [Developers Only]] wsdyleon:
same problem with my xiaomi civi（mona）
[Android Software/Hacking General [Developers Only]] puturaya20:
how to make miui xiaomi.eu to rw through windows ?

please respond
[Android Software/Hacking General [Developers Only]] FKX1997:
Oneplus 10 pro a12 2213 rooted.

File creates 7/7 and flashes fine but root and or system is still ro. link2sd cannot remove youtube

remount returns " /system' not in /proc/mounts" but sys returns nothing

I am basically looking to fully remove system YT and allow vance to install root fully
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Just use vanced manager and turn the stock YouTube into vanced YouTube... Same with YouTube Music.
[Android Software/Hacking General [Developers Only]] FKX1997:
It auto updates when i turn off auto update, it just forces a update so i have to keep amending it. If i can remove it all together then i can just use vance
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Question... Do you just hit the tick mark on the YouTube app page that says Enable auto-updates? Cause yeah unchecking that doesn't work. I had the same issue. On the playstore, hit your photo on the top right, then choose settings, then click network preferences, and on the Auto-update apps choose Don't auto-update apps. Then nothing will automatically update unless you manually update anything.
[Android Software/Hacking General [Developers Only]] FKX1997:
Granted i do, However on my OP5 i had no issues but of course was a later OS, Seems 11/12 will update regardless. Il try this tweak though. I usually find its every 6 ish hours i have to redo vance currently

Also to be able to edit the build.prop with ease would be good too opposed to using modules ect. RW would help with that as well
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Hmmm, then something is terribly wrong. Play store shouldn't be automatically updating apps if you specifically instruct it not to.
[Android Software/Hacking General [Developers Only]] FKX1997:
Oh for sure, I found the gapps use a lot of power and there's glitch's with the gui and how it links to say gpay, apps that i set up to NOT update still do. Honestly its a sh*t show of a device oppose to the OP5

Even Widevine glitches on netflix, System is L1 and Netflix is L3. RW i hope will allow me to mess around more system wise
[Android Software/Hacking General [Developers Only]] FKX1997:
In regards to your issue, is there not another file/zip in 1.32 for error 73?

"Extract BUNDLE.zip (the included sysrw_repair.zip is only for fixing error 73!)"
[Android Software/Hacking General [Developers Only]] deathglass:
After running this on android 11, the test command (for a in /dev/block/dm-*; do mount -o remount,rw $a; done) returns:

mount: '/dev/block/dm-1' not in /proc/mounts

'/dev/block/dm-3' is read-only
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Not sure what your referring to. The commands given I ran as instructed, but until I ran into error 73, I had not seen anything referring to that error. Unless I missed something. But I did reread everything afterwards to make sure I hadn't.

EDIT: So after posting this I went back to the beginning and started reading it and saw what you were referring to. Downloading now and going to run it. Will post results. Thanks for pointing that out. Not sure how I missed that twice.

EDIT #2: So I ran the repair script but it gave no output. No confirmation that it did anything and no error. Just went back to the command line. So then I ran systemrw.sh again with the exact same results. Since no output was received upon running the repair script, I wonder if it did anything at all. This is starting to aggravate the hell out of me. When you mentioned that Bundle to me, I got hopeful again but unfortunately I'm still very much stuck.
[Android Software/Hacking General [Developers Only]] lebigmac:
@Paul_Neocube This error 73 (input/output error) could be somehow related to selinux I think. :unsure:
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Double post.... disregard.
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Hmmm, not sure how to find out and more importantly, how to solve, if at all possible.
[Android Software/Hacking General [Developers Only]] lebigmac:
This is not normal. Please show screenshot of how you are launching the sysrw_repair.sh script. Thanks (y)

Here you can find the official sysrw_repair.sh script instructions. Good luck! (y)
[Android Software/Hacking General [Developers Only]] thecompyoda:
Outstanding! I have a OnePlus Nord n200 5g, and thanks to this script r/w is working great!

I had to run the script from adb shell in system mode. Running this script in fastboot mode, or recovery did not work due to the encryption system. Decrypting with TWRP does not work on this phone no matter how many times you set a pin, or password for the phone. This phone does have a super partition.

The steps I used to get it working are:

unzip the flashable zip.

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

adb shell

su

cd /data/local/tmp/systemrw_1.32/

chmod +x systemrw.sh

./systemrw.sh size=100

##### WAIT UNTIL YOU SEE: Please reboot into bootloader and flash the file(s) manually

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

adb reboot fastboot

fastboot flash super super_fixed.bin

reboot into system, then tested with:

adb shell

su

mount -o remount,rw /

cd /system

touch test

ls -als test <- you should see the "test" file size, permissions, creatd date etc

rm -rf test

I hope this helps somebody else having issues with encrypted phones.

Thank you for your hard work!