Commit graph

1764 commits

Author SHA1 Message Date
David 'Digit' Turner
f45cd81bc8 am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit '1468cb540f5c257d32bde182ae8f0f522c582d07':
  run-as: Bump the size of the internal packages list buffer.
2011-06-07 13:39:41 -07:00
David 'Digit' Turner
1468cb540f run-as: Bump the size of the internal packages list buffer.
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
2011-06-07 10:45:11 +02:00
David 'Digit' Turner
06fcf938fe Merge "run-as: Bump the size of the internal packages list buffer." 2011-06-06 12:35:30 -07:00
David 'Digit' Turner
93d81ef7a1 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
2011-06-06 12:43:01 +02:00
Jean-Baptiste Queru
327b2b709f Merge "move core audio definitions under system/core" 2011-05-13 10:11:17 -07:00
Dima Zavin
253b598dc0 move core audio definitions under system/core
Change-Id: I58b7324edff834b3afa4d9c86452e66f8c29c63b
Signed-off-by: Dima Zavin <dima@android.com>
2011-05-13 08:46:13 -07:00
Jean-Baptiste Queru
7078f776fd Merge "cutils: add popcount/popcountl/popcountll static inline definitions" 2011-05-12 10:28:08 -07:00
Dima Zavin
4af1cf2bd7 cutils: add popcount/popcountl/popcountll static inline definitions
Just pass them through to their specific GCC builtins. If we find
that the builtins are not performing well or have other issues, we can
pull in existing public implementations and/or write arch-specific
helpers if necessary.

Change-Id: I278e6b73d75fac88808ed4546070d288c06f79e0
Signed-off-by: Dima Zavin <dima@android.com>
2011-05-12 08:41:49 -07:00
Nick Kralevich
fe6bfb1285 am a8728ee0: (-s ours) Merge "libsysutils: only accept uevents from the kernel."
* commit 'a8728ee0f2e7927d7300a673946926ff82dd8ef3':
  libsysutils: only accept uevents from the kernel.
2011-04-28 11:21:17 -07:00
Nick Kralevich
a8728ee0f2 Merge "libsysutils: only accept uevents from the kernel." 2011-04-28 10:58:34 -07:00
David 'Digit' Turner
b013bfc171 am 52a64057: Merge "ueventd.rc: Move /dev/qemu_trace to ueventd.goldfish.rc"
* commit '52a64057b60b0ad242e95fdc285ec60e0191d5b5':
  ueventd.rc: Move /dev/qemu_trace to ueventd.goldfish.rc
2011-04-28 02:30:33 -07:00
David 'Digit' Turner
52a64057b6 Merge "ueventd.rc: Move /dev/qemu_trace to ueventd.goldfish.rc" 2011-04-28 02:20:17 -07:00
Nick Kralevich
2baeb89882 am a2842b68: Merge "Fold uevent message origin checking from init into libcutils."
* commit 'a2842b68548c8cdfbf6b3c14480ab04bab9010ea':
  Fold uevent message origin checking from init into libcutils.
2011-04-27 12:31:55 -07:00
Nick Kralevich
a2842b6854 Merge "Fold uevent message origin checking from init into libcutils." 2011-04-27 12:24:47 -07:00
Vernon Tang
80b0162910 libsysutils: only accept uevents from the kernel.
Addresses CVE-2011-1823.

Change-Id: I393c21da749a6a6491d6719767bc1ff3df647ebe
2011-04-28 05:16:47 +10:00
Vernon Tang
3f582e92f0 Fold uevent message origin checking from init into libcutils.
Change-Id: I7cbc0cb840d1b4962e6c360fdad9a9c0ce20e87b
2011-04-28 05:16:21 +10:00
Conley Owens
c4eaebbe7a am ab6e55f7: Merge "Enlarge USB bulk transfer size for faster downloads"
* commit 'ab6e55f72b975b4fc61c436d4540ba7416166262':
  Enlarge USB bulk transfer size for faster downloads
2011-04-27 11:32:42 -07:00
Conley Owens
ab6e55f72b Merge "Enlarge USB bulk transfer size for faster downloads" 2011-04-27 11:20:50 -07:00
Nick Kralevich
03752be0a4 am 0c297f5e: Merge "Revert "Fold uevent message origin checking from init into libcutils.""
* commit '0c297f5ebb5ae7af2854f7c07d97bcdd13c159fc':
  Revert "Fold uevent message origin checking from init into libcutils."
