diff options
author | David 'Digit' Turner <digit@google.com> | 2010-01-21 15:15:23 -0800 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2010-01-25 11:27:08 -0800 |
commit | 1edab2b551995a8df25f4b533405d6003b8b8b66 (patch) | |
tree | 5d6f545170ac5820c19b03e1aea6fd3332084c3d /core/java/android/content/pm/ApplicationInfo.java | |
parent | 8fdd45e1aa26e62fe02b053683624ac2b28bce93 (diff) | |
download | frameworks_base-1edab2b551995a8df25f4b533405d6003b8b8b66.zip frameworks_base-1edab2b551995a8df25f4b533405d6003b8b8b66.tar.gz frameworks_base-1edab2b551995a8df25f4b533405d6003b8b8b66.tar.bz2 |
Make PackageManager unpack gdbserver binaries at installation time.
Native-debuggable packages contain a lib/<abi>/gdbserver executable.
This patch ensures that the package manager will copy it to the
proper location (/data/data/<appname>/lib) at installation time.
Note that such packages are marked with a new ApplicationInfo flag
named FLAG_NATIVE_DEBUGGABLE, to be used later by the Activity
Manager.
Diffstat (limited to 'core/java/android/content/pm/ApplicationInfo.java')
-rw-r--r-- | core/java/android/content/pm/ApplicationInfo.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index a7ea507..808c839 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -234,6 +234,14 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { public static final int FLAG_ON_SDCARD = 1<<19; /** + * Value for {@link #flags}: Set to true if the application is + * native-debuggable, i.e. embeds a gdbserver binary in its .apk + * + * {@hide} + */ + public static final int FLAG_NATIVE_DEBUGGABLE = 1<<20; + + /** * Flags associated with the application. Any combination of * {@link #FLAG_SYSTEM}, {@link #FLAG_DEBUGGABLE}, {@link #FLAG_HAS_CODE}, * {@link #FLAG_PERSISTENT}, {@link #FLAG_FACTORY_TEST}, and |