yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] lebigmac:
The new version is available in the first post ;)(y)

But before I go offline I'd like to thank Yuki for writing his guide without which I couldn't have upgraded my unique and original System-RW / Super-RW feat. Make-RW / ro2rw program to the next level :love:(y) I'd also like to thank God the almighty for the miracle and the angel that he sent me. And I also want to thank Brepro1, Kolibass, munjeni and all the other people in my credits that supported me along the way throughout the past 24+ months of development to create this amazing and unique SystemRW / SuperRW feat. MakeRW / ro-2-rw franchise from scratch.
[Android Software/Hacking General [Developers Only]] vyaskd:
Thanks and congratulations for ur hard work for making A12 Customized. Will try on OP 7t OOS 12. Was waiting for ur script before upgrading OOS 11 to 12.

PS: download link not available yet on ur new website.
[Android Software/Hacking General [Developers Only]] Bogdkdkd:
To my regret, it is stops on Fatal make_ext4fs error on /my_manifest
[Android Software/Hacking General [Developers Only]] lilysirius:
./sysrw failed for Pixel 7 with Android 13
[Android Software/Hacking General [Developers Only]] wimax15183:
Same on Pixel 6a Android 13 TQ1A.221205 and also now CANNOT BOOT

PIXEL 6a USERS SHOULD NOT TRY THE DEFAULT INSTALLATION OF 1.33 AT PRESENT

After the above error when rebooting the android recovery screen is presented

Cannot load Android system your data may be corrupt

Not fixed my device yet yet but you probably NEED to flash the original img if you have it BEFORE rebooting the device which I dont have because its on internal storage and didnt move it to the PC before rebooting after the error.

So what to do now? cant boot phone, cant flash original image, TWRP for A13 isnt out yet?

Cant access internal storage files from fastboot

Edit- cut my losses and factory reset
[Android Software/Hacking General [Developers Only]] Cyirus:
Greetings! Did you manage to transfer the system to RW on Miui 14 A13, if so, which partitions were selected in the mounting tab in TWRP?
[Android Software/Hacking General [Developers Only]] Aitra:
After manual installation on mi11 lite 5g created these files in data/local/tmp/sysrw_1.33/img, but still cannot disable read-only lock in system.
[Android Software/Hacking General [Developers Only]] lebigmac:
Why the new v1.33 works so good on my brand new next-gen Redmi Note 12 5G ? :unsure: Also works fine on my Poco X3 in latest stock MIUI...

Okay I will try to fix it. Can you please send me your logs from log sub-folder?

I can only improve the program with more feedback by users with different phones. Thanks for your feedback ;)(y)
[Android Software/Hacking General [Developers Only]] Aitra:
My Mi 11 lite 5g has not removed the encryption in twrp.
[Android Software/Hacking General [Developers Only]] LeeGarChat:
Because:

1. For example, EROFS is compressed, and after unpacking, some ROMs will not fit in SUPER.

2. Some EROFS.img cannot extract files correctly.

3. Some ROMs take up too much space in super even on EXT4. since shader_blocks combines files without voids, unlike unshared_blocks, therefore the ROM becomes larger and cannot fit in SUPER.

4. Some devices with encrypted data cannot boot after disabling verity and verification.

5. All devices are different and you should not make loud statements about universality, only based on tests on your device.

However, can you still call me a low-grade developer? I give, and gave you advice, and I behave adequately

FOR MODERATORS: I do not provoke or engage in bullying in this message, this is adequate criticism and advice
[Android Software/Hacking General [Developers Only]] Anatolii-orsk:
Where can I download the latest version?
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @LeeGarChat have you ever wondered what is the real MakeRW / ro2rw sub-partition converter/resizer by lebigmac ? I'm afraid you don't even really know what this whole unique and original SystemRW / SuperRW featuring MakeRW / ro2rw by lebigmac franchise which I created from scratch was all about since day 1. Well let me show you ;)

To all those users having trouble with the latest v1.33 of my original SystemRW/SuperRW script I would suggest trying to do the RW magic manually using the one and only original MakeRW / ro2rw by lebigmac

