BlackBerry Ltd. confirmed a deal Wednesday with Amazon.com Inc. to gain access to the e-commerce giant's Appstore for mobile devices, a move the Canadian company hopes will boost sales of its latest smartphones.

The partnership is meant to expand BlackBerry's current offering of games, video, music and other mobile apps to help make its smartphones more appealing to consumers, while allowing it to concentrate on developing security and other apps that appeal to the firm's targeted corporate and government market as it tries...