BlackBerry's (BB -1.09%) stock recently rallied after its second-quarter results beat Wall Street's expectations. The software and services company's revenue rose 6% year-over-year to $259 million. On an adjusted basis, which includes deferred revenue, its revenue rose 2% to $266 million, beating estimates by $26 million.

Its net loss narrowed from $44 million to $23 million. On a non-GAAP basis, which excludes stock-based compensation and other one-time expenses, its net income jumped from $1 million to $62 million, or $0.11 per share -- which surpassed expectations by nine cents.

An artist's depiction of a connected car.

Image source: Getty Images.

BlackBerry's headline numbers marked a strong rebound from the first quarter, which had broken its five-quarter streak of adjusted revenue growth with a 20% decline. Its growth was supported by stay-at-home trends and a recovery in the automotive market, which was broadly impacted by the COVID-19 crisis.

Its software and services business is still declining

Over the past seven years, BlackBerry's core strategy has been to eliminate its hardware business and expand its software and services segment by launching new products and acquiring companies like Good Technology, Encription, and Cylance.

The software and services segment's core growth engines include Spark, a unified suite for its endpoint and security services, and BTS (BlackBerry Technology Solutions), which includes its embedded OS QNX (for cars and other connected devices) and other wireless and security services.

During the second quarter, BlackBerry's adjusted software and services revenue fell 15% year-over-year to $158 million, or 59% of its adjusted revenue, and marked the core business' second straight quarter of declining revenue:

Growth (YOY)

Q2 2020

Q3 2020

Q4 2020

Q1 2021

Q2 2021

Software and Services Revenue

30%

26%

16%

(17%)

(15%)

Total Revenue

22%

23%

13%

(20%)

2%

YOY = Year-over-year. Non-GAAP. Source: BlackBerry.

However, BlackBerry's software and services segment's revenue grew 1% sequentially on an adjusted basis and 2% on a GAAP basis. It attributed that growth to robust demand for Spark as more people worked from home, as well as sequentially higher demand across "all" its services except for QNX -- which stayed roughly flat from the first quarter.

Yet that flat growth indicates the pandemic-stricken auto market could be gradually recovering. QNX already enjoys a commanding lead against Microsoft's (MSFT 0.23%) Windows Embedded as the world's top automotive OS, and it secured five new auto design wins throughout the first quarter -- even as the industry's production volumes declined year-over-year.

Relying heavily on its licensing revenue

Meanwhile, BlackBerry's "licensing and other" segment -- which generates most of its revenue from its portfolio of over 38,000 patents -- grew its GAAP revenue 42% year-over-year (and 86% sequentially) to $108 million during the second quarter.

That robust growth offset the sluggish growth of its software and services segment, and a higher mix of that high-margin revenue boosted its GAAP gross margin 470 basis points year-over-year to 76.8%.

But for the full year, BlackBerry expects its licensing revenue to decline 28% to roughly $250 million due to cyclically lower royalties and licensing fees. Therefore, BlackBerry will need to quickly grow its software and services revenue again to offset that incoming slowdown.

Betting on the automotive market's recovery

During the conference call, BlackBerry CEO John Chen claimed the company's software and services unit, excluding BTS, would generate "slight revenue" growth relative to the first half of 2021. As for BTS, Chen expects the segment's revenue to "sequentially improve during the second half of the fiscal year and to return to its normal run rate" in early fiscal 2022.

That forecast relies on the recovery of the auto market, which should lift its QNX revenue with higher sales of connected cars. Several other major supply chain players, including Jabil and Texas Instruments, also recently claimed the ailing automotive market was recovering.

BlackBerry expects its total adjusted revenue to decline about 15% to $950 million this year, but it didn't provide any bottom-line guidance. Analysts expect its adjusted revenue to decline 13% this year and for its earnings to stay roughly flat.

Are brighter days ahead for BlackBerry?

The bulls believe BlackBerry's QNX revenue will rebound and recent stay-at-home trends will buoy Spark's growth. However, the bears will argue that BlackBerry remains unprofitable on a GAAP basis, relies heavily on "adjusted" non-GAAP metrics, and isn't cheap at nearly 40 times this year's earnings estimate.

BlackBerry's business is stabilizing, but it still faces a lot of competition in the cybersecurity market, and it remains too dependent on the wobbly auto industry. Therefore, investors shouldn't confuse the stabilization of BlackBerry's business in the second quarter with a full-blown recovery just yet.