yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] lebigmac:
@PizzaG lol check the included sysrw_repair script. Those are the last residues of the initial Linux-only script :LOL: (find out more history about it here)

You must be like the 10th person to ask me for a Linux-only version and I do understand that there is a certain need for a Linux-only version of my script. But currently due to the rising electricity prices my main focus is on the mobile Android version. At a later point in time however I do plan an updating the initial Linux-only version. Don't worry. You will be the first to be notified when that moment has come ;)(y)
[Android Software/Hacking General [Developers Only]] izsdeaman:
my memory is more than 60GB free.
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Which twrp you used? Orange fox?

And which version 1.31 or 1.32?

And method? Did you flashed whole super_fixed.bin?

Or twrp make it rw automatically?

Thanks
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Is there anyway to find it?
[Android Software/Hacking General [Developers Only]] izsdeaman:
I have updated the new rom, the memory is still a lot, but still the error is not enough memory. error:70
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Its need storage in root folder

During resize need some extra space to add and delete files

By all mean its looks like useless
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Have SystemRW_1.32_flashable.zip on internal storage of phone. Bootloader unlocked, magisk rooted, in fastboot mode "fastboot boot TWRP.img" once booted in twrp go to advance tab and tap on "flash current twrp then when that is done go back to twrp home then, tap on install and install systemrw_1.32.zip....
[Android Software/Hacking General [Developers Only]] TheGhost1951:
A11 only, have not gotten the SystemRW script to work on A12....just tried again two days ago on A12 with the modified sdkcheck section but ended up in a Bootloader loop.
[Android Software/Hacking General [Developers Only]] IamTheBRAVE:
Be advised that OTAs on oneplus 9 pro include cow partitions which make trouble. Read this post about it. You can try deleting them in fastboot like said in the post.

I tried munjeni's script instead and couldn't get rw. Always stuck on those. Also my system got corrupted and crashed. Had to restore from recovery. Won't be doing it again for now.
[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

Meanwhile worked for me on Mi 11 Ultra
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @gursewak.10 I am going to answer you now before you ask the same question for a 3rd time ;)

Thanks for your feedback I am happy my old script works on your Mi 11 Ultra device. Can you please show your mylog.txt ? What Android version did you use?

I don't understand your first question. The answer to your question should be in the quote above your question that you quoted from initial post (uninstall section). Nice find BTW! (y)

total super size minus total used size equals extra free space but you don't need to bother with that since I already created a fully working autoresize feature (will be released together with next version hopefully soon!) ;)

Please keep in mind : The more and better high quality feedback I receive with regards to the make_ext4fs binary as stated in my previous comments, the earlier the new even more universal version will be ready for everyone to enjoy ;). Thanks for your support!

Regards,

lebigmac
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I for one am very appreciative of the work you are doing "lebigmac"! In my opinion, you are the greatest! Thank you for all you do! May God bless you and your family and bless you for prosperity! Your friend TheGhost....
[Android Software/Hacking General [Developers Only]] diejuse:
Hi. I have tried the script on my Titan Pocket with Android 11. No errors but no success.

I did these steps:

1º adb shell "ls -l /dev/block/by-name/super"

I see I have a super partition: lrwxrwxrwx 1 root root 16 2022-10-08 21:58 /dev/block/by-name/super -> /dev/block/sdc38

2º Being inside of /data/local/tmp/systemrw_1.32 . I executed: ./systemrw.sh size=15 # NO ERRORS

3º adb reboot bootloader

4º fastboot flash super super_fixed.bin # NO ERRORS

Can I do any more?
[Android Software/Hacking General [Developers Only]] gursewak.10:
oh my bad, if it got repeated, it was showing in my typing when i went to write that it worked so i thought it didn't get posted so i guess i posted the reply twice. sorry for that.

btw its Android 12
[Android Software/Hacking General [Developers Only]] CarlosPinheiroT:
Does anyone know if it works on Redmi Note 11 pro 5G (veux) with android 12?
[Android Software/Hacking General [Developers Only]] lebigmac:
Maybe it works if you replace line # 425 in systemrw.sh script file with this and save

#sdkCheck

