- First released: October 31, 2013
- Last feature update: Marshmallow: October 5, 2015
- Last security update:
According to Google[1]: Nexus devices get security patches for at least 3 years from when the device first became available, or at least 18 months from when the Google Store last sold the device, whichever is longer.
So, worst case scenario: October 2016 is the last security patch. We might get more, depending on when the Google Store last sold the Nexus 5, but I don't know when that was.
[1] https://support.google.com/nexus/answer/4457705#nexus_device...
Hm, does it even still get updates? The last official image posted by Google is from end of 2015. https://developers.google.com/android/nexus/images#occam
Full Image https://developers.google.com/android/nexus/images#shamu? (Direct link) https://dl.google.com/dl/android/aosp/shamu-nbd90z-factory-9...
Over the air update https://developers.google.com/android/nexus/ota#shamu (Direct link) https://dl.google.com/dl/android/aosp/shamu-ota-nbd90z-78a93...
I don't have any hard figures but my recollection suggests Google supports their phones longer than Apple typically does the iPhones. Plus you have the option of open source images like cyanogen when google finally gives up on it. I'm not sure about the nexus 5 now that they just released android 7, but the nexus 4 is the only one that isn't on android 6 at the moment. They are currently in the processes of releasing the android 7 images to these devices.