Doctrines of Fair Use, First Sale, and the general principle that copyright is not absolute.
We shall see. I think this is a slam-dunk for Apple. But we shall see...