Commit graph

2790 commits

Author SHA1 Message Date
Mike Lockwood
693e78b9b6 Merge "Fix hang after end of backup" 2011-06-21 16:44:32 -07:00
Christopher Tate
10f129ca8e Fix hang after end of backup
The buggy behavior was that the 'adb backup ....' host command line
invocation would hang forever, even after the backup finished and
the forked device-side subprocess had been reaped.  The reason for
this is that the device adbd end of the socketpair used to send
the data back from the forked subprocess was still stuck readable
even after the remote end of it had been closed.

With this patch, the thread whose job it is to waitpid() in order
to harvest the forked child process also closes the local (adbd)
end of the socketpair.  This makes the fdevent logic notice that
the socket is dead, at which point it cleans up everything including
the communication back to the host.

Change-Id: I90e7e4e5db36c5a6f7363708b29a6d2c56d1250e
2011-06-21 16:05:17 -07:00
Jean-Baptiste Queru
4d557db514 am e1259d63: am 202729a0: am 14c2823a: Merge "add strutils"
* commit 'e1259d633c084bb7516b76a859c6acae20b06aee':
  add strutils
2011-06-21 15:26:44 -07:00
Jean-Baptiste Queru
ef8fd9c4a4 am b06dfe14: am 4c78d862: am a08f7ae3: Merge "tweak for forward-compatibility"
* commit 'b06dfe142505df7efc729455f30ae73fa3cf6fae':
  tweak for forward-compatibility
2011-06-21 15:26:33 -07:00
Mike Lockwood
b0bd6024e3 adb: Update version to 1.0.28
Change-Id: Ib8a98d3840abf24cf062112aca7ce462a0f44bc5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-21 17:26:11 -04:00
Christopher Tate
5b811fa5dd Tidy up the end-of-data handling in backup
* Increase transfer buffer size to 32K
* Add logging about error conditions and fd teardown
* Pass the fd number as a command line option to the 'bu' subprocess
* Properly harvest the 'bu' subprocess after it's done

Change-Id: Id44dde25778ecf43c5604fd9d01d726ba58861e5
2011-06-20 16:19:42 -07:00
Jean-Baptiste Queru
e1259d633c am 202729a0: am 14c2823a: Merge "add strutils"
* commit '202729a0c1d966345dcbfa21db7d886b5d1e6200':
  add strutils
2011-06-20 09:10:49 -07:00
Jean-Baptiste Queru
b06dfe1425 am 4c78d862: am a08f7ae3: Merge "tweak for forward-compatibility"
* commit '4c78d8620514fe1a704872cba66bc1b14d4e2a66':
  tweak for forward-compatibility
2011-06-20 09:10:23 -07:00
Jean-Baptiste Queru
202729a0c1 am 14c2823a: Merge "add strutils"
* commit '14c2823a631b444687b9d26b7baf4c864091c07b':
  add strutils
2011-06-20 09:04:35 -07:00
Jean-Baptiste Queru
4c78d86205 am a08f7ae3: Merge "tweak for forward-compatibility"
* commit 'a08f7ae3c10f4874194fb48ff549e846e39217b7':
  tweak for forward-compatibility
2011-06-20 09:04:33 -07:00
Jean-Baptiste Queru
14c2823a63 Merge "add strutils" 2011-06-18 11:56:48 -07:00
Jean-Baptiste Queru
89790b8929 add strutils
Change-Id: If5938ecd1dfd7f35e326573d10788bacaf3e2383
2011-06-18 11:53:34 -07:00
Jean-Baptiste Queru
a08f7ae3c1 Merge "tweak for forward-compatibility" 2011-06-18 11:21:59 -07:00
Jean-Baptiste Queru
b6c15de82a tweak for forward-compatibility
Change-Id: I1896be16622b452a3652412af3c64f8c550f71d0
2011-06-18 10:41:31 -07:00
Mike Lockwood
352dfdfaea init.rc: Changes for new USB gadget drivers
Change-Id: I68fcf167c9fc71bb5f44793648a35d3181fd36d7
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-17 15:53:58 -04:00
Eric Laurent
da38224875 Fixed some audio helper functions
Make sure audio_is_valid_format() is true only
for formats supported by AudioTrack and AudioRecord.
Generalized audio_is_linear_pcm().
Added audio_bytes_per_sample() function.

Change-Id: If588af6c08f09796ab04bccbbd6e720f1e914412
2011-06-16 21:13:43 -07:00
Jean-Baptiste Queru
9f7ad372b3 am 88fd7a50: am fa3dfff8: Move mksh to external/mksh
* commit '88fd7a5082ebf964e9470a5f856081b27d887a28':
  Move mksh to external/mksh
2011-06-16 12:49:09 -07:00
Jean-Baptiste Queru
88fd7a5082 am fa3dfff8: Move mksh to external/mksh
* commit 'fa3dfff83b29137d2984c9776a8a64b09a758bde':
  Move mksh to external/mksh