If you can do the process manually then we can do it automatically! :D(y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I don't see a super_fixed.bin listed in the image you posted
[Android Software/Hacking General [Developers Only]] 865_james:
If you want to, share the logs I sent you where I flashed it on my Pixel 7 🤷‍♂️
[Android Software/Hacking General [Developers Only]] SimonFoxcoon:
same thing "too many symbolic links encountered"
[Android Software/Hacking General [Developers Only]] Slim2none4u:
This is what i get on my pixel 3xl
[Android Software/Hacking General [Developers Only]] lebigmac:
You might want to get that error fixed before trying to run the script.

It almost looks like your custom ROM wasn't compiled properly. Keep in mind this script was designed for stock android.

Custom ROM already is read write!
[Android Software/Hacking General [Developers Only]] Slim2none4u:
What am i doing wrong?
[Android Software/Hacking General [Developers Only]] lebigmac:
@rhewins2268 Nothing. There is something wrong with the file. You can't run this command on it:

resize2fs /data/local/tmp/makesysrw_1.20/files/nosuper/product_a.img 3G

Resizing the file is very important for successfully removing the read-only lock!

Maybe the file use a different filesystem or it's empty, corrupted or sparse. You can try unsparsing it like this:

/data/local/tmp/makesysrw_1.20/tools/bin/simg2img /data/local/tmp/makesysrw_1.20/files/nosuper/product_a.img /data/local/tmp/makesysrw_1.20/files/nosuper/product_a_raw.img

Can you query the file with tune2fs?

tune2fs -l /data/local/tmp/makesysrw_1.20/files/nosuper/product_a.img

Can you mount the file?

@Articul8Madness can you please post a screenshot of your lpmake error? It could help at identifying the problem. Thanks.
[Android Software/Hacking General [Developers Only]] SimonFoxcoon:
yeah my rom doesn't seem to allow me to access some locations, i can't manually replace my bootanimation for example.

edit: like in TWRP /system/media folder didn't exist when mounting all locations except for usb
[Android Software/Hacking General [Developers Only]] SimonFoxcoon:
no output... hm
[Android Software/Hacking General [Developers Only]] lebigmac:
Thanks for confirming this. Your system is already read write capable since you are using custom ROM.

My script is not going to make your system even more read-write-able than it already is.

If you want to experiment you could use my script to resize your partitions but I wouldn't recommend it to those without super partition.

If you get no output from that remount,rw command that means you have no read-only lock!

Otherwise it would look like this (left side)
[Android Software/Hacking General [Developers Only]] lebigmac:
The script seems to work well with Xiaomi devices.

Waiting on more feedback from other users without Xiaomi device...

@BlazingKahn35 @rhewins2268 @d4ylight

@deltaquarti did you try version 1.20 yet? The new version should allow you to go further in the script.
[Android Software/Hacking General [Developers Only]] harpreet.s:
If we can give name of images as argument to script. This way any img showing errors can be removed if not needed
[Android Software/Hacking General [Developers Only]] thanasis12.:
Hi, my phone are , oneplus 8t, and root without twrp. the mount are read only. i using root explorer, i cant , not write. can you support me?
[Android Software/Hacking General [Developers Only]] Rezrex:
Works! Asus Rog Phone 3. For anybody getting the invalid magic number at super block error, what worked for me was using a twrp backup of my super for the input, didnt rename left it as super.emmc.win

Android 10 stock rom with super partition. Used flashable zip.
[Android Software/Hacking General [Developers Only]] lebigmac:
Of course I give support to oneplus users ;)

@Rezrex Wait. My script actually works on something other than Xiaomi device? That's awesome! Congratulations for getting it to work. What android version do you use and does your device have a super partition?

And did you install it with flashable zip in custom recovery or manually in Android? Thanks for your feedback! It helps with further development!
[Android Software/Hacking General [Developers Only]] po_dMerOn:
Orange, TWRP, PBRP is same recoveries. All this is a fork of twrp
[Android Software/Hacking General [Developers Only]] lebigmac:
This is the first time I've ever heard of Pitch black recovery project or PBRP. It's always good to have more options. So that means my script installer should also work in PBRP recovery. This is great news! Thanks!
[Android Software/Hacking General [Developers Only]] kalhiro:
work on redmi 9t , twrp miui hellas , android 11 , super sda 10
[Android Software/Hacking General [Developers Only]] lebigmac:
@Articul8Madness Since you've successfully reached the very end of the script you should have all the building blocks to manually build a patched super image. If you can successfully run the lpmake command manually using the excellent @Brepro1 tutorial (which this script is based on) then we can compare your lpmake arguments to the ones auto-generated by my script and we should be able to identify the mistake.

A novel script like this cannot work on all devices straight out of the box. This is to be expected. Every device is different and I only had access to Xiaomi device during development.

