While OEMs ignore some of their older smartphones, the developer community here at XDA continues to work hard to keep them alive. Just yesterday, XDA Recognized Developer Ziyan released their first alpha build of Android Oreo for the Nexus 4. Since this is an alpha release, we should expect some features to not work right now (including NFC, screen rotation, and likely others), but they looking into fixing them right now. Users are also reporting that there isn’t much system space to install Google apps, but XDA Senior Member n0b0dy666 found that flashing a “pico” Gapps package should work just fine.
Check out this Android Oreo port for the Google Nexus 4