I really don't see how Apple taking a stand on this publicly is of any benefit to them from a marketing perspective. I'm sure there are many of Apple's customers who think they should comply with the FBI on this issue and see their refusal as "supporting terrorists". Apple could have decided to just do what was being asked without making it public and the rest of us would go on knowing nothing about it, but for them to publicly make a statement that they were asked to do this and believe it's wrong, I think, shows a genuine belief on their part that it is an overreach and sets a dangerous precedent for the future. I'm no Apple apologist, but I don't think this has anything to do with marketing for them.