Good luck! (y)
[Android Software/Hacking General [Developers Only]] lebigmac:
Thanks for your kind words. :D(y)

I try what I can to give the open source community the rw tools that it deserves ;)(y)

But it ain't always easy...
[Android Software/Hacking General [Developers Only]] lebigmac:
And? @Mr Hassan ? What results did you get? A whole page later and I am still waiting for your reply... ⌛ Seriously?

Can you please confirm if you can actually delete files from any of your subpartitions of super partition?

For example you can do this (don't worry this will not brick your device ;)) :

adb shell
mount -o remount,rw /
touch /test.txt
ls -l /test.txt
echo "hello world">>/test.txt
cat /test.txt
rm /test.txt

And please don't forget to show a screenshot of the output here in this thread! Thanks for your constructive feedback! (y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I understand completely!
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Let me chk it and post screen shot to you.

But let me tell last time with another dude script i was able to get rw,sctable etc in cmd

And with one cmd command i was able to change ro to rw in root explorer

But nothing able to change or delete

But in dev/block/mapper able to do anything

Paste file and delete file
[Android Software/Hacking General [Developers Only]] lebigmac:
I think soon I should be able to release a working beta version...

Please wish me luck! Thanks! 🍀
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I have faith in you my friend!
[Android Software/Hacking General [Developers Only]] Mr Hassan:
1.4 version? But 1.32 is already there not!

And wish you a very very best of luck
[Android Software/Hacking General [Developers Only]] rbns:
А на nubia red magic 7S Pro не работает

Mod translation: And on nubia red magic 7S Pro does not work
[Android Software/Hacking General [Developers Only]] ebowen 747:
Do you still need this result, I can post from T-Mobile V60 if you want.
[Android Software/Hacking General [Developers Only]] rbns:
Скрипт SDK 32 не будет работать? Нубия красная магия 7s про
[Android Software/Hacking General [Developers Only]] hossein_vlz1:
I did all the operations and filed super_orginal.bin And super_fixed.bin inside the folder platform tools I copied when super_fixed.bin in fastboot I flashed, with this I encountered this error

My Phone Is

Redmi Note 11 Pro 5G Miui 13.0.14

pls help me
[Android Software/Hacking General [Developers Only]] hossein_vlz1:
To To note 11 pro 5g

please for Note 11 Pro 5G Solve the flashing problem 🙏
[Android Software/Hacking General [Developers Only]] TheGhost1951:
$ su

tem_ext /product /vendor /odm -name "*fs_config*" <

/system/etc/fs_config_dirs

/system/etc/fs_config_files

/system_ext/etc/fs_config_dirs

/system_ext/etc/fs_config_files

/product/etc/fs_config_files

/product/etc/fs_config_dirs

/vendor/etc/fs_config_dirs

/vendor/etc/fs_config_files

/odm/etc/fs_config_dirs

/odm/etc/fs_config_files
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Where does systemrw_1.4 come in at. Only one I am aware of and using is 1.32?
[Android Software/Hacking General [Developers Only]] harvey186:
I have tried on my Mi Mix Fold with Android 12 MiUi V13.1.1.0.SJTCNXM. After I have changed the scrip that Android 12 is also accepted the images are extracted, but the repack sto super image fails with a 'not enough space for vendor_b available.

How can I solve this issue ?

I have changed the out folder location to sdcard/img. The location itself has more then 400bg space free.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
I am TMO stock A11 11.2.9.9 OP9P.... With TWRP and flashed the SystemRW_1.32 flash able zip....everything works great!
[Android Software/Hacking General [Developers Only]] lebigmac:
ok I guess we found the fs_config_file then. Great job guys! (y)

Can we just plug this into the make_ext4fs tool and it will just work? :unsure:

And what about the PARTITIONNAME_file_context file? :unsure:

Where to find that file for let's say system, product and vendor? :unsure:

And why in my results below I don't have system_file_contexts but instead plat_file_contexts ?! What is this plat_file_contexts ? Anybody know this? :unsure: I assume plat stands for platform yeah?

I'm not too familiar with this useless selinux stuff. I usually just disable that nonsense and enjoy my device :D(y)

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]] TheGhost1951:
This what I get....

