Commit graph

18690 commits

Author SHA1 Message Date
Gilad Arnold
279a033604 Merge "Fix permissions for /data/nativetest{,64}/tests.txt." am: e32cb1b14c
am: 8468b26e73

* commit '8468b26e73a984b5c0554ec972c016da71d75752':
  Fix permissions for /data/nativetest{,64}/tests.txt.
2015-11-15 06:25:56 +00:00
Gilad Arnold
8468b26e73 Merge "Fix permissions for /data/nativetest{,64}/tests.txt."
am: e32cb1b14c

* commit 'e32cb1b14cb2cfc434ade4b4ec80fc51b49c6762':
  Fix permissions for /data/nativetest{,64}/tests.txt.
2015-11-15 06:23:20 +00:00
Gilad Arnold
e32cb1b14c Merge "Fix permissions for /data/nativetest{,64}/tests.txt." 2015-11-15 06:20:09 +00:00
Gilad Arnold
1bc7888104 Fix permissions for /data/nativetest{,64}/tests.txt.
This is not an executable so we have to specifically set its permissions
accordingly.

Bug: 25668833
Change-Id: I502f69bad75b4da4fdc29eb3ebaa42a19ae04d27
2015-11-14 18:25:31 -08:00
David Pursell
c625335411 Merge "Revert "fastboot: create Transport object."" am: 44c58471e4
am: 0146f2feb6

* commit '0146f2feb608933f31c9eb1218849190d25f154e':
  Revert "fastboot: create Transport object."
2015-11-14 00:35:12 +00:00
David Pursell
0146f2feb6 Merge "Revert "fastboot: create Transport object.""
am: 44c58471e4

* commit '44c58471e4c0bf8de8c98980d268e9f5f827e253':
  Revert "fastboot: create Transport object."
2015-11-14 00:30:39 +00:00
David Pursell
44c58471e4 Merge "Revert "fastboot: create Transport object."" 2015-11-14 00:18:43 +00:00
David Pursell
c0504e1873 Revert "fastboot: create Transport object."
This broke some stuff, will look into it Monday.

This reverts commit 6f233a7799.

Change-Id: I155bc85d21fda3b0ba1e5e17839059797fb15509
2015-11-14 00:15:57 +00:00
Josh Gao
b5706b5f08 Merge "adb: don\'t pull symlinks." am: 29843cf141
am: e01de06892

* commit 'e01de068926c15d6c247a51f76218c3bff9cac1a':
  adb: don't pull symlinks.
2015-11-13 23:31:12 +00:00
Josh Gao
e01de06892 Merge "adb: don\'t pull symlinks."
am: 29843cf141

* commit '29843cf1412e849978daa0aae4bd56e43f141751':
  adb: don't pull symlinks.
