try { PackageManager pmg = getPackageManager(); List<ApplicationInfo> apps = pmg.getInstalledApplications(0); Signature ss1 = pmg.getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures[0]; for (int i = 0; i < apps.size(); i++) { Signature ss = pmg.getPackageInfo(apps.get(i).packageName, PackageManager.GET_SIGNATURES).signatures[0]; if (ss.equals(ss1)) { // System.out.println(apps.get(i).packageName); } } } catch (NameNotFoundException e) { e.printStackTrace(); }