Apple has agreed to let rival app stores and alternative payments operate on iPhones in Brazil, settling a long-running ...