yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] lebigmac:
Simply connect your phone to your computer. Open a command prompt and type this:

adb shell "ls -Alg /dev/block/by-name | grep 'super'"

If you get no result that means you've got no super partition.

Not many folks have Android 10 and newer without super partition it seems.

So that means a huge chunk of the script has not really been thoroughly tested yet...

I just hope I didn't put that non-super functionality in there for no reason :D
[Android Software/Hacking General [Developers Only]] lebigmac:
Okay I haven't gotten too many complaints today so I've added the new flashable zip to the first post to make installation easier for everyone ;)

Still have to update those instructions though...
[Android Software/Hacking General [Developers Only]] ronlkh1965:
Unfortunately I am the first once to complain. I got error, it does not allow me to install the makesysrw_1.15c.

My data folder is located at /data does it matter?

When I tried the manual way, same error comes out
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi ronlkh1965.

If you can't get the script to run manually then it probably won't work with the flashable zip installer either ;)

The installer basically just extracts the makesysrw folder to your phone and automatically launches the script with the proper arguments , depending on whether or not your device has a super partition.

You are still experiencing that same syntax error remember? I have yet to discover it so I can't fix it yet.

Instead of trying to run the same script that gave you syntax error through the flashable zip installer, try to run the script directly in the shell and show us again that syntax error. The image that you posted does not contain the syntax error so it's not really helpful. Error code 255 (-1) only means the script failed to launch. Thank you.
[Android Software/Hacking General [Developers Only]] ronlkh1965:
I have uploaded both flashable zip screenshot and manual terminal install screenshot. the syntax error is same but now is line 234. Please check the previous message again
[Android Software/Hacking General [Developers Only]] lebigmac:
Can you please post it here too so more people see it? Your chances of this specific syntax error bug getting fixed are higher if you post it again here. Thank you. You posted it in the wrong thread. That old Linux version is pretty much deprecated at this point.
[Android Software/Hacking General [Developers Only]] ronlkh1965:
Are you saying this screen shot?
[Android Software/Hacking General [Developers Only]] Mikac21:
This works great, ole tu polla

But I have a question, it is possible to recover lost storage? It is possible to undo the changes after having made the necessary changes in / System?
[Android Software/Hacking General [Developers Only]] thelavip:
Not working, please help android 11
[Android Software/Hacking General [Developers Only]] tids2k:
Going to try with a user-debug build and see if that works. More on it soon .. Will update this post.
[Android Software/Hacking General [Developers Only]] kafeinsiz:
Working Xiaomi Mİ 10T 12.5.7 EEA A11

Thanks.
[Android Software/Hacking General [Developers Only]] lebigmac:
@tids2k thanks for your feedback so far. Yeah that bootloop was to be expected. I think that's the same stubborn kernel panic bootloop that @Hippie459MN experienced a couple of days ago on his brand new Sony Xperia flagship device.

Hopefully next version of script will fix some of these issues such as installer error 255 in recovery, the annoying error 73 on motorola devices and this stubborn kernel panic bootloop. Full Android 12 support would be cool too.

Hi @kafeinsiz thanks for your feedback! I'm happy my script works flawlessly on your Xiaomi device. Congratulations! Enjoy a read/write-able device! :love:(y)

Did you use the default custom size=25 (MB)?

Are you sure you're running Android 11? In your log it says this:
[Android Software/Hacking General [Developers Only]] kafeinsiz:
Evet kesinlikle A11. A10 bir hata nedeniyle burada görünüyor.
[Android Software/Hacking General [Developers Only]] CaptianXLAB:
Flashable Zip, worked PERFECTLY on ASUS ROG Phone 5 [ASUS_I005D] running Android 11 (R) with TWRP!!! :love:

Current device: asus ASUS_I005D
systemrw: Current Android version: 11

Here's a screenshot of being able to mount system as RW and modifying it using adb shell su:

One suggestion - make the script so it resizes partitions to have a bit more than just 15 MB extra space by default? Would help a lot incase I didn't have anything I could delete inside system partition to free up space.

