OSDN Git Service

Merge "Check permissions on getDeviceId." into mnc-dr-dev
[android-x86/frameworks-base.git] / telephony / java / android / telephony / TelephonyManager.java
index 6b1b629..7276980 100644 (file)
@@ -766,7 +766,7 @@ public class TelephonyManager {
             IPhoneSubInfo info = getSubscriberInfo();
             if (info == null)
                 return null;
-            return info.getDeviceIdForPhone(slotId);
+            return info.getDeviceIdForPhone(slotId, mContext.getOpPackageName());
         } catch (RemoteException ex) {
             return null;
         } catch (NullPointerException ex) {