Smartphone maker BlackBerry has agreed to go private in a US$4.7 billion deal led by its biggest shareholder, allowing the on-the-go email pioneer to regroup away from public scrutiny after years of falling fortunes and slumping market share.