Would there be any issues if the script resizes more than 15 MB by default? Most recent phones will have atleast 32GB internal storage which is plenty to expand with say 256 MB or 512 MB?

Spoiler content hidden.

Would love to see the script as a magisk module, making it even more easy to get on any new devices I might have in the future ^^

I don't have any other Android 10+ phones as of now, and I won't be updating or changing anything big on my current phone after I set it up perfectly, but either way - I'd love to help you test and improve the script if I ever get the chance!

Logfile is attached ^^

Thanks a lot @lebigmac ! 😌

Also thanks to everyone else who helped test the script! 😄
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @CaptianXLAB thanks for your feedback. Congratulations!I'm happy you like my script and that it works well on your device.

You can experiment with the custom size parameter if you want. The default size=15 seems to work best on most devices out there. size=50 or size=100 works well on Xiaomi devices. Warning! If the custom size value is too large it will most likely cause lpmake error 70 at the end!

Don't worry new version is coming soon and it will have auto-resize feature as well as some important bugfixes!

Enjoy a fully read/write-able device! :love:(y)

Could you please send me your other log files from /log/ subfolder as well? Thanks. It helps with further development (y)

Which firmware are you using? Is it custom ROM or official stock Asus firmware?

By the way I just added your device to the list of successful devices on front page of project thread ;)
[Android Software/Hacking General [Developers Only]] CaptianXLAB:
Sure, attached both log files with this reply.

(missed the 2nd file with previous reply because I was too happy things worked, haha... also because I started doing all this at 3am and it's 6am now, I've been up all night!)

As of now, I won't push my luck further, just glad things worked out. If I have some free time later, I'll reflash the original super image backup I have and try custom sizes with that and see at which value it starts to fail. Is there any explanation why the script fails with higher sizes? Temporary script limitation or something more complicated with how super works?

Maybe a bit impractical too, because I don't think I'll ever need more than, say, at most 1 GB extra space on system partition. If it's possible, always good to have the possibility just in case though.

I'm using stock / default firmware / stock ROM that came with the phone. Never tried custom ROMs since I never had a spare phone to experiment with before.

Also note that there are variants of the device with more RAM/Storage which might have some differences. It should work for the higher spec models too, but just in case.

I'm mentioning this, because I tried an (unofficial) TWRP image made for a higher spec version of ROG Phone 5 which failed to decrypt data entirely and didn't work well on my device.

Mine is ROG Phone 5 (128GB Internal Storage / 8GB RAM), bootloader unlocked with official asus app.

I'll try it whenever it's released / whenever I have the time. Auto-resize sounds awesome! :D

Sure, will do! (all I wanted to do for now was change emoji font to iOS emojis xD )

But I love having full control over all my devices, whether I need it or not 😌

Thanks again!
[Android Software/Hacking General [Developers Only]] ikikinoko:
Hello there @lebigmac thanks for your hardwork!

I have Mi 10 Pro and wanna try your tool since I'm so desperate to mod font.xml inside /system_root, not to mention bro @The_Eniac could able to RW his Mi 10.

I was using flash method via TWRP and stuck at "write error: no space left on device in system", already set optional size from 0 to 150 MB (as suggested) with every 5 MB increment.

Any ideas about this? Sorry for bad english.
[Android Software/Hacking General [Developers Only]] mx597turbo:
Working OnePlus 9 / Android 11 / 11.2.9.9.LE25AA

But... I edited my build.prop, restarted the phone, and went to bootloader. Booted into twrp, and the build.prop was 0 byte. Tried to restore a backup, restart, back to bootloader. Boot into twrp, and now the build.prop file was missing altogether.

Had to format and install oos fresh to use the phone. Unfortunately, even if system is rw, seems like you are limited in what you can modify.

Still, thanks @lebigmac for your hard work. F Google for continuously locking android down more and more.
[Android Software/Hacking General [Developers Only]] kafeinsiz:
Yes I had the same problem.

After editing, 0 bytes remain and you become a soft brick. I had to reinstall
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Could you please show a screenshot of your error? And please send me your log files from script folder. Thanks.

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

