I've faced the same issue when trying to update OTA from Android 4.4.4 to Android 5.1 and now from Android 5.1 to a new version.
I'm assuming your phone is rooted and you have a custom recovery installed.
1. Find out your build fingerprint.
- Install CID Getter and check the
(In my case, its value is
Check your value again.
Double-check it, and triple-check it, it's very, very, VERY important to get it right to the last bit.
2. Obtain the zip file for your OTA update
Start the OTA update process (settings -> phone -> check updates). It will download a file and place it on your internal memory, for instance for me it's
/cache/Blur<long file name>.zip.
Obtain that file and place it on your computer (I have used my custom TeamWin recovery to do that).
3. Check the updater script
Inside this zip file, there will be a file called
There will be a line similar to the one below:
getprop("ro.build.fingerprint") == "motorola/peregrine_retbr/peregrine:5.1/LPB23.13-35.5/5:user/release-keys" ||
getprop("ro.build.fingerprint") == "motorola/peregrine_retbr/peregrine:5.1/LPBS23.13-35.5-1/1:user/release-keys" ||
abort("Package expects build fingerprint of motorola/peregrine_retbr/peregrine:5.1/LPB23.13-35.5/5:user/release-keys or motorola/peregrine_retbr/peregrine:5.1/LPBS23.13-35.5-1/1:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
What's it doing in this case? This line checks for the build fingerprint and aborts the process if it's not exactly either
4. Compare your build and the updater script.
Seriously. Check it again.
5. Edit the updater script
Delete this line. Place the edited file on the zip file.
6. Patch and be happy!
Use your custom recovery to apply the patch without signature verification.
If you have flashed anything that modifies system files -- including, but not limited to, SuperSU and the Xposed framework -- you might need to revert those files to their original state, since the OTA update will perform a check on many system files. In order to revert those files, consult the documentation from whatever you flashed.