yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
So yeah, I was running it from the phone lol. My bad. .... I wll let the output tell you what did go wrong though.

Welcome to makeSystemRW v1.32 troubleshooting program by lebigmac

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

Initiating procedure...

Pulling all *.img files from phone to ./img folder. Please wait...

/data/local/tmp/systemrw_1.32/img/product_a.img: 1 file pulled, 0 skipped. 37.1 MB/s (3127209984 bytes in 80.405s)

/data/local/tmp/systemrw_1.32/img/product_b.img: 1 file pulled, 0 skipped. 38.5 MB/s (718999552 bytes in 17.793s)

/data/local/tmp/systemrw_1.32/img/system_a.img: 1 file pulled, 0 skipped. 38.4 MB/s (947814400 bytes in 23.518s)

/data/local/tmp/systemrw_1.32/img/system_b.img: 1 file pulled, 0 skipped. 39.2 MB/s (1278906368 bytes in 31.076s)

/data/local/tmp/systemrw_1.32/img/vendor_a.img: 1 file pulled, 0 skipped. 40.4 MB/s (769277952 bytes in 18.158s)

/data/local/tmp/systemrw_1.32/img/vendor_b.img: 1 file pulled, 0 skipped. 39.7 MB/s (478085120 bytes in 11.476s)

Pulling myargs.txt file from phone to current folder

/data/local/tmp/systemrw_1.32/log/myargs.txt: 1 file pulled, 0 skipped. 0.5 MB/s (920 bytes in 0.002s)

Replacing paths in myargs.txt file

Attempting to run lpmake for linux using arguments from myargs.txt. Please wait...

lpmake I 06-05 02:42:05 74830 74830 builder.cpp:1012] [liblp]Partition system_a will resize from 0 bytes to 947814400 bytes

lpmake I 06-05 02:42:05 74830 74830 builder.cpp:1012] [liblp]Partition system_b will resize from 0 bytes to 1278906368 bytes

lpmake I 06-05 02:42:05 74830 74830 builder.cpp:1012] [liblp]Partition vendor_a will resize from 0 bytes to 769277952 bytes

lpmake I 06-05 02:42:05 74830 74830 builder.cpp:1012] [liblp]Partition vendor_b will resize from 0 bytes to 478085120 bytes

lpmake I 06-05 02:42:05 74830 74830 builder.cpp:1012] [liblp]Partition product_a will resize from 0 bytes to 3127209984 bytes

lpmake I 06-05 02:42:05 74830 74830 builder.cpp:1012] [liblp]Partition product_b will resize from 0 bytes to 718999552 bytes

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Invalid sparse file format at header magic

Successfully created patched super image at /home/neocube/Downloads/sysrw_repair_v1.32/img/super_fixed.bin

Rebooting phone into bootloader for flashing super_fixed.bin...

< waiting for any device >
[Android Software/Hacking General [Developers Only]] FKX1997:
This suggests the file is made, the flashing is still yet to be done
[Android Software/Hacking General [Developers Only]] FKX1997:
Did you need to rename the super fixed to super_origin for Oneplus ?
[Android Software/Hacking General [Developers Only]] thecompyoda:
I did not have to rename.
[Android Software/Hacking General [Developers Only]] FKX1997:
IL give this ago again this week and try this way. I followed others in saying i would need to rename. It worked per say but couldn't get RW
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Correct.
[Android Software/Hacking General [Developers Only]] kendrick5150:
hey , im new with this stuff , my phone is infinix note 8 (X692) , i want to try to use custom ROM (only ROM that have less than 500mb work for some reason) or atleast try using GIS Android 11+ . the only thing that work is GIS Android 11 and Corvus OS without GApps when i tried install GApps i dont have enough space to install Apps. someone told me to use this to increase the super.img or system size , when i put size=500 , sometime when i flashed the zip on TWRP , i got some errors

/system_root (no such directory) or /system_root (busy)

missing vendor and data partition. after deleting super_fix.img

and sometime when almost finished it said that i dont have enough space for vendor and data

