Flash the Android factory image without removing your data.
Flasher is a shell script generator which helps you to flash the Android factory image without removing user data.
You can use it instead of flash-all.sh or flash-all.bat.
You can install android-flasher with pip
$ pip install android-flasher
How to use
Move to the unzipped factory image directory.
Execute android-flasher in terminal.
Now reboot and enter the bootloader.
Execute the flasher.sh script.
If you meet an error like fastboot: command not found, add following line in your .bash_profile.
Copyright (c) 2015 Minsoo Park
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.