yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @sarychev.rescue thanks for your interest in this project and for your feedback!

Congratulations! I am happy for you that my script worked successfully on your Xiaomi device!

Please feel free to post some screenshots if you want!

If you look closely at line #453 of script file (systemrw.sh) you can see that mkdir -p command argument is used to create /img directory if not exist. No need to create /img directory manually.

size=500 is a little bit crazy! I don't recommend going above 100. The lower this value the higher the chance that script will actually work ;)

Hi @NisseGurra thanks for your log files!

Holy cow! I just checked your log and you do have a system_b-cow partition!

It looks like cow error 70 is in fact fixed simply by omitting all cow related files when calling lpmake. This is great news!

Error 73 is easy to fix using the included troubleshooting repair script (Linux only).

Simply boot into any random Linux distro's live installation disk and run troubleshooting repair script from there.

Or you could try to run it from a virtual linux machine. Simply enable your USB 2.0 and 3.0 ports in virtual machine settings.

Good luck!
[Android Software/Hacking General [Developers Only]] NisseGurra:
Tested the repair script in linux, cant not get it to run at all.

I don't find any clear install instructions but even with proper abd install it can not get the script to run:

adb shell

su

chmod +x /data/local/tmp/sysrw_repair_v1.32/sysrw_repair.sh

cd /data/local/tmp/sysrw_repair_v1.32

./sysrw_repair.sh

Gives "inaccessible or not found"
[Android Software/Hacking General [Developers Only]] lebigmac:
Your paths are wrong. Please double check again your paths. You are running this on a Linux machine right? Good luck!

sudo su
cd /PATH_TO_WHERE_YOU_EXTRACTED_/sysrw_repair_v1.32/
chmod +x ./sysrw_repair.sh
./sysrw_repair.sh
[Android Software/Hacking General [Developers Only]] NisseGurra:
Paths seems ok, can change permissions of the file.

Yes, running in ubuntu
[Android Software/Hacking General [Developers Only]] lebigmac:
Are you sure? Looking at your screenshot it looks like you're trying to run this troubleshooting repair script on your phone from within root explorer, right? Please keep in mind the troubleshooting repair script is Linux only and is not designed to be run on the phone itself, unlike the systemRW script

Click here for error 73 troubleshooting repair script instructions
[Android Software/Hacking General [Developers Only]] NisseGurra:
No go, edited #!/bin/bash to correct path, tried again in ubuntu, getting permission denied even with su and chmod +x ./sysrw_repair.sh

To messy, give up for now
[Android Software/Hacking General [Developers Only]] bseosbseos:
I don't have a custom recovery for my Pixel 4 XL running latest android 11, will this still work for me?
[Android Software/Hacking General [Developers Only]] Gentisz:
OK,Let me try,thanks
[Android Software/Hacking General [Developers Only]] asuhoops8628:
hello, having an issue... Oneplus Nord N10 5g. Latest flashable zip appears to fail at the last step in Updating Partition Details:

Failed to mount '/system-root' (invalid argument)

Failed to mount '/vendor' (invalid argument)

Failed to mount '/product' (invalid argument)
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @asuhoops8628 that's not related to script or update-binary. Those are TWRP related errors.

Can you successfully boot into system after flashing super_fixed.bin?

Please send me your log files from /data/local/tmp/systemrw_1.32/log/

Thanks!

Hi @Gentisz new version of script apparently works for OnePlus devices too. Feel free to give it a try while you're at it! And please send me back your results. Thanks!

Also keep in mind you will have to restore original stock read-only super image before using each tool (SystemRW script by @lebigmac or Superrepack tool by @munjeni) as both tools pretty much do the same thing but in a different way (y)
[Android Software/Hacking General [Developers Only]] asuhoops8628:
False alarm - I reflashed my rom, flashed your zip and it appears to be working!

EDIT: Confirmed working flawlessly, OnePlus Nord N10 5G
[Android Software/Hacking General [Developers Only]] lebigmac:
That's wonderful news for OnePlus users! Could you please upload a screenshot here in this thread and send me your log files? Thanks! You can send me logs through PM if you want.

Then I can add your device to the list of successful devices on first page! (y)✅

Try remounting your partitions as r/w like this:

adb shell
su
for x in / /product /vendor; do mount -o remount,rw $x; done
[Android Software/Hacking General [Developers Only]] bseosbseos:
I have installed/flashed my custom kernel with "EX Kernel Manager"

