From bb25d1aebad190025daa8d2efe65aeb05c651049 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 21 Jun 2019 16:32:56 -0700 Subject: [PATCH] Remove obsolete reference to ServiceManagerNative. ServiceManagerNative.getDefault doesn't exist. Bug: 135768100 Test: N/A Change-Id: I6e04b54c986c3d0997429a8d810f2554d84dc119 --- .../java/com/android/internal/telephony/ISms.aidl | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/telephony/java/com/android/internal/telephony/ISms.aidl b/telephony/java/com/android/internal/telephony/ISms.aidl index a4eb424ab66e0..c3dcc3db7d450 100644 --- a/telephony/java/com/android/internal/telephony/ISms.aidl +++ b/telephony/java/com/android/internal/telephony/ISms.aidl @@ -20,20 +20,11 @@ import android.app.PendingIntent; import android.net.Uri; import com.android.internal.telephony.SmsRawData; -/** Interface for applications to access the ICC phone book. +/** + * Interface for applications to access the ICC phone book. * - *

The following code snippet demonstrates a static method to - * retrieve the ISms interface from Android:

- *
private static ISms getSmsInterface()
-            throws DeadObjectException {
-    IServiceManager sm = ServiceManagerNative.getDefault();
-    ISms ss;
-    ss = ISms.Stub.asInterface(sm.getService("isms"));
-    return ss;
-}
- * 
+ * See also SmsManager.java. */ - interface ISms { /** * Retrieves all messages currently stored on ICC.