All thanks to the regular software updates as well as the excellent camera module that Pixels sport.
The Google Pixel, Nexus 6P and Nexus 5X users will be able use the portrait mode features of the Pixel 2 and Pixel 2 XL devices. Charles Chow recently shared an update to Camera NX, a Google Camera mod app, that unlocks part of the Pixel 2 portrait mode on older phones, including the original Pixel, Nexus 5X and Nexus 6P. Both the phones went against the dual-camera trend but still managed to click portrait pictures from the rear and front cameras.
This version uses the latest Google Camera build as well (5.1.016). With access to that information, the Pixel 2 can determine what's closest to the camera and what's in the background, allowing for an intelligent blur effect to be applied to the shot automatically in post.
Finally a developer chose to do something about it.
Unlike the original Google Camera app, the Help and Feedback options in settings of the Camera NX app are removed and the silence feedback service is disabled to make the app launch instant. It's as easy as downloading the app from the Google Drive link provided bellow and installing it on your device. Once the file is downloaded, install it on your compatible Nexus or Pixel smartphone. Keep in mind to turn this setting back off once the installation is successful. It then snaps a photo with the same finesse you'd normally have with the camera app, and it begins processing.
According to 9to5Google, Camera NX app adds depth of field effect to photos and much like the Pixel 2's Camera, it saves two photos. The resulting photo will look top-notch, if photographed skillfully, and just Decent if photographed terribly. This also enables the search giant to bring Pixel 2's camera capabilities to the first generation Pixel devices, Nexus phones and even other flagship devices from 2015.