Is it possible to flash this script with EX Kernel manager or is it advised to use TWRP only?
[Android Software/Hacking General [Developers Only]] bseosbseos:
Ok, so i managed to find an test version of TWRP compatible with Android 11 for my phone (Pixel 4 XL).

However I'm getting this error when i try flashing the image.

EDIT:​
[Android Software/Hacking General [Developers Only]] Danmann:
Hey

I just tried your script manually on Ulefone Armor X7 Pro phone.

The phone has only the possibility for root. TWRP might be possible but I haven't done it yet.

The script hasn't shown any major errors or at all. Check the logs.

So i flashed it:

fastboot flash super super_fixed.bin

But the system is still read only.

Any suggestions?

Thanks!
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @bseosbseos I can't find the error in your screenshot.

Please send me this file from your recovery /tmp/recovery.log

Hi @Danmann. First of all I'm happy the script didn't cause bootloop on your device.

Unfortunately your device have no shared_blocks (read-only) feature so script doesn't know what to do. Some other security feature is preventing your device from being mounted as r/w. If you figure out what's forcing your device to remain locked in read-only state please let us know! Thanks! Good luck!
[Android Software/Hacking General [Developers Only]] bseosbseos:
Uploaded here: https://pastebin.com/pKycev6A

EDIT:​
[Android Software/Hacking General [Developers Only]] lebigmac:
You are trying to flash the wrong file. The flashable zip is inside the BUNDLE. I hope this helps. Good luck!
[Android Software/Hacking General [Developers Only]] bseosbseos:
Thanks, I've flashed the flashable zip, looks like it succeeded. Here's my log: https://pastebin.com/y9PMNf6j

However I still can't seem to rename or delete some files within the system folder. Please see screen recording below:

EDIT:​
[Android Software/Hacking General [Developers Only]] sarychev.rescue:
Have you noticed that when you go to a folder ETC, your system becomes RO?

Have you tried to tap on the "mount RO" ?
[Android Software/Hacking General [Developers Only]] bseosbseos:
I was aware, I've also changed the parent directories to RW, still same error.

I've also used different file managers.

EDIT:​
[Android Software/Hacking General [Developers Only]] lebigmac:
@bseosbseos thanks for your feedback.

Your Pixel 4 XL device still boots up after flashing super_fixed.bin

I'd call that a success ;) Just kidding

To verify if script worked properly try these commands and send me screenshot.

adb shell
su
for x in / /product /vendor; do mount -o remount,rw $x; echo "it works! @ $x">$x/test.txt; cat $x/test.txt; rm $x/test.txt; done
[Android Software/Hacking General [Developers Only]] bseosbseos:
EDIT:​
[Android Software/Hacking General [Developers Only]] asuhoops8628:
I had to wipe data/factory reset after flashing the zip, the tmp file is gone.

If I reflash the zip, will it generate the log you need?
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @asuhoops8628 the log files can be found in /data/local/tmp/systemrw_1.32/log/

Thanks!

@bseosbseos thanks for the screenshots. Can you also please send me log files from this path? Thanks!

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

Hmm that's weird. Apparently you can only write to /product but it also worked on / (system), otherwise you couldn't mount it as r/w without error.

Why does it still say that / (system) is read-only? This must be an additional read-only protection feature implemented by your manufacturer (in addition to read-only feature called 'shared-blocks')

Can you check the filesystem features of your system partition? It might give you a clue as to what is causing it to still be read-only

tune2fs -l /dev/block/dm-? (replace ? symbol with 0, 1, 2, 3 , 4 or 5. Which ever is your system. You can check that with mount command mount | grep "dm-" )
[Android Software/Hacking General [Developers Only]] NisseGurra:
I came a bit further on my messed up sysrw repair

But got stuck on :

"!lpmake E 08-04 22:21:37 7769 7769 images.cpp:448] [liblp]open image file failed: /data/local/tmp/systemrw_1.32/img/system_b.img: No such file or directory"

The file is there but something messes up, ideas?
[Android Software/Hacking General [Developers Only]] lebigmac:
Was the file system_b.img successfully pulled from phone (/data/local/tmp/systemrw_1.32/img/) to the /img subfolder of sysrw_repair script project directory on your linux computer?

According to your log it was successfully pulled

If all files were successfully copied to your linux computer then try running lpmake command manually using arguments from myargs.txt
[Android Software/Hacking General [Developers Only]] NisseGurra:
Yes, files was pulled from phone ok, are there any guide in how the lpmake commands looks like?
[Android Software/Hacking General [Developers Only]] lebigmac:
Wait a second are you using old sysrw_repair version or the proper release? Re-download the latest sysrw_repair script from first page. The file paths have not been updated properly in your myargs.txt

