BlackBerry — once a dominant force in the smartphone market — has transitioned into selling software for devices and autonomous vehicles and bought Cylance in 2019 for $1.4 billion.