$ su

/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:
OMG! You get the same result as me! 🤯 Are you using Xiaomi device?

I know I can plug those 3 last files into make_ext4fs no problem but the plat_file_contexts will definitely cause errors...
[Android Software/Hacking General [Developers Only]] TheGhost1951:
OnePlus 9 Pro my friend on TMO stock 11.2.9.9 firmware....
[Android Software/Hacking General [Developers Only]] ddougg:
Que

Thank You Lebigmac , I have a Moto G Stylus 5G " Denver " and I got

/system/etc/fs_config_files

/system/etc/fs_config_dirs

/system_ext/etc/fs_config_files

/system _ext/etc/fs_config_dirs

/product/etc/fs_config_dirs

/product/etc/fs_config_files

/vendor/etc/fs_config_files

/vendor/etc/fs_config_dirs

/system/etc/selinux/plat_file_context

/system_ext/etc/selinux/system_ext_file_contexts

/product/etc/selinux/product_file_context

/vendor/etc/selinux/vendor_file_context

I hope this helps .
[Android Software/Hacking General [Developers Only]] lebigmac:
That's great thanks for the feedback (y) but can you actually run the make_ext4fs binary using those context files?

And please write your current Android version + device model thank you :)(y)

make_ext4fs for OSX

The other day I saw a Windows version in this subforum in a eerily similar thread by Yuki...
[Android Software/Hacking General [Developers Only]] ddougg:
I have the Moto G Stylus 5G xt-2131-1 running on Android 11 Magisk root. New to Linux, just got Ubuntu on old laptop unfortunately didn't get rw yet, but willing to brick this thing again to get google out. Do I need to figure some code to put in or is it just "make_ext4fs for osx"?
[Android Software/Hacking General [Developers Only]] ISaiDPower:
Confirmed Lenovo Tab M10 HD TB-X306X no shared_blocks with super partition

Spoiler content hidden.
[Android Software/Hacking General [Developers Only]] lebigmac:
@ISaiDPower your mount | grep dm- output shows EROFS? :unsure:

How often did u run the script? :ROFLMAO:

That's a very nice device. How do you like it so far?

If you're running stock Android 11 then my old script should still do the trick ;)

While I iron out the last bugs from this new version.

Well the EXT4 shared_blocks only version is all ready to be released I just need to figure out how to properly use the make_ext4fs binary in a programmatic way so that it works on ALL devices out there (regardless of whether it's EROFS or not) :D(y) It's not an easy task and I need the feedback of every single one of you out there reading these lines. Thank you all for your support! (y)
[Android Software/Hacking General [Developers Only]] ISaiDPower:
ran it once before bricking the tablet while installing v4a and ran it once again now after a fresh magisk install.
[Android Software/Hacking General [Developers Only]] lebigmac:
looks like it worked lol :love:(y)

If you can remount /vendor and /product as rw as well then you know it worked :D(y)

Have fun debloating and customizing your device :love:(y) and don't forget to make lots of backups. Deleting the wrong file can cause bootloop itself!
[Android Software/Hacking General [Developers Only]] ISaiDPower:
just tried remounting /vendor and /product and works fine, thanks for the script.
[Android Software/Hacking General [Developers Only]] Fernandez_R:
Is this working for Android 13 yet?
[Android Software/Hacking General [Developers Only]] lebigmac:
Well I am currently working on the EROFS fix as we speak. If you want to contribute your high quality feedback please feel free to do so. Thanks ;)(y) Who knows maybe you even end up in the credits ;) The pieces of the puzzle are out there. Now it's up to every single one of us to put all the pieces of the puzzle together :D

I will probably release a beta version in the next few weeks... To speed up the development of the actual new version. :)

It's time to wrap up this whole saga.
[Android Software/Hacking General [Developers Only]] Mr Hassan:
We don't know this piece which is missing from start and never

Founded

Send any single command or whatever you want to check I'll post here to find this last missing piece

Plz post details here

How can we found it

