Commit graph

2177 commits

Author SHA1 Message Date
Kenny Root
90749774ed Use pread64/pwrite64 instead of pread/pwrite
>2GB files were failing strangely when pread was used instead of
pread64. Also writing to files should use pwrite64 in case they grow
over 2GB.

Bug: 3205336
Change-Id: I0c9619de35680093d7777ca132ce488eae502216
2011-01-11 16:05:10 -08:00
Jean-Baptiste Queru
f217995c2f am 2dfe3970: am 55dc9744: am cdeba125: Merge "Assembly coded android_memset16 and android_memset32"
* commit '2dfe3970797ed772e5ad09cb2023bc62fbeb293d':
  Assembly coded android_memset16 and android_memset32
2011-01-11 15:19:41 -08:00
Jean-Baptiste Queru
67b73f8af8 am d3049ec8: am f5cb0a13: am fc0b4ff1: Merge "init: Fix parser line numbering"
* commit 'd3049ec8b871cf6dcaa326653feddeb665123a49':
  init: Fix parser line numbering
2011-01-11 15:19:39 -08:00
Jean-Baptiste Queru
2dfe397079 am 55dc9744: am cdeba125: Merge "Assembly coded android_memset16 and android_memset32"
* commit '55dc9744c9a4e6805a27da5dd8619f27736dd8e6':
  Assembly coded android_memset16 and android_memset32
2011-01-11 14:56:05 -08:00
Jean-Baptiste Queru
d3049ec8b8 am f5cb0a13: am fc0b4ff1: Merge "init: Fix parser line numbering"
* commit 'f5cb0a138528144f3bb1cf6bbcb3c4e4ad5e9dc9':
  init: Fix parser line numbering
2011-01-11 14:56:01 -08:00
Gloria Wang
62a0632258 am a44aca65: (-s ours) Temporarily disable the drm service. do not merge
* commit 'a44aca6580b6f39459195275f4631682410aae4b':
  Temporarily disable the drm service. do not merge
2011-01-11 13:36:47 -08:00
Ken Sumrall
f3c42b6ee4 Move rild to the core class.
Changes in init.stingray.rc now prevent rild from making sockets
or named pipes on /data.  Now that rild no longer prevents /data
from being unmounted, we can put it in the core class, which doesn't
restart when we enable encryption.  This speeds up the boot by 20+
seconds.

Change-Id: I71c426dab1b725e401116234167d41c7ccd958c1
2011-01-10 19:00:49 -08:00
Gloria Wang
a44aca6580 Temporarily disable the drm service. do not merge
Change-Id: I5cb04a9c2cc5b95443c6c0ea77132a4102ca47fc
2011-01-10 17:33:25 -08:00
Iliyan Malchev
1cdd11c528 Merge "system/core: delete an old patch file" 2011-01-10 13:03:04 -08:00
Iliyan Malchev
e30dd2e1d1 system/core: delete an old patch file
Change-Id: Icb47b08fcca2c85ac4b92a6cd12429f3f0e0526a
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-01-10 12:59:10 -08:00
Jean-Baptiste Queru
c9ba230ae8 am d66aa916: Merge changes Ife2dd406,I1ac481a2 into honeycomb
* commit 'd66aa9162324ba263049d983e104756629c7af21':
  Assembly coded android_memset16 and android_memset32
  init: Fix parser line numbering
2011-01-10 09:43:26 -08:00
Jean-Baptiste Queru
d66aa91623 Merge changes Ife2dd406,I1ac481a2 into honeycomb
* changes:
  Assembly coded android_memset16 and android_memset32
  init: Fix parser line numbering
2011-01-10 09:40:14 -08:00
Mike Lockwood
48b911c573 am af7bdc64: Add separate permission and group for access to MTP USB driver
* commit 'af7bdc646088e3112052f4fd35061bb720393287':
  Add separate permission and group for access to MTP USB driver
2011-01-10 09:27:56 -08:00
Mike Lockwood
af7bdc6460 Add separate permission and group for access to MTP USB driver
Since the "usb" group and ACCESS_USB permission will be used by regular apps
to access USB devices in host mode, we need a separate permission for the
device side MTP driver.

