summaryrefslogtreecommitdiffstats
path: root/run-as
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-06-06 11:53:07 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-06-06 12:43:01 +0200
commit93d81ef7a104ae9a229aca3c7c6da0445440213e (patch)
tree076117d1670ff4716940e36d616efd1f4632f6fa /run-as
parent327b2b709f1c9ed119b2d87cd95d4a5367fe0338 (diff)
downloadsystem_core-93d81ef7a104ae9a229aca3c7c6da0445440213e.zip
system_core-93d81ef7a104ae9a229aca3c7c6da0445440213e.tar.gz
system_core-93d81ef7a104ae9a229aca3c7c6da0445440213e.tar.bz2
run-as: Bump the size of the internal packages list buffer.
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: I0c35a61b163c4abc6f1a2681adc0ef0d76493171
Diffstat (limited to 'run-as')
-rw-r--r--run-as/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-as/package.c b/run-as/package.c
index 46f8239..ca08436 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