diff options
author | Jeff Sharkey <jsharkey@android.com> | 2014-06-16 13:48:42 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2014-06-17 14:38:44 -0700 |
commit | 8a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3 (patch) | |
tree | b2564620026c0ca6081de864b20ac1d5e6827135 /cmds/pm/src | |
parent | 564054146e7286b0d046591c0bd3195b0e4a6cf3 (diff) | |
download | frameworks_base-8a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3.zip frameworks_base-8a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3.tar.gz frameworks_base-8a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3.tar.bz2 |
Plumb split APKs into public API.
Introduces new ApplicationInfo fields to surface zero or more split
APKs for an application. Splice these APKs into both the class
loader and resource system. Cleaner building of these paths.
Run dexopt() on all split APKs found after a parse, and populate
into ApplicationInfo.
Change-Id: I4a376bf4492d84ea95aafa866e106ea43a43e492
Diffstat (limited to 'cmds/pm/src')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index 47047b8..f85a7dc 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -58,11 +58,13 @@ import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.WeakHashMap; + import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import com.android.internal.content.PackageHelper; +import com.android.internal.util.ArrayUtils; public final class Pm { IPackageManager mPm; @@ -1548,6 +1550,12 @@ public final class Pm { if (info != null && info.applicationInfo != null) { System.out.print("package:"); System.out.println(info.applicationInfo.sourceDir); + if (!ArrayUtils.isEmpty(info.applicationInfo.splitSourceDirs)) { + for (String splitSourceDir : info.applicationInfo.splitSourceDirs) { + System.out.print("package:"); + System.out.println(splitSourceDir); + } + } } } catch (RemoteException e) { System.err.println(e.toString()); |