我正在尝试做 Flash出厂图像在 angler 在我的nexus 6p上。有一些 No space left on device
错误:
./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
(由自己插入的空间以获得更好的可读性)
我想这是手机上缺乏空间。
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
使用 fastboot
版本 1:8.1.0+r23-5
从debian,android是 angler:8.1.0
。
任何想法可能是什么问题?
在源中搜索,它失败 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 ", entry_name, ErrorCodeString(error)); free(data); return 0; }
https:/ / android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#505
或 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
更新:看起来它真的缺少笔记本电脑上的空间。以前我有大约8GB,我认为足够了。清楚后有17GB并尝试更新不同的图像图像--angler-nmf26f.zip我得到了不同的错误(可能是不同的错误(可能是相关的 ./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
./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 1
):
./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