The script's compatibility with other 3rd party devices is therefore dependend on the helpful feedback from its users.

Crying this doesn't work, that doesn't work is not really helpful in the development of the project.

Could you please post a screenshot of your lpmake error so we can take a look and try to solve it?
[Android Software/Hacking General [Developers Only]] Ayoub$#:
Can Linux version work for me?
[Android Software/Hacking General [Developers Only]] Slim2none4u:
Pixel 3xl.
[Android Software/Hacking General [Developers Only]] Ayoub$#:
Did this work out for you?
[Android Software/Hacking General [Developers Only]] lilysirius:
Pixel 7

sysrw: Fatal make_ext4fs error
[Android Software/Hacking General [Developers Only]] lebigmac:
Thanks for the log it looks interesting. I will analyze it and compare with that other Pixel 7 log that I received (y)

Why are all those cow sub-partitions even in your super.img if the cow group is empty? Don't make no sense...

And why the script detects that the cow sub-partitions have a size larger than 0 if they're all in that empty cow group? :unsure: Can you please check on your phone if those files really are empty? Thanks (y)

You must know I am very new to these dual slot devices so I will have to do some more experiments to fix this. Don't worry this is nothing that can't be fixed ;)(y)
[Android Software/Hacking General [Developers Only]] LeeGarChat:
-cow partitions do not need to be extracted and repacked, they are not needed to rebuild Super with RW
[Android Software/Hacking General [Developers Only]] lebigmac:
Thanks I know that too ever since that OnePlus user discovered it and posted about it in this very thread a couple of months back.

But that doesn't answer my questions why it's in there in the first place. There must be a reason for that.
[Android Software/Hacking General [Developers Only]] LeeGarChat:
You have encrypted your sh script in vain. there is no need for this. It would be easier for the community to help you develop if everyone can open the file and see what's wrong. In addition, compiling a binary file from a sh script increases the file size and complicates development, because in case of loss of the source code, as I sometimes do, because I edit the file both on the phone and on the computer, it happens on these uroystvah different versions. With open source, I can always be sure that I have a fresh version on the file exchanger. I had experience with sh script encryption to deal with the HentaiOS development team. And it's terribly inconvenient. So I quickly gave it up
[Android Software/Hacking General [Developers Only]] lebigmac:
haha leegarchat the encryption part is just a proof of concept for myself as I've never done such a thing before :LOL:

And plagiarism will always lead to more encryption and obfuscation. That's cause and causality ;)

If this is the only way for open source programmers to protect their hard work online then so be it. 😕

Sometimes I wish I could encrypt the program name itself and then some :ROFLMAO:

But I agree it's a total nightmare to debug such a highly encrypted program so I will probably go back to open source very soon. I will simply take my unique and original MakeRW / ro2rw program with full EROFS support (full F2FS support coming soon in 1st quartal 2023 !) and plug it into my old v1.32 script and voila :D

Do you now finally understand what this whole MakeRW / ro2rw thing was all about since the very beginning back in 2021 ? You didn't let me finish...

My unique and original MakeRW / ro2rw procedure that has been an integral part of my larger SystemRW / SuperRW by lebigmac project since day one was always predestined to become its own independent external program and that day has finally arrived. :)

Now if only the moderator could please unlock that thread I could update it as I forgot to include the launcher shortcut lol.
[Android Software/Hacking General [Developers Only]] Aitra:
Can you tell me which command can create super_fixsd.bin file? How to concatenate subfiles into super.img superimage?
[Android Software/Hacking General [Developers Only]] 865_james:
My Pixel 7 on the newest android 13 beta.
[Android Software/Hacking General [Developers Only]] lebigmac:
Try this but you must replace the file sizes with the actual sizes of the image files in the img sub-directory. If one of the image files is not RW yet just run it through my original MakeRW / ro2rw tool

To get the actual file sizes in terminal you can do stat -c "%s" img/system_a.img

And make sure to copy paste that whole lpmake command chunk with all those arguments all at once into your terminal window.

Good luck!

Now that the real MakeRW / ro2rw by lebigmac procedure has finally become its own external, fully functioning program, I can now fully focus on fixing the main SystemRW / SuperRW script itself and make it compatible with as many devices as possible. ;)(y)

2023 will be a very good year for RW enthousiasts :D(y)

adb shell
su
cd /data/local/tmp/sysrw_1.33

