[Android Software/Hacking General [Developers Only]] quanqw:
:/ $ su

# ./makesysrw.sh

-------------------------------------------------------------------------

| makeSystemRW v1.22 automated script by lebigmac @xda 2021 |

| Thanks @Kolibass @Brepro1 @munjeni @AndyYan @gabrielfrias @YOisuPU |

| without your help this script would not be possible! |

------------------------------------------------------------------------

makesysrw: Phone is not in TWRP recovery mode. Ignoring

makesysrw: Initiating procedure...

makesysrw: Unable to locate super partition on device. Ignoring

makesysrw: Partition detected: product_a @ /dev/block/sda26

makesysrw: Dumping product_a to: /data/local/tmp/makesysrw_1.22/files/nosuper/product_a.img

4194304+0 records in

4194304+0 records out

2147483648 bytes (2.0 G) copied, 29.128942 s, 70 M/s

makesysrw: Successfully dumped product_a

makesysrw: Current size of product_a.img in bytes: 2147483648

makesysrw: Current size of product_a.img in MB: 2048

makesysrw: Current size of product_a.img in 512-byte sectors: 4194304

makesysrw: Increasing filesystem size of product_a.img to 5242880 512-byte sectors...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/product_a.img to 655360 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/product_a.img is now 655360 (4k) blocks long.

makesysrw: The filesystem of product_a.img was successfully resizedmakesysrw: Removing 'shared_blocks feature' of product_a.img...

e2fsck 1.44.4 (18-Aug-2018)

makesysrw: Read-only lock of product_a.img successfully removed

makesysrw: Shrinking size of product_a.img back to minimum size...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/product_a.img to 472989 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/product_a.img is now 472989 (4k) blocks long.

makesysrw: Current size of product_a.img in bytes: 1937362944

makesysrw: Current size of product_a.img in MB: 1847

makesysrw: Current size of product_a.img in 512-byte sectors: 3783912

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

makesysrw: Please reboot into bootloader and flash the file(s) manually

makesysrw: Partition detected: product_b @ /dev/block/sda27

makesysrw: Dumping product_b to: /data/local/tmp/makesysrw_1.22/files/nosuper/product_b.img

4194304+0 records in

4194304+0 records out

2147483648 bytes (2.0 G) copied, 27.364214 s, 75 M/s

makesysrw: Successfully dumped product_b

makesysrw: Current size of product_b.img in bytes: 2147483648

makesysrw: Current size of product_b.img in MB: 2048

makesysrw: Current size of product_b.img in 512-byte sectors: 4194304

./tools/bin/tune2fs: Bad magic number in super-block while trying to open /data/local/tmp/makesysrw_1.22/files/nosuper/product_b.img

makesysrw: Current size of product_b.img in bytes: 2147483648

makesysrw: Current size of product_b.img in MB: 2048

makesysrw: Current size of product_b.img in 512-byte sectors: 4194304

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

makesysrw: Please reboot into bootloader and flash the file(s) manually

makesysrw: Partition detected: system_a @ /dev/block/sda24

makesysrw: Dumping system_a to: /data/local/tmp/makesysrw_1.22/files/nosuper/system_a.img

7856128+0 records in

7856128+0 records out

4022337536 bytes (3.7 G) copied, 54.771102 s, 70 M/s

makesysrw: Successfully dumped system_a

makesysrw: Current size of system_a.img in bytes: 4022337536

makesysrw: Current size of system_a.img in MB: 3836

makesysrw: Current size of system_a.img in 512-byte sectors: 7856128

makesysrw: Increasing filesystem size of system_a.img to 9820160 512-byte sectors...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_a.img to 1227520 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_a.img is now 1227520 (4k) blocks long.

makesysrw: The filesystem of system_a.img was successfully resized

makesysrw: Removing 'shared_blocks feature' of system_a.img...

e2fsck 1.44.4 (18-Aug-2018)

makesysrw: Read-only lock of system_a.img successfully removed

makesysrw: Shrinking size of system_a.img back to minimum size...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_a.img to 680479 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_a.img is now 680479 (4k) blocks long.

makesysrw: Current size of system_a.img in bytes: 2787241984

makesysrw: Current size of system_a.img in MB: 2658

makesysrw: Current size of system_a.img in 512-byte sectors: 5443832

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

makesysrw: Please reboot into bootloader and flash the file(s) manually

makesysrw: Partition detected: system_b @ /dev/block/sda25

makesysrw: Dumping system_b to: /data/local/tmp/makesysrw_1.22/files/nosuper/system_b.img

7856128+0 records in

7856128+0 records out

4022337536 bytes (3.7 G) copied, 53.732777 s, 71 M/s

makesysrw: Successfully dumped system_b

makesysrw: Current size of system_b.img in bytes: 4022337536

makesysrw: Current size of system_b.img in MB: 3836

makesysrw: Current size of system_b.img in 512-byte sectors: 7856128

makesysrw: Increasing filesystem size of system_b.img to 9820160 512-byte sectors...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_b.img to 1227520 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_b.img is now 1227520 (4k) blocks long.

makesysrw: The filesystem of system_b.img was successfully resized

makesysrw: Removing 'shared_blocks feature' of system_b.img...

e2fsck 1.44.4 (18-Aug-2018)

makesysrw: Read-only lock of system_b.img successfully removed

makesysrw: Shrinking size of system_b.img back to minimum size...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_b.img to 224148 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/system_b.img is now 224148 (4k) blocks long.

makesysrw: Current size of system_b.img in bytes: 918110208

makesysrw: Current size of system_b.img in MB: 875

makesysrw: Current size of system_b.img in 512-byte sectors: 1793184

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

makesysrw: Please reboot into bootloader and flash the file(s) manually

makesysrw: Partition detected: vendor_a @ /dev/block/sda22

makesysrw: Dumping vendor_a to: /data/local/tmp/makesysrw_1.22/files/nosuper/vendor_a.img

3481600+0 records in

3481600+0 records out

1782579200 bytes (1.6 G) copied, 23.576392 s, 72 M/s

makesysrw: Successfully dumped vendor_a

makesysrw: Current size of vendor_a.img in bytes: 1782579200

makesysrw: Current size of vendor_a.img in MB: 1700

makesysrw: Current size of vendor_a.img in 512-byte sectors: 3481600

makesysrw: Increasing filesystem size of vendor_a.img to 4352000 512-byte sectors...

resize2fs 1.44.4 (18-Aug-2018)

Resizing the filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/vendor_a.img to 544000 (4k) blocks.

The filesystem on /data/local/tmp/makesysrw_1.22/files/nosuper/vendor_a.img is now 544000 (4k) blocks long.

makesysrw: The filesystem of vendor_a.img was successfully resized

makesysrw: Removing 'shared_blocks feature' of vendor_a.img...

e2fsck 1.44.4 (18-Aug-2018)

makesysrw: There was a problem removing the read-only lock of vendor_a.img

1|:/data/local/tmp/makesysrw_1.22 #

I run it via terminal.