some fixes for getting device apns in ApnUtils