Are any APIs to detect NETWORK locked/unlocked devices programmatically? Let\'s say I have a phone bought from an AT&T store, I am developing an app and the first step i