2011-04-27 10:32:00 -07:00
Nick Kralevich
0c297f5ebb Merge "Revert "Fold uevent message origin checking from init into libcutils."" 2011-04-27 10:23:46 -07:00
Nick Kralevich
de9e65dd65 Revert "Fold uevent message origin checking from init into libcutils."
This reverts commit 8405ec0e75.

The original change does not compile.
2011-04-27 10:21:24 -07:00
Nick Kralevich
a7cf7ed934 am 282c2ab4: Merge "Fold uevent message origin checking from init into libcutils."
* commit '282c2ab408d487d0995362d1b9aa97fe30d97ebd':
  Fold uevent message origin checking from init into libcutils.
2011-04-27 09:55:20 -07:00
Nick Kralevich
282c2ab408 Merge "Fold uevent message origin checking from init into libcutils." 2011-04-27 09:51:42 -07:00
Nick Kralevich
18f6d964cb am f819d023: Merge "libsysutils: SocketListener: handle recv errors more gracefully."
* commit 'f819d0233646668b06de36a787979e3b180d6c48':
  libsysutils: SocketListener: handle recv errors more gracefully.
2011-04-27 09:40:04 -07:00
Nick Kralevich
f819d02336 Merge "libsysutils: SocketListener: handle recv errors more gracefully." 2011-04-27 09:22:38 -07:00
Vernon Tang
8405ec0e75 Fold uevent message origin checking from init into libcutils.
Change-Id: I1a38e611a7ad990f74306ce453740a1eeed2416d
2011-04-27 14:17:15 +10:00
Vernon Tang
8795007a4a libsysutils: SocketListener: handle recv errors more gracefully.
Don't close the socket when onDataAvailable returns false if the socket
is connectionless.

Change-Id: Ie19497f5928144c463d92aa72ba517e675549ea6
2011-04-27 14:01:27 +10:00
Mike Lockwood
55537c347b am 2f7995ee: Merge "adb: fix typo in helptext"
* commit '2f7995ee0ff480b4ee06e8944e7d4569b59a5bad':
  adb: fix typo in helptext
2011-04-26 15:46:20 -07:00
Mike Lockwood
2f7995ee0f Merge "adb: fix typo in helptext" 2011-04-26 13:45:10 -07:00
David 'Digit' Turner
f431d0499b ueventd.rc: Move /dev/qemu_trace to ueventd.goldfish.rc
+ Add /dev/qemu_pipe line for QEMU pipes.

Change-Id: If3c5c675bfc1585a1d6ffcd1042aaedbc2e94763
2011-04-26 18:07:45 +02:00
Bernhard Reutner-Fischer
6715a4390f adb: fix typo in helptext
s/ocmmand/command

Change-Id: I4ed17e8df9dc71a28e1caef5a21f6351e92628af
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-04-26 12:53:55 +02:00
David 'Digit' Turner
09bd79c1c9 am d068e5ae: Merge "pixelflinger: Provide more scanline shortcut functions."
* commit 'd068e5aeb9992caa46a45275f7ff2ef73d3732a4':
  pixelflinger: Provide more scanline shortcut functions.
2011-04-26 00:43:01 -07:00
David 'Digit' Turner
d068e5aeb9 Merge "pixelflinger: Provide more scanline shortcut functions." 2011-04-25 23:25:15 -07:00
Nick Kralevich
4aadb7f6df am b620a0b1: Validate sender credentials on netlink msg receive
* commit 'b620a0b1c7ae486e979826200e8e441605b0a5d6':
  Validate sender credentials on netlink msg receive
2011-04-18 16:29:45 -07:00
Nick Kralevich
b620a0b1c7 Validate sender credentials on netlink msg receive
Verify that netlink messages are actually from the kernel,
and not from a userspace program.

Change-Id: I709c0efe9ba0258f6d79ebcde531d7f7bbe780b2
2011-04-18 15:55:59 -07:00
David 'Digit' Turner
39764f41a5 pixelflinger: Provide more scanline shortcut functions.
This patch adds a dozen more "shortcut" scanline-processing functions
to pixel-flingers. All of them avoid using the JIT for the corresponding
operation (on ARM), or using the generic and _extremely_ slow 'scanline'
function (on x86, where there is no JIT).

The shortcuts were selected by running the system under emulation
(build full_x86-eng, then launch emulator-x86), and correspond to
operations that are in use when using the system's typical UI features.

