yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] simora.lesha:
Hi @lebigmac !

Yes, phone is working. I try change "size" and 300 fits. Look at log twrp. But RW permissions still doesn't work(

And where to enter it? After I flash stock rom 2-3 times. I don’t think there are any problems.

This is very good news for me! Thanks!

I think twrp is so bad , because based on toybox. But Captain_Throwback says that the script is to blame

https://xdaforums.com/t/recovery-official-twrp-for-asus-rog-phone-3.4158949/post-86148647
[Android Software/Hacking General [Developers Only]] diogen78:
Which program can extract files from super_fixed.bin? To make sure all the partitions are there.
[Android Software/Hacking General [Developers Only]] vinyimp:
You got it? can you help me, in the automatic installation (zip - recovery) of the error saying that the .zip is invalid
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi again @jis251

I looked at your picture but it's not clear what you're trying to achieve.

To undo the changes that the script has done to your device simply flash back your original stock read-only super image in fastboot or recovery. You can either use this raw file which was dumped by the script /data/local/tmp/systemrw_1.32/img/super_original.bin (keep in mind if you run script multiple times without specifying input parameter then this file might be overwritten with read/write-able super image!)

or you can use the stock sparse super.img that you downloaded from your phone manufacturer's website (should be the same firmware version as the one you're currently running)

And to re-enable dm-verity and verification you can simply run these commands in your custom recovery :

adb shell
avbctl enable-verity
avbctl enable-verification

Good luck! (y)

Hi @Walther6 thanks for your interest in this project.

What about /data/ ? Is that encrypted and inaccessible as well?

Have you tried booting into Android and setting up a lock screen password and then rebooting into recovery and entering this password to decrypt your files? You could also try a different custom recovery.
[Android Software/Hacking General [Developers Only]] Johncaffee:
Your rom is invalid ?
[Android Software/Hacking General [Developers Only]] Ramdanie_alenta:
it Works , on my Redmi note10...... thx bro!😍
[Android Software/Hacking General [Developers Only]] Ayan Chakraborty:
Hello again. So using the superunpack.exe v15 I have extracted all the partitions as RW. Then I mounted /system and edited as necessary, unmounted and got the modified system.ext4.img.

Now how to convert system.ext4.img to Android sparse file format again so that I can fastboot flash system_a system.img? I got some info about lpmake tool but couldn't find a executable lpmake.exe. Any help would be much appreciated.
[Android Software/Hacking General [Developers Only]] Ayan Chakraborty:
Hello again. So using the superunpack.exe v15 I have extracted all the partitions as RW. Then I mounted /system and edited as necessary, unmounted and got the modified system.ext4.img.

Now how to convert system.ext4.img to Android sparse file format again so that I can fastboot flash system_a system.img? I got some info about lpmake tool but couldn't find a executable lpmake.exe.

Any help @lebigmac would be much appreciated
[Android Software/Hacking General [Developers Only]] deserted:
Hi. Thank you for your work.

Some information from me:

: Realme 7 Pro, Android 10 stock.

TWRP recovery. Magisk installed, read only system.

Installation in recovery does not work, got error 255 and no files in log folder, so I try in the Terminal Emulator app.

Here is the result:

I think I am doing something wrong.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi. Error 255 is already fixed in next version (which will be released very soon).

You are not root ;) You forgot su command!

Hello. To convert raw file to sparse file use the included img2simg tool ;)

You should be able to flash raw files as well using fastboot or dd. Good luck!
[Android Software/Hacking General [Developers Only]] jis251:
HI and thx for reply @lebigmac

I was trying to go back to R/O but my phone has been causing lots of prbs. I have had it 2 months and it has been at service 3 times during that period of time. Once motherboard was changed but it didn't help. So I got new phone, for free of course, so I guess my phone was "Monday version".

Now I wait your next version, last one was not totally OK. Only System was R/W, not vendor or other partitions.

My phone One Plus Nord 2 (DN2103_11_A.16 and Android 11)

Keep up the good work with your script.
[Android Software/Hacking General [Developers Only]] nishat islam:
Flashing successful but /system is not rw yet. Android 10, by orangeFox, miui 12.0.18

I gave "mount -o rw,remount /" output : /dev/block/dm-2 is read only

