Add admin-granted permissions to Enterprise Privacy Settings page
This CL adds information about the number of apps that have been granted particularly sensitive permissions (location, microphone, camera) by the admin. Bug: 32692748 Test: make RunSettingsRoboTests Change-Id: I650d3e1ed3950960c58722b0c035a76daeb36478
This commit is contained in:
@@ -35,17 +35,29 @@ public interface ApplicationFeatureProvider {
|
||||
* Asynchronously calculates the total number of apps installed on the device, across all users
|
||||
* and managed profiles.
|
||||
*
|
||||
* @param installReason Only consider packages with this install reason; may be any install
|
||||
* reason defined in {@link android.content.pm.PackageManager} or
|
||||
* {@link #IGNORE_INSTALL_REASON} to count all packages, irrespective of install reason.
|
||||
* @param installReason Only consider apps with this install reason; may be any install reason
|
||||
* defined in {@link android.content.pm.PackageManager} or
|
||||
* {@link #IGNORE_INSTALL_REASON} to count all apps, irrespective of install reason.
|
||||
* @param callback The callback to invoke with the result
|
||||
*/
|
||||
void calculateNumberOfInstalledApps(int installReason, NumberOfInstalledAppsCallback callback);
|
||||
void calculateNumberOfInstalledApps(int installReason, NumberOfAppsCallback callback);
|
||||
|
||||
/**
|
||||
* Callback that receives the total number of packages installed on the device.
|
||||
* Asynchronously calculates the total number of apps installed on the device, across all users
|
||||
* and managed profiles, that have been granted one or more of the given permissions by the
|
||||
* admin.
|
||||
*
|
||||
* @param permissions Only consider apps that have been granted one or more of these permissions
|
||||
* by the admin, either at run-time or install-time
|
||||
* @param callback The callback to invoke with the result
|
||||
*/
|
||||
interface NumberOfInstalledAppsCallback {
|
||||
void onNumberOfInstalledAppsResult(int num);
|
||||
void calculateNumberOfAppsWithAdminGrantedPermissions(String[] permissions,
|
||||
NumberOfAppsCallback callback);
|
||||
|
||||
/**
|
||||
* Callback that receives the number of packages installed on the device.
|
||||
*/
|
||||
interface NumberOfAppsCallback {
|
||||
void onNumberOfAppsResult(int num);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user