This makes it much more responsive and amenable to testing most
applications, at least those that don't use OpenGL ES heavily.

Note that HW OpenGLES emulation is under completion and should solve this
problem entirely, though is not there yet.

Change-Id: I9c73ba21ad158d6cc5532fabe7ed2419e00ecb3f
2011-04-16 13:13:58 +02:00
Mike Lockwood
e4bcf83057 am d37e0840: Merge "In serial, skip over port as well if numbers found after colon."
* commit 'd37e0840d75ef133083181f9f95dff9aa46a1b16':
  In serial, skip over port as well if numbers found after colon.
2011-04-06 07:55:00 -07:00
Mike Lockwood
d37e0840d7 Merge "In serial, skip over port as well if numbers found after colon." 2011-04-06 07:25:31 -07:00
Terence Haddock
e994f18c53 In serial, skip over port as well if numbers found after colon.
Change-Id: Icd45f570a9527790eb0cd614a3f77da1a72375b1
2011-04-06 16:18:25 +02:00
Jeff Hamilton
65475f89e1 am 336bc321: Make the NFC UID forward compatible.
* commit '336bc321a6e978a273098148e13a82c5e7ec3be5':
  Make the NFC UID forward compatible.
2011-04-04 14:42:38 -07:00
Jeff Hamilton
336bc321a6 Make the NFC UID forward compatible.
Change-Id: Icfa302c22151b3d722ad0da7e58806f74730e1a3
2011-04-01 13:43:01 -05:00
David Krause
913eb8bf87 Enlarge USB bulk transfer size for faster downloads
The default USB transfer bulk is fixed as 4096 in fastboot util code for
Windows and Linux. Enlarging the bulk size can greatly improve the image
download speed via USB.

For Windows, adjust the max bulk size to 1MB to maximize the USB transfer
speed. With this change, the USB transfer speed can be doubled to 20MB/s.

For Linux, adjust the max bulk size to 16384 to maximize the USB transfer
speed according to MAX_USBFS_BUFFER_SIZE definition in drivers/usb/core/devio.c.

For OSX, the maxLenToSend is already 1MB in code.

Change-Id: If6af8c6301f6f6c2ef345e37241706f16d8f5cda
2011-03-28 11:45:21 -05:00
Jeff Hamilton
be61f39a6b am a6a36c0b: Update the value for the NFC shared UID.
* commit 'a6a36c0b799b84d06b695027d205f21d13a3275b':
  Update the value for the NFC shared UID.
2011-03-24 20:23:35 -07:00
Jeff Hamilton
a6a36c0b79 Update the value for the NFC shared UID.
Change-Id: I47edf39dbdf2ebd41f44ca69aac250d8991dec4c
2011-03-24 21:40:43 -05:00
Brad Fitzpatrick
cb1e616e3c am 7c556549: Merge changes Icdefb5ff,Icd7f5f03
* commit '7c556549079dbcc3f6f7ef4376978cd8c598aa62':
  Fix potential race introduced in Icd7f5f03
  SocketClient: add optional reference counting
2011-03-23 12:04:31 -07:00
Brad Fitzpatrick
a14da5b1e5 am 499b45a3: Merge "libsysutils: Fix a file descriptor leak."
* commit '499b45a3597bc2434bcc0974660470192ab4ff06':
  libsysutils: Fix a file descriptor leak.
2011-03-23 12:04:30 -07:00
Brad Fitzpatrick
fdb915d256 am 4593e0a7: Merge "libsysutils: Fix race condition in SocketListener thread."
* commit '4593e0a7645ba5d848c0bf19d30f57b52fd305b1':
  libsysutils: Fix race condition in SocketListener thread.
2011-03-23 12:04:28 -07:00
Brad Fitzpatrick
df42469121 am 0e59123a: Merge "libsysutils: Handle EINTR in SocketClient::sendData()"
* commit '0e59123adad22e1dac03e972ea37361056bb382c':
  libsysutils: Handle EINTR in SocketClient::sendData()
2011-03-23 12:04:25 -07:00
Brad Fitzpatrick
7c55654907 Merge changes Icdefb5ff,Icd7f5f03
* changes:
  Fix potential race introduced in Icd7f5f03
  SocketClient: add optional reference counting
2011-03-23 11:57:49 -07:00
Brad Fitzpatrick
499b45a359 Merge "libsysutils: Fix a file descriptor leak." 2011-03-23 11:57:30 -07:00