2015-11-13 23:27:41 +00:00
Josh Gao
29843cf141 Merge "adb: don't pull symlinks." 2015-11-13 23:22:47 +00:00
Josh Gao
f96dc73b9f adb: don't pull symlinks.
Pulling symlinks was broken for directories, and it doesn't seem like
there's a good way to make it not broken, given that the protocol doesn't
have readlink (and we don't want to create symlinks on Windows, anyway).
The behavior for files doesn't seem to be especially useful, either.

Bug: http://b/25601283
Change-Id: Ie1d27e93dd09cbc0c178623b390041d1cb11f726
2015-11-13 15:17:02 -08:00
David Pursell
426715d3cc Merge "fastboot: create Transport object." am: f131772a79
am: 0aab246b8e

* commit '0aab246b8ebbe676a03fb54b5d78696ba75b6204':
  fastboot: create Transport object.
2015-11-13 22:56:58 +00:00
David Pursell
0aab246b8e Merge "fastboot: create Transport object."
am: f131772a79

* commit 'f131772a79f75656d9e7593268e5bdecf40ebec0':
  fastboot: create Transport object.
2015-11-13 22:53:22 +00:00
David Pursell
f131772a79 Merge "fastboot: create Transport object." 2015-11-13 22:49:08 +00:00
Daniel Rosenberg
b955d952ca Merge "Fix fastboot to not add \'-\' before suffix" am: ce24abe261
am: ec7fa7b479

* commit 'ec7fa7b479453c6fd55cf794c16202f1c78a91d9':
  Fix fastboot to not add '-' before suffix
2015-11-13 21:33:40 +00:00
Daniel Rosenberg
ec7fa7b479 Merge "Fix fastboot to not add \'-\' before suffix"
am: ce24abe261

* commit 'ce24abe261cbc9696c7ef61818153b99943d026e':
  Fix fastboot to not add '-' before suffix
2015-11-13 21:29:27 +00:00
Daniel Rosenberg
ce24abe261 Merge "Fix fastboot to not add '-' before suffix" 2015-11-13 21:24:39 +00:00
Daniel Rosenberg
996ecd8b7d Fix fastboot to not add '-' before suffix
Change-Id: I9351b385412151498f47ab46a2620f21b9ac38b8
2015-11-13 12:56:19 -08:00
Elliott Hughes
7274d3fdc7 Merge "Improve adb help text and adb backup error reporting." am: 82a2b2441c
am: da2319bf4d

* commit 'da2319bf4d8593de1ade95557d77e4680552bb84':
  Improve adb help text and adb backup error reporting.
2015-11-13 20:33:43 +00:00
Elliott Hughes
da2319bf4d Merge "Improve adb help text and adb backup error reporting."
am: 82a2b2441c

* commit '82a2b2441ca7684bb22d8b7f72546b4754e817a3':
  Improve adb help text and adb backup error reporting.
2015-11-13 20:30:46 +00:00
Elliott Hughes
82a2b2441c Merge "Improve adb help text and adb backup error reporting." 2015-11-13 20:25:11 +00:00
Elliott Hughes
4f1472652d Merge "Improve top(1) compatibility and interactive usefulness." am: 4386b890a7
am: 2944e58524

* commit '2944e58524836a5fb6468f03160b30983d78bcbd':
  Improve top(1) compatibility and interactive usefulness.
2015-11-13 19:33:55 +00:00
Mark Salyzyn
0605278911 Merge "logd: klogd: parse error" am: c6f3b96bd8
am: c7017ffbc8

* commit 'c7017ffbc8babb7486e59f88e9b63850c5c977cb':
  logd: klogd: parse error
2015-11-13 19:31:02 +00:00
Elliott Hughes
2944e58524 Merge "Improve top(1) compatibility and interactive usefulness."
am: 4386b890a7

* commit '4386b890a7b357572305a282772f30a162b5a4af':
  Improve top(1) compatibility and interactive usefulness.
2015-11-13 19:31:01 +00:00
Elliott Hughes
4386b890a7 Merge "Improve top(1) compatibility and interactive usefulness." 2015-11-13 19:28:57 +00:00
Mark Salyzyn
c7017ffbc8 Merge "logd: klogd: parse error"
am: c6f3b96bd8

* commit 'c6f3b96bd8b9b0ca366009db6b6e497761adb642':
  logd: klogd: parse error
2015-11-13 19:28:06 +00:00
Mark Salyzyn
c6f3b96bd8 Merge "logd: klogd: parse error" 2015-11-13 19:22:10 +00:00
David Pursell
6f233a7799 fastboot: create Transport object.
This CL creates a Transport object to provide a generic interface for
various transports. Specifically this is designed to be able to add UDP
support to fastboot in an upcoming CL without changing the main program
logic.

Also includes some minor code style fixes and replaces malloc/free
in the USB implementation files with smart pointers and std::string.

Bug: http://b/22029765
Change-Id: I68641af0da7d13db4647f5e20a18d04d67f0b327
2015-11-13 11:08:17 -08:00
Elliott Hughes
56e6813e27 Improve adb help text and adb backup error reporting.
Bug: https://code.google.com/p/android/issues/detail?id=188220
Bug: http://b/25677893
Change-Id: If174049e86d65d95db93a6e071c089dcd1d7cd4f
2015-11-13 11:04:10 -08:00
Ruchi Kandoi
6b1c15d7ff Merge "healthd: Support new PD and USB Type C types" am: ab75edb4ad
am: 741df1263e

* commit '741df1263e2903cba9ebbb333d01654107401378':
  healthd: Support new PD and USB Type C types
2015-11-13 17:43:18 +00:00
Ruchi Kandoi
741df1263e Merge "healthd: Support new PD and USB Type C types"
am: ab75edb4ad

* commit 'ab75edb4ad01b518cb5c96a5a3d4ad344bc4ce26':
  healthd: Support new PD and USB Type C types
2015-11-13 17:39:54 +00:00
Ruchi Kandoi
ab75edb4ad Merge "healthd: Support new PD and USB Type C types" 2015-11-13 17:36:07 +00:00
Elliott Hughes
84a2145033 Merge "adb: win32: Unicode USB device names" am: 76aefd5f9b
am: 01f5c3afc8

* commit '01f5c3afc861e4cee71ffedb13d319e0e2f884ee':
  adb: win32: Unicode USB device names
2015-11-13 16:49:04 +00:00
Elliott Hughes
01f5c3afc8 Merge "adb: win32: Unicode USB device names"
am: 76aefd5f9b

* commit '76aefd5f9b46b9abe0a24bcac105a081b2a9a23a':
  adb: win32: Unicode USB device names
2015-11-13 16:46:15 +00:00
Elliott Hughes
76aefd5f9b Merge "adb: win32: Unicode USB device names" 2015-11-13 16:41:31 +00:00
Elliott Hughes
d7bd5759d2 Improve top(1) compatibility and interactive usefulness.
The toolbox -t option is really the standard -H option. Add -H so
I can switch dumpstate over.

We should also flush after each run so we don't arbitrarily truncate
at the stdio buffer size. (I'm pretty sure no one uses toolbox top
interactively, but it annoyed me while testing -H.)

Change-Id: Ib87cb541d1b21c48468614b2ef60b0cc62694c95
2015-11-13 08:30:12 -08:00
Mark Salyzyn
eb29808615 logd: klogd: parse error
Resolve three areas missing taglen checking. Add some additional
limit-checking paranoia. Problem started when p was allowed to
go beyond the size of the incoming buffer in some blind
p = cp + 1 fragments, placed the check for that after them all
before harm could be done, rather than in each location.

Bug: 25620123
Change-Id: Ib5687fd30ef0cd3ba3bc0df310b436ad675ccabc
2015-11-13 07:58:05 -08:00
Mark Salyzyn
9ed07e3eee Merge "liblog: resolve deadlocks" am: 5559f1d6e8
am: 650a06e01b

* commit '650a06e01bb3bf80a4223fcb9117f59fdcff4eb5':
  liblog: resolve deadlocks
2015-11-13 15:30:41 +00:00
Mark Salyzyn
650a06e01b Merge "liblog: resolve deadlocks"
am: 5559f1d6e8

* commit '5559f1d6e89d1a4a5140328deb9b420f7d540508':
  liblog: resolve deadlocks
2015-11-13 15:22:57 +00:00
Mark Salyzyn
5559f1d6e8 Merge "liblog: resolve deadlocks" 2015-11-13 15:16:49 +00:00
Spencer Low
bb2900098a adb: win32: Unicode USB device names
Cleanup TODO and instead of (poorly) converting the device name from
wchar_t to char, just retrieve and store it as wchar_t, simplifying the
code.

This probably isn't necessary since device names are probably always
ASCII, but this cleans things up.

Change-Id: Ib780dcdc1e0e06b97b61e25d29a23874b35d7800
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-12 20:13:21 -08:00
Elliott Hughes
395156a270 Merge "adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()" am: 61a560aeb1
am: 187858496b

* commit '187858496b5bac53c019212fb6230295e1fc4cac':
  adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()
2015-11-13 03:11:39 +00:00
Elliott Hughes
187858496b Merge "adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()"
am: 61a560aeb1

* commit '61a560aeb10dc5833fe6d1118a773e85113a75bc':
  adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()
2015-11-13 03:08:30 +00:00
Elliott Hughes
61a560aeb1 Merge "adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()" 2015-11-13 03:05:02 +00:00
Benson Leung
8a4eef60e1 healthd: Support new PD and USB Type C types
See the new types added here :
https://chromium-review.googlesource.com/304660
Add support for these.

Signed-off-by: Benson Leung <bleung@google.com>

Change-Id: I12c51e0611692a763a7f1cda57c77ad83d7aa7ea
2015-11-12 18:12:43 -08:00
Spencer Low
d21dc825bb adb: win32: remove widen()/narrow() in favor of UTF8ToWide()/WideToUTF8()
Now that we have a more standardized API (also available in Chromium),
switch to it. Another benefit is real error handling instead of just
killing the process on invalid Unicode.

Make UTF8ToWide()/WideToUTF8() set errno to EILSEQ on bad input. This is
the same error code that wcsrtombs(3) uses.

Update the unittest to check for EILSEQ.

Change-Id: Ie92acf74d37adaea116cf610c1bf8cd433741e16
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-12 17:13:08 -08:00
Gilad Arnold
eddf4ed1f4 Merge "Sane ownership/permissions for directories in /data/nativetest{,64}." am: 5d75c9d9c2
am: c6ec2aba01

* commit 'c6ec2aba015a216e6232ee2010f914821c30fc74':
  Sane ownership/permissions for directories in /data/nativetest{,64}.
2015-11-13 01:04:23 +00:00
Gilad Arnold
c6ec2aba01 Merge "Sane ownership/permissions for directories in /data/nativetest{,64}."
am: 5d75c9d9c2

* commit '5d75c9d9c20181defe778e018a50c37ab784cffc':
  Sane ownership/permissions for directories in /data/nativetest{,64}.
2015-11-13 01:01:43 +00:00
Gilad Arnold
5d75c9d9c2 Merge "Sane ownership/permissions for directories in /data/nativetest{,64}." 2015-11-13 00:56:59 +00:00