Project

General

Profile

Actions

New Feature #12733

open

Add new restrictions to restrict apps by app type

Added by Sandaru Daminda about 1 month ago.

Status:
New
Priority:
None
Start date:
13/03/2025
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:
Android

Description

We can get the application type from the below APIs, if provided and we can restrict apps based on this type.
Ex - CATEGORY_GAME,CATEGORY_SOCIAL,CATEGORY_VIDEO,CATEGORY_NEWS

PackageManager pm = context.getPackageManager();
List<ApplicationInfo> packages = pm.getInstalledApplications(PackageManager.GET_META_DATA);

for (ApplicationInfo appInfo : packages) {
String appName = (String) pm.getApplicationLabel(appInfo);
String packageName = appInfo.packageName;
String appType = getAppCategory(pm, appInfo);
}

No data to display

Actions

Also available in: Atom PDF