Change-Id: Ibb546b8726d61e041fc7c273f71929624ad1575b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-10 08:22:30 -05:00
David 'Digit' Turner
73334cfab1 Merge "adb: improve debug traces readability." 2011-01-10 03:37:32 -08:00
David 'Digit' Turner
318f00c043 Merge "toolbox: make getprop print a sorted list of properties" 2011-01-10 03:37:19 -08:00
Wink Saville
1d504eeb50 Revert "Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet"
This reverts commit 8418ac8ba5.
2011-01-09 12:22:57 -08:00
Mike Lockwood
9315c4bed6 am b596608f: adb: Increase device descriptor buffer size in Linux host USB support
* commit 'b596608f098937049fd98c5896cf72ebbf3584ae':
  adb: Increase device descriptor buffer size in Linux host USB support
2011-01-08 13:14:13 -08:00
David 'Digit' Turner
a8d1afb3e9 toolbox: make getprop print a sorted list of properties
This patch also factors out the dynarray_t/strlist_t code
from ls.c and moves it to dynarray.[hc].

Change-Id: Ifae2b364d7c2733aad5551ad3c78ae72f8ac31f4
2011-01-08 12:22:08 +01:00
Mike Lockwood
b596608f09 adb: Increase device descriptor buffer size in Linux host USB support
256 bytes wasn't big enough for some complicated USB configurations

Change-Id: I31f7841953d73b06958f44040f58166b159faff4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-07 23:18:14 -05:00
Jean-Baptiste Queru
55dc9744c9 am cdeba125: Merge "Assembly coded android_memset16 and android_memset32"
* commit 'cdeba1258b511b6df450221bcfb2572e5523558a':
  Assembly coded android_memset16 and android_memset32
2011-01-07 15:34:04 -08:00
Jean-Baptiste Queru
f5cb0a1385 am fc0b4ff1: Merge "init: Fix parser line numbering"
* commit 'fc0b4ff1c8675be3626510a5adfbcae507ecfa43':
  init: Fix parser line numbering
2011-01-07 15:34:03 -08:00
Gloria Wang
16209418de Merge "To remove drm service from groups of "system" and "root"." 2011-01-07 13:36:06 -08:00
Gloria Wang
60b5b408cf To remove drm service from groups of "system" and "root".
Change-Id: Ieac11c667c72465f7082baab0787dc740797049f
2011-01-07 11:46:25 -08:00
Lu, Hongjiu
bb12ac9b85 Assembly coded android_memset16 and android_memset32
Change-Id: Ife2dd406e1dcb962e5e97788c515ac96f5c52e44
2011-01-07 11:26:34 -08:00
Jean-Baptiste Queru
cdeba1258b Merge "Assembly coded android_memset16 and android_memset32" 2011-01-07 11:23:07 -08:00
Robert Greenwalt
9894bb43bd Merge "Add NETLINK_ROUTE processing to the netlink client code, so that Ethernet physical-layer up/down events can be tracked. Upper layers will use these events to enable/disable Ethernet connectivity." 2011-01-07 11:21:38 -08:00
Bruce Beare
1be6968d9d init: Fix parser line numbering
Change-Id: I1ac481a2cef749b26c73bc9e6a212e6ace7a0ae2
2011-01-07 11:19:04 -08:00
Jean-Baptiste Queru
fc0b4ff1c8 Merge "init: Fix parser line numbering" 2011-01-07 11:14:59 -08:00
Mike Lockwood
d548bfd1ea am be1def8d: libusbhost: Tweak comments.
* commit 'be1def8d43d75e280cdd75d432ddcadeaff580b1':
  libusbhost: Tweak comments.
2011-01-07 08:40:54 -08:00
Mike Lockwood
be1def8d43 libusbhost: Tweak comments.
Change-Id: I45fdba7a94438f7c15fbca5dd65f07df9b522fb3
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-07 11:31:58 -05:00
Mike Lockwood
ca6fe5fd79 am e533c5f1: libusbhost: Support for multiple pending requests on a single endpoint
* commit 'e533c5f1005e8913f577d2aeac5a26f88f55a249':
  libusbhost: Support for multiple pending requests on a single endpoint
2011-01-07 00:08:41 -08:00
David 'Digit' Turner
0fb9a1cff4 Merge "rootdir: Fix system emulation startup." 2011-01-06 13:13:35 -08:00
Brad Fitzpatrick
b9634d05cf Permit 0 length writes.
Change-Id: I087d0074c8d9e13ce814187475966da94f693fc0
2011-01-06 11:16:15 -08:00
Brad Fitzpatrick
a2a1f3149f Let SocketClient users write binary data to clients.
This is a dependency for the DNS proxy CLs.

This CL also adds a new socket for the netd process to inherit which
is owned by the inet group.  (so only apps with the INTERNET
permission can use the DNS proxy...)

