Since original installer is not working on any platform by default for Nexus 4, here is workaround using MacOS and VirtualBox with Ubuntu 16.04
- Install VirtualBox : https://download.virtualbox.org/virtualbox/6.0.0/VirtualBox-6.0.0-127566-OSX.dmg
- Please be aware that you will need to install VirtualBox Extension Pack in order to use USB 2.0 (EHCI) controller which is needed. Download extension pack here: https://download.virtualbox.org/virtualbox/6.0.0/Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack
- Set up Ubuntu OS
- in VirtualBox window select OS and go to Settings -> Ports -> USB (tab): *check Enable USB Contntroller *select USB 2.0 (EHCI) Controller (if you get message that its not supported on the bottom of the window, you did not install extension pack) *On the right from USB Filters section you will have incos with (+) sign, add your device while in fastboot mode.