Permissions added and checking some things to do about airplane mode on
API's higher than v17.