Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I was looking for a way to get a list of all the installed apps on Android that are hidden from launcher.
If you are able, please create this as a list of packages (e.g. "com.app.package" "com.app2.package" etc.)

What I have tried:

Sadly I don't have an idea of what I can do, but I already created a list of the installed apps (so not system apps) in this way:

Java
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
final List apps = packageManager.queryIntentActivities(mainIntent, 0);


Thanks in advance!
Posted
Updated 5-Jul-19 12:38pm
v2

1 solution

Try this:
C#
final PackageManager pm = getPackageManager();
List<ApplicationInfo> packages =
    pm.getInstalledApplications(PackageManager.GET_META_DATA);

for (ApplicationInfo packageInfo : packages) {
    Log.d(TAG, "Installed package :" + packageInfo.packageName);
    Log.d(TAG, "Source dir : " + packageInfo.sourceDir);
    Log.d(TAG, "Launch Activity :" +
          pm.getLaunchIntentForPackage(packageInfo.packageName)); 
}
/ravi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900