daily pastebin goal
92%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    PackageManager pm = getPackageManager();
  2.         List<ApplicationInfo> apps = pm.getInstalledApplications(0);
  3.        
  4.         List<ApplicationInfo> installedApps = new ArrayList<ApplicationInfo>();
  5.  
  6.         for(ApplicationInfo app : apps) {
  7.             if((app.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) == 1) {
  8.                 installedApps.add(app);
  9.             } else if ((app.flags & ApplicationInfo.FLAG_SYSTEM) == 1) {
  10.             } else {
  11.                 installedApps.add(app);
  12.             }
  13.         }
  14.  
  15.                 if ("Remove".equals(n.getAttributes().item(0).getNodeValue())) {
  16.                     String removeAPK = n.getFirstChild().getNodeValue();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top