And how can we help you to find it
[Android Software/Hacking General [Developers Only]] hossein_vlz1:
It's Worked On Redmi Note 11 Pro 5G , Android 12 . Thanks 😍
[Android Software/Hacking General [Developers Only]] Psygisk:
can you help me ?

im using moto edge 2020
[Android Software/Hacking General [Developers Only]] Psygisk:
@lebigmac​

Moto Edge 2020
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Hi Hassan, this is what I did to get what I call full root privileges. With Magisk root alone you do not have full root privileges because the partitions are not R/W. I bricked my phone. Used the MSM Download tool to flash stock TMO 11.2.2.2 on to my OP9P TMO phone. Skipped all setup, upgraded to 11.2.9.9. unlocked the bootloader which factory reset my phone, then went through full setup restoring settings and apps with data through Google backup. Then using adb, booted to bootloader, fastboot boot twrp.img, when twrp was loaded, tapped on advance, tapped on flash current twrp, then went back to home and tapped on install and chose the Magisk 25.2 apk that I had pro loaded on SD card. Once that was done, rebooted to system, went into app drawer and tapped on Magisk to finish the root process. Then with phone connected used adb reboot recovery, then in twrp, tapped on install and selected the preloaded Systemrw_1.32_flashable.zip I preloaded on to SD card...once done, rebooted to system. Done.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hello. Yes. Thanks for your feedback (y)

You can run the included sysrw_repair script in a Linux environment. That should take care of the annoying error 73... Good luck! 🍀(y)
[Android Software/Hacking General [Developers Only]] kozanostra-pajero:
Hello.

I have oukitel r2021 firmware ASW1900AD_2201_T2119

and systemRW_1.32 not work

see attach

B2021:/ # echo "test" > /system/test.txt
/system/bin/sh: can't create /system/test.txt: Read-only file system
1|B2021:/ # mount -o remount,rw /
B2021:/ # echo "test" > /system/test.txt
1|B2021:/ # cat /sys
sys/ system/
1|B2021:/ # cat /system/test.txt

B2021:/ # for a in /dev/block/dm-*; do tune2fs -l $a | grep -e "feat" -e "vol" && echo; done
Filesystem volume name: product
Filesystem features: ext_attr resize_inode dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

Filesystem volume name: /
Filesystem features: ext_attr resize_inode dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

Filesystem volume name: vendor
Filesystem features: ext_attr resize_inode dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize

shared_blocks no

help
[Android Software/Hacking General [Developers Only]] Mr Hassan:
Hi thanks i almost done with another way but still need to fix one part with still not have rw
[Android Software/Hacking General [Developers Only]] Psygisk:
Thanks but im not that pro to use Linux.
[Android Software/Hacking General [Developers Only]] leoredillas:
Pls. Help it does not work on my device, Xiaomi Redmi 9t (lime) Android 10.
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ok, I assume the bootloader is unlocked, A11 firmware and twrp installed?
[Android Software/Hacking General [Developers Only]] Mr Hassan:
A12 and twrp yes
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Right now the script for R/W on A12 is hit or miss. Works perfect on A11. I am waiting for the new release of the script made for A12 before I upgrade to A12
[Android Software/Hacking General [Developers Only]] Mr Hassan:
I fixer on a12 but vendor still not able to fix rw due to correct size calculations
[Android Software/Hacking General [Developers Only]] TheGhost1951:
That is above my pay grade!🤣
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Do you need anything further from my OnePlus 9 Pro if I upgrade it to the latest A12? I am still on A11 because SystemRW_1.32 works great for me so far.....
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. What do you mean it not work? I don't see any errors in your log. Did you even flash the super_fixed.bin? :unsure:

After flashing it check if you can do this and report back your results. Thanks! (y)
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Here is mine on A12 OnePlus 9 Pro...

$ su

duct /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

And this...

duct /vendor /odm -name "*fs_config*" <

/system/etc/fs_config_dirs

/system/etc/fs_config_files

/system_ext/etc/fs_config_dirs

/system_ext/etc/fs_config_files

/product/etc/fs_config_dirs

/product/etc/fs_config_files

/vendor/etc/fs_config_dirs

