Add number of enterprise-installed apps to Privacy Settings page
This CL adds information about the number of apps that were installed by the admin to the Enterprise Privacy Settings page. Test: make RunSettingsRoboTests Bug: 32692748 Change-Id: Ib710a1249db6d285da962122fd3dfb35a43752a1
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.Intent;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.ResolveInfo;
|
||||
import android.os.UserHandle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -56,4 +57,12 @@ public interface PackageManagerWrapper {
|
||||
* @see android.content.pm.PackageManager#queryIntentActivitiesAsUser
|
||||
*/
|
||||
List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int flags, int userId);
|
||||
|
||||
|
||||
/**
|
||||
* Calls {@code PackageManager.getInstallReason()}.
|
||||
*
|
||||
* @see android.content.pm.PackageManager#getInstallReason
|
||||
*/
|
||||
int getInstallReason(String packageName, UserHandle user);
|
||||
}
|
||||
|
Reference in New Issue
Block a user