2011-06-16 12:27:19 -07:00
Jean-Baptiste Queru
fa3dfff83b Move mksh to external/mksh
Change-Id: I836b8764320bd498c335d97267d8b47acb97514d
2011-06-16 10:06:45 -07:00
Kenny Root
b0a8aae3ed Use adb_sleep_ms for Cygwin compat
Change-Id: Iabb2cddfb6740a35e4b6b1563a81b64972c29453
2011-06-15 20:03:49 -07:00
Jeff Brown
f8754337d8 Enhance getevent to print event labels.
Added -l argument to print labels for event types, codes and values.
Added -i argument to print all device info.
Added support for printing input properties.

Change-Id: I3cacb716dbc38f50217b9dfc24ba44d08f352603
2011-06-15 17:44:52 -07:00
David 'Digit' Turner
bb5da05806 pixelflinger: back-port AOSP master version.
Pixelflinger doesn't have an x86 JIT, and the generic scanline()
routine is _extremely_ slow. This makes UI performance very slow.
when running full_x86-eng under emulation.

This patch back-ports the AOSP master pixelflinger into the
gingerbread branch. This essentially contains more than a dozen
new "shortcut" scanline functions used to speed-up the pixel
operations that are mostly used with the normal widget UI.

GL applications (e.g. Gallery3D) will still be very slow, but
this makes the home screen, app launcher, settings and many
simple applications work with very usable performance.

Change-Id: Ia64d8dd2e46820f07e98c4c9a4ec831b59fc61e4
2011-06-15 15:09:47 +02:00
Jun Nakajima
0f1b4f37c1 x86: Add vold.fstab to mount the SD card
Orig-Change-Id: Ie1f70a22dd4e27e8ea956d5e627877d1e2379b95
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare
c8bb0ab714 Assembly coded android_memset16 and android_memset32
Orig-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-06-15 15:09:46 +02:00
Bruce Beare
7b0bad30bf debuggerd: IA version
Orig-Change-Id: I0c0d9c2d7e476b8d117aaf505a9480a47c0b5c05
Signed-off-by: Lei Li <lei.l.li@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare
9e39338296 debuggerd: Reorganize to facilitate IA commit
Orig-Change-Id: I22dd02daf617672fc0a8ba7e396017c57f17e26e
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare
160c0319f6 Set the modes for rc.* files in /system/etc
Orig-Change-Id: I0897897cdffa66afa4f818f7ebcf0a9b70c517ea
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Bruce Beare
54dc501352 DBUS is not fully implemented. Disable it for now
Orig-Change-Id: I2286064bffc7e9fa7381aa04d5d20abf11c3aab7
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
2011-06-15 15:09:46 +02:00
Meng Hu
50257cf18b debuggerd: Show function names in tombstone backtraces
This change enables debuggerd to provide backtraces with function
names in tombstone files and log messages.  It does this by reading
the image file that the address is found in, and parsing the dynamic
symbol table to try to extract the symbol corresponding to the given
address.

This works best when "-Wl,-export-dynamic" is added to the LDFLAGS
of each library and executable, because this will cause all symbols
to be added to the dynamic symbol table.  If this flag is not present,
it will still work, but it will only be able to identify functions
which are part of the external API of the library/executable.

Orig-Change-Id: I618baaff9ed9143b7d1a1f302224e9f21d2b0626
2011-06-15 15:09:46 +02:00
Tom Marlin
5f05f83075 am 55b8a474: (-s ours) am 0ec54854: am 774abe7b: Cherry-pick 49f1857d from master. do not merge.
* commit '55b8a474c3bbb67bfd8a495409254337f3d1d59c':
  Cherry-pick 49f1857d from master. do not merge.
2011-06-14 15:22:28 -07:00
Tom Marlin
55b8a474c3 am 0ec54854: am 774abe7b: Cherry-pick 49f1857d from master. do not merge.
* commit '0ec5485484e0667fb48bee32197b2c2e0669adf4':
  Cherry-pick 49f1857d from master. do not merge.
2011-06-14 14:33:38 -07:00
Tom Marlin
0ec5485484 am 774abe7b: Cherry-pick 49f1857d from master. do not merge.
* commit '774abe7b7e463436107545250aa573c99e246a86':
  Cherry-pick 49f1857d from master. do not merge.
2011-06-14 14:28:57 -07:00
Tom Marlin
774abe7b7e Cherry-pick 49f1857d from master. do not merge.
Fixed adb crash due to accessing freed memory

Reset peers to NULL after closing them down. This prevents
other code from attempting to access that freed memory
(which prevents crashes). Previously, it left pointers to
freed memory and the "if (s->peer)" guards could not block
the attempt to access that memory later. Resolves many
crashes seen while taking repeated screenshots on WinXP.