I saw there some change after i flashed internal increased from 13GB to 19GB. but when i tried installing FlameApps-basic i still got sufficent size (with same size like before im flashing this RW , 200mb left and need 500mb space to install FlameApps)

Edit : im using this post tutorial .

https://xdaforums.com/t/script-andr...kerw-read-write.4247311/page-89#post-86984169

but im not sure if im did right or not ?

is this good ?
[Android Software/Hacking General [Developers Only]] this.guy.lol:
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.
[Android Software/Hacking General [Developers Only]] lebigmac:
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)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
can't search thread for whatever reason I don't know. From windows computer connected to phone, trien to use code in ADB Shell SU but after entering SU I get permission denied. Root checker on phone say I have root, SIM and bootloader unlocked. So why are the permissions denied. Is it because I am on OOS 12, or what. Just checking some of the pre-recqusites.....
[Android Software/Hacking General [Developers Only]] JohnTheFarm3r:
I didn't have issues on Android 12 with 1.32 on Samsung Tab S7 Plus. It was working perfectly fine. FYI
[Android Software/Hacking General [Developers Only]] JohnTheFarm3r:
Well if Magisk denied the root access you should manually enable it in the Magisk app.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Will check into how to do that with Magisk v24.3
[Android Software/Hacking General [Developers Only]] Paul_Neocube:
Easy, I had to do it as well. Just go into the Magisk app, click on the Superuser (shield) icon and move the slider for whichever app you want to grant SU to.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
She'll was the only one disabled, so I enabled it. Will see what happens now. The ADB script in the first post is for using ADB on laptop to check for "super" correct? Also what should I expect the command to return?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
this is what I get when running the script when phone connected to laptop checking for shared blocks.... opinions? What am I looking for in the results? From what I see, there are shared blocks!
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Looks like I do have "Super" based on this script output....

lrwxrwxrwx 1 root root 16 1970-01-30 14:22 /dev/block/by-name/super -> /dev/block/sda19
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Not working, attached are my logs!
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. What do you mean not working? Thanks for your logs! (y) They look fine!

Can you do this now?

adb shell
su
[Android Software/Hacking General [Developers Only]] TheGhost1951:
got stuck in fastboot loop, and said not os installed. I had installed TWRP for OnePlus OxygenOS 11 to flash the script... I am just now getting back to normal
[Android Software/Hacking General [Developers Only]] JohnTheFarm3r:
If you're OnePlus 9 Pro, and OOS12, don't bother with this script, it doesn't work on A12. Tested already. Works fine on A11 though.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I was on A11, I downgraded to 11 just for this script. I used the MSM tool to revive the device and allowed the device to normally update to A12. I will wait untill a more refined procedure comes out I guess. Thank you for your input!
[Android Software/Hacking General [Developers Only]] lebigmac:
It cause fastboot bootloop on your OnePlus 9 Pro 5G?