bin/lpmake \
--sparse \
--metadata-size 65536 \
--super-name super \
--metadata-slots 3 \
--device super:9126805504 \
--virtual-ab \
--group qti_dynamic_partitions_b:9122611200 \
--group qti_dynamic_partitions_a:9122611200 \
--partition odm_a:none:1363968:qti_dynamic_partitions_a \
--image odm_a=img/odm_a.img \
--partition product_a:none:442421248:qti_dynamic_partitions_a \
--image product_a=img/product_a.img \
--partition system_a:none:6008066048:qti_dynamic_partitions_a \
--image system_a=img/system_a.img \
--partition system_ext_a:none:487411712:qti_dynamic_partitions_a \
--image system_ext_a=img/system_ext_a.img \
--partition vendor_a:none:1129017344:qti_dynamic_partitions_a \
--image vendor_a=img/vendor_a.img \
--partition mi_ext_a:none:442421248:qti_dynamic_partitions_a \
--image mi_ext_a=img/mi_ext_a.img \
--output img/super_patched.bin
[Android Software/Hacking General [Developers Only]] 865_james:
Okay so on my Pixel 7 US unlocked model on newest Android 13 beta, I ran the script again and here's the log. Zero errors. No cow partions. 🙌💪
[Android Software/Hacking General [Developers Only]] 865_james:
And here's the full log 💪 and I do have write privilege. I've already DELETED some system apps. Not just frozen or hidden but deleted.
[Android Software/Hacking General [Developers Only]] lilysirius:
I'm totally new to Android and don't really understand what your're saying 😢
[Android Software/Hacking General [Developers Only]] lebigmac:
Can you please type these commands on your phone and show me the output? Thanks (y)

su
cd /data/local/tmp/sysrw_1.33
ls -l img/
[Android Software/Hacking General [Developers Only]] icemasters:
Hey I got this to work on OnePlus 8 TMO. Where is the tools subfolder though? For the avbctl binary. Just asking incase i need to revert back for any reason.
[Android Software/Hacking General [Developers Only]] chintoocool:
Where can download the latest version?
[Android Software/Hacking General [Developers Only]] lebigmac:
well the new v1.33 release is not guaranteed to work on your device as it was a highly experimental and very rushed version. A proof of concept (PoC) so to speak. But if you feel like experimenting then you can find the Download button in first post of this thread at the very bottom ;)(y)

Works fine over here on my brand new Redmi Note 12 5G and my old Poco X3 though :D(y)

I haven't yet had the chance to test it on more devices...

If the new v1.33 release fails for you for whatever reason then you can further experiment with manually converting your unpacked read-only sub-partitions into fully read/write-able sub-partitions using the one and only original MakeRW / ro2rw v1.0 which was just born into its own external, independent program after being an integral part of my main SystemRW / SuperRW script for nearly 2 years now. I think it was about time for the siamese twins to be separated from one another ;)(y)

And now that my original and unique MakeRW / ro2rw procedure has finally forked off into its own fully functioning, independent external program as it was always predestined to do, it should be much easier for me to focus on fixing my main SystemRW / SuperRW script and improving its compatibility with various devices. :D(y)
[Android Software/Hacking General [Developers Only]] icemasters:
I think I figured out how to revert back.

So it all good for me.

Device: OnePlus 8/IN2017

Software ver: 11.0.1.2IN55CB
[Android Software/Hacking General [Developers Only]] lebigmac:
no way it actually worked on your device lmao :LOL:

Did the flashable .zip itself give you any issues when flashing it in recovery? :unsure: I mean the update-binary

And how much free space you got in your favorite root file browser app in each sub-partition now? Like /vendor or /product or /system ? Did the auto-resize feature actually do its job properly?

I'm actually not surprised it worked so well. Your partition layout is very basic. The more complex the device's partition layout becomes, the higher the chances for failure of the script. Nothing that can't be fixed though with a little tinkering. ;)(y)
[Android Software/Hacking General [Developers Only]] lilysirius:
Thanks for the instruction. Pls see attached.
[Android Software/Hacking General [Developers Only]] icemasters:
Yea it initially gave me an error but i rebooted back into recovery and tried again and it worked. My phone then took a while to boot up so i rebooted several times just to make sure everything was ok.
[Android Software/Hacking General [Developers Only]] lebigmac:
Thanks for the screenshot (y)

haha deja-vu!

It looks like I forgot to include the cow fix for OnePlus devices from my old SystemRW / SuperRW script v1.32 in this new rushed version :ROFLMAO:

