Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2aefe582 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Update usage of ActivityManagerNative.

Bug: 30977067
Test: N/A
Change-Id: I5302a580fa3037ac800a5fd28e0497b158309af9
parent 3d21a71e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.packageinstaller;
package com.android.packageinstaller;


import android.app.Activity;
import android.app.Activity;
import android.app.ActivityManagerNative;
import android.app.ActivityManager;
import android.content.Intent;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInstaller;
import android.content.pm.PackageInstaller;
@@ -127,7 +127,7 @@ public class InstallStart extends Activity {
        // We couldn't get the specific calling package. Let's get the uid instead
        // We couldn't get the specific calling package. Let's get the uid instead
        int callingUid;
        int callingUid;
        try {
        try {
            callingUid = ActivityManagerNative.getDefault()
            callingUid = ActivityManager.getService()
                    .getLaunchedFromUid(getActivityToken());
                    .getLaunchedFromUid(getActivityToken());
        } catch (android.os.RemoteException ex) {
        } catch (android.os.RemoteException ex) {
            Log.w(LOG_TAG, "Could not determine the launching uid.");
            Log.w(LOG_TAG, "Could not determine the launching uid.");