diff options
author | 2025-03-06 12:36:21 -0800 | |
---|---|---|
committer | 2025-03-06 12:36:21 -0800 | |
commit | 0e28a055448b4eed3981adef71634e39a31aa405 (patch) | |
tree | b61a2591a3cb618cb85f0c4c7cb1b66e8a561edd /telephony | |
parent | 83bdb7594eddbba59482310b6c805435fab1eeee (diff) | |
parent | 5de2f89c7880afaf457749211e445bfffb6d3b7b (diff) |
Merge "[log] debug getDataNetworkType" into main
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index fbba999bfb36..14d567d141cb 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3371,14 +3371,13 @@ public class TelephonyManager { return telephony.getDataNetworkTypeForSubscriber(subId, getOpPackageName(), getAttributionTag()); } else { - // This can happen when the ITelephony interface is not up yet. + Log.e(TAG, "getDataNetworkType: ITelephony interface is not up yet"); return NETWORK_TYPE_UNKNOWN; } - } catch(RemoteException ex) { - // This shouldn't happen in the normal case - return NETWORK_TYPE_UNKNOWN; - } catch (NullPointerException ex) { - // This could happen before phone restarts due to crashing + } catch (RemoteException // Shouldn't happen in the normal case + | NullPointerException ex // Could happen before phone restarts due to crashing + ) { + Log.e(TAG, "getDataNetworkType: " + ex.getMessage()); return NETWORK_TYPE_UNKNOWN; } } |