/vendor/etc/fs_config_files
[Android Software/Hacking General [Developers Only]] Psygisk:
how to run repair script in linux adb driver installed but dont know to run script i meant what the process can you help please?
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Here is my log on same system. Edited the sdkcheck portion with revised script.
[Android Software/Hacking General [Developers Only]] chairman011:
It says "Android version not supported" rog phone 5 Android 12
[Android Software/Hacking General [Developers Only]] TheGhost1951:
You talking about your phone? If so check posting #1597
[Android Software/Hacking General [Developers Only]] leoredillas:
The superfixed.bin works thank you. I can now mount system as read&write in root explorer app.
[Android Software/Hacking General [Developers Only]] Psygisk:
I try thorough Linux showing ( No Space left)
[Android Software/Hacking General [Developers Only]] chairman011:
Brooooo just when I was about to downgrade lol I just posted saying it didn't work for me on Android 12 but I kept reading and reading and bam here comes your post! 💪
[Android Software/Hacking General [Developers Only]] chairman011:
I actually fixed the issue I kept reading somebody modified the zip to work well with android 12 iam on tbeatest android 12 update on rog phone 5 💪
[Android Software/Hacking General [Developers Only]] brackenhill_mob:
So what was the fix/link to what you read?
[Android Software/Hacking General [Developers Only]] kozanostra-pajero:
where using config.ini your script?
[Android Software/Hacking General [Developers Only]] harvey186:
add this after line 403

elif (( $sdkVersion == 31 )); then

android=12
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Simple question, do you flash super_fixed.bin in fastboot or fastbootd mode?
[Android Software/Hacking General [Developers Only]] harvey186:
You MUST flash super.img in fastboot. Fastbootd is for flashing system or vendor inside a super partition

And don't forget to rename from .bin to .img
[Android Software/Hacking General [Developers Only]] lebigmac:
In [soon to be released] new version it's called super_patched.bin ;)

I know some folks like to have all files in .img format to more easily flash it in TWRP.

The reason why I gave it the .bin extension is : Now at the end of the script I can simply run

cleanUp "$imgDir/*.img"

and this will delete all extracted subpartitions from hard drive without deleting the super_patched.bin and free up some space that way ;)(y)

Here the updated cleanUp() function in more detail :

cleanUp(){
for file in "$@"; do
rm -f $file
done
}

If you EROFS/Samsung folks really want to speed up the development process then please consider donating so that I can buy the cheapest next gen EROFS device and try to root the living hell :devilish:🔱 out of it and do some rw experiments on it 🥼. Thank you! With my old Xiaomi Poco X3 it's not very easy to transform these brand new read-only mechanisms into read/write-able from a distance... The Xiaomi Poco X3 only has the shared_blocks read-only feature :ROFLMAO:
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Ran the systemrw.sh again and in the super_fixed there is no product_b.img but a product_b.ext. why? Attached is my log.....
[Android Software/Hacking General [Developers Only]] TheGhost1951:
Spoiler content hidden.

One is slot_a and the other is slot_b, one has product_a.img the other has product_b.ext

All this on OnePlus 9 Pro A12
[Android Software/Hacking General [Developers Only]] masterscience:
Worked fine for me. Thanks very much. I used it from twrp and I added 300 megabytes to my system. I can now edit my build prop and other system files. My phone is a 2021 Moto G power with Android 10 havoc o.s

Regards
[Android Software/Hacking General [Developers Only]] Mr Hassan:
How to add 300mb in twrp method?
[Android Software/Hacking General [Developers Only]] masterscience:
Extract the zip from the beginning of the post.. inside Also extract labeled systemrw_1.32flashable.zip. Inside that file open config file in txt editor. Then change size 15 to size 30O. And save. after that install modified zip with TWRP. it doesn't take all that long
[Android Software/Hacking General [Developers Only]] zidekuls:
Hi @lebigmac. This script worked for my device Redmi K30 Pro(A11), I added about 20M to system partition. But there is a strange thing, that I modified framework-res.apk and re-pasted the modified one(same size) to directory /system/framework/, the remaining space became smaller. If I pasted and replaced framework-res.apk many times, there would be 0B space left. It seems the whole system partition size shrinked...