This one glitched out on me. (If you check my gaming history you'll see that the game has been finished with both endings, yet this one unlocked much later).
I played the game again and it unlocked after finishing Amir's hack. It will take you approximately 30 mins to get up to this point.