Check permissions before using associated APIs

Also, use sdkVersion=MNC. This way missing runtime permissions will
throw SecurityExceptions. This will make it easier to catch any
unchecked usage of permissions.

Bug: 21791169
Change-Id: I6118cc42e3aa6505b47df9470672f722600eca31
4 files changed