Change-Id: I8a51924e0ed56c6066f77e6f1b02d39bdadac51e
2011-01-06 11:09:55 -08:00
Mike Lockwood
e533c5f100 libusbhost: Support for multiple pending requests on a single endpoint
Add new usb_request struct to replace usb_endpoint, which is no longer needed.

Change-Id: Ia3637b3431a3597caced41bfec677ef0b044a453
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-06 09:21:13 -05:00
David 'Digit' Turner
730ff3b786 adb: improve debug traces readability.
This patch makes the traces easier to read. For example transports are
displayed by name/serial instead of their hex address.

Change-Id: I7e8df44ddbec19754d63d989bd56485998b4627b
2011-01-06 14:11:07 +01:00
David 'Digit' Turner
1f2565ca08 rootdir: Fix system emulation startup.
This fixes the goldfish-specific config scripts used by init and ueventd
to properly setup the system under emulation. This fixes a lot of broken-ess
introduced by recent permission changes in the system.

Note that there are still several problems after this patch is applied, but
at least it becomes possible to get an adb connection to the emulated system,

Change-Id: I1e8f5828b4d5cbb3a4338878df875dc718276b38
2011-01-06 14:04:12 +01:00
Colin Cross
90d07ae2b1 Merge "uptime: Use clock_gettime to get monotonic time" 2011-01-05 17:16:59 -08:00
Colin Cross
9d6d030f83 uptime: Use clock_gettime to get monotonic time
The first field in /proc/uptime is bootbased time, not monotonic
time.  If the kernel tracks bootbased time correctly, it counts
elapsed run time as well as sleep time, which is the same as the
elapsed time in the android alarm driver, and sleep time is
always returned as 0.

Use clock_gettime(CLOCK_MONOTONIC) instead, which will return
elapsed run time not counting sleep time on all platforms.

Change-Id: I28a22e8c93d78f62666ee8c877c7c6718a2b640a
2011-01-05 15:22:09 -08:00
Paul Eastham
6b8caf0bb0 Merge "Fix refcounting in the rename case." 2011-01-05 00:04:00 -08:00
Paul Eastham
77085c570e Fix refcounting in the rename case.
Change-Id: I59dbac8c92bda450e6d89f7f180241fd4b5bbae6
2011-01-04 21:06:03 -08:00
Colin Cross
8bc6fb3433 am bf10797e: am f7ca6040: Fix infinite loop in init when debugging is turned off
* commit 'bf10797e538f9fa252d72710bd5ecf0ef1f6f3e0':
  Fix infinite loop in init when debugging is turned off
2011-01-04 18:50:51 -08:00
Colin Cross
bf10797e53 am f7ca6040: Fix infinite loop in init when debugging is turned off
* commit 'f7ca6040616f672a6f0039d55e39c610b7c1cf91':
  Fix infinite loop in init when debugging is turned off
2011-01-04 18:49:07 -08:00
Colin Cross
f7ca604061 Fix infinite loop in init when debugging is turned off
If a keychord is pressed when debugging is turned off, the main
event poll in init will return an event on the keychord fd,
but handle_keychord never reads the data.  Once this happens,
the poll will always return immediately, and init enters an
infinite loop.  Fix it by always reading from the keychord fd,
but only handling the returned keychord if debugging is
enabled.

Change-Id: Ie4efa98247d3cc978d275dc8a4516b32aa710278
2011-01-04 18:21:22 -08:00
Bruce Beare
d7a295221a Assembly coded android_memset16 and android_memset32
Change-Id: Ifa05006df7ce7364d18eb10d64a818d619664475
Author: Lu, Hongjiu <hongjiu.lu@intel.com>
Signed-off-by: Mark Gross <mark.gross@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-01-02 17:00:09 -08:00
Bruce Beare
378083a3f0 init: Fix parser line numbering
Change-Id: I3885dd7d631e7330d92780df822b3ee1a8d0350b
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
2011-01-02 17:00:08 -08:00
Jean-Baptiste Queru
512405a421 am f1c2a735: Merge "fastboot: Add help message for continue command"
* commit 'f1c2a7352f19cf729f91bf2559fc93ef12c74dca':
  fastboot: Add help message for continue command
2010-12-29 16:01:55 -08:00
Jean-Baptiste Queru
f1c2a7352f Merge "fastboot: Add help message for continue command" 2010-12-29 13:12:10 -08:00
Bruce Beare
24ce4bc8d7 fastboot: Add help message for continue command
Change-Id: I578b1b7c2d74d09d44ce9100bfe582aaa25c31b1
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2010-12-29 13:11:53 -08:00