OSDN Git Service

Fix activity-alias encryption awareness bug.
authorJeff Sharkey <jsharkey@android.com>
Thu, 28 Jan 2016 19:32:10 +0000 (12:32 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 28 Jan 2016 20:30:07 +0000 (13:30 -0700)
Since the activity-alias is backed by the same code as the original
activity definition, they should both have an identical encryption
awareness.  This fixes a bug where we accidentally dropped that value.

Bug: 26731340
Change-Id: I6ad615332df7d16542893a49e6997c88fc24334b

core/java/android/content/pm/PackageParser.java

index 9319c2e..44cd003 100644 (file)
@@ -3491,6 +3491,7 @@ public class PackageParser {
         info.maxRecents = target.info.maxRecents;
         info.layout = target.info.layout;
         info.resizeMode = target.info.resizeMode;
+        info.encryptionAware = target.info.encryptionAware;
 
         Activity a = new Activity(mParseActivityAliasArgs, info);
         if (outError[0] != null) {