Update : after running remount command, I get

> mount: '/dev/block/dm-2' not user mountable in fstab
[Android Software/Hacking General [Developers Only]] diogen78:
Device: Realme GT Explorer Master Edition (rmx3366). Android - 11. Bootloader - unlock. Root - Magisk.

Android mode.

Script runs without errors.

Does not boot into the system after

fastboot flash super super_fixed.bin

Does not boot into the system after

fastboot flash super super_original.bin
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @diogen78. Thanks for your extensive feedback including log files and screenshot! (y)

Something is wrong with your log. For some reason it's not removing shared_blocks read-only feature properly. Not sure why. Compare with other successful mylog.txt files from this thread and you will see what I mean.

To get out of bootloop in addition to restoring stock read-only super image you can try to re-enable dm-verity and verification using the included avbctl binary.

If you can only access fastboot then I would suggest downloading stock firmware (same version that's installed on device) from your phone manufacturer website and then flash the vbmeta partitions + stock super.img

(Script only modifies vbmeta* and super partitions)

Please report back your results. Good luck! (y)

fastboot --enable-verity --enable-verification flash vbmeta vbmeta.img
fastboot flash super super.img
[Android Software/Hacking General [Developers Only]] shadowstep:
@lebigmac A tip: Some text in the first post is white, and since there are people who use the good old classic XDA theme (which is a light theme), that text will be invisible to them. Might want to change the text colour. :) Nonetheless, great job with the zip! (y)
[Android Software/Hacking General [Developers Only]] deltaquarti:
I booted into TWRP, disabled the signature verification and flashed the zip, but it didn't work properly since it's still read-only (on a OnePlus Nord with Android 11).

I'll attach here the log from the TWRP, if it could be useful.
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi ronlkh1965. Thanks for posting the screenshot again. I didn't see it at first.

Wait. Your screenshot is upside down. I must first download your picture and rotate it 90° ;)

Please check your messages for possible syntax error workaround.

Hi Mikac21. Thanks I'm glad it works for you. What device you got ? What android version? super or no super?

What does it mean ole tu polla? Is that Spanish?

It should be possible to undo the changes you make in system. Make sure you always make backups before you edit any system files or remove any system apps. That way you can copy it back in TWRP if there happens to be a bootloop!

Hi thelavip. Please check your messages. I sent you a possible workaround.

Hi shadowstep. Thanks for the heads up. I already changed it :) I hope it's better now.

Thanks I'm glad you like the zip! Did it work for you?

Hi deltaquarti. Thanks for your interest in my newest project ;)

I'm sad it didn't work for you yet but don't worry. Together we will fix your problem.

Thanks for the TWRP log. Where did you find it?

It's a little bit difficult to read due to formatting issues so can you please run the script manually like this and send me the new log? Thank you.

/data/local/tmp/makesysrw_1.15c/makesysrw.sh size=100 in=./files/super/super_original.bin > ./mynewlog.txt
[Android Software/Hacking General [Developers Only]] The_Eniac:
Hello, @lebigmac,

I think you shoud advise in the first post that this great solution works while you are using normally your rom. But may be you must say that this script is not permanent. I mean, if you have to flash every week your favorite beta rom, you MUST do it again all process.

But, I see that everytime you do this, the dump /temp partition where is created the new super image, IS GROWING a little bit each time you flash the script.

So, my questions is: ¿ There is a way to avoid the increase of the new partition ? ¿ It is possible to return to original size before the script or delete it to start from new?

Thank you, mate.

By the way : Ole tu polla means something like: "wow, you had two big balls for do that !"
[Android Software/Hacking General [Developers Only]] lebigmac:
Hola amigo! Thanks for that translation! That made my day.

Every week you flash a new beta rom?

Well then I guess you will have to flash my flashable script every week then :D

You will become a regular user of my script ;)

In the next version of the script, it will automatically delete all the *.img files inside the folder: /files/super/

after it has finished doing its job. I hope this will help reduce the size on disk.

The cleanUp function is already present in the script. I just haven't been using it enough lately.

You can always manually delete the entire makesysrw_1.15c folder inside /data/local/tmp/ and when you swipe to install it will simply reinstall itself to that location and initiate the procedure.

