Loading src/java/com/android/internal/telephony/AppSmsManager.java +0 −24 Original line number Diff line number Diff line Loading @@ -20,16 +20,10 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.app.AppOpsManager; import android.app.PendingIntent; import android.app.role.IRoleManager; import android.content.Context; import android.content.Intent; import android.os.Binder; import android.os.Bundle; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.provider.Telephony.Sms.Intents; import android.telephony.IFinancialSmsCallback; import android.telephony.SmsManager; import android.telephony.SmsMessage; import android.telephony.SubscriptionManager; Loading Loading @@ -146,24 +140,6 @@ public class AppSmsManager { return token; } /** * Get filtered SMS messages for financial app. */ public void getSmsMessagesForFinancialApp( String callingPkg, Bundle params, final IFinancialSmsCallback callback) { try { IRoleManager roleManager = IRoleManager.Stub.asInterface( ServiceManager.getServiceOrThrow(Context.ROLE_SERVICE)); roleManager.getSmsMessagesForFinancialApp(callingPkg, params, callback); } catch (RemoteException e) { Log.e(LOG_TAG, "Receive RemoteException."); // do nothing } catch (ServiceNotFoundException e) { Log.e(LOG_TAG, "Service not found."); // do nothing } } /** * Handle an incoming SMS_DELIVER_ACTION intent if it is an app-only SMS. */ Loading src/java/com/android/internal/telephony/SmsController.java +0 −9 Original line number Diff line number Diff line Loading @@ -28,10 +28,8 @@ import android.app.PendingIntent; import android.content.Context; import android.net.Uri; import android.os.Binder; import android.os.Bundle; import android.os.ServiceManager; import android.provider.Telephony.Sms.Intents; import android.telephony.IFinancialSmsCallback; import android.telephony.Rlog; import android.telephony.SmsManager; import android.telephony.SubscriptionInfo; Loading Loading @@ -512,13 +510,6 @@ public class SmsController extends ISmsImplBase { return getPhone(subId).getAppSmsManager().createAppSpecificSmsToken(callingPkg, intent); } @Override public void getSmsMessagesForFinancialApp( int subId, String callingPkg, Bundle params, IFinancialSmsCallback callback) { getPhone(subId).getAppSmsManager().getSmsMessagesForFinancialApp( callingPkg, params, callback); } @Override public int checkSmsShortCodeDestination( int subId, String callingPackage, String destAddress, String countryIso) { Loading Loading
src/java/com/android/internal/telephony/AppSmsManager.java +0 −24 Original line number Diff line number Diff line Loading @@ -20,16 +20,10 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.app.AppOpsManager; import android.app.PendingIntent; import android.app.role.IRoleManager; import android.content.Context; import android.content.Intent; import android.os.Binder; import android.os.Bundle; import android.os.RemoteException; import android.os.ServiceManager; import android.os.ServiceManager.ServiceNotFoundException; import android.provider.Telephony.Sms.Intents; import android.telephony.IFinancialSmsCallback; import android.telephony.SmsManager; import android.telephony.SmsMessage; import android.telephony.SubscriptionManager; Loading Loading @@ -146,24 +140,6 @@ public class AppSmsManager { return token; } /** * Get filtered SMS messages for financial app. */ public void getSmsMessagesForFinancialApp( String callingPkg, Bundle params, final IFinancialSmsCallback callback) { try { IRoleManager roleManager = IRoleManager.Stub.asInterface( ServiceManager.getServiceOrThrow(Context.ROLE_SERVICE)); roleManager.getSmsMessagesForFinancialApp(callingPkg, params, callback); } catch (RemoteException e) { Log.e(LOG_TAG, "Receive RemoteException."); // do nothing } catch (ServiceNotFoundException e) { Log.e(LOG_TAG, "Service not found."); // do nothing } } /** * Handle an incoming SMS_DELIVER_ACTION intent if it is an app-only SMS. */ Loading
src/java/com/android/internal/telephony/SmsController.java +0 −9 Original line number Diff line number Diff line Loading @@ -28,10 +28,8 @@ import android.app.PendingIntent; import android.content.Context; import android.net.Uri; import android.os.Binder; import android.os.Bundle; import android.os.ServiceManager; import android.provider.Telephony.Sms.Intents; import android.telephony.IFinancialSmsCallback; import android.telephony.Rlog; import android.telephony.SmsManager; import android.telephony.SubscriptionInfo; Loading Loading @@ -512,13 +510,6 @@ public class SmsController extends ISmsImplBase { return getPhone(subId).getAppSmsManager().createAppSpecificSmsToken(callingPkg, intent); } @Override public void getSmsMessagesForFinancialApp( int subId, String callingPkg, Bundle params, IFinancialSmsCallback callback) { getPhone(subId).getAppSmsManager().getSmsMessagesForFinancialApp( callingPkg, params, callback); } @Override public int checkSmsShortCodeDestination( int subId, String callingPackage, String destAddress, String countryIso) { Loading