Repairing Google Nexus Factory Image Restorer

Whilst restoring my Google Nexus to a stock image I noticed their flash-all.sh script doesn't work properly. This is the script that throws up the following error:

archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 758051764 bytes
error: update package missing system.img

A quick fix for this is to unzip the contents of image-razorg-ktu84l.zip to the same directory as everything else. The folder should then look like this:


Then, replace the content of flash-all.sh with the following text:

#!/bin/sh

# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

fastboot flash bootloader bootloader-deb-flo-04.02.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-deb-deb-z00_2.42.0_1204.img
fastboot reboot-bootloader
sleep 5
fastboot flash boot boot.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot reboot-bootloader
fastboot flash recovery recovery.img
fastboot reboot-bootloader
fastboot flash userdata userdata.img
fastboot reboot-bootloader
fastboot flash cache cache.img
fastboot reboot-bootloader

Then just run the script as normal.


No comments:

Post a Comment