Thursday, 14 July 2016

Cannot flash system after compiling it from source



Hello
I compiled android for Volantis ( after downloading the sources from official google repo )
when trying to flash it i have this message
i added the "-S 256M" after finding it online , it didn't work without it too , i think that it doesn't flash the whole image since the image size is 1.5G .
I successfully flash the stock image though .

Code:


fastboot flash -S 256M system system.img

gives this output :

Code:


Invalid sparse file format at header magi
erasing 'system'...
OKAY [  0.954s]
sending sparse 'system' (233172 KB)...
OKAY [ 11.755s]
writing 'system'...
(bootloader) Device State : Unlocked
OKAY [  7.615s]
sending sparse 'system' (255959 KB)...
OKAY [ 12.817s]
writing 'system'...
(bootloader) Device State : Unlocked
OKAY [  8.801s]
sending sparse 'system' (62570 KB)...
OKAY [  3.364s]
writing 'system'...
(bootloader) Device State : Unlocked
OKAY [  2.531s]
finished. total time: 47.838s


If anyone has had this problem before and knows the solution , i would be grateful :)



No comments:

Post a Comment