BlackBerry Ltd. agreed to buy Good Technology Corp., one of its competitors in mobile-device management, for $425 million.

Good Technology, based in Sunnyvale, California, builds applications to help employees work securely from their personal phones, BlackBerry said in a statement Friday.