The federal government, BlackBerry’s biggest client, has significantly reduced spending on the device in recent years, but not at the pace consumers and businesses have jumped ship. (Simon Dawson/Bloomberg News)

The snail’s pace of change in Washington has hurt the popularity of political leaders. But for BlackBerry, the federal government’s tendency to move slowly may provide some hope.

That’s because the federal government is BlackBerry’s biggest customer, and even as the rest of the world dumps the firm’s smartphone for Samsung Galaxys and iPhones, the app-deprived BlackBerry remains a Washington stalwart.

Yes, the federal government in recent years has significantly reduced spending on BlackBerry contracts. But it has cast off the device at a much slower pace than consumers and businesses, analysts say.

Agencies tend to sign long-term handset contracts — sometimes for three or more years — and many government offices have renewed their commitments to BlackBerry this year. That means federal agencies such as the State Department and Drug Enforcement Administration will be handing out BlackBerry devices for years, analysts say.

“BlackBerry’s days of dominating the government market peaked in 2011, but they are still the king of U.S. federal smartphones,” said Geoff Celhar, an analyst at government contracting research firm Govini. The firm is publishing a report Thursday on BlackBerry’s federal contracts. “The government business market could be an opportunity and asset during its survival or breakup strategy.”

Blackberry's market with the government is declining.

The State Department increased its spending on BlackBerrys this year. The DEA has not changed its budget for BlackBerrys much in recent years, according to Govini, which analyzed public records of government contracts.

Even at the Defense Department, which has opened up its technology policy to include ­iPhones and Android phones, 470,000 of 600,000 smartphones are BlackBerrys, Govini said. The tide may be turning, though; the Army has cut its BlackBerry spending by two-thirds since 2011.

“The U.S. Department of State’s unique worldwide challenges require its employees to have 24 hour access to communications for operational effectiveness,” State Department spokesman Steve Aguzin said in a statement. “Availability to secure communications is essential for U.S. missions abroad and the BlackBerry device is currently the only approved mobile solution meeting the U.S. Department of State’s security restrictions.”

Overall, the federal government spent more than $40 million on BlackBerry devices in 2013, according to Govini, a 57 percent decline from 2011, when orders for the smartphone were at their highest.

In the broader consumer market, the Waterloo, Canada-based firm has quickly gone from industry vanguard to afterthought, with just 3 percent of the smartphone market in the second quarter, according to research by the firm IDC.

The firm said last week it would take $1 billion in losses in its most recent quarter, due mostly to a write-off of its BlackBerry 10 devices, which have been dismal sellers.

But it also has $2.6 billion in cash and no debt. Some analysts say its strong financial position will help with research and development of new products focused on security.

BlackBerry said Monday that it accepted a $4.7 billion acquisition offer by private equity firm Fairfax Financial.

The new investors plan to refocus BlackBerry on enterprise customers and recapture its image for providing secure e-mail and software services.

“We believe this transaction will open an exciting new private chapter for BlackBerry,” Prem Watsa, chief executive of Fairfax Financial, said Monday in an announcement of the deal. “We can deliver immediate value to shareholders, while we continue the execution of a long-term strategy in a private company with a focus on delivering superior and secure enterprise solutions to BlackBerry customers around the world.”

To some degree, the perception that BlackBerry is more secure than other devices has helped it win federal contracts, analysts say. Its previous software platforms were closed to outside developers, and the company has long touted its encrypted e-mail service.

Some analysts have poked holes at the marketing of BlackBerry as a more secure phone, saying hackers have been able to breach its systems.

Still, some federal agencies have been slow to hand out alternative smartphones to staffers as they test Apple’s iPhone and devices using Google’s Android operating system.

But analysts say that agencies are loosening their policies for phones and that BlackBerry has not been able to prove how it will win back lost customers. The State Department and DEA said they may consider alternatives to the BlackBerry.

“Normally, companies are taken private in order to give a long-term strategy time to pay off without the hassles of short-term investor scrutiny,” said Jan Dawson, a senior analyst at Ovum. “But BlackBerry’s key problem for the last couple of years has been the lack of such a long-term strategy.”

Follow The Post’s new tech blog, The Switch, where technology and policy connect.