By the way how did you do this? Can you please share with me? I want this feature too! It looks very useful. I need the reboot to fastboot, recovery buttons! How to get them on my Xiaomi X3 NFC?
[Android Software/Hacking General [Developers Only]] The_Eniac:
It

It is just change one file called "powermenu" located at \system\media\default\. Once you can change the location make RW you only have to put the one modified.

I can let you my modified file if you have a Xiaomi device. I don't know if it will work. But try it out.

You ll tell me.

Here the link to download : https://drive.google.com/file/d/10EstgTpqoXNz0OyUkkbmTKjjfWwCNmAq/view?usp=sharing
[Android Software/Hacking General [Developers Only]] The_Eniac:
If you have a poco x3, may be is possible to enable this feature in settings\additional settings\developer options. I don't know if this is the same like in my Mi 10.
[Android Software/Hacking General [Developers Only]] lebigmac:
To those with syntax error try this:

Line #234

change this

arr=(`ls -Alg /dev/block/by-name | awk '{print $(NF-2)"|"$NF}'`)

to this

arr=`ls -Alg /dev/block/by-name | awk '{print $(NF-2)"|"$NF}'`

I can't believe nobody else noticed it much earlier. The error was so obvious lol.

If it works I'll include this in the next hotfix.

@ronlkh1965 @thelavip
[Android Software/Hacking General [Developers Only]] ronlkh1965:
it says 235 syntax error : bad substitution

for x in "${arr[@]}"; do
[Android Software/Hacking General [Developers Only]] HemanthJabalpuri:
It will get triggered only if no super partition is detected right?

That's why may be all people haven't noticed it.

Thanks
[Android Software/Hacking General [Developers Only]] shady_soldier:
How can this script be executed on a device like the OnePlus 7t, which doesn't have a fully functioning twrp?

Thank you.
[Android Software/Hacking General [Developers Only]] lebigmac:
@ronlkh1965

Apparently your shell doesn't support arrays for some reason! That's why you get syntax error. Now it all makes sense.

Hi @HemanthJabalpuri. Thanks for your interest in this project. I see you've been studying my script thoroughly recently. That's great ;) Please keep in mind I am only a beginner at scripting so the script is not perfect yet ;) To be honest this is my very first bash script project ever! I know it's unbelievable!

Also thanks for noticing at line #204 that the string can be replaced with an already existing variable. I'll include that minor optimization with the next hotfix.

Hi shady_soldier. Thanks for your interest in this project.

Is there OrangeFox recovery available for your device?
[Android Software/Hacking General [Developers Only]] Lossyx:
Haven't checked the script and not sure where is stores the files. But if it requires data decryption (i.e use of internal storage), then no it's not possible. You have to directly modify each partition manually. **If on OOS**

With that said, you could try pushing zip to /tmp or /cache and flash from there.
[Android Software/Hacking General [Developers Only]] lebigmac:
@ronlkh1965 @thelavip

Good news! I've finally found the solution for all those that were experiencing syntax error at line # 234 and 235

This is what it should look like:

arr=`ls -Alg /dev/block/by-name | awk '{print $(NF-2)"|"$NF}'`
for x in $arr; do

If it works I'll include it in the next update!
[Android Software/Hacking General [Developers Only]] PandaEuropeu:
Can you send me too? Please.
[Android Software/Hacking General [Developers Only]] PandaEuropeu:
Poco X3 with Android 11 custom rom (ArrowOS).

"There was a problem removing the reading-only lock of system.img"

Any solution?

Thanks! Good job!
[Android Software/Hacking General [Developers Only]] lebigmac:
Amigo thanks for trying my script and for the nice screenshots and feedback but if you use custom ROM like Arrow OS then your system partition is most likely already read write!

Check it by doing

mount -o remount,rw /

If you get no error that means your device is already read write so you don't really need to run my script unless you want to play around with resizing your individual partitions inside your super partition that is ;)

If you really want to know exactly what went wrong try running this command manually on your phone:

e2fsck -y -E unshare_blocks /data/local/tmp/makesysrw_1.15c/files/super/system.img

I hope this helps.
[Android Software/Hacking General [Developers Only]] zelipukin:
lebigmac, Thank you ! (can repeat this 10000 times) You made me feel 10 years younger - returned to the era when people rule their phones.

