[Motorola Moto G20] Vice_Manci:
I was trying to see what's the size of the system partition, in order to know if I can install a GSI without the pain of having to resize the partitions. But when I tried to get it via.

adb shell; lpdump

And it gave me a quite peculiar answer.

java:/ $ lpdump
Slot 1:
Metadata version: 10.2
Metadata size: 1444 bytes
Metadata max size: 65536 bytes
Metadata slot count: 3
Header flags: virtual_ab_device
Partition table:
------------------------
Name: system_b
Group: group_unisoc_b
Attributes: readonly,updated
Extents:
0 .. 2497151 linear super 2048
2497152 .. 2498511 linear super 2499248
2498512 .. 2498855 linear super 3145384
2498856 .. 2499927 linear super 4750288
2499928 .. 2518375 linear super 9078800
2518376 .. 2537759 linear super 9097392
2537760 .. 2537767 linear super 9116912
2537768 .. 2537783 linear super 9116880
2537784 .. 2538031 linear super 9116928
2538032 .. 2539015 linear super 9117520
2539016 .. 2542711 linear super 9118512
2542712 .. 2542719 linear super 2499240
2542720 .. 2546855 linear super 4746152
2546856 .. 2546951 linear super 9116784
2546952 .. 2546959 linear super 9118504
2546960 .. 2603655 linear super 9122208
2603656 .. 2603743 linear super 9178920
------------------------
Name: system_ext_b
Group: group_unisoc_b
Attributes: readonly,updated
Extents:
0 .. 644775 linear super 2500608
644776 .. 644815 linear super 2499200
644816 .. 644959 linear super 9097248
644960 .. 645295 linear super 9117176
645296 .. 645303 linear super 9116776
645304 .. 645311 linear super 9116920
645312 .. 645327 linear super 9178904
------------------------
Name: vendor_b
Group: group_unisoc_b
Attributes: readonly,updated
Extents:
0 .. 1600423 linear super 3145728
1600424 .. 1600431 linear super 9179008
------------------------
Name: product_b
Group: group_unisoc_b
Attributes: readonly,updated
Extents:
0 .. 4327439 linear super 4751360
4327440 .. 4327447 linear super 9117512
4327448 .. 4327463 linear super 9116896
------------------------
Name: system_b-cow
Group: cow
Attributes: none
Extents:
0 .. 1470583 linear super 9179016
------------------------
Super partition layout:
------------------------
super: 2048 .. 2499200: system_b (2497152 sectors)
super: 2499200 .. 2499240: system_ext_b (40 sectors)
super: 2499240 .. 2499248: system_b (8 sectors)
super: 2499248 .. 2500608: system_b (1360 sectors)
super: 2500608 .. 3145384: system_ext_b (644776 sectors)
super: 3145384 .. 3145728: system_b (344 sectors)
super: 3145728 .. 4746152: vendor_b (1600424 sectors)
super: 4746152 .. 4750288: system_b (4136 sectors)
super: 4750288 .. 4751360: system_b (1072 sectors)
super: 4751360 .. 9078800: product_b (4327440 sectors)
super: 9078800 .. 9097248: system_b (18448 sectors)
super: 9097248 .. 9097392: system_ext_b (144 sectors)
super: 9097392 .. 9116776: system_b (19384 sectors)
super: 9116776 .. 9116784: system_ext_b (8 sectors)
super: 9116784 .. 9116880: system_b (96 sectors)
super: 9116880 .. 9116896: system_b (16 sectors)
super: 9116896 .. 9116912: product_b (16 sectors)
super: 9116912 .. 9116920: system_b (8 sectors)
super: 9116920 .. 9116928: system_ext_b (8 sectors)
super: 9116928 .. 9117176: system_b (248 sectors)
super: 9117176 .. 9117512: system_ext_b (336 sectors)
super: 9117512 .. 9117520: product_b (8 sectors)
super: 9117520 .. 9118504: system_b (984 sectors)
super: 9118504 .. 9118512: system_b (8 sectors)
super: 9118512 .. 9122208: system_b (3696 sectors)
super: 9122208 .. 9178904: system_b (56696 sectors)
super: 9178904 .. 9178920: system_ext_b (16 sectors)
super: 9178920 .. 9179008: system_b (88 sectors)
super: 9179008 .. 9179016: vendor_b (8 sectors)
super: 9179016 .. 10649600: system_b-cow (1470584 sectors)
------------------------
Block device table:
------------------------
Partition name: super
First sector: 2048
Size: 5452595200 bytes
Flags: none
------------------------
Group table:
------------------------
Name: default
Maximum size: 0 bytes
Flags: none
------------------------
Name: group_unisoc_b
Maximum size: 5452595200 bytes
Flags: none
------------------------
Name: cow
Maximum size: 0 bytes
Flags: none
------------------------

So, my question is this, how can I get the system partition size, and if I can only flash the system.img and leave the product.img and vendor.img as stock. Thanks.