Hi @mx597turbo please send me your log files from script folder. Thanks.

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

If you can remount partition as r/w without errors after running script that means everything worked as expected. Congratulations!

If you omit the size parameter altogether or you use size=0 when launching script this will resize all partitions inside super to minimum size and then you can only delete stuff from /system but not write to it (due to insufficient space). To fix this you can try running script again with larger custom size parameter. Good luck!

Hopefully auto-resize feature will fix this insufficient space issue in next version ;)
[Android Software/Hacking General [Developers Only]] Pachacouti:
My tests with parted.

Yeah, I'm a noob with android, most defo. But...

I flashed your tool, and could not get enough space for add/delete apps, so tested and decided to use 1024 as my size, which worked for me, at least in being able to install busybox, because I wanted to prove SU works in 10_Q. I proved that to myself, in that it does NOT crash 10_Q.

So I read of parted, and see the auto... and knowing if a command is available, it will run, (wether it does anything or not) I decide to reflash to stock, only this time, when using system_RW, instead of size=80 or whatever, I did use size=auto and set it in the config too, so there was no doubt.

The script ran, and I could indeed flash super_fixed.img (my f'n uses .img, so for the noob, mb mention to check the file ends in bin or img, will save a lot of noobs saying they cant flash or find it... ) and even though it showed the space I'd have if I used size=1024 (i settled on this number, would'nt go higher, hint hint..) I got the not enough space. I do not get this with make2fs, using 1024, prob because the tools uses make2fs, so it cant instruct the parted I installed to system in order to use size=auto.

In the end, I stopped using system_RW until make2fs is changed to parted, knowing it will happen eventually...

The commands are pretty much the same.

Then you need to spoof the system's rw ability to ro for the files expecting to 'see' ro, even if they are rw.

Thanks for the priv msg :)
[Android Software/Hacking General [Developers Only]] ikikinoko:
Thank you for the quick reply! Here are my photo and logs as you request. Thank you.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Thanks for your log files and screenshot. It really helps better understand your error.

To me it looks like /data partition was not properly decrypted in your TWRP before running script.

To check how much free space you got in /data partition you can run this command below. Script requires at last least 10+ GB free space in /data partition to function properly.

df -h /data

In your case I would recommend running script manually through adb shell while phone is booted into Android and then flashing super_fixed.bin using fastboot. Good luck.
[Android Software/Hacking General [Developers Only]] Pachacouti:
May I suggest (to)

ikikinoko​

using a size that matches memory configuration, like size=128? (instead of 155)
[Android Software/Hacking General [Developers Only]] JazonX:
Quick question Mate - Can I do OTA updates after this mod without wiping userdata ?
[Android Software/Hacking General [Developers Only]] Pachacouti:
I cant honestly say, but he does mention you can if you read back a bit... where after doin the damage, he suggests a reflash of rom, but as for an update, the update MAY wipe your work.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @JazonX yes you can do OTA updates at your own risk but this will remove your R/W capabilities and you will have to run script again and pray that your manufacturer hasn't closed this R/W security hole in the new OTA ;) Good luck!
[Android Software/Hacking General [Developers Only]] chaoscreater:
still getting error 255 when flashing in TWRP or OrangeFox...
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Don't worry. Thankfully this annoying error 255 has already been fixed in next version which will be released soon! ;)(y)

In the meantime please try installing and running the script manually according to the manual installation instructions and then send me your log files from this folder. Thanks.

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

Good luck!
[Android Software/Hacking General [Developers Only]] usm007:
Worked !!!!!!!!!!!

Redmi note 9 pro max (Excaliber) , MIUI 12.5.2.4.

Thank you, lebigmac . You made my life a lot easier.
[Android Software/Hacking General [Developers Only]] usm007:
how do I run it with size=300
[Android Software/Hacking General [Developers Only]] gss200610:
i am using android 12 miui beta china and i always get this insufficient space error

I've tried it via twrp, terminal and I always get the same error
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Make a backup of your super image and then try using your block device as input. This will skip dumping of the super image to disk.

In your case that would be in=/dev/block/sda30

See the expert example on front page or inside the script file for more details.

Is your /data partition properly decrypted and mounted? Usually this error only happens if /data is not properly decrypted. Check the free space on your /data partition like this df -h /data

Good luck!

Congratulations! Enjoy a read/write-able device! :love:(y)

Please send me your log files from script folder. Thanks. It's useful for further development.

You can run script manually and use custom size parameter or you can edit the included config.ini file (for more details see flashable zip custom usage section on front page) and flash the zip again.

size=300 sounds like a lot.

Good luck!
[Android Software/Hacking General [Developers Only]] samy2015:
My phone is Poco F3 rooted with magisk rom is Xiaomi.eu 12.5.18 when i try to flash the zip it forces twrp to reboot and give the "no os" warining then nothing happens

what's the problem ?
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @samy2015 please send me your log files from script folder

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

and I will look into your issue. Thanks. A screenshot of your error would be good too!
[Android Software/Hacking General [Developers Only]] samy2015:
There's no log file cause it didn't flashed or gives any error , the steps i did is download the zip > reboot to twrp > flash the zip > twrp screen forced off then come back again and nothing happens . is there a steps i should do before flashing ?
[Android Software/Hacking General [Developers Only]] lebigmac:
Please send me this TWRP recovery log from your device. That will make it easier to understand what went wrong when you tried to flash the zip. Thanks.

/tmp/recovery.log

If the flashable zip doesn't work on your device (for whatever reason) did you try to install and run script manually yet?

Manual installation instructions can be found on front page of this thread as well as inside the script file. Good luck!
[Android Software/Hacking General [Developers Only]] samy2015:
Sorry my bad i was trying to flash the entire zip without extracting the flashable zip 🤣

it worked like charm my phone is F3
[Android Software/Hacking General [Developers Only]] lebigmac:
Oh you tried to flash the BUNDLE.zip? :ROFLMAO:

Congratulations for getting it to work in the end! Enjoy a fully read/write-able device! :love:(y)

What firmware are you using?

If you send me your log files I can add you to the list of successful devices on front page ;)