Do you have any idea what could be the reason? I never used OnePlus device before. Thanks (y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Not sure, TWRP was acting a little squirrelly, flashed the zip first time and had slot of failures, in TWRP I mounted the /system /data etc partitions and flashed again. Then on reboot it went into Fastboot loop....
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I was on A11 11.2.3.3 when I worked on this!
[Android Software/Hacking General [Developers Only]] TheKnux:
Use manager in non-root mode. Disables play updates.
[Android Software/Hacking General [Developers Only]] Gamercoolss:
anyone know why this occur? im trying to make systemrw on lg v60 with this tutorial but im stuck at part 6
[Android Software/Hacking General [Developers Only]] alecxs:
I wonder why script continues. after "No such file or directory" it should immediately exit from non-zero return code
[Android Software/Hacking General [Developers Only]] AntonArd:
Great work 👍

It works fine with OnePlus 7T. I flashed zip (systemrw_1.32_flashable.zip) via TWRP and make super image with sysrw_repair_v1.32_proper.zip on my laptop. You can mount system.img, product.img, vendor.img on PC and edit it, and after that create and upload super image.

Thank you! 🤝
[Android Software/Hacking General [Developers Only]] deserted:
I'm looking forward to the new version running in Realme (7 Pro).

I currently have a custom rom with Android 12, but in every custom rom (A11 or A12) something doesn't work and I'm sick of it and would like to go back to the official version of Android 10.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
OnePlus 9 Pro, OxygenOS 12, Rooted with Magisk. Ran the script ./systemrw.sh size=15 and I got this....your requirements stated Android 10+...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Is this script compatible for the OnePlus 9 pro A12 bootloader unlocked and rooted with magisk?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ok, I'm on OxygenOS 11.2.3.3 rooted with bootloader unlocked. Tried running in termux app the script ./systemwide.sh size=20 and it stated that it had successfully dumped the super img but it didn't! What am I doing wrong...ran the chmod +x without error before this.
[Android Software/Hacking General [Developers Only]] lebigmac:
check your path

Script folder should be installed to /data/local/tmp/systemrw_1.32

In every screenshot you've got a different path...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
will try again, i removed the period in the 1.32 folder name....will put it back and try again
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ok, corrected the path re-ran the script "./systemwide.sh size=20" and it completed successfully. I guess my final question is what do I do with this statement, instructions aren't really clear about this part..."systemrw: Please reboot into bootloader and flash the file(s) manually"
[Android Software/Hacking General [Developers Only]] lebigmac:
Flash super_fixed.bin to your super partition with fastboot or whatever program you OnePlus guys use to flash your devices. Good luck! (y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
tried to flash in both fastboot and fastboot d with this command and got error..

c:\adb>fastboot flash super /data/local/tmp/systemrw_1.32/img/super_fixed.bin

fastboot: error: cannot load '/data/local/tmp/systemrw_1.32/img/super_fixed.bin': No such file or directory

But I can use a root explorer and it shows that the file is in that exact path...

running fastboot on PC....latest platform-tools....i will not give up! any tips from anybody
[Android Software/Hacking General [Developers Only]] TheGhost1951:
another question, does it matter in this process if the oneplus 9 pro is a t-mobile le2127 variant?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ok, I had installed TWRP on Android 11.2.3.3, it was acting squirrelly, but I ran the "systemrw zip file" and it ran but toward the end it stated couldn't mount several partitions. I also lost Magisk Root, couldn't make changes in the designated partitions with root browser. Essentially had no R/W or root. Completely restored my phone and updated to Android 11.2.9.9 unlocking bootloader again and installing root with Magisk. Ran the "chmod script", successful and then the "./systems.sh size=500" and was successful. Now trying to figure out how to flash the files on Android without TWRP.....ideas?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Update...booted to TWRP with fastboot temporary, flashed the zip, seemed to work but ran script "for a in /dev/block/dm-*; do mount -o remount, rw $a; done" returned /dev/block/dm-4 is read-only..,... what am I doing wrong. I really want this script to work! on Android 11.2.9.9 OnePlus 9 Pro TMO
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @TheGhost1951 your log couldn't look any better ;)(y)

And that last screenshot is looking good. Those warnings at the end that's TWRP related (just reboot device to get rid of it)

No bootloops when booting into Android? I'd call that a success.

Can you do this now?

adb shell
su
[Android Software/Hacking General [Developers Only]] TheGhost1951:
will try...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
the readout looks like yours, rebooted however when I try to create a new folder in each of those remounts, i get not enough memory....do i need to increase the size by changing the config.ini then re-run the zip?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
yaaaa, edited the config file to size 700, re-zipped and copied it to the internal storage, temp booted twrp and flashed it, everything is working, added folders and they held no errors.....thanks for all your help lebigmac. OnePlus 9 Pro TMO on Android 11.2.9.9. Will stay at this version until the script will work for A12. Thanks again!!!!!!!
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Can I now delete the super_original in the img folder to free up space? Never mind, I got it all figured out!
[Android Software/Hacking General [Developers Only]] ebowen 747:
Is this working for Android 12?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Look two posts up.....
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
I knew automatic was just to be too good to be true, lol.

Spoiler content hidden.

OnePlus 6T on latest OOS (A11) here.

Spoiler content hidden.

Guess I'm going for a manual install then.. Ugh, work! Typing and stuff! 😩

Edit: done.. But aborted? It seems to have done something. Reboot and check?

Spoiler content hidden.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
How did you try automatic? The way I did it was to use and to boot to fastboot, then used command to fastboot boot (twrp.img) for your model phone. This would put you in twrp recovery temporarily and flash the systemrw_1.32_flashable zip. Wait for it to completely finish. Then reboot system. This is done after you have achieved root with Magisk or what ever rooting process you use! Good luck!
[Android Software/Hacking General [Developers Only]] TheGhost1951:
We're you even rooted to begin with?
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi there @Timmmmaaahh! . Thanks for your log.

OnePlus 6T from 2018? That's pretty old device but the specs still look pretty good even today ;)

You're moderator? In that case I'm really happy my script didn't brick your device otherwise you'd probably ban me :LOL:

So your phone's slot _a/_b partitions are locked to read-only ? It doesn't look like it's caused by the infamous shared_blocks read-only feature.

I'm assuming your device has additional read-only protection features that we must disable to achieve rw capabilities.

Don't worry sooner or later we will make your device fully read/write-able ;)

One of my upcoming versions should fix your problem (y)

Don't lose hope. I know how annoying it can be to be locked to read-only. It sucks. It's not real root if it's read-only...

Cheers.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Just flashed in TWRP, it's my default recovery.

Yes, at all times.

Haha, if we would ban everyone developing tools that can mess our devices, this place would be very quiet :LOL:

I am very grateful for all the amazing contributions here and I will happily take the blame for messing up my own device, lol.

Yes, A/B slots are present and apparently no super partition. I'm looking patiently forward to your upcoming releases :)

I don't really understand why it's read-only. Magisk does seem to function properly so I'm guessing the Zygote injection still works and systemless adjustments like Universal SafetyNet Fix is doing what it's supposed to do.

A few days ago I was still two versions behind on official updates and my 128GB internal storage kept running out of free space (3+ years of data accumulation 🤷‍♂️) so I decided taking the final update and thorough cleaning was way overdue. Before I cleaned my system I was trying to achieve better root hiding as one of my apps started detecting Zygisk. To do this I switched to a Magisk Alpha fork. Even though I had uninstalled the LSPosed module (parasitic manager) Applist Detector was still detecting it, I'm assuming this is due to LSPosed's deep hooks that permanently had manipulated my system.

To start fresh I manually installed the upgrade via the system updater (full 2GB+ image downloaded with Oxygen Updater), before rebooting I re-flashed TWRP via Magisk official Canary and used that same Magisk to inject itself into the inactive slot, then rebooted to recovery. In TWRP (3.4.0-11 unofficial) I wiped Data + Internal + Caches and rebooted to system. No more LSPosed detection so the update has probably overwritten all system files. I'm guessing that in this process my system became read-only. Could that be the case? I didn't have this 'partition mounted abnormally' detection in Momo before the update. Thank you for helping me out!

Spoiler content hidden.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Hey lebigmac, does your future development include workable script for Android 12. By the way, your work is awesome! I am trying to research where the system stores its' fonts so that I can play around with adding custom fonts that will work systemwide. So far the Magisk Font Manager only changes a few fonts but not systemwide. Third party apps are less successful. Have a great day my friend!
[Android Software/Hacking General [Developers Only]] AcevonLaura:
Work like a charm on rog phone 5 👍
[Android Software/Hacking General [Developers Only]] Merotaha:
bro, i've been asking you this question since 3 months.

i wish you would answer

i am successful on my redmi note 10 pro running android 11, my main purpose is to get rid of power consumed by other apps and enhance my battery life.

now tell me what i should do next, cause i am lost.

how do i remove the unnecessary bloatware off of my phone, what tool and instructions and don't tell me use your favorite debloater, cause if i had one i wouldn't ask you.

i wanna remove these apps from their root completely, i could use more battery and more storage.
[Android Software/Hacking General [Developers Only]] deserted:
A little off topic, but my favorite ADB AppControl.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Here, https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/

or use Mixplore pro app to delete app folders after location paths determined using device info app.
[Android Software/Hacking General [Developers Only]] washichi:
I have the same question.

I'm using a custom rom and want to write to /system/apps/ but this isn't possible because its EROFS.

I don't think this script will work, but anyone with suggestions how to approach this? (without repacking system.img and reflashing).
[Android Software/Hacking General [Developers Only]] PTechz:
Device: Redmi 9 Activ (Cattail)

Android Version: 10

Stock Rom: Yes

Rooted: Yes (Magisk)

Command: ./systemrw.sh --size=12000 command.

Now, I got this error.

Error:

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

Can I flash (system.img, vendor.img & product.img) manually from TWRP?

Thanks for reading this, have a good day.
[Android Software/Hacking General [Developers Only]] 2mkl:
Where is the problem?

In manual mode via Termux - as in screenshot.

By flashing from TWRP - reboot to system...

Bison Pro, A11, Magisk, TWRP, stock FW
[Android Software/Hacking General [Developers Only]] furomin:
You need top run su command beforehand
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ok guys, I just upgraded to T-Mobile's LE2127 Android 12 C16 OnePlus 9 Pro. I know, this script is not compatible with A12 yet, but I am hoping. I will patiently wait for the developer to do his thing. May you all be blessed this year! I went ahead and tried the script anyway, but as expected this version of android not supported! Bummer...........
[Android Software/Hacking General [Developers Only]] warhawk971:
The whole process ended with "There was a problem removing the read-only lock of system.img"
[Android Software/Hacking General [Developers Only]] Ayoub$#:
This is the real problem
[Android Software/Hacking General [Developers Only]] lebigmac:
Usually problem removing the read-only lock means you already have read-write activated on your system for example if you have custom ROM.

You can check by doing this:

mount -o remount,rw /

Unknown extended option: unshare_blocks

This is interesting. Throughout 2 different threads of development I've never seen this error before.

You're the first person with this error. Congratulations!

Your only problem is you can't run this command on your phone:

e2fsck -y -E unshare_blocks /data/local/tmp/makesysrw_1.15c/files/nosuper/system.img

Try run that command and you will see what I mean.

This function is very important for successfully removing the read-only lock of system.img !
[Android Software/Hacking General [Developers Only]] TheSalvatoRay:
hi bro, I am a nobby with the android theme (in Windows I can optimize everything you want) I have xiaomi redmi note 9s with android 10 and I am in stock I have system folder problems in only
[Android Software/Hacking General [Developers Only]] TheSalvatoRay:
reading and it seems that with your script it can be fixed, I have Orange Fox but what it does not understand is what to do exactly, I mean, I flash the Zip file in the recovery and that's it?
[Android Software/Hacking General [Developers Only]] mOlDaViA:
Hm... doesn't seem to work for me:

makesysrw: There was a problem removing the read-only lock of odm.img I:Updater process ended with RC=0

What could that be?

Edit: Seems like i can't add the log for some reason.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Are you using a custom ROM?

You can make a full log like this:

/data/local/tmp/makesysrw_1.15c/makesysrw.sh > /data/local/tmp/makesysrw_1.15c/log_moldavia.txt
[Android Software/Hacking General [Developers Only]] mOlDaViA:
Indeed, i do. RefinedUi 2.0 but i thought the system behind would be almost the same.
[Android Software/Hacking General [Developers Only]] lebigmac:
What happens if you run this command?
[Android Software/Hacking General [Developers Only]] warhawk971:
got same error as before....
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Thanks for confirming this. Looking at your screenshot it seems that your system is already read write. Are you using custom ROM ?
[Android Software/Hacking General [Developers Only]] Ayoub$#:
Code:

adb devices

adb shell '[ ! -z "$(/system/bin/ps -A | grep -v grep | grep -c daemonsu)" ] && echo "is rooted" || echo "is not rooted"'
[Android Software/Hacking General [Developers Only]] warhawk971:
yes, I'm using Corvus_v14.5-Mutate-Official. Well in short I wanted to limit the sound output to speakers to reduce distortion. For this made some changes to mixer_path_tevil.xml file. But got the error ERROR only file system......but even after following your steps ,It's still showing the same. but Your script worked fine for others. well'n good :)