Loading telephony/java/android/telephony/TelephonyManager.java +13 −53 Original line number Diff line number Diff line Loading @@ -64,7 +64,6 @@ import android.os.ParcelFileDescriptor; import android.os.ParcelUuid; import android.os.Parcelable; import android.os.PersistableBundle; import android.os.Process; import android.os.RemoteException; import android.os.ResultReceiver; import android.os.SystemProperties; Loading Loading @@ -428,10 +427,6 @@ public class TelephonyManager { return null; } private boolean isSystemProcess() { return Process.myUid() == Process.SYSTEM_UID; } /** * Post a runnable to the BackgroundThread. * Loading Loading @@ -4205,19 +4200,12 @@ public class TelephonyManager { try { IPhoneSubInfo info = getSubscriberInfoService(); if (info == null) { Rlog.e(TAG, "IMSI error: Subscriber Info is null"); if (!isSystemProcess()) { throw new RuntimeException("IMSI error: Subscriber Info is null"); } return; } int subId = getSubId(SubscriptionManager.getDefaultDataSubscriptionId()); info.resetCarrierKeysForImsiEncryption(subId, mContext.getOpPackageName()); } catch (RemoteException ex) { Rlog.e(TAG, "getCarrierInfoForImsiEncryption RemoteException" + ex); if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getCarrierInfoForImsiEncryption RemoteException" + ex); } } Loading Loading @@ -5612,17 +5600,11 @@ public class TelephonyManager { try { final ITelephony telephony = getITelephony(); if (telephony == null) { if (!isSystemProcess()) { throw new RuntimeException("Telephony service unavailable"); } return; } telephony.sendDialerSpecialCode(mContext.getOpPackageName(), inputCode); } catch (RemoteException ex) { // This could happen if binder process crashes. if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#sendDialerSpecialCode RemoteException" + ex); } } Loading Loading @@ -9941,9 +9923,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getMobileProvisioningUrl RemoteException" + ex); } return null; } Loading Loading @@ -13927,9 +13907,7 @@ public class TelephonyManager { return service.isDataEnabledForApn(apnType, getSubId(), pkgForDebug); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isDataEnabledForApn RemoteException" + ex); } return false; } Loading @@ -13949,9 +13927,7 @@ public class TelephonyManager { return service.isApnMetered(apnType, getSubId()); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isApnMetered RemoteException" + ex); } return true; } Loading Loading @@ -14011,9 +13987,7 @@ public class TelephonyManager { service.setSystemSelectionChannels(specifiers, getSubId(), aidlConsumer); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#setSystemSelectionChannels RemoteException" + ex); } } Loading Loading @@ -14041,9 +14015,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getSystemSelectionChannels RemoteException" + ex); } return new ArrayList<>(); } Loading Loading @@ -14072,9 +14044,7 @@ public class TelephonyManager { return service.isMvnoMatched(getSubId(), mvnoType, mvnoMatchData); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#matchesCurrentSimOperator RemoteException" + ex); } return false; } Loading Loading @@ -14475,10 +14445,7 @@ public class TelephonyManager { service.setMobileDataPolicyEnabled(getSubId(), policy, enabled); } } catch (RemoteException ex) { // This could happen if binder process crashes. if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#setMobileDataPolicyEnabled RemoteException" + ex); } } Loading @@ -14498,10 +14465,7 @@ public class TelephonyManager { return service.isMobileDataPolicyEnabled(getSubId(), policy); } } catch (RemoteException ex) { // This could happen if binder process crashes. if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isMobileDataPolicyEnabled RemoteException" + ex); } return false; } Loading Loading @@ -15005,9 +14969,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getEquivalentHomePlmns RemoteException" + ex); } return Collections.emptyList(); Loading Loading @@ -15103,9 +15065,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isRadioInterfaceCapabilitySupported RemoteException" + ex); } return false; } Loading
telephony/java/android/telephony/TelephonyManager.java +13 −53 Original line number Diff line number Diff line Loading @@ -64,7 +64,6 @@ import android.os.ParcelFileDescriptor; import android.os.ParcelUuid; import android.os.Parcelable; import android.os.PersistableBundle; import android.os.Process; import android.os.RemoteException; import android.os.ResultReceiver; import android.os.SystemProperties; Loading Loading @@ -428,10 +427,6 @@ public class TelephonyManager { return null; } private boolean isSystemProcess() { return Process.myUid() == Process.SYSTEM_UID; } /** * Post a runnable to the BackgroundThread. * Loading Loading @@ -4205,19 +4200,12 @@ public class TelephonyManager { try { IPhoneSubInfo info = getSubscriberInfoService(); if (info == null) { Rlog.e(TAG, "IMSI error: Subscriber Info is null"); if (!isSystemProcess()) { throw new RuntimeException("IMSI error: Subscriber Info is null"); } return; } int subId = getSubId(SubscriptionManager.getDefaultDataSubscriptionId()); info.resetCarrierKeysForImsiEncryption(subId, mContext.getOpPackageName()); } catch (RemoteException ex) { Rlog.e(TAG, "getCarrierInfoForImsiEncryption RemoteException" + ex); if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getCarrierInfoForImsiEncryption RemoteException" + ex); } } Loading Loading @@ -5612,17 +5600,11 @@ public class TelephonyManager { try { final ITelephony telephony = getITelephony(); if (telephony == null) { if (!isSystemProcess()) { throw new RuntimeException("Telephony service unavailable"); } return; } telephony.sendDialerSpecialCode(mContext.getOpPackageName(), inputCode); } catch (RemoteException ex) { // This could happen if binder process crashes. if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#sendDialerSpecialCode RemoteException" + ex); } } Loading Loading @@ -9941,9 +9923,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getMobileProvisioningUrl RemoteException" + ex); } return null; } Loading Loading @@ -13927,9 +13907,7 @@ public class TelephonyManager { return service.isDataEnabledForApn(apnType, getSubId(), pkgForDebug); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isDataEnabledForApn RemoteException" + ex); } return false; } Loading @@ -13949,9 +13927,7 @@ public class TelephonyManager { return service.isApnMetered(apnType, getSubId()); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isApnMetered RemoteException" + ex); } return true; } Loading Loading @@ -14011,9 +13987,7 @@ public class TelephonyManager { service.setSystemSelectionChannels(specifiers, getSubId(), aidlConsumer); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#setSystemSelectionChannels RemoteException" + ex); } } Loading Loading @@ -14041,9 +14015,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getSystemSelectionChannels RemoteException" + ex); } return new ArrayList<>(); } Loading Loading @@ -14072,9 +14044,7 @@ public class TelephonyManager { return service.isMvnoMatched(getSubId(), mvnoType, mvnoMatchData); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#matchesCurrentSimOperator RemoteException" + ex); } return false; } Loading Loading @@ -14475,10 +14445,7 @@ public class TelephonyManager { service.setMobileDataPolicyEnabled(getSubId(), policy, enabled); } } catch (RemoteException ex) { // This could happen if binder process crashes. if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#setMobileDataPolicyEnabled RemoteException" + ex); } } Loading @@ -14498,10 +14465,7 @@ public class TelephonyManager { return service.isMobileDataPolicyEnabled(getSubId(), policy); } } catch (RemoteException ex) { // This could happen if binder process crashes. if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isMobileDataPolicyEnabled RemoteException" + ex); } return false; } Loading Loading @@ -15005,9 +14969,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#getEquivalentHomePlmns RemoteException" + ex); } return Collections.emptyList(); Loading Loading @@ -15103,9 +15065,7 @@ public class TelephonyManager { throw new IllegalStateException("telephony service is null."); } } catch (RemoteException ex) { if (!isSystemProcess()) { ex.rethrowAsRuntimeException(); } Rlog.e(TAG, "Telephony#isRadioInterfaceCapabilitySupported RemoteException" + ex); } return false; }