Chief Executive Tim Cook said on Friday Apple Inc is committed to raising its dividend annually, a move designed to please investors but also a sign the world's most famous technology company may no longer be a growth stock. 

Speaking at the company's annual meeting in Cupertino, California, Cook also said Apple was "a staunch advocate for our customers' privacy and personal safety," as it fights a public battle with the U.S. government over access to the iPhone of one of the San Bernardino shooters.

RELATED: San Bernardino victims file legal action against Apple

Apple filed a legal brief on Thursday asking a federal court in California to throw out an order it issued last week that the company unlock an encrypted iPhone used by Rizwan Farook, arguing such a move would violate its free speech rights, override the will of Congress and jeopardize the security of other Apple devices. 

"These are the right things to do," said Cook. "Being hard doesn’t scare us."