You can run lpmake manually like this:

./tools/bin/lpmake `cat ./myargs.txt`
[Android Software/Hacking General [Developers Only]] bseosbseos:
lpdump.txt: https://pastebin.com/9KV6RNub

mylog.txt: https://pastebin.com/eX2uQ6ZM

tune2fs: https://pastebin.com/W2ATtgLC

EDIT:​
[Android Software/Hacking General [Developers Only]] Gentisz:
OnePlus8T still not working,
[Android Software/Hacking General [Developers Only]] Gentisz:
use command:./systemrw.sh in=`ls -l /dev/block/by-name/super | awk '{print $NF}'` out=./img/super_fixed.bin size=50

mannal flash: fastboot flash super .\super_fixed.bin

reboot just like last time: crashdump mode
[Android Software/Hacking General [Developers Only]] flypatriot:
Finally, I've got it worked on my OnePlus 8T.

To resolve the issue with "not enough space" on /system_root, /system and /vendor partitions when trying to write a file you need to do following:

1. Reboot to recovery and flash custom kernel with avb check removed. Most of the custom kernels support this feature. Reboot back to system.

2. Reboot to recovery and flash system_rw script with standard size=15. Reboot back to system.

3. Reboot to recovery and flash system_rw script one more time but with size=50. Reboot back to system.

4. Finally mount /, /system_ext, /vendor and /product partitions in rw mode.

Now you can copy and write non-zero files to this partitions.

@lebigmac Thanks a lot for your great job!!! You're the greatest man in the world!!!

P.S. I have KB2000 with OOS 11.0.8.14.KB05BA on board.
[Android Software/Hacking General [Developers Only]] jc-b:
flash successfully with twrp, but still "read only" any idea?

xiaomi redmi note 9 "Merlin"
[Android Software/Hacking General [Developers Only]] lebigmac:
@bseosbseos check your mount output:

It looks like it worked! Congratulations!

Hi @flypatriot thanks for the kind words! Congratulations for getting it to work on your device!
[Android Software/Hacking General [Developers Only]] _BГ@ckθut:
Working on OnePlus 7t latest 11.0.2.1! Please add odm partition next update please thanks!
[Android Software/Hacking General [Developers Only]] bseosbseos:
So, what am i doing wrong here?

EDIT:

So after trying to rename it in adb its giving me this error below. Looks like file is is use and I'm doing something wrong on my end. My bad.

I managed to get it working by using adb in recovery buy mounting in TWRP and doing mount -o rw,remount /system_root , and managed to delete the file: privapp-permissions-platform.xml.

but when i tried pushing the local copy of privapp-permissions-platform.xml im getting the folowing error: "write error: no space left on device in system".

Because i cant push this fil emy phone is stuck in bootloop.

EDIT:​
[Android Software/Hacking General [Developers Only]] bseosbseos:
I will try this and report if it works for me too.

EDIT:​
[Android Software/Hacking General [Developers Only]] flypatriot:
Today I updated to last 11.0.9.9 OTA and have lost the ability to write. My process didn't work. But after many tries I've got it working again.

So, there are additional steps that may help:

After the first flash of script (size=15) I've installed Magisk debloat module and removed some system apps like YouTube, YouTube Music and Google PlayMusic.

After that I've also installed MRW Magisk module.

Finally I've flashed the script for the second time with size=50.

Now everything's working again.

Hope this will help in case of bad luck.
[Android Software/Hacking General [Developers Only]] bseosbseos:
why do you need to flash initially with 15? cant just flash with 50 or will that break something?

EDIT:
[Android Software/Hacking General [Developers Only]] flypatriot:
To tell you a truth I don't know :)

Maybe you can do this with 50 in both steps. I've just tried this case and got it worked. I don't want to spend much time for researching and many tries.
[Android Software/Hacking General [Developers Only]] bseosbseos:
Thanks mate, changing size to 50 worked for me. Awesome. I just flashed it with size 50 once.

And big thanks to lebigmac

Confirmed working! on Google Pixel 4 XL on stock Android 11, rooted with magisk and on Kirisakura kernel with the following argument

size=50

Using the default size=15 would result in error "write error: no space left on device in system" when editing system partition.
[Android Software/Hacking General [Developers Only]] Syrop:
at lg v60 android 11

after run script at linux for fix error 73 i can't flash fixed super partition

