commit | b61af00a0e2f3456df8811dbefa3cd6bf24ff32f | [log] [tgz] |
---|---|---|
author | Jayachandran Chinnakkannu <jayachandranc@google.com> | Mon Nov 18 06:16:42 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Nov 18 06:16:42 2019 +0000 |
tree | 1fb092a22273357411f0c067cd47decc1526a5a7 | |
parent | 4ac646cd1a2882bff68b02f86319238a9a326ec9 [diff] | |
parent | 301670342b9e51c9ee4d0afb598e042dce0b0d09 [diff] |
Merge "Remove usage of Telephonymanager getDefault() and from() hidden APIs"
diff --git a/apex/statsd/service/java/com/android/server/stats/StatsCompanionService.java b/apex/statsd/service/java/com/android/server/stats/StatsCompanionService.java index a0615aa..8a00c83 100644 --- a/apex/statsd/service/java/com/android/server/stats/StatsCompanionService.java +++ b/apex/statsd/service/java/com/android/server/stats/StatsCompanionService.java
@@ -1179,7 +1179,7 @@ long token = Binder.clearCallingIdentity(); synchronized (this) { if (mTelephony == null) { - mTelephony = TelephonyManager.from(mContext); + mTelephony = mContext.getSystemService(TelephonyManager.class); } } if (mTelephony != null) {