my phone (one of) is F150 (sub of Oukitel) model B2021 mt6765 6/64 Andr10 avs

Right after installiation I run into some troubles: Yes, I could make system R/w and manipulate with files, but there were some bad simptoms like Magisk FC, settings FC, etc

I went into TWRP and flashed backup of my Super made just before your script installation.

Surprisingly, after that I have fully functional phone with all the R/W bells and whistles !
[Android Software/Hacking General [Developers Only]] lebigmac:
Hello @zelipukin. Thanks for your message.

Are you saying that my script actually worked on your device?

You sir have made my day. Everytime my script works on somebody else's device it makes me happy :)

Of course the script is not perfect yet. Still lots of work to do...

Did the script itself give you any errors? Did you run it manually or with the flashable zip installer?

Is this your device? It looks good. A little bit more rugged than mine & same price range as my Xiaomi X3 NFC!

The specs are not bad for that price range! And it has NFC just like mine! Look at that battery capacity! I'm jealous! I think I want one. I mean 100 bucks? That's such a great deal! That's even better price to hardware ratio than Xiaomi lol
[Android Software/Hacking General [Developers Only]] lebigmac:
Good news to all those unfortunate ones who couldn't get it to work in their TWRP version or they don't even have TWRP for their device or stuck on OrangeFox!

I am thinking about releasing Android only version! No TWRP required.

You will have to flash the partitions manually though!
[Android Software/Hacking General [Developers Only]] diogen78:
The only way to boot into the system is to flash the entire stock firmware through the fastboot.

Then I get root again through patching boot.img with magisk.

Then:

1. Backup super.img by Partitions Backup & Restore or Universal Mount SystemRW.

2. Flash stock super.img without any changes

fastboot flash super super.img

3. Device does not boot into the system. Stays in fastboot mode.

It turns out that the problem is not about the script, but the fact that it is impossible to make a valid backup of super.img.
[Android Software/Hacking General [Developers Only]] psi.singh03:
Thanks and respect to sir Lebigmac for this awesome creation.

It works on Redmi 9 Power (India variant)

Over: MIUI 12.5.4 / 12.5.5 Android 11 (Xiaomi eu)

Rooted: Magisk Canary - f822ca5b (patched boot image)

Kernel: Stock

Recovery: TWRP (XTRV)

After flashing this script, I got my full super partitions as rw namely but not limited to /system; /system_ext; /product & /vendor respectively.

THANK YOU AGAIN SIR!

Feeling blessed.
[Android Software/Hacking General [Developers Only]] diogen78:
There is no custom recovery for Realme GT Explorer Master Edition.

I tried to use the recovery from another phone model GT Neo 2.:LOL:

I did not flash this recovery, I just booted into it and ran the script.

The script worked correctly.

Successfully flashed /data/local/tmp/systemrw_1.32/img/super_fixed.bin to /dev/block/sda10

And I even booted into the system. What I was not able to do when flashing through the fastboot.

But the system partition is still in read-only mode.:cry:.

I had no luck with this phone.
[Android Software/Hacking General [Developers Only]] Md652:
The script does not work for me because my device (King Kong Mini 2) is 32 bit I also tried superunpack but I still can not change the system it is really urgent for me to create a different system and download a lot of things I would be very happy you can help me with what tools from your amazing script I can Use avento to edit my system to rw

Huge thanks
[Android Software/Hacking General [Developers Only]] Md652:
Now I see that superunpack worked fine for me to download the blocks_shared Because I did the test you wrote in the first post and it went downbut I still do not have r / w and when I run mount this is the result "

KINGKONG_MINI2:/ # busybox mount -o remount,rw /system

mount: can't find /system in /proc/mounts"

can someone help me urgently
[Android Software/Hacking General [Developers Only]] jis251:
Try to mount root first

mount -o remount,rw /

And then /system. Just a thought though
[Android Software/Hacking General [Developers Only]] bear263:
I've tried searching for my problem but unable to find it. Hope someone can help me. I have a motorola edge 2021 bootloader unlocked. I've ran with success the systemrw.sh file. It created the .img's. But I get the error 73 when creating new image. I loaded up ubuntu on a thumb and tried executing the repair file as instructed. I get an error about adb not excutable 64-bit efl file error. I've tried setting chmod on adb but still same error. I'm able to shell into the phone, cd.....etc so I am connected to the phone.