fastboot flash super super_fixed.img

target reported max download size of 805306368 bytes

sending sparse 'super' 1/12 (781849 KB)...

OKAY [ 20.291s]

writing 'super' 1/12...

FAILED (remote: Cannot flash this partition in unlocked state)

finished. total time: 20.292s

How to fix it?

system and vendor rw ok, but no product =(
[Android Software/Hacking General [Developers Only]] KenIC1101:
i just download the "systemrw_1.32_BUNDLE_proper.zip" file...

i'm extract-ed it, and got 2 files.. "...flashable.zip" and "...repair...proper.zip".

-

so, which one i should flash through custom recovery?(orangefox)

or should i flash both files?(but '...flashable' first, or '...repair...proper' first?)

or should i didnt extract the "........_BUNDLE_proper.zip" file, and flash it instead?

-

and just for information, my device poco x3 nfc, currently on miui 12.0.6 right now...

-

anyway, thanks for your and credit-ed people hard works!

finally 'later', i will able to get rid unimportant apps from this phone :')
[Android Software/Hacking General [Developers Only]] mslezak:
I read above something about COW files - this little documented item (copy-on-write) gave me enormous issues (I modified a payload dumper to be able to use incremental OTA updates on rooted OnePlus devices, but it should work on any device that uses payload.bin in the zip files). It is a temp file created during an incremental update (dynamic/logical partition), which, sometimes remains on your device. I think I had system_a-cow and system_ext-a-cow that were around 2GB of space. Upon deleting, my super partition had all the room it needed to apply the 11.0.9.9.KB05AA still not available as a full ROM.

In fastbootd you can see if it's present:

fastboot getvar-all

Anything ending in -cow is a temp file that can be deleted, like this:

fastboot delete-logical-partition system_a-cow

fastboot delete-logical-partition system_ext_a-cow

fastboot delete-logical-partition system_b-cow

fastboot delete-logical-partition system_ext_b-cow

fastboot delete-logical-partition system-cow

fastboot delete-logical-partition system_ext-cow

Maybe the dev of this thread already fixed it, just thought it would be helpful if not. The only documentation on it I could find anywhere was where you wouldn't expect it to be: https://source.android.com/devices/tech/ota/virtual_ab/implement
[Android Software/Hacking General [Developers Only]] samsungics1200:
Gotta wait for the vendor mount on my poco m3 android 10 global system are rw but not vendor
[Android Software/Hacking General [Developers Only]] jc-b:
You have to share the link because the link's moodle isn't accesible.

thank
[Android Software/Hacking General [Developers Only]] Danymq:
Hello there, I think I need some help over here :(

I followed the process but I'm unable to write/edit an ini file in /vendor.

I'm able to delete the file, but if I try to creat a new one it just fails, any help??

BTW I'm already root with magisk, and enabled RW in root explored (es explorer failed too) both creat a 0 byte file and should be 16kb.

I'm in xiaomi.eu 12.5.3.0RJUMIXM.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @Danymq

It looks like you need to run script again with a larger size. Try running the script with size=50 parameter

Here are the instructions on how to modify the flashable zip's config.ini (source).

This should make reinstallation in custom recovery much quicker as it will skip the whole process of dumping super partition to device.
[Android Software/Hacking General [Developers Only]] Danymq:
Thank you a lot!!!

Totally saved my life, wifi back to life, not I will start playing with those settings until I find a way to reach 866mbps permanently instead of 192mbps.
[Android Software/Hacking General [Developers Only]] rakoncwy:
Is there no application method for Realme GT?
[Android Software/Hacking General [Developers Only]] 37berat37:
Hi , I have xiaomi mi note 10 lite, I want to rw my system partition but when I look It is too confusing. Could you create a program that works in windows? thx
[Android Software/Hacking General [Developers Only]] samsungics1200:
You just flashed it on your custom recovery like twrp nothing hard on it if you know rooting
[Android Software/Hacking General [Developers Only]] 37berat37:
After I flashed flasable.zip it is give this error, worked or not?

Update: I edited build.prop I think it worked . Mi note 10 lite miui 12.0.3(xiaomi eu rom) Android 10 TWRP TWRP 3.4.0-14 Unofficial by mauronofrio
[Android Software/Hacking General [Developers Only]] Mikhail Pashkov:
Xiaomi redmi Note 10 Anddroid 11 MIUI 12. Super present.

ver.1.31 would not work at all with any argument fails with code:1

ver 1.32 works fine with any argument (size=15, size=500, no size)

But vendor could be RW'ed only on second attempt (after deleting some bloatware using Magisk root rights).

When i was doing t i thought that it might be a great way to make nandroid backup of Super partitions!

Unfortunately it cannot be stored on and installed back fm external SD like the one made by TWRP - size is bigger then 4 gb and card file system is FAT...

Would not it be an idea to add split command to the script?

Thank you!
[Android Software/Hacking General [Developers Only]] sarychev.rescue:
Format the flash drive in exFAT and you will be happy.

A complete set of "malicious software" on the phone, I have RW ;)
[Android Software/Hacking General [Developers Only]] roninspin:
Finally, I have writeable partitions! It worked after deleted system-cow (thanks to mslezak) and used the script with size=100. And now I have 80+ MB free in each partition. Thank you!

P. S. My device is Nubia Red Magic 6.
[Android Software/Hacking General [Developers Only]] Mikhail Pashkov:
ExFat is bad idea. Not every device can read it - and I use this card in lot of places.

As for whole set of unneeded software - well, it is your choice. I prefer being master of my phone )))

