Update usage of ActivityManagerNative.
Bug: 30977067 Test: N/A Change-Id: I46e37a09cff059d2784a819bc2651d6973fbd268
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user