W / ziparchive zip: Não é possível alocar as picadas X no deslocamento 0: Nenhum espaço deixado no dispositivo enquanto piscando a imagem de fábrica no Angler (Nexus 6P) -- rom-flashing campo com nexus camp android Relacionado O problema

W/ziparchive Zip: unable to allocate X bites at offset 0 : No space left on device while flashing factory image on angler (Nexus 6P)


0
vote

problema

português

Eu estava tentando fazer Flash fábrica imagem em Angler no meu Nexus 6P. Há alguns No space left on device erro:

  ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [  0.127s] writing 'bootloader'... OKAY [  0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [  1.283s] writing 'radio'... OKAY [  2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate  2860210996 bytes at offset 0 :     No space left on device failed to extract 'system.img': I/O error    

(espaço inserido por mim para uma melhor legibilidade)

Eu suponho que isso está faltando espaço no telefone.

  shell@angler: $ df -h                                                   Filesystem                Size      Used Available Use% Mounted on tmpfs                     1.4G    484.0K      1.4G   0% /dev tmpfs                     1.4G         0      1.4G   0% /mnt /dev/block/dm-0           3.0G      1.8G      1.1G  62% /system /dev/block/dm-1         196.6M    184.7M      8.0M  96% /vendor /dev/block/platform/soc.0/f9824900.sdhci/by-name/cache                          92.9M      1.8M     88.0M   2% /cache /dev/block/platform/soc.0/f9824900.sdhci/by-name/persist                           3.9M    740.0K      3.0M  20% /persist /dev/block/platform/soc.0/f9824900.sdhci/by-name/modem                          80.0M     47.5M     32.4M  59% /firmware tmpfs                     1.4G         0      1.4G   0% /storage /dev/block/dm-2          53.5G    132.9M     52.9G   0% /data df: /mnt/runtime/default/emulated: Permission denied /data/media              53.5G    132.9M     52.9G   0% /storage/emulated    

Usando fastboot versão 1:8.1.0+r23-5 do debian, o Android é angler:8.1.0 .

Alguma ideia do que poderia ser o problema?

Pesquisando nas fontes, falha no ABCDEFGHIJKLMNABCDEFGHIJKLMN6

  int error = ExtractToMemory(zip, &zip_entry, data, zip_entry.uncompressed_length); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s ", entry_name, ErrorCodeString(error));     free(data);     return 0; }    

https: / /android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#505

ou em static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name)

  int error = ExtractEntryToFile(zip, &zip_entry, fd); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s ", entry_name, ErrorCodeString(error));     return -1; }    

https: / /android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#628

update : Parece que é realmente falta de espaço no laptop. Anteriormente eu tinha cerca de 8GB, que considerei o suficiente. Depois de terem 17 GB e tentando atualizar imagens diferentes imagens-angler-nmf26f.zip Eu tenho um erro diferente (provavelmente relacionado ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [ 0.127s] writing 'bootloader'... OKAY [ 0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [ 0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [ 1.283s] writing 'radio'... OKAY [ 2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [ 0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate 2860210996 bytes at offset 0 : No space left on device failed to extract 'system.img': I/O error 0 ser abcdefghijklmnabcdefgijklmn11 ):

  ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [  0.127s] writing 'bootloader'... OKAY [  0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [  1.283s] writing 'radio'... OKAY [  2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate  2860210996 bytes at offset 0 :     No space left on device failed to extract 'system.img': I/O error 2   
english

I was trying to do flash factory image on angler on my Nexus 6P. There is some No space left on device error:

./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [  0.127s] writing 'bootloader'... OKAY [  0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [  1.283s] writing 'radio'... OKAY [  2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate  2860210996 bytes at offset 0 : \    No space left on device failed to extract 'system.img': I/O error 

(space inserted by myself for better readability)

I suppose this is lacking space on the phone.

shell@angler: $ df -h                                                   Filesystem                Size      Used Available Use% Mounted on tmpfs                     1.4G    484.0K      1.4G   0% /dev tmpfs                     1.4G         0      1.4G   0% /mnt /dev/block/dm-0           3.0G      1.8G      1.1G  62% /system /dev/block/dm-1         196.6M    184.7M      8.0M  96% /vendor /dev/block/platform/soc.0/f9824900.sdhci/by-name/cache                          92.9M      1.8M     88.0M   2% /cache /dev/block/platform/soc.0/f9824900.sdhci/by-name/persist                           3.9M    740.0K      3.0M  20% /persist /dev/block/platform/soc.0/f9824900.sdhci/by-name/modem                          80.0M     47.5M     32.4M  59% /firmware tmpfs                     1.4G         0      1.4G   0% /storage /dev/block/dm-2          53.5G    132.9M     52.9G   0% /data df: /mnt/runtime/default/emulated: Permission denied /data/media              53.5G    132.9M     52.9G   0% /storage/emulated 

Using fastboot version 1:8.1.0+r23-5 from Debian, Android is angler:8.1.0.

Any idea what could be the problem?

Searching in the sources, it fails in static void* unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz)

int error = ExtractToMemory(zip, &zip_entry, data, zip_entry.uncompressed_length); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s\n", entry_name, ErrorCodeString(error));     free(data);     return 0; } 

https://android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#505

or in static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name)

int error = ExtractEntryToFile(zip, &zip_entry, fd); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s\n", entry_name, ErrorCodeString(error));     return -1; } 

https://android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#628

UPDATE: it looks like it's really lack of space on the laptop. Previously I had about 8GB, which I considered enough. After clear to have 17GB and trying to update different image image-angler-nmf26f.zip I got different error (probably related /tmp being tmpfs):

strace -o strace.log fastboot -w update image-angler-nmf26f.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2691 MB)... archive does not contain 'system.sig' archive does not contain 'vbmeta.img' extracting vendor.img (194 MB)... W/ziparchive(109113): Zip: unable to allocate  204079852 bytes at offset 0 : No space left on device failed to extract 'vendor.img': I/O error wiping userdata... Couldn't parse erase-block-size '0x'. Couldn't parse logical-block-size '0x'. mke2fs 1.45.5 (07-Jan-2020) /tmp/TemporaryFile-xaoMGH: Unimplemented ext2 library function while setting up superblock /usr/lib/android-sdk/platform-tools/mke2fs failed with status 1 mke2fs failed: 1 error: Cannot generate image for userdata 
     

Lista de respostas

0
 
vote

De acordo com os outros é de alguma forma quebrada e deve ser substituída por fastboot erase <partition> , por exemplo:

  fastboot oem unlock fastboot erase boot fastboot erase cache fastboot erase recovery fastboot erase system fastboot erase userdata fastboot flash bootloader bootloader-angler-angler-03.68.img fastboot reboot-bootloader sleep 5 fastboot flash radio radio-angler-angler-03.81.img    

eu o fim eu segui Sugestão de Firelord Para descompactar ABCDEFGHIJKLMNABCDEFGHIJKLMN5 (em vez de piscar) e Flash todas as partições manualmente:

  fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img    

Nota: Execução de comandos fastboot erase <partition> não é necessário como fastboot flash apaga o sistema.

 

According to the others is -w option is somehow broken and should be replaced with fastboot erase <partition>, e.g.:

fastboot oem unlock fastboot erase boot fastboot erase cache fastboot erase recovery fastboot erase system fastboot erase userdata fastboot flash bootloader bootloader-angler-angler-03.68.img fastboot reboot-bootloader sleep 5 fastboot flash radio radio-angler-angler-03.81.img 

I the end I followed Firelord suggestion to unpack image-angler-nmf26f.zip (instead of flashing it) and flash all partitions manually:

fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img 

NOTE: running commands fastboot erase <partition> is not needed as fastboot flash erase system.

 
 

Perguntas relacionadas

0  Trocar ou mesclar canais de áudio esquerdo e direito  ( Swap or merge left and right audio channels ) 
O alto-falante superior no meu nexus enraizado 6 parou de funcionar após um acidente. Toda vez que fizemos uma ligação, tenho que usar fones de ouvido para ou...

0  Meu Nexus 6P continua girando quando conectado a WiFi ou Dados Celulares  ( My nexus 6p keeps turning of when connected to wifi or cellular data ) 
Eu tenho um Nexus 6P de 5 meses de idade e sempre que ligo Wi-Fi ou dados celulares que ela se reinicia. Funciona perfeitamente bem se não estiver conectado. ...

0  Usando DVD player externo com Nexus 7  ( Using external dvd player with nexus 7 ) 
Eu gostaria de ser capaz de usar meu DVD player externo com o meu tablet Nexus 7, há um plug-in para isso ou um monte? ...

4  Não é possível conectar-se ao wifi usando nougat  ( Cant connect to wifi using nougat ) 
Eu atualizei para Nougat no meu Nexus 5x. Não consigo se conectar a algumas redes WiFi, pois o botão Conectar permanece acolhido depois de entrar em credencia...

0  Botão Início, Botão Recente, Notificações, Pull Down Menu Partou de funcionar  ( Home button recent button notifications pull down menu all stopped working ) 
Eu tenho um Nexus 9 executando o Android 7.1.1, e o botão home, botão recente, Todas as notificações , e o menu suspenso Top parou de funcionar. Os botões ...

1  Nexus 7 2013 Wifi (Flo) Bootloader de bootloader falha  ( Nexus 7 2013 wifi flo bootloader unlock fails ) 
Estou tentando desbloquear o bootloader no meu Nexus 7 2013 WiFi 32GB (FLO). Eu desliguei, pressionado botão de energia + volume para baixo, que logo me cumpr...

1  Nexus 6P - correção "sem comando" com um botão de volume quebrado  ( Nexus 6p fix no command with a broken volume button ) 
Então, eu quebrei meu botão de volume. E meu telefone foi em um modo de "sem comando" que não me deixa virar meu telefone. Como o meu volume está preso e nã...

1  Um aplicativo colocou minha barra de status automático e transparente. Como consertar? (Nova, UI do sistema)  ( An app put made my status bar auto hide and transparent how to fix nova syst ) 
O que eu tentei: desinstalar o aplicativo (bolso preto) e reiniciar. Também tentou: Google. Todos os resultados de pesquisa me dizem como ocultar a barra de...

4  Bloqueio de padrão de furto esquecido para Nexus 6P (mas a impressão digital funciona!)  ( Forgotten swipe pattern lock for nexus 6p but fingerprint works ) 
Eu tenho um Google Nexus 6P com o Copperhead OS instalado nele. Esqueci o padrão para desbloquear a tela. Existe alguma maneira que eu possa recuperar (uma pa...

0  Mensagens presas na área de notificação  ( Messages stuck in notification area ) 
Eu tenho um Samsung J3 executando Android 7. Eu recebi 2 notificações que parecem estar presas na área de notificação, nenhuma maneira de se livrar deles. Uma...




© 2022 pergunte.org All Rights Reserved. Casa de perguntas e respostas todos os direitos reservados


Licensed under cc by-sa 3.0 with attribution required.