yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] lebigmac:
Try this command

mount -o remount,rw /vendor

and now try editing the file again

Quickedit is a great text editor btw
[Android Software/Hacking General [Developers Only]] warhawk971:
got an error ""'/dev/block/platform/soc/1d84000.ufshc/by-name/vendor' not user mountable in fstab"" same error is shown if i try to remount any other file system..
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi warhawk971. According to this screenshot that you posted your system is capable of being mounted as read-write (custom ROM) otherwise you would get a read-only error after doing mount -o remount,rw /

I don't know much about fstab but I came across it the other day when decompiling boot.img. It should be in there. Maybe you can extract it, edit it , repackage it and flash a modified boot.img ?

I hope this helps.
[Android Software/Hacking General [Developers Only]] lebigmac:
New version 1.20 is ready! DOWNLOAD HERE

Good news for those that don't have TWRP or couldn't get it to work in their TWRP. Now the script can also be run directly inside Android. Keep in mind that you will have to flash the patched images manually in this case using fastboot flash.

The zip can still be flashed in TWRP (make sure zip signature verification isn't checked). This time I bundled my device's stock sh binary (which I used to develop the script) with the archive. Hopefully this will prevent avoidable sh-related syntax errors for some folks. The flashable zip installer update-binary automatically launches the script with the proper arguments using this bundled sh program (it's inside the tools subfolder).

To those that were having difficulties running the previous version due to empty partitions or multiple partition groups inside their super : this has finally been fixed :D

Please give this new version a try and let me know if it works for you or not and I will add it to the first post. Thanks for your feedback!
[Android Software/Hacking General [Developers Only]] ea3aitjr:
Have you implemented the wipe of the temp partition once is applied your script?

Thanks dude.
[Android Software/Hacking General [Developers Only]] lebigmac:
Now after successful completion of the script, it will delete all *.img files inside the /img subfolder.

Only super_original.bin and super_fixed.bin will remain after the script is finished running.

I hope this helps free up some space!
[Android Software/Hacking General [Developers Only]] 2mkl:
Ok....

give command su - ok

Then chmod +x /data/local/tmp/systemrw_1.32/systemrw.sh - Nothing happens

I have been using this script for a long time and on different phones (however with A10) - no problems via TWRP or in manual.

But this....
[Android Software/Hacking General [Developers Only]] 2mkl:
Hmmmm....

I managed to execute the script only via Root Explorer.

Just ran .sh in it

Via TWRP or Termux - failed

But a question. Where should I flash super_fixed.bin?
[Android Software/Hacking General [Developers Only]] gursewak.10:
Didn't saw in OP and after trying in my android 12 Wondering Since when did android 12 got excluded from "android 10 or newer" 😂
[Android Software/Hacking General [Developers Only]] FKX1997:
It wont work, the steps do, the outcome does not work
[Android Software/Hacking General [Developers Only]] lebigmac:
To run script in Android 12+ just open systemrw.sh script file with notepad and replace the sdkCheck() function with this one and save file

Please keep in mind that the new version (release imminent) has Android 12+ support straight out of the box ;)(y)

Hi @2mkl

You never flashed super image manually before with fastboot?

adb reboot bootloader
fastboot flash super super_fixed.bin

Hi. What do you mean does not work? Can you please provide a screenshot or log for better understanding? Thanks! (y)
[Android Software/Hacking General [Developers Only]] FKX1997:
I have A12 on the OP10 and it does not work.
[Android Software/Hacking General [Developers Only]] Atlas11010:
okay well no wonder its not working this wasnt mad for the pixel 3a xl
[Android Software/Hacking General [Developers Only]] starbucks2010:
@lebigmac I tried the script on a S22 Exynos super.img but it didn't work. Here is my log.

Do you have any idea what's wrong or what can I try to fix this error?

Thanks.
[Android Software/Hacking General [Developers Only]] lebigmac:
Thanks for your very limited feedback. If you don't show me log or screenshot then I cannot make it work on your device...

Hi. It looks like you're trying to run the script in Linux even though it was made to be run on your phone.

Don't waste your time trying to run it on a modern day next gen Samsung or Realme device. Next version should have support for those next generation devices ;)(y)
[Android Software/Hacking General [Developers Only]] starbucks2010:
Thanks for the reply. Looking forward for the next version.

Do you have any Telegram channel for this tool?
[Android Software/Hacking General [Developers Only]] _BJIAD_:
Try this one, there was a similar problem
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Thanks to the developer of this script, after unlocking bootloader and rooting with Magisk and running this script, I now have the phone I have wanted for several years now. OnePlus 9 Pro Model LE2127, with custom bootanimation and custom fonts. That is why I got away from Samsung phones with the unlockable bootloader.....yippee!
[Android Software/Hacking General [Developers Only]] PTechz:
Flash super_fixed.bin via fastboot.

Command:

fastboot flash super super_fixed.bin

fastboot reboot

:)
[Android Software/Hacking General [Developers Only]] 2mkl:
Thank`s!

But I did everything in a different way through TWRP

Problem - selinux enforcing in A11...

I was not sure that using Root Explorer I got the desired result

P.S. I know how to flash via fastboot, fastbootd and other.....

But since the script resizes super a lot, I was careful...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Had everything working on OnePlus 9 Pro Android 11. Upgraded to 12 and tried the script flashing the super_fixed.bin through fastboot. Lost half my system folders, could not add a folder to root and nothing looked right. I changed the systemrw.sh file as instructed for Android 12 but nothing worked like it did on Android 12. Could not even find the /data/local/tmp/ systemrw_1.32 folder to get the log files. Going back to Android 11.....
[Android Software/Hacking General [Developers Only]] HProt:
pls help
[Android Software/Hacking General [Developers Only]] strannij:
I had the same problem on my moto g play 2021. I fixed it by using different
[Android Software/Hacking General [Developers Only]] strannij:
I had the same problem on my Moto g play 2021. I fixed it by using different android-tools. In termux, pkg install android-tools. And then I tweaked the script to use /data/data/com.termux/files/usr/bin/lpmake rather then /tools/lpmake.
[Android Software/Hacking General [Developers Only]] Zerolol:
Thank you it works with me (my phone) Xiaomi 11T Pro I was able to edit the system folder. I encountered a problem, which is the space (ie, a solution to increase the system space). miui 12 - android 11
[Android Software/Hacking General [Developers Only]] snuffinaround:
Mind sharing link to your modified version? I also have moto G power 2021 and was thinking about tweaking it but if yours worked I might give it a shot
[Android Software/Hacking General [Developers Only]] TheGhost1951:
ran this command.....

OnePlus9ProTMO:/ # for a in /dev/block/dm-*; do mount -o remount,rw $a; done

and got this output

'/dev/block/dm-4' is read-only

I do have some write privileges but not all. tried working with a couple files in /dev/block/bootdevice/by-name...... folder but no luck.

thoughts anyone? attached the latest log files from the script. also can the partitions be made to "auto resize"?
[Android Software/Hacking General [Developers Only]] lebigmac:
The brand new version that's about to be released any day now already has a fully working auto-resize feature for a long time ;)(y) your logs are looking good by the way!
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Thank you, I have successfully unlocked bootloader, rooted with Magisk, installed TWRP, and ran your script for a fully functioning rooted customized device that I have wanted for years now. Good bye Samsung, hello OnePlus!😁
[Android Software/Hacking General [Developers Only]] kodein:
not working on samsung s20 fe
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Boot unlocked and are you rooted?
[Android Software/Hacking General [Developers Only]] kodein:
Of course
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Must be something new to Samsung devices, never could unlock boot on an S8 or a Note 10. Have you been able to install custom recovery?
[Android Software/Hacking General [Developers Only]] kodein:
Recovery twrp, boot Prime kernel..
[Android Software/Hacking General [Developers Only]] TheGhost1951:
What errors are you getting and exactly what steps are you taking?
[Android Software/Hacking General [Developers Only]] kodein:
Flash via recovery, after completion there is an error: cannot connect the system
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Once completed, with errors, will the phone boot up to sys? If so, can you upload the log files?
[Android Software/Hacking General [Developers Only]] kodein:
yes it boots. I will try to upload the logs. I just need to know where to find them...
[Android Software/Hacking General [Developers Only]] strannij:
Sure thing! But you need to install android-tools in termux first and run this in termux as well. Just copy this file to

systemrw_1.32 folder. After it's done just move super_fixed.img to your computer and flash it to your phone.
[Android Software/Hacking General [Developers Only]] Jarychen:
After install systemrw_1.32_flashable.zip,I do mount -o remount,rw / and seems worked.

But when I try to copy a file to system folder it showed process ended with ERROR:1

My phone is Xiaomi 12pro android12.
[Android Software/Hacking General [Developers Only]] Dedi88:
awesome tool

this tool works on my device using terminal emulator

there is only 1 problem,,,, the vendor partition is still in read only mode

My device : OPPO A15s

Model : CPH2179
[Android Software/Hacking General [Developers Only]] Alfandhy25:
it say android version is not compatible. btw im redmi note 10 pro miui 13 A12
[Android Software/Hacking General [Developers Only]] TheGhost1951:
That is my question as well. Is this script compatible with Android 12 yet?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Funny thing is, I can update to Android 12, the boot warning goes away and the bootloader is still unlocked. I can root with Magisk, and to make my phone grand is if I can flash this script in fastboot and for it to work would be a dream come true... Even though currently my phone is in great shape with custom boot animation and custom fonts, I still hate to see the boot warning... Is flashing the script from fastboot a viable option and is the script Android 12 compatible!
[Android Software/Hacking General [Developers Only]] lebigmac:
Good idea but I'm afraid my programming knowledge is too limited for that. Only true genius can achieve that.

Thanks. Your log looks good. I can't find the error :(

Did you try

adb shell
su
mount -o remount,rw /vendor
mount | grep " /vendor "

If you get error type dmesg immediately afterwards to get more info about error. Good luck! (y)
[Android Software/Hacking General [Developers Only]] kearmau5:
i don't know what to do to thank you but your script unlocked all the problems i had

i confirm your script works on the Xiaomi Mi 11 running A11 thank you very much !
[Android Software/Hacking General [Developers Only]] mofazar:
Redmi Note 10Pro Max, 12.5 4.0, Bootloop after intalling. Luckily I had a boot backup
[Android Software/Hacking General [Developers Only]] mofazar:
What I did: boot into twrp>install>your Flashable zip>done without any error>reboot system> BootLoop 😔
[Android Software/Hacking General [Developers Only]] lebigmac:
Sorry about the bootloop. Most of the times with bootloops we are in the dark as to what exactly causes it (unless you somehow manage to check the log during boot-up sequence).

Are you running Android 11 or Android 12 ?

To get out of bootloop simply flash your stock read-only super.img and re-enable dm-verity and verification. Then you should be back to stock.

Good luck! (y)
[Android Software/Hacking General [Developers Only]] a9381:
whare i can to found a flashble.zip?

thanks!
[Android Software/Hacking General [Developers Only]] TheGhost1951:
1st posting in this thread
[Android Software/Hacking General [Developers Only]] a9381:
where?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
There....
[Android Software/Hacking General [Developers Only]] a9381:
we have not this...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ok, here you go....for this script at your own risk I am not responsible...usual disclaimer....😁
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @TheGhost1951 thanks for trying to help out this other user and I know you only have the best intentions but

Please no unofficial, unverified, unauthorized reuploads of my SystemRW/SuperRW feat. MakeRW project (or any parts thereof) or else I'll have to download every single unofficial, unverified, unauthorized re-upload out there and check each individual file for any suspicious modifications by 3rd party users before I can allow it. I don't have time to do that. I prefer working on the script itself. Thanks for your understanding! (y)

Hi @a9381 if your browser doesn't work correctly then simply try a different browser! Good luck! (y)

And don't worry for the new version I will add at least 3 different official download mirrors for your pleasure! ;)(y)

Don't waste your time with that old version 1.32 ! That old version only seems to work in Android 10 and Android 11.

Brand new version with out-of-box support for A12+, auto-resize feature, next-gen Samsung devices support and more enhancements is scheduled to be released this summer! Stay tuned! ;)(y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
My apologies, I don't know why his view of the first post did not show the download links! Again I apologize!
[Android Software/Hacking General [Developers Only]] Oswald Boelcke:
Thread closed on request of OP @lebigmac
[Android Software/Hacking General [Developers Only]] Oswald Boelcke:
Thread re-opened on request of OP @lebigmac
[Android Software/Hacking General [Developers Only]] ankush1492:
Samsung M13 - SM-M135FU/DS

Android 12

systemrw: Initiating procedure...

systemrw: Device is in Android mode. Ignoring
systemrw: Current device: samsung
systemrw: Your Android version is not supported yet. Abort

I have copied the script to the /data/local/tmp and running it from adb as root.

Rooted using Magisk Delta build
[Android Software/Hacking General [Developers Only]] Md652:
I ran on kkm2 pro, I got a bin file, what do I do with it if the original super is an img
[Android Software/Hacking General [Developers Only]] TheGhost1951:
If you are on A11, flash the super_fixed in fastbootd mode or bootloader mode can't remember which mode for sure with fastboot flash command. Follow instructions on first page.
[Android Software/Hacking General [Developers Only]] ankush1492:
Managed to change script elseif to support api31/android12 but it is generating super_fixed.bin instead of an img file. Renamed from .bin to .img (I don't know if this is correct or not) Flashing super from odin gives boot loops. Also, the size of fixes bin is 1/5th of the original bin file generated by script.

Please help. Pulling my hair over it.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Haven't heard much success for A12. Super_fixed.bin changed to .img, not sure what affect that would have on the flashing..... Lebigmac is working on a new version for A12.
[Android Software/Hacking General [Developers Only]] ankush1492:
Thanx for response. I am also trying to figure out how to fix it for Samsung exynos 850. If I find something useful will post
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I have OnePlus 9 Pro on A11. Tried A12 and didn't like it, went back to A11. Use to have Galaxy phones. But with snapdragon chips couldn't unlock bootloader....so I moved over to OnePlus.
[Android Software/Hacking General [Developers Only]] Md652:
I know but it comes out as a bin file and I need an img
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Read this thread...

https://xdaforums.com/t/convert-bin-to-img.2615686/
[Android Software/Hacking General [Developers Only]] :
hey guys, modified the rw zip a bit to support android 12, worked for me on my Moto G Stylus 5G that shipped with 12, everything in super is full rw. I just ran the zip from twrp 1 time and all was good. I can confirm that my stock super was def erofs
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. All you did was disable the checkSDK() function in the script file? You didn't mess with the binaries right? I don't feel like double checking right now.

Are you sure your partitions were in EROFS file system format? My old systemrw_1.32 script only works on EXT4 partitions...

It's actually very easy to make EROFS devices rw. This Yuki guy already figured it out in his thread that looks awkwardly close to mine...

All we must do is convert all subpartitions of super from EROFS to EXT4 file system format. Sounds easy right?

Well this Yuki guy is using a tool called make_ext4fs to do the job. I can include that in my script too no problem but the question is where to get those context files for each subpartition of super so that we can plug those into make_ext4fs tool at run time? :unsure:
[Android Software/Hacking General [Developers Only]] :
yessir, just diabled the sdk check. the zip said it was erofs so i didn't question it
[Android Software/Hacking General [Developers Only]] lebigmac:
Ok thanks I will add it to front page. It seems my old script still works on some A12 devices that only got the shared_blocks read-only feature but I definitely need to tweak it some more to increase compatibility with newer devices...

Can you please show me your mount output? Thanks. That should tell us if your device is using EROFS or not
[Android Software/Hacking General [Developers Only]] gursewak.10:
hi,

is there any need to keep script if it keeps r/w capability?

and how to get info to max extra size from lpdump.txt file
[Android Software/Hacking General [Developers Only]] :
this what you're looking for?

/dev/block/sde9 on /metadata type ext4 (rw,seclabel,nosuid,nodev,noatime,discard,data=ordered)

/dev/block/dm-3 on /system_ext type ext4 (ro,seclabel,relatime,discard)

/dev/block/dm-0 on /product type ext4 (ro,seclabel,relatime,discard)

/dev/block/dm-4 on /vendor type ext4 (ro,seclabel,relatime,discard)

I guess it appears my device isn't erofs ? Guess I just got lucky...
[Android Software/Hacking General [Developers Only]] Mr Hassan:
How can u say its very easy make erofs rw😒

I even converted and get rw,selctable

But not working rw in device

Maybe need some super command to get rw in device

And we're waiting for your script

And plz make sure your script allow us to Choose to make whole super_fixed

Or just all separate files.

Becoz i want flash separate file to flash

It'll working not whole super
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Its ext4

And your sde9 have rw only

Maybe its super
[Android Software/Hacking General [Developers Only]] gaguga:
Hi all

It works on my Qin F22pro android 12

Thank you for your work
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Tried this script again on A12 OnePlus 9 Pro 11_C.20 and ended up in Fastboot loop. Used the updated "sdkcheck" for sustemrw.sh. Log included...
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Not working in oneplus even in os10
[Android Software/Hacking General [Developers Only]] izsdeaman:
i don't know why i always get the error of not enough space and file not being created, even when i set size=1:cry:
[Android Software/Hacking General [Developers Only]] lebigmac:
This is your old log why did it work? The sizes look different :unsure:

Maybe go back to that older firmware that worked until I fix this?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I have it working on A11 op9p. Original script.
[Android Software/Hacking General [Developers Only]] lebigmac:
If you guys are bored you can try doing the yuki guide which is basically a clone of this thread...

If you can do the rw magic manually using the make_ext4fs binary then we can seamlessly implement that into my script by adding 1 line of code.

If you guys can figure out where to find these 2 selinux files for each subpartition of super.img regardless of device manufacturer then we have the solution to the problem and the whole world can enjoy a fully read/write-able device :D(y)

Anyone familiar with this make_ext4fs binary? And any selinux experts please feel free to chime in. Thanks! (y)

for system.img

system_file_contexts
system_fs_config

for product.img

product_file_contexts
product_fs_config

for vendor.img

vendor_file_contexts
vendor_fs_config
[Android Software/Hacking General [Developers Only]] lebigmac:
You cannot write to it because you have 0 bytes free space...

To confirm this theory (DISCLAIMER: DO THIS AT YOUR OWN RISK!) remount your partition as rw and then try deleting something useless but make backup first! Since you just freed up some extra free space you should be able to write the file back ;)(y) Good luck! 🍀And if you can't restore the file that's still proof that your device is rw. You cannot delete files in read-only mode...

See this is exactly why I need your high quality feedback to properly integrate the make_ext4fs binary into my script. New version of my script already has fully working auto-resize feature so hopefully that will rule out further size issues ;)
[Android Software/Hacking General [Developers Only]] lebigmac:
ok I guess it's easy to find the fs_config file (we need these files to make work the make_ext4fs tool). Is this the correct file? Can someone with a device other than Xiaomi please post his results here? Thanks! (y)

find /system /system_ext /product /vendor /odm -name "*fs_config*"

/system/etc/fs_config_dirs
/system/etc/fs_config_files
/system_ext/etc/fs_config_files
/system_ext/etc/fs_config_dirs
/product/etc/fs_config_files
/product/etc/fs_config_dirs
/vendor/etc/fs_config_dirs
/vendor/etc/fs_config_files
/odm/etc/fs_config_files
/odm/etc/fs_config_dirs

the file_context file however is missing in some locations. This could be a big problem... :unsure:

find /system /system_ext /product /vendor /odm -name "*file_context*"

/system/etc/selinux/plat_file_contexts
/system_ext/etc/selinux/system_ext_file_contexts
/product/etc/selinux/product_file_contexts
/vendor/etc/selinux/vendor_file_contexts
[Android Software/Hacking General [Developers Only]] lebigmac:
There is also a -mountpoint option for the make_ext4fs tool. Perhaps we don't even need to bother with all these useless selinux files if we simply use the -mountpoint option of the make_ext4fs tool and it will automatically use all the selinux contexts from the mountpoint?! :unsure: That would be amazing wouldn't it?

Is anybody familiar with this make_ext4fs tool by any chance? Thanks for your input :D(y)

@phhusson @munjeni @Brepro1 @Kolibass @AndyYan @bynarie @gabrielfrias @aIecxs @HemanthJabalpuri @YOisuPU
[Android Software/Hacking General [Developers Only]] :
the log tells you exactly why, you literally do not have enough space on the device. keep in mind, 7gb for on-device super, 7gb for dumped super, pry 7gb for rebuilt super, which to me equals roughly 21gb.
[Android Software/Hacking General [Developers Only]] :
lol, i'm almost wanting to redo your script for pc editing and doing all this. is that already a thing you released ?