Update usage of ActivityManagerNative.

Bug: 30977067
Test: N/A
Change-Id: I46e37a09cff059d2784a819bc2651d6973fbd268
This commit is contained in:
Sudheer Shanka
2016-11-10 15:30:14 -08:00
parent 28cd8cba41
commit acb1a61f3f
12 changed files with 29 additions and 34 deletions

View File

@@ -418,7 +418,7 @@ public final class CredentialStorage extends Activity {
final int launchedFromUserId;
try {
int launchedFromUid = android.app.ActivityManagerNative.getDefault()
int launchedFromUid = android.app.ActivityManager.getService()
.getLaunchedFromUid(getActivityToken());
if (launchedFromUid == -1) {
Log.e(TAG, ACTION_INSTALL + " must be started with startActivityForResult");