And please post a screenshot like this after remounting your system partition as RW. Thanks (y)
[Android Software/Hacking General [Developers Only]] samy2015:
Done , thanks for the efforts
[Android Software/Hacking General [Developers Only]] 2mkl:
Hi,

I can`t get RW on my Oukitel WP5 Pro with TWRP and Magisk. Android 10. The script was installed via TWRP and manually. No errors, but only read-only. Help me please. My logs via TWRP and manual installation.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @2mkl thanks for your log files.

Are you sure you can't mount your partitions as rw? Please run the commands in the picture below in Android and upload a screenshot just like this: Thanks(y)

According to your log it's not shared_blocks read-only feature that's responsible for the read-only lock of your device!
[Android Software/Hacking General [Developers Only]] lebigmac:
Did your device have shared_blocks read-only filesystem feature before running my script?

What other filesystem features you've got?

adb shell
su
tune2fs -l /dev/block/dm-1

I don't know why your device is still read-only despite not having shared_blocks read-only feature...

It looks like your device has some additional read-only protection features.

If you find out why your device is still read-only please let us know!

Good luck!
[Android Software/Hacking General [Developers Only]] usm007:
sorry I deleted the folder on tmp, cant send you the log.

But the script broke safetynet, basic and cts both fails. tried flashing magisk and safetynet fix, but couldnt solve the problem.
[Android Software/Hacking General [Developers Only]] staljin:
I am having a hard time getting this to work on my V60 . Here are my l9ggs
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @staljin. Thanks for your interest in this project.

According to your log file the read-only lock of your device is not caused by shared_blocks read-only feature. Therefore the script has nothing to do.

If you figure out why your device is still locked to read-only please let me know and I'll include it in next version! Thanks.

Good luck!
[Android Software/Hacking General [Developers Only]] staljin:
It does nit throw any error but it still do not work BL unlocked and full root

This is what Loggcat throws after running mount-o remount,rw /

get_custom_config not found
[Android Software/Hacking General [Developers Only]] rayman95:
hi and thank's for your work...

I have an issue with your script, I flash it on twrp on my renoir on A11 LOS and the flash is correct but at the end got these errors messages

failed to mount system/ext/product/vendor (invalid argument) here are the logs and the ss...

when I try to copy a .xml on vendor partition got, no more space available and it copy a .xml but empty..
[Android Software/Hacking General [Developers Only]] Revokke:
it worked great on poco x3 pro, but vendor didn't, when I try to edit an XML located in "vendor/etc/device_features" it doesn't work, even so, thank you very much for the work.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hello @rayman95. You're welcome. Thanks for your log files and the screenshot (y)

Don't worry about this TWRP related error at the very end. This has nothing to do with the script. This only means you must reboot the device. That's all ;)(y)

According to your log it looks like everything worked as expected but I think you must run script again with larger custom size. Which custom size did you use? I can't see it in the log :(

Hopefully I can release that new version soon. The included auto-resize feature should fix this kind of issue in next version ;)(y)

Hi @Revokke. You're welcome. Thanks for your feedback.

Please feel free to send me your log files from this folder and I'll have a look at your specific issue. Thanks (y)

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

Which MIUI version number are you using? Official stock MIUI or Xiaomi.eu ROM ?

What do you mean it doesn't work? I just tried it on my device and it just works. I can create and delete files in this directory /vendor/etc/device_features

Make sure you remount /vendor partition as rw before copying or deleting files.

If you can only write empty files to /system, /product or /vendor that means you must run script again with larger custom size. Good luck! (y)
[Android Software/Hacking General [Developers Only]] rayman95:
hi thank's for your answer...I don't choose a custom size, or a size at all...I just flash on twrp and that's all...that's why it says that there is no space and can't copy the file...How can I solve this issue??

thanks
[Android Software/Hacking General [Developers Only]] lebigmac:
Click here!

Good luck! (y)
[Android Software/Hacking General [Developers Only]] Revokke:
I will send the logs soon, I went to edit the Mixer_paths in the folder "vendor/etc" and I ended up having bootloop.

I'm using the miui Global 12.5.5, I managed to edit the system files without problems, but files in the vendor folder not, when I try to save the file it doesn't save, and if i try to copy and paste a file into the "vendor" folder, it says it's read-only.
[Android Software/Hacking General [Developers Only]] romkazor:
Hello, some trouble.

MIUI 12.5.18 Stable China

Error: Not enough space in device for partiton vendor_a and error code 70

But size of /data/local is 225GB

Thanks.
[Android Software/Hacking General [Developers Only]] nambavuong:
excuse me, is it support Android 12???
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Thanks for log files. Error 70 means too much custom size. Try run script again with smaller custom size. Good luck!

Hi.

You can add Android 12 support manually or wait for next version which should be released soon!

I haven't tested the script in Android 12 yet. Keep in mind there is a chance that this r/w security hole was fixed in recent Android versions.
[Android Software/Hacking General [Developers Only]] romkazor:
Big thanks, it's solved problem.
[Android Software/Hacking General [Developers Only]] rayman95:
thank's this solved this issue...good job...
[Android Software/Hacking General [Developers Only]] masricky:
i use poco m3 rom xtrv hellas....your script is rock..i remove permanently bloatware with root explorer...nice job
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @masricky I'm happy you like the script. Please send me your log files from this folder. Thanks (y)

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

Enjoy tinkering with your fully read/write-able device and make lots of backups before modding stuff! :love:(y)

Yes it's true. I wrote this script but it wouldn't exist as such without

all the important contributions by all the talented developers involved such as @Brepro1 @Kolibass @munjeni @AndyYan @bynarie @gabrielfrias @YOisuPU @HemanthJabalpuri and more!

As well as all the useful feedback that I received during the past few months of development from the script users!

Thank you to everyone who contributed positively to this project! :D(y)

Also keep in mind script is not perfect for all devices out there yet. Rest assured I'm always working hard on next version ;)(y)