I do not know if there is any connection, but when it was there vendor partition has failed to RW.

PS. Has just checked possibility to create nandroid backup with TWRP - same story. Data is splitted, but Super is not...So final size is 8,5 GB, no way to write it down and keep on external SD...
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi again @rakoncwy.

I'm sad you didn't get it to work on your device yet.

I checked your log and I can't believe it actually successfully created the super_fixed.bin file.

What happens if you flash that file? bootloop?

According to your log the script couldn't find the shared_blocks read-only features of your device. This is odd.

Please run these commands while phone is in Android mode and send me screenshot! Thanks!

adb shell
su
for i in /dev/block/dm-*; do features=`tune2fs -l $i 2>/dev/null | grep "feat"`; if [[ "${features:20}" == *"shared_blocks"* ]]; then echo "$i has shared_blocks feature!"; fi; if ( mount -o rw,remount $i ); then echo "$i is r/w!"; fi; done
[Android Software/Hacking General [Developers Only]] sarychev.rescue:
Are you so poor that you cannot provide each of your devices with a personal card? I sincerely sympathize.

OTG to help you

So far, I see that this is far from the case ...

Searching is that easy!
[Android Software/Hacking General [Developers Only]] rakoncwy:
Super_fixed.bin Flash the file and display the boot loader screen.

All my other devices work fine.

poco f3 5g, mi10pro,mi10tpro,rediminote10pro,

Poco x3 pro, mi10lite5g etc

But these devices were all successful at twrp

Real Me gt does not have twrp.
[Android Software/Hacking General [Developers Only]] 37berat37:
can you look at this one ? is it working? This twrp error is big problem or ı just ignore?
[Android Software/Hacking General [Developers Only]] mr-mero:
I flashed the script on my poco x3 nfc thru twrp and it works great but here is a weird thing -for me at least-. THERE IS 25GB taken as "others" which I can't see them anywhere

My question simply is if the 20 gb needed were just a temporary thing? If it is can i reverse the scrip after debloating and get that space back ?

If it's permanent can i just reverse by flashing the fastboot version or do what exactly ?

I'm open to formating data and wiping stuff no issues at all
[Android Software/Hacking General [Developers Only]] samsungics1200:
You can delete those on data/local/tmp as far as i see its only temporary
[Android Software/Hacking General [Developers Only]] majedalanni:
Hi I have one plus 8 pro android 11, and I did the script to make my system folder rewritable and I got the error code 73, then I did the repair script and it created the super fix image and it pushed again to my phone. but now my system folder can mount as read/write and I can create files and I can delete it but the file always 0 size so if I edit the file it won't save, if I copy a file to root folder or system folder it's going to be zero.

Please can somebody can help me on that?
[Android Software/Hacking General [Developers Only]] Lord N:
Can anyone provide a Google Drive link for the file, Can't go through with Yandex Drive.

Thank you.
[Android Software/Hacking General [Developers Only]] ichimarux:
Hi, i just want to inform you that makesysrw 1.32 works perfectly fine on redmi note 10 pro

thank you so much..
[Android Software/Hacking General [Developers Only]] majedalanni:
I just ran the script again, here is my logs.

Thanks in advance
[Android Software/Hacking General [Developers Only]] Mikhail Pashkov:
Systemrw - Google Drive

drive.google.com
[Android Software/Hacking General [Developers Only]] Lord N:
Thank you, Sir.