iPhone users have created shortcuts that allow Apple’s flagship product to automatically record video, text a location to an emergency contact, and even stop police from entering the phone—just in case the iPhone owner has an interaction with a law enforcement officer.