diff options
author | David 'Digit' Turner <digit@android.com> | 2011-06-06 11:53:07 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2011-06-07 10:45:11 +0200 |
commit | 1468cb540f5c257d32bde182ae8f0f522c582d07 (patch) | |
tree | 959fbc5d76496b9e19127d1e263b4de7408142f0 | |
parent | b620a0b1c7ae486e979826200e8e441605b0a5d6 (diff) | |
download | core-1468cb540f5c257d32bde182ae8f0f522c582d07.tar.gz |
run-as: Bump the size of the internal packages list buffer.android-cts-2.3_r5
This is a back-port of https://review.source.android.com/#change,23480
to the gingerbread branch. Fix for b/4546601
This patch increases the size of the internal buffer used by run-as
to store the content of /data/system/packages.list from 8KB to 64KB.
It has been reported that, on some systems, 8KB was too small. This
resulted in a truncated file being loaded, and the inability to debug
native applications properly (either because the application was not
found in the list, or because the tool reported a 'corrupted
installation' due to BAD_FORMAT issues when parsing the truncated
file).
See http://code.google.com/p/android/issues/detail?id=16391
Change-Id: Ie0bfb5847f6fb1c2c0a836aee2347911f78049c1
-rw-r--r-- | run-as/package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run-as/package.c b/run-as/package.c index 46f8239c3..ca084369d 100644 --- a/run-as/package.c +++ b/run-as/package.c @@ -44,7 +44,7 @@ #define PACKAGES_LIST_FILE "/data/system/packages.list" /* This should be large enough to hold the content of the package database file */ -#define PACKAGES_LIST_BUFFER_SIZE 8192 +#define PACKAGES_LIST_BUFFER_SIZE 65536 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen' * This function always zero-terminate the destination buffer unless |