FAILED (remote: 'Chunk data size exceeds partition size') when flashing system.img

coolwei1

Senior Member
Nov 25, 2018
64
11
0
Kuala Lumpur
Hi, guys.
I couldn't install update 10.0.3.0 after restoring boot.img from Magisk.
So, I flash boot.img in fastboot but still cannot.
And then I found out maybe because Substratum modified system.img
Then I tried to flash 10.0.2.0 system.img using this command:
Code:
fastboot flash system_a system_10.0.2.0.img
and this error shown:
Code:
Sending sparse 'system_a' 1/3 (462332 KB)          OKAY [ 10.736s]
Writing sparse 'system_a' 1/3                      FAILED (remote: 'Chunk data size exceeds partition size')
Finished. Total time: 30.924s
I also tried these 2 commands get from this solution:
Code:
fastboot flash -S 256M system_a system_10.0.2.0.img
fastboot flash -S 128M system_a system_10.0.2.0.img
but same error.

Any help is appreciated.

current-slot:
Code:
D:\platform-tools>fastboot getvar current-slot
current-slot: a
Finished. Total time: 0.003s
 
Last edited:

coolwei1

Senior Member
Nov 25, 2018
64
11
0
Kuala Lumpur
Sorry guys, problem solved.

I don't know what happened, my phone suddenly stuck in bootloop?
no animation just black screen, increase brightness to 100 then drop to 0 then increase to 100 and cycle.

then I boot into fastboot and try flash again
Code:
D:\platform-tools>fastboot getvar current-slot
current-slot: a
Finished. Total time: 0.012s

D:\platform-tools>fastboot flash boot_a boot_10.0.2.0.img
Sending 'boot_a' (27219 KB)                        OKAY [  0.633s]
Writing 'boot_a'                                   OKAY [  0.339s]
Finished. Total time: 0.996s

D:\platform-tools>fastboot flash system_a system_10.0.2.0.img
Sending sparse 'system_a' 1/4 (522236 KB)          OKAY [ 17.728s]
Writing sparse 'system_a' 1/4                      OKAY [  5.516s]
Sending sparse 'system_a' 2/4 (522236 KB)          OKAY [ 17.947s]
Writing sparse 'system_a' 2/4                      OKAY [  5.576s]
Sending sparse 'system_a' 3/4 (522236 KB)          OKAY [ 17.854s]
Writing sparse 'system_a' 3/4                      OKAY [  5.629s]
Sending sparse 'system_a' 4/4 (447916 KB)          OKAY [ 15.042s]
Writing sparse 'system_a' 4/4                      OKAY [  4.804s]
Finished. Total time: 148.451s

D:\platform-tools>fastboot reboot
Rebooting
Finished. Total time: 0.012s
now the system.img split into 522.236 MB instead of 462.332 MB and got 4 parts instead of 3?
wtf is happening!

Anyway, the updated is installed successfully.
 
Last edited: