Loading src/java/com/android/internal/telephony/dataconnection/DataServiceManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ import android.text.TextUtils; import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneConfigurationManager; import com.android.internal.telephony.util.TelephonyUtils; import java.util.HashSet; import java.util.List; Loading Loading @@ -138,7 +139,7 @@ public class DataServiceManager extends Handler { UserHandle.myUserId(), pkgToGrant[0], AppOpsManager.MODE_ALLOWED); } catch (RemoteException e) { loge("Binder to package manager died, permission grant for DataService failed."); throw e.rethrowAsRuntimeException(); throw TelephonyUtils.rethrowAsRuntimeException(e); } } Loading @@ -164,7 +165,7 @@ public class DataServiceManager extends Handler { } } catch (RemoteException e) { loge("Binder to package manager died; failed to revoke DataService permissions."); throw e.rethrowAsRuntimeException(); throw TelephonyUtils.rethrowAsRuntimeException(e); } } Loading src/java/com/android/internal/telephony/util/TelephonyUtils.java +7 −1 Original line number Diff line number Diff line Loading @@ -17,9 +17,10 @@ package com.android.internal.telephony.util; import android.annotation.NonNull; import android.annotation.Nullable; import android.os.SystemProperties; import android.content.pm.ComponentInfo; import android.content.pm.ResolveInfo; import android.os.RemoteException; import android.os.SystemProperties; /** * This class provides various util functions Loading @@ -35,6 +36,11 @@ public final class TelephonyUtils { public static boolean IS_DEBUGGABLE = SystemProperties.getInt("ro.debuggable", 0) == 1; /** {@hide} */ public static RuntimeException rethrowAsRuntimeException(RemoteException remoteException) { throw new RuntimeException(remoteException); } public static ComponentInfo getComponentInfo(@NonNull ResolveInfo resolveInfo) { if (resolveInfo.activityInfo != null) return resolveInfo.activityInfo; if (resolveInfo.serviceInfo != null) return resolveInfo.serviceInfo; Loading Loading
src/java/com/android/internal/telephony/dataconnection/DataServiceManager.java +3 −2 Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ import android.text.TextUtils; import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneConfigurationManager; import com.android.internal.telephony.util.TelephonyUtils; import java.util.HashSet; import java.util.List; Loading Loading @@ -138,7 +139,7 @@ public class DataServiceManager extends Handler { UserHandle.myUserId(), pkgToGrant[0], AppOpsManager.MODE_ALLOWED); } catch (RemoteException e) { loge("Binder to package manager died, permission grant for DataService failed."); throw e.rethrowAsRuntimeException(); throw TelephonyUtils.rethrowAsRuntimeException(e); } } Loading @@ -164,7 +165,7 @@ public class DataServiceManager extends Handler { } } catch (RemoteException e) { loge("Binder to package manager died; failed to revoke DataService permissions."); throw e.rethrowAsRuntimeException(); throw TelephonyUtils.rethrowAsRuntimeException(e); } } Loading
src/java/com/android/internal/telephony/util/TelephonyUtils.java +7 −1 Original line number Diff line number Diff line Loading @@ -17,9 +17,10 @@ package com.android.internal.telephony.util; import android.annotation.NonNull; import android.annotation.Nullable; import android.os.SystemProperties; import android.content.pm.ComponentInfo; import android.content.pm.ResolveInfo; import android.os.RemoteException; import android.os.SystemProperties; /** * This class provides various util functions Loading @@ -35,6 +36,11 @@ public final class TelephonyUtils { public static boolean IS_DEBUGGABLE = SystemProperties.getInt("ro.debuggable", 0) == 1; /** {@hide} */ public static RuntimeException rethrowAsRuntimeException(RemoteException remoteException) { throw new RuntimeException(remoteException); } public static ComponentInfo getComponentInfo(@NonNull ResolveInfo resolveInfo) { if (resolveInfo.activityInfo != null) return resolveInfo.activityInfo; if (resolveInfo.serviceInfo != null) return resolveInfo.serviceInfo; Loading