1

I'm flashing a GSI image using fastboot. After entering fastboot flash system system.img I get this:

E:\AndroidSDK\platform-tools>fastboot flash system system.img
target reported max download size of 535822336 bytes
erasing 'system'...
OKAY [  0.016s]
sending sparse 'system' 1/7 (523260 KB)...
OKAY [ 17.280s]
writing 'system' 1/7...
FAILED (remote: size too large)
finished. total time: 17.306s

I also tried to flash it using TWRP, same problem.

What's the problem? Can I make system partition larger? Please help.

Edit: I have the latest adb version.

beeshyams
  • 40,739
  • 30
  • 119
  • 269
sit
  • 111
  • 1
  • 1
  • 4
  • I installed the latest fastboot from android.com, and i'm getting the same problem. – sit Sep 27 '19 at 16:05
  • You cannot make the system partition larger, nor should you have to... It sounds like you are not flashing the correct system image to the device. Can you add details about the device and software image you are trying to install? – acejavelin Sep 27 '19 at 16:25

2 Answers2

1

Fastboot has an option -S Used to cut large files into small ones. Specific information can be found at man page:

fastboot --help 

So, we can set the size of the crop block to 256MB:

fastboot flash -S 256M system system.img

Source

damos
  • 111
  • 3
0

I had a similar problem with boot.img enter image description here

After rebooting to system and again activating Fastboot mode (Volume down+Power) it worked perfectly. enter image description here

Same mobile phone, same computer, just some reboots and some minutes later.