Any advice?
[Android Software/Hacking General [Developers Only]] sarbazg180:
This also happened for me!😭
[Android Software/Hacking General [Developers Only]] gammarayXda:
Thank you soo much for making this tool. It took about 2 3 minutes to flash the zip.

My device is Xiaomi Redmi Note 10, Android 11 with super partition.
[Android Software/Hacking General [Developers Only]] RMX3370:
Device - Realme GT Neo 2 Android 11 rooted with magisk RUI 2.0 Stock ROM

No error reported system has rebooted without any problem . NO BootLoop

Can you check if Device shows requirement for flashing both partitions

Since I get this when I try to check slot

Spoiler content hidden.

Now I can see partitions in mixplorer but I still cant delete files , I removed Facebook App Manager it failed i thought on reboot it will go but after reboot also it stays there .

I have attached photo of partitions that reappeared but i cant seem to delete any apps or even change permissions .
[Android Software/Hacking General [Developers Only]] lebigmac:
Hi @Email44841 thanks for your interest in this project & for providing your log files. According to your log the script didn't do anything other than disable dm-verity and verification. I'm happy that your phone still boots :D

It looks like you've got the same problem as @diogen78 in this comment here

@Email44841 @diogen78 please run these commands and show me result thanks! (y)

adb shell
su
for a in /dev/block/dm-*; do tune2fs -l $a | grep -e "feat" -e "vol"; done

Don't worry new upcoming version (which is just around the corner) should work better on your device I think ;)(y)

Any talented developers want to contribute PM me!
[Android Software/Hacking General [Developers Only]] jis251:
HI, @lebigmac

I hope your next version comes soon, thank you for your great work (and thx for Beta Testers too).

When you published your next version, can you quarantine that restoring the original superpartition, from your saved partition or TWRP backup or Partition Backup, will work OK? Do we have safe return back to original? Is that tested?

I hope it is.

Thank you
[Android Software/Hacking General [Developers Only]] RMX3370:
Thanks for reply ,

Output is attached
[Android Software/Hacking General [Developers Only]] tids2k:
be nice to have a solution finally.
[Android Software/Hacking General [Developers Only]] Tickbaby:
Worked for me. Pinephone64 running GloDroid Android 12.
[Android Software/Hacking General [Developers Only]] 潇xiao:
Unlocked, but not yet fully unlocked.

You can create a file, but you can't write to the original file. You can't copy files with non-0 bytes, and you can't delete files with non-0 bytes.
[Android Software/Hacking General [Developers Only]] zachariahpope:
@lebigmac this worked flawlessly for me ... I'm on a LG V60 (Verizon Variant) on the latest January 5th firmware. Thank you so much for your hard work.
[Android Software/Hacking General [Developers Only]] 潇xiao:
I completely cleared the data of my mobile phone and re swiped miui13 V13 0.5.1.5. Dev, I used your script again after twrp swiped into magick24001 (beta version) to get root. After startup, I modified the / system / etc / hosts file with MT manager and saved it successfully. This indicates that it has been successful. Thank you.
[Android Software/Hacking General [Developers Only]] ANDARXapi:
Samsung a12 nacho (sm-a127)

Android 12

It works on this device on any firmware version, verified by me. logs attached
[Android Software/Hacking General [Developers Only]] alexp1289:
@lebigmac I'm unable to run this from TWRP on my Motorola g power 2020 (A11 stock ROM). I had to run it with terminal emulator. It was able to remove dm-verity and verification. But it failed at error 73. How do I fix this in terminal? Thanks for your hard work.
[Android Software/Hacking General [Developers Only]] Supermatt01:
Has this been tried on A12?
[Android Software/Hacking General [Developers Only]] krissrmx:
So everything seems to be fine until, the script stops at 17 or 16% i dont know why had anyone been in the same boat?

"edit"

also when that happens the phone disconects and reconects but nothing happens"

LGV60 ATT

Android 11

Magisk rooted

Bootloader unlocked

@lebigmac