Loading src/java/com/android/internal/telephony/InboundSmsHandler.java +0 −17 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.IPackageManager; import android.content.pm.PackageManager; import android.database.Cursor; import android.database.SQLException; Loading @@ -56,8 +55,6 @@ import android.os.Bundle; import android.os.Message; import android.os.PowerManager; import android.os.PowerWhitelistManager; import android.os.RemoteException; import android.os.ServiceManager; import android.os.UserHandle; import android.os.UserManager; import android.os.storage.StorageManager; Loading Loading @@ -745,19 +742,6 @@ public abstract class InboundSmsHandler extends StateMachine { return Intents.RESULT_SMS_HANDLED; } // onlyCore indicates if the device is in cryptkeeper boolean onlyCore = false; try { onlyCore = IPackageManager.Stub.asInterface(ServiceManager.getService("package")) .isOnlyCoreApps(); } catch (RemoteException e) { } if (onlyCore) { // Device is unable to receive SMS in encrypted state log("Received a short message in encrypted state. Rejecting."); return Intents.RESULT_SMS_RECEIVED_WHILE_ENCRYPTED; } int result = dispatchMessageRadioSpecific(smsb, smsSource); // In case of error, add to metrics. This is not required in case of success, as the Loading Loading @@ -880,7 +864,6 @@ public abstract class InboundSmsHandler extends StateMachine { * <code>RESULT_SMS_DISPATCH_FAILURE</code><br> * <code>RESULT_SMS_NULL_PDU</code><br> * <code>RESULT_SMS_NULL_MESSAGE</code><br> * <code>RESULT_SMS_RECEIVED_WHILE_ENCRYPTED</code><br> * <code>RESULT_SMS_DATABASE_ERROR</code><br> * <code>RESULT_SMS_INVALID_URI</code><br> */ Loading Loading
src/java/com/android/internal/telephony/InboundSmsHandler.java +0 −17 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.IPackageManager; import android.content.pm.PackageManager; import android.database.Cursor; import android.database.SQLException; Loading @@ -56,8 +55,6 @@ import android.os.Bundle; import android.os.Message; import android.os.PowerManager; import android.os.PowerWhitelistManager; import android.os.RemoteException; import android.os.ServiceManager; import android.os.UserHandle; import android.os.UserManager; import android.os.storage.StorageManager; Loading Loading @@ -745,19 +742,6 @@ public abstract class InboundSmsHandler extends StateMachine { return Intents.RESULT_SMS_HANDLED; } // onlyCore indicates if the device is in cryptkeeper boolean onlyCore = false; try { onlyCore = IPackageManager.Stub.asInterface(ServiceManager.getService("package")) .isOnlyCoreApps(); } catch (RemoteException e) { } if (onlyCore) { // Device is unable to receive SMS in encrypted state log("Received a short message in encrypted state. Rejecting."); return Intents.RESULT_SMS_RECEIVED_WHILE_ENCRYPTED; } int result = dispatchMessageRadioSpecific(smsb, smsSource); // In case of error, add to metrics. This is not required in case of success, as the Loading Loading @@ -880,7 +864,6 @@ public abstract class InboundSmsHandler extends StateMachine { * <code>RESULT_SMS_DISPATCH_FAILURE</code><br> * <code>RESULT_SMS_NULL_PDU</code><br> * <code>RESULT_SMS_NULL_MESSAGE</code><br> * <code>RESULT_SMS_RECEIVED_WHILE_ENCRYPTED</code><br> * <code>RESULT_SMS_DATABASE_ERROR</code><br> * <code>RESULT_SMS_INVALID_URI</code><br> */ Loading