Change-Id: I2697ba09971f2e0b51ff5c5e89a6fa20ebafb2c4
2011-06-14 14:23:25 -07:00
Mike Lockwood
823e96e27e Merge "adb: kick the transport after sending the "adb root" command" 2011-06-13 21:53:38 -07:00
Dima Zavin
28e08dc581 core: move audio_policy.h here from hardware
Change-Id: I6b8c04c975e01f2502d766ed2b9353d3c83193b3
Signed-off-by: Dima Zavin <dima@android.com>
2011-06-13 17:54:33 -07:00
Mike Lockwood
d15e6ac95d adb: kick the transport after sending the "adb root" command
This is needed because the USB driver on the device no longer resets the bus
when exits and restarts.
Since the host side adb no longer detects that adbd has restarted we need
to reset the connection on the host side now.

Change-Id: I1a8eabd292e8b45c34fa07a8a8b8c609cc15648d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-12 16:09:27 -04:00
David 'Digit' Turner
1621a6836e am 8af9ac15: am 69c2dcbb: am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit '8af9ac15bf2b8d063b3c6842769352daec3442cd':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 15:19:52 -07:00
David 'Digit' Turner
8af9ac15bf am 69c2dcbb: am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit '69c2dcbb0f2672652366e3950dea48ed4483eaa4':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 08:53:57 -07:00
David 'Digit' Turner
69c2dcbb0f am fbcb1883: run-as: Bump the size of the internal packages list buffer.
* commit 'fbcb1883df3aa913c6a530e933880095173b4624':
  run-as: Bump the size of the internal packages list buffer.
2011-06-10 08:51:35 -07:00
David 'Digit' Turner
fbcb1883df run-as: Bump the size of the internal packages list buffer.
This is a back-port of https://review.source.android.com/#change,23480
into the honeycomb-mr2 internal tree.

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: Ie7b171d3deed805a185f14f63ec03b64b2a8e1b3
2011-06-10 17:31:19 +02:00
Mike Lockwood
21a6c1c004 Merge changes I7b4e1ed1,I8a91c3f7,If78d20a5,I55431ac7
* changes:
  init: Add support for assigning system properties to system properties in init.rc
  init: Fix the init.rc import command
  init: Allow wildcards in property triggers by using * for property value
  init: Add support for writing system property value to a file in init.rc
2011-06-09 15:45:49 -07:00
Mike Lockwood
1f0bd32f90 init: Add support for assigning system properties to system properties in init.rc
For example:
    setprop sys.usb.config $persist.sys.usb.config

Change-Id: I7b4e1ed1335906b32621bd96a341b0f94bbee7f5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:54 -07:00
Mike Lockwood
f5cb5b2435 init: Fix the init.rc import command
Change-Id: I8a91c3f7d1ca31e137d9043bb7f56e4a44fb63df
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:47 -07:00
Mike Lockwood
7ba61b15ed init: Allow wildcards in property triggers by using * for property value
For example, the following trigger will fire when the sys.foo property
is set to any value:

on property:sys.foo=*
    write /data/foo hello

It is also possible to refer to the property within the trigger actions:

on property:sys.foo=*
    write /data/foo $sys.foo

Change-Id: If78d20a532f77e17aa5703d53be581ad6736cbcf
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-09 15:42:42 -07:00
Mike Lockwood
2c4d5dc415 init: Add support for writing system property value to a file in init.rc
The write command will write a property value if the value starts with a "$'

For example:
    write /sys/class/android_usb/iSerial $ro.serialno

Use double leading '$' if you need to write a string that starts with '$':

    write /data/foo $$hello

to write "$hello" to /data/foo

Change-Id: I55431ac7715a5347bb95c3a15aee97c575444dde
2011-06-09 15:42:31 -07:00
Jean-Baptiste Queru
d8222d2b86 Reconcile with gingerbread-release
Change-Id: I01d34fd2c90d381d4095b5217506a4d35034be53
2011-06-09 15:01:39 -07:00
The Android Automerger
838a24ac66 merge in gingerbread-release history after reset to gingerbread 2011-06-09 13:45:12 -07:00
Nick Kralevich
37b9fc6e7c am 4ba5a8ac: am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"
* commit '4ba5a8acba033127befd184f2f78cf0580995b07':
  Fixed adb crash due to accessing freed memory
2011-06-09 11:27:11 -07:00
Vladimir Chtchetkine
953907faa3 am 716104b4: am 771f5146: am 4c0b9e3d: Merge "Fix crash reporting on x86 platform."
* commit '716104b40df12d367cb5f649b92c6105d5978787':
  Fix crash reporting on x86 platform.
2011-06-09 11:24:17 -07:00
David 'Digit' Turner
9b5be35770 am fced5e70: am f45cd81b: am 1468cb54: run-as: Bump the size of the internal packages list buffer.
* commit 'fced5e7015aa0cf916dbd6947ad91093332056e3':
  run-as: Bump the size of the internal packages list buffer.
2011-06-09 11:24:14 -07:00