Apparently I must just exclude all files with "cow" in their names even if their actual file size is greater than zero since they're all in that empty cow group anyways. Any other OnePlus users can confirm this? Thanks :D(y)

I know you're probably Pixel user but this cow thing is mostly a OnePlus thing if I remember correctly.
[Android Software/Hacking General [Developers Only]] MVoloshin71:
Hello. Please, tell me if this is going to work on Samsung Qualcomm devices
[Android Software/Hacking General [Developers Only]] nagper:
On OnePlus 7t (Android 12) I've got :

sysrw: Sub-partition: my_manifest_a (my_manifest), group: qti_dynamic_partitions_a
sysrw: Current size of my_manifest_a.img in bytes: 471040
sysrw: Current size of my_manifest_a.img in 512-byte sectors: 920
sysrw: Current size of my_manifest_a.img in MB: 0

sysrw: my_manifest_a dm-path: /dev/block/dm-33, mount-point: /my_manifest
Extracting my_manifest.img...
Unpack done. 0s
erofsUnpack 1.3.220207 Linux
error: ext4_allocate_best_fit_partial: failed to allocate 1 blocks, out of space?

Have you got a suggestion?
[Android Software/Hacking General [Developers Only]] lebigmac:
@nagper can you please run my official MakeRW / ro2rw tool on that partition that gave you the error? Then we can exclude that the reason for the error is the MakeRW / ro2rw procedure itself. Thanks (y)

I'm not sure why that thread got locked as my unique MakeRW / ro2rw tool is a very useful program for RW enthousiasts... Plus I still need to update it to include the launcher shortcut... Lol should've uploaded it to my new website instead...

My MakeRW / ro2rw tool which has always been an integral part of my larger SystemRW / SuperRW project should offer full F2FS support for all Samsung devices sometime in 1st quartal 2023 ;)(y)
[Android Software/Hacking General [Developers Only]] nagper:
Seems to be working fine:

Custom input detected: img/odm_b.img

makerw: Initiating MakeRW / ro2rw procedure...

makerw: Current size of odm_b.img in bytes: 43945984
makerw: Current size of odm_b.img in 512-byte sectors: 85832
makerw: Current size of odm_b.img in MB: 41

makerw: EXT4 file system detected @ odm_b.img
makerw: shared_blocks read-only feature detected @ odm_b.img

Resizing the filesystem on img/odm_b.img to 13411 (4k) blocks.
The filesystem on img/odm_b.img is now 13411 (4k) blocks long.

makerw: Removing shared_blocks from odm_b.img...
makerw: shared_blocks of odm_b.img successfully removed

makerw: Shrinking odm_b.img to minimum size...

Resizing the filesystem on img/odm_b.img to 10513 (4k) blocks.
The filesystem on img/odm_b.img is now 10513 (4k) blocks long.

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

makerw: Congratulations! Your image should now have full R/W capability

makerw: If you like this project please consider donating to the original developer lebigmac
Thank you very much for your support! Your precious donation is very much appreciated and it will allow me to pay my horrendous electricity bills and continue working on optimizing this project and to create many more amazing projects like this! <3
[Android Software/Hacking General [Developers Only]] lebigmac:
what about the my_manifest_a.img file that gave you the error? :unsure:

And can you please send me the output of this command?

ls -l /data/local/tmp/sysrw_1.33/img/

as well as df -h /data/local/tmp/sysrw_1.33/img/

Thanks for the feedback! (y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
After running the script this is what my img folder looked like......nevermind...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
What is it that the locked thread prevents you from completing the script here?
[Android Software/Hacking General [Developers Only]] lebigmac:
I still need to add the launcher shortcut to the one and only official MakeRW / ro2rw tool by lebigmac... And F2FS support and more... With the new thread being locked like that, it's going to be very difficult if not impossible to update it or get any feedback on it?! :unsure:

Anyways if any of you cow users want to try my old v1.32 script with the new MakeRW / ro2rw version plugged into it then here it is. Works pretty well here on my Redmi Note 12 5G but please don't be confused with the nomenclature as the file and folder names are a bit different from the new version v1.33 for instance. ;)(y)

This zip file below is only for debugging purposes :)

[see next page for the actual file]
[Android Software/Hacking General [Developers Only]] xxXDarkNightXxx:
Only managed to upload it and which file via fastboot?Only managed to upload it and which file via fastboot?