Java tutorial
//package com.java2s; import android.content.pm.ApplicationInfo; public class Main { public static boolean isUserApp(ApplicationInfo info) { if (info == null) { return false; } return !((info.flags & ApplicationInfo.FLAG_SYSTEM) != 0 || (info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0); } }