Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93d81ef7 authored by David 'Digit' Turner's avatar David 'Digit' Turner
Browse files

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
parent 327b2b70
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -44,7 +44,7 @@
#define PACKAGES_LIST_FILE  "/data/system/packages.list"
#define PACKAGES_LIST_FILE  "/data/system/packages.list"


/* This should be large enough to hold the content of the package database file */
/* 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'
/* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen'
 * This function always zero-terminate the destination buffer unless
 * This function always zero-terminate the destination buffer unless