Commit graph

10749 commits

Author SHA1 Message Date
Doug Zongker
8e49ae4bb8 add sideload-host mode to adb
The sideload-host mode turns the host into a server capable of sending
the device various pieces of the file on request, rather than
downloading it all in one transfer.  It's used to support sideloading
OTA packages to devices without the need for them to hold the whole
package in RAM.

If the connected device doesn't support sideload-host mode, we fall
back to the older sideload connection.

(cherry-picked from commit 71fe584a1a)

Change-Id: I5adaedd8243dc3b76414bba0149879ca2bbf35fa
2014-09-16 10:27:38 -07:00
Mark Salyzyn
a9d789dd8a am a3e53f1d: Merge "logcat: -v format defaults to threadtime"
* commit 'a3e53f1dfe2686e6f0bad75a587f779d955427b3':
  logcat: -v format defaults to threadtime
2014-09-16 17:06:00 +00:00
Mark Salyzyn
a3e53f1dfe Merge "logcat: -v format defaults to threadtime" 2014-09-16 16:53:39 +00:00
Mark Salyzyn
649fc605f8 logcat: -v format defaults to threadtime
Change-Id: Iafddf83b0507a667e0395d38ec9afaed67319018
2014-09-16 09:27:37 -07:00
Christopher Ferris
ff649ea5ab Use the correct fuse_init_out structure size.
Kernel 2.6.16 is the first stable kernel with struct fuse_init_out
defined (fuse version 7.6). The structure is the same from 7.6 through
7.22. Beginning with 7.23, the structure increased in size and added
new parameters.

If the kernel only works on minor revs older than or equal to 22,
then use the older structure size since this code only uses the 7.22
version of the structure.

Change-Id: If2507a02ad674fcf02869a325221339ae1ace64d
2014-09-15 18:29:47 -07:00
Esteban de la Canal
a5ab96eb50 74602: Fixes adb not seeing connected devices on Mac.
Every alternate time an adb server was started already connected devices were
not being seen. This was caused by opened usb connections being "stalled".
See this thread for more information: http://lists.apple.com/archives/usb/2011/Jun/msg00050.html

Change-Id: Ic35b7a66c3f14a837b960066557f44e105609dcb
Fixes: https://code.google.com/p/android/issues/detail?id=74602
2014-09-15 15:46:13 -07:00
Daniel Rosenberg
015d73ff4e fastboot: Remove tos from flashall
bug: 17498561
Change-Id: I0190c1a5ac635375404799c040e4be523fa29622
Signed-off-by: Daniel Rosenberg <drosen@google.com>
2014-09-15 13:44:07 -07:00
Christopher Ferris
01401bbc37 am f253fd07: am 17077a28: Merge "Use the correct debuggerd given the tid."
* commit 'f253fd079b0768e8c90a616d6dda47652ca4f646':
  Use the correct debuggerd given the tid.
2014-09-14 00:34:40 +00:00
Christopher Ferris
f253fd079b am 17077a28: Merge "Use the correct debuggerd given the tid."
* commit '17077a287c2260a35ea99e19b0308e479edc6cbb':
  Use the correct debuggerd given the tid.
2014-09-14 00:26:34 +00:00
Christopher Ferris
17077a287c Merge "Use the correct debuggerd given the tid." 2014-09-14 00:15:27 +00:00
Christopher Ferris
6bcc4acc6f Use the correct debuggerd given the tid.
On 64 bit systems, calling dump_backtrace_to_file will automatically
call debuggerd64. If the process to dump is actually 32 bit, this
creates an unrecognizable dump backtrace. Modify the code to check the
type of the process and connect to the appropriate debuggerd process.

This change refactors both the tombstone and backtrace functionality to
allow both to work properly on 64 bit systems when dealing with mixed
processes.

Bug: 17487122

(cherry picked from commit a9fa7b87f1)

Change-Id: I3c9e0212c8720877a6af092071a3695df2a36df8
2014-09-13 16:22:17 -07:00
Christopher Ferris
07bb3f1e0b am 07dda6b5: Merge "Use the correct debuggerd given the tid." into lmp-dev
* commit '07dda6b57c6a476177b68ad42966f24cbbdb04c1':
  Use the correct debuggerd given the tid.
2014-09-13 22:54:00 +00:00
Christopher Ferris
07dda6b57c Merge "Use the correct debuggerd given the tid." into lmp-dev 2014-09-13 22:31:55 +00:00
Christopher Ferris
a9fa7b87f1 Use the correct debuggerd given the tid.
On 64 bit systems, calling dump_backtrace_to_file will automatically
call debuggerd64. If the process to dump is actually 32 bit, this
creates an unrecognizable dump backtrace. Modify the code to check the
type of the process and connect to the appropriate debuggerd process.

This change refactors both the tombstone and backtrace functionality to
allow both to work properly on 64 bit systems when dealing with mixed
processes.

Bug: 17487122
Change-Id: Icf123a6f4508b1aeec073663aa1a0ceae5380aa1
2014-09-12 20:12:11 -07:00
Chih-Hung Hsieh
bb7f515ad3 am b51e3dbd: am 6e9798f2: Merge "logd: fix format-extra-args warning."
* commit 'b51e3dbdd8d95f595c70dd244b5f2f4f23ef20cd':
  logd: fix format-extra-args warning.
2014-09-13 00:42:14 +00:00
Chih-Hung Hsieh
b51e3dbdd8 am 6e9798f2: Merge "logd: fix format-extra-args warning."
* commit '6e9798f2e44c82b0cd8257f96b7d23285a7edc67':
  logd: fix format-extra-args warning.
2014-09-13 00:24:57 +00:00
Chih-Hung Hsieh
6e9798f2e4 Merge "logd: fix format-extra-args warning." 2014-09-13 00:15:30 +00:00
Chih-Hung Hsieh
634118e261 logd: fix format-extra-args warning.
Bug: 17409250
Change-Id: Id50ebb57754b12d69ed605d0e2901b8e05c607c6
2014-09-12 23:37:42 +00:00
Esteban de la Canal
da5b2d67fa am 99bb69c1: am f41ee3d5: Merge "74602: Fixes adb not seeing connected devices on Mac."
* commit '99bb69c1cee678382bf5e48962aa444469b3310e':
  74602: Fixes adb not seeing connected devices on Mac.
2014-09-12 21:43:43 +00:00
Esteban de la Canal
99bb69c1ce am f41ee3d5: Merge "74602: Fixes adb not seeing connected devices on Mac."
* commit 'f41ee3d5a1f236b0770d1ebd7068606aea7288bd':
  74602: Fixes adb not seeing connected devices on Mac.
2014-09-12 21:26:49 +00:00
Esteban de la Canal
f41ee3d5a1 Merge "74602: Fixes adb not seeing connected devices on Mac." 2014-09-12 21:11:14 +00:00
Dan Albert
fb1b6daca8 am 522c1d34: am e18ed89e: Merge "Remove makefile cruft."
* commit '522c1d340b6c1742d3e47aad27b974e43fad4bc2':
  Remove makefile cruft.
2014-09-12 20:08:49 +00:00
Dmitriy Ivanov
c8b4bb0660 am 209dc083: am 870cac61: Merge "Add -std=gnu++11 to test cflags"
* commit '209dc083899d45b56627953335ba22029cd96c46':
  Add -std=gnu++11 to test cflags
2014-09-12 20:08:48 +00:00
Elliott Hughes
8ac097a036 am e4bf208c: am 082a52b5: Merge "Move libutils over to pthread_gettid_np."
* commit 'e4bf208ce8d893634a0f6f63ce34ec6498934d05':
  Move libutils over to pthread_gettid_np.
2014-09-12 20:08:48 +00:00
Mark Salyzyn
abc75368a8 am e70851f8: am f9b9693b: Merge "liblog: logcat: colored output."
* commit 'e70851f8a8aa4c9dfaa442abf812c283ba8d8b6f':
  liblog: logcat: colored output.
2014-09-12 20:08:47 +00:00
Paul Lawrence
fdf93c0631 am cf234dc7: Preserve errno from fsmgr_do_mount
* commit 'cf234dc7e081ac4063c3c5ddcdd4da40c82d51cb':
  Preserve errno from fsmgr_do_mount
2014-09-12 19:58:47 +00:00
Dan Albert
522c1d340b am e18ed89e: Merge "Remove makefile cruft."
* commit 'e18ed89eae41f9be0f4ddfc77a3c4d68c901925f':
  Remove makefile cruft.
2014-09-12 18:49:05 +00:00
Dmitriy Ivanov
209dc08389 am 870cac61: Merge "Add -std=gnu++11 to test cflags"
* commit '870cac615884f9c843407b8bb442eb4d6714f6e2':
  Add -std=gnu++11 to test cflags
2014-09-12 18:49:00 +00:00
Elliott Hughes
e4bf208ce8 am 082a52b5: Merge "Move libutils over to pthread_gettid_np."
* commit '082a52b57fb6d93186338062c179ffadd871f3c6':
  Move libutils over to pthread_gettid_np.
2014-09-12 18:48:59 +00:00
Mark Salyzyn
e70851f8a8 am f9b9693b: Merge "liblog: logcat: colored output."
* commit 'f9b9693bab9d6d614ac0da12734dca7bab487c44':
  liblog: logcat: colored output.
2014-09-12 18:48:58 +00:00
Dan Albert
e18ed89eae Merge "Remove makefile cruft." 2014-09-12 18:07:26 +00:00
Dmitriy Ivanov
870cac6158 Merge "Add -std=gnu++11 to test cflags" 2014-09-12 17:43:33 +00:00
Dmitriy Ivanov
5f68087efe Add -std=gnu++11 to test cflags
Change-Id: Ife92cea10021658eba6e22a7ebc9e31f3d194a25
2014-09-12 10:39:12 -07:00
Dan Albert
fbb8db2e2a Remove makefile cruft.
Don't manually include stlport, and don't use private bionic headers.

Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
2014-09-12 10:36:26 -07:00
Elliott Hughes
082a52b57f Merge "Move libutils over to pthread_gettid_np." 2014-09-12 17:22:58 +00:00
Elliott Hughes
7bf5f209ce Move libutils over to pthread_gettid_np.
Bug: 17476168
Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
2014-09-12 10:19:08 -07:00
Mark Salyzyn
f9b9693bab Merge "liblog: logcat: colored output." 2014-09-12 14:27:49 +00:00
Jeff Brown
55fbad69a1 am c3e6eb21: Merge "Move ABI: line below header when dumping stacks." into lmp-dev
* commit 'c3e6eb21b58ae3067ed03358687d1edb851f2abf':
  Move ABI: line below header when dumping stacks.
2014-09-12 05:43:08 +00:00
Pierre Zurek
ead88fca6e liblog: logcat: colored output.
This patch adds a new '-v color' option to logcat so that the output is
colored similar to the ones in DDMS. Simply type "adb logcat -v color"
to use it. Works well with bash in gnome-terminal. NO GUARANTEE IT WILL
WORK ON A NON xterm STYLE TERMINAL.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Change-Id: I9189c5f27fed991579edbcbc6834536eb8112152
2014-09-11 19:04:17 -07:00
Paul Lawrence
cf234dc7e0 Preserve errno from fsmgr_do_mount
Bug: 17358530
Change-Id: I4cd7403c0b7c4f878d6afa5199f998e6f614adb9
2014-09-11 17:31:49 -07:00
Jeff Brown
c3e6eb21b5 Merge "Move ABI: line below header when dumping stacks." into lmp-dev 2014-09-11 22:30:23 +00:00
Jeff Brown
9b12d53b1a Move ABI: line below header when dumping stacks.
Bug: 17474152
Change-Id: I66b6e7e1cbb004f7a1915a2c1515df6555fe176f
2014-09-11 14:20:04 -07:00
Esteban de la Canal
9dd83dc96e 74602: Fixes adb not seeing connected devices on Mac.
Every alternate time an adb server was started already connected devices were
not being seen. This was caused by opened usb connections being "stalled".
See this thread for more information: http://lists.apple.com/archives/usb/2011/Jun/msg00050.html

Change-Id: Ic35b7a66c3f14a837b960066557f44e105609dcb
Fixes: https://code.google.com/p/android/issues/detail?id=74602
2014-09-11 11:36:50 -07:00
Jon Eklund
5c9f25da9c am fcfa8640: audio.h: Add "safe speaker" device for limited-loudness use cases
* commit 'fcfa86403e206e2caa519299939480cb45deb8ba':
  audio.h: Add "safe speaker" device for limited-loudness use cases
2014-09-11 18:30:51 +00:00
Dan Albert
dccbb07dfb am a66532e7: am 91baad56: Merge "Fix some clang compilation issues."
* commit 'a66532e73a9c8205002482477f1bf53366d15f38':
  Fix some clang compilation issues.
2014-09-11 17:48:39 +00:00
Dan Albert
a66532e73a am 91baad56: Merge "Fix some clang compilation issues."
* commit '91baad56f39fb77a4d07a0930c8743ebc61d7c0a':
  Fix some clang compilation issues.
2014-09-11 17:31:53 +00:00
Dan Albert
91baad56f3 Merge "Fix some clang compilation issues." 2014-09-11 17:17:56 +00:00
Dan Albert
949aa23898 Fix some clang compilation issues.
Use expected inline behavior with clang.

GCC defaults to -std=gnu90, giving C89 inline semantics with GNU
extensions. Clang defaults to C99. Explicitly use gnu90.

Mark an unused parameter as __unused.

Fix some incorrect casts.

Change-Id: I05b95585d5e3688eda71769b63b6b8a9237bcaf4
2014-09-11 17:17:32 +00:00
Jon Eklund
fcfa86403e audio.h: Add "safe speaker" device for limited-loudness use cases
Bug: 17319721
Change-Id: Ie1af5b73258f8a0009c3bc3cecb3e0e8b2262ed7
2014-09-10 15:51:48 -07:00
Elliott Hughes
8fa75e44f1 am 6608a46c: am c4ff0389: Merge "adb: Add USB vendor ID for Alco Digital Devices Limited"
* commit '6608a46c59abd72bd42a5104937fb276b6b0ccbd':
  adb: Add USB vendor ID for Alco Digital Devices Limited
2014-09-10 18:26:35 +00:00