OSDN Git Service

Make preferred activities encryption aware.
authorJeff Sharkey <jsharkey@android.com>
Tue, 1 Mar 2016 22:15:55 +0000 (15:15 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 1 Mar 2016 22:15:58 +0000 (15:15 -0700)
Not all built-in apps are encryption aware, so match them all when
setting up preferred activities.

Bug: 27429841
Change-Id: I0fd2195714fac95d031813bab73125a5c7b6c81a

services/core/java/com/android/server/pm/Settings.java

index 1652185..310ad53 100644 (file)
@@ -3049,7 +3049,7 @@ final class Settings {
             tmpPa.dump(new LogPrinter(Log.DEBUG, TAG), "  ");
         }
         Intent intent = new Intent();
-        int flags = 0;
+        int flags = PackageManager.MATCH_ENCRYPTION_AWARE_AND_UNAWARE;
         intent.setAction(tmpPa.getAction(0));
         for (int i=0; i<tmpPa.countCategories(); i++) {
             String cat = tmpPa.getCategory(i);