Commit graph

832 commits

Author SHA1 Message Date
Elliott Hughes
5f979f2ae6 am e79cd67c: am 0101b06f: Merge "Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN."
* commit 'e79cd67cfdd7efce3c9790a45c166395227ef4e8':
  Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN.
2014-11-22 08:04:48 +00:00
Elliott Hughes
e79cd67cfd am 0101b06f: Merge "Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN."
* commit '0101b06fa6f9863ee87e89757e70900c3a0e7bfc':
  Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN.
2014-11-22 08:01:20 +00:00
Elliott Hughes
97ac0e1bb4 Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN.
Change-Id: I9e25ac9d27e95b04fb8bf7a66c619af0139d8b8f
2014-11-21 23:10:45 -08:00
Nick Kralevich
293c0615f6 am f8304929: am 6fe92d1a: Merge "system/core: Remove AID_GRAPHICS from adb groups"
* commit 'f8304929a059f80f42e97ea71c09a2d8a9c04874':
  system/core: Remove AID_GRAPHICS from adb groups
2014-11-22 02:48:17 +00:00
Nick Kralevich
f8304929a0 am 6fe92d1a: Merge "system/core: Remove AID_GRAPHICS from adb groups"
* commit '6fe92d1a3fb17545d82d020a3c995f32e6b71f9d':
  system/core: Remove AID_GRAPHICS from adb groups
2014-11-22 02:42:28 +00:00
Ajay Dudani
8432ddc822 system/core: Remove AID_GRAPHICS from adb groups
Remove AID_GRAPHICS from adb access groups to limit framebuffer
access.

Change-Id: I7fc6dca8b02a45d67d1ecc4a4daf6c38741ffb94
2014-11-21 18:08:05 -08:00
Elliott Hughes
ecbd957512 am f799fac2: resolved conflicts for merge of bc2168c9 to lmp-mr1-dev-plus-aosp
* commit 'f799fac2437987c9785805912931e6b90f15fa6b':
  Remove the adb usb vendor id whitelist.
2014-11-21 22:32:49 +00:00
Elliott Hughes
43cc5c2d75 am 30ebda58: am 97e1e170: Merge "Disable vendor id filtering for OS X."
* commit '30ebda58388e7c251e04fe0dfdc30e23010d0a4f':
  Disable vendor id filtering for OS X.
2014-11-21 22:32:43 +00:00
Elliott Hughes
224c3735ee am 542324f4: am 0750f786: Merge "Remove explict use of ASCII encoding"
* commit '542324f4b48897d40adb010afc440261c599633d':
  Remove explict use of ASCII encoding
2014-11-21 22:32:42 +00:00
Elliott Hughes
f799fac243 resolved conflicts for merge of bc2168c9 to lmp-mr1-dev-plus-aosp
Change-Id: Ic53ce9bdb658838368b4e9029a1f7a4137dd0499
2014-11-21 11:22:00 -08:00
Elliott Hughes
30ebda5838 am 97e1e170: Merge "Disable vendor id filtering for OS X."
* commit '97e1e1704245d4c2edd8a9e155669aaae7341b7d':
  Disable vendor id filtering for OS X.
2014-11-21 19:08:16 +00:00
Elliott Hughes
542324f4b4 am 0750f786: Merge "Remove explict use of ASCII encoding"
* commit '0750f78659758352490e599d057a39dc44e93340':
  Remove explict use of ASCII encoding
2014-11-21 19:08:15 +00:00
Elliott Hughes
c66aed8a14 Remove the adb usb vendor id whitelist.
If there are bad vendors, we should blacklist them. Whitelisting the entire
world is crazy.

Change-Id: I1f4c27fd34fc420e2a3b4b2c8749198030db69f1
2014-11-21 10:44:10 -08:00
Elliott Hughes
97e1e17042 Merge "Disable vendor id filtering for OS X." 2014-11-21 18:42:28 +00:00
Elliott Hughes
0750f78659 Merge "Remove explict use of ASCII encoding" 2014-11-21 18:37:19 +00:00
Elliott Hughes
37d1efbea7 am 01d49e85: Merge "adb: Add USB vendor ID for Ubiquiti Networks, Inc."
automerge: aa98c83

* commit 'aa98c835462177597eba90eac297a1a86f4a02d0':
  adb: Add USB vendor ID for Ubiquiti Networks, Inc.
2014-11-21 18:29:25 +00:00
Elliott Hughes
aa98c83546 am 01d49e85: Merge "adb: Add USB vendor ID for Ubiquiti Networks, Inc."
* commit '01d49e854fa09a776c9673b229efcfa2d53adfea':
  adb: Add USB vendor ID for Ubiquiti Networks, Inc.
2014-11-21 18:09:16 +00:00
Elliott Hughes
01d49e854f Merge "adb: Add USB vendor ID for Ubiquiti Networks, Inc." 2014-11-21 17:44:06 +00:00
Al Sutton
2a4b5f9e80 Remove explict use of ASCII encoding
Replace the use of CFStringGetCString with kCFStringEncodingASCII specified
with CFStringGetFileSystemRepresentation which will ensure the correct
character encoding is used to conver the CFString into a NULL terminated
char array suitable for use with POSIX APIs.

Change-Id: Ibab1dc05c4f4db8604d329a493b4241992b8e69d
2014-11-21 15:56:59 +00:00
Al Sutton
8e01cc6e0b Disable vendor id filtering for OS X.
Companion patch for change I2bf583a27f9a3f98ef006ea62b906a4f89960507.

Due to the use of USB class 0xff it's not possible to register a listener
which uses the OS methods for filtering notifications, so this patch
also introduces a check in the notification listener which checks the
class, subclass, and protocol for the interface each notification relates 
to.

Change-Id: I380cc80f96addc5057660efb2179b35f9378886a
2014-11-21 14:14:58 +00:00
Elliott Hughes
b99dbe9aaf am 4c2aec09: am aa3e17e1: Merge "Return path including executable instead of without"
* commit '4c2aec09cf2da437f3995ff4cac87e4c20d1d4b0':
  Return path including executable instead of without
2014-11-20 18:47:24 +00:00
Elliott Hughes
4c2aec09cf am aa3e17e1: Merge "Return path including executable instead of without"
* commit 'aa3e17e1b685218cddeb7a05e68ff1721a322147':
  Return path including executable instead of without
2014-11-20 18:43:12 +00:00
Elliott Hughes
330c3ee944 am 1bc314d3: am 51184950: Merge "Disable vendor id filtering for Linux."
* commit '1bc314d3dda8a2e34d48c3811c0b29b9135f9051':
  Disable vendor id filtering for Linux.
2014-11-20 18:40:04 +00:00
Elliott Hughes
1bc314d3dd am 51184950: Merge "Disable vendor id filtering for Linux."
* commit '511849507a7b2f4e259f6763c62f0c8619977b06':
  Disable vendor id filtering for Linux.
2014-11-20 18:36:18 +00:00
Elliott Hughes
aa3e17e1b6 Merge "Return path including executable instead of without" 2014-11-20 18:35:12 +00:00
Al Sutton
26b53bb75e Return path including executable instead of without
The previous implementation returned the path the executable was in instead
of returning the path including the executable (i.e. it returned ...bin
instead of ...bin/executable). This is not what the original methods did
and caused the process forking of adb to fail.

This patch corrects the implementation.

Change-Id: Ib58497cab35706041f170c1bc97c31fd5d965f90
2014-11-20 13:33:57 +00:00
Elliott Hughes
55664906a8 Disable vendor id filtering for Linux.
It's time we switched to blacklisting any problematic devices rather than
slowly whitelisting the entire world. This seems to work for me, but let's
see how other people get on before coming back to actually remove the list.

We'll also need to find a Mac to test the equivalent Mac change.

Change-Id: I2bf583a27f9a3f98ef006ea62b906a4f89960507
2014-11-19 22:07:34 -08:00
Elliott Hughes
6309cb35f7 am 2097e9a1: am 20860a28: Merge "Fix building on modern versions of Xcode and OS X."
* commit '2097e9a1491e850545cd0c38522c22dafd2cf6af':
  Fix building on modern versions of Xcode and OS X.
2014-11-19 22:00:18 +00:00
Elliott Hughes
2097e9a149 am 20860a28: Merge "Fix building on modern versions of Xcode and OS X."
* commit '20860a28c5be013da111cb794c92dae02aa30089':
  Fix building on modern versions of Xcode and OS X.
2014-11-19 21:55:28 +00:00
Al Sutton
f456d47c50 Fix building on modern versions of Xcode and OS X.
Recent versions of XCode fail to compile the adb and fastboot binaries due to
two functions being deprecated in 10.9 (GetCurrentProcess and
ProcessInformationCopyDictionary), and the use of -Werrror.

This patch replaces the method implementations which use calls to methods
deprecated in the 10.9 SDK with versions which only call non-deprecated methods.

Change-Id: I855bf26aff45093ca9022924f3ecd1b80f2305a8
2014-11-19 19:50:48 +00:00
Jeremy Chang
868cf42557 adb: Add USB vendor ID for Ubiquiti Networks, Inc.
Change-Id: Iedb86b9ff8dc55aea5d0df201a98c96418002207
Signed-off-by: Jeremy Chang <jeremy@ubnt.com>
2014-11-19 22:13:24 +08:00
Elliott Hughes
cc1be8520f am eda507e4: am 0655d38b: Merge "Revert "adb: Add USB vendor ID for Honeywell""
* commit 'eda507e4921bf6f027d88433fc4e15f4b860046d':
  Revert "adb: Add USB vendor ID for Honeywell"
2014-11-18 21:29:14 +00:00
Elliott Hughes
eda507e492 am 0655d38b: Merge "Revert "adb: Add USB vendor ID for Honeywell""
* commit '0655d38b0c998f294ad52f1f8e84233a48046e97':
  Revert "adb: Add USB vendor ID for Honeywell"
2014-11-18 21:23:58 +00:00
Elliott Hughes
0655d38b0c Merge "Revert "adb: Add USB vendor ID for Honeywell"" 2014-11-18 21:15:44 +00:00
Elliott Hughes
3e01bb85d6 Revert "adb: Add USB vendor ID for Honeywell"
This reverts commit 8c4c8e8988.

Change-Id: Ia1cad862f42e5bea3174ed2cc0eea5232fc0a858
2014-11-18 21:15:28 +00:00
Yabin Cui
bd51f58e08 am 0aa45710: am 6a56ad28: Merge "kill HAVE_TERMIO_H"
* commit '0aa45710d5c850bf673b14cf4894cee8eb43ce9b':
  kill HAVE_TERMIO_H
2014-11-18 20:19:12 +00:00
Yabin Cui
0aa45710d5 am 6a56ad28: Merge "kill HAVE_TERMIO_H"
* commit '6a56ad28c385ad799f25a1b90213b2367fcb9e22':
  kill HAVE_TERMIO_H
2014-11-18 02:32:53 +00:00
Yabin Cui
d325e866c4 kill HAVE_TERMIO_H
Bug: 18398307
Change-Id: Idbb89a074cdf16869cae3f667e89472781f37a5f
2014-11-17 18:19:11 -08:00
Nick Kralevich
33aacf1963 Introduce "adb keygen"
automerge: 86c9e5f

* commit '86c9e5f7e20a3f1712038ce642628c2e1e866434':
  Introduce "adb keygen"
2014-11-17 18:56:25 +00:00
Nick Kralevich
86c9e5f7e2 Introduce "adb keygen"
Introduce the "adb keygen" command.

  Usage: adb keygen <filename>

This command creates an adb public/private key pair in a user
specified file. This can be used to create new adb keys, or rotate
existing keys.

Modify adb's key generation routines to use the HOSTNAME/LOGNAME
environment variables if available. This allows someone to override
the username/hostname embedded within the adb public key file if
desired. Fallback to the old mechanisms if those environment
variables aren't available.

Bug: 18342715
Change-Id: Ibccee6088d4609aa05ad6687d3a1d8a8689d3e8a

(cherry picked from commit af782b9f2a)

Change-Id: Ic76ffc9412171dddc879af0bbf6e20fbe1a8f057
2014-11-14 21:09:48 +00:00
Nick Kralevich
f43499ce72 Merge "Introduce "adb keygen"" 2014-11-14 20:56:14 +00:00
Nick Kralevich
af782b9f2a Introduce "adb keygen"
Introduce the "adb keygen" command.

  Usage: adb keygen <filename>

This command creates an adb public/private key pair in a user
specified file. This can be used to create new adb keys, or rotate
existing keys.

Modify adb's key generation routines to use the HOSTNAME/LOGNAME
environment variables if available. This allows someone to override
the username/hostname embedded within the adb public key file if
desired. Fallback to the old mechanisms if those environment
variables aren't available.

Bug: 18342715
Change-Id: Ibccee6088d4609aa05ad6687d3a1d8a8689d3e8a
2014-11-14 11:22:46 -08:00
Yabin Cui
6b2dd14f5f am 30db2d25: am c9582d02: Merge "kill HAVE_FORKEXEC"
* commit '30db2d259369efccde665ac15cc5930a540fac58':
  kill HAVE_FORKEXEC
2014-11-14 19:15:43 +00:00
Yabin Cui
30db2d2593 am c9582d02: Merge "kill HAVE_FORKEXEC"
* commit 'c9582d02391393d38b511f8c58be5429bdcb0406':
  kill HAVE_FORKEXEC
2014-11-13 23:35:24 +00:00
Yabin Cui
e77b6a0862 kill HAVE_FORKEXEC
Bug: 18317407
Change-Id: I4eecb3c9d745e3dabfc46fa595aac7f94f6d93e3
2014-11-12 17:06:27 -08:00
Christopher Ferris
8e8ae85754 am ae7bf095: Fix adb/fastboot windows compilations.
* commit 'ae7bf0959bd3f79afbf365e41f015ed1c304afdc':
  Fix adb/fastboot windows compilations.
2014-11-07 03:49:08 +00:00
Christopher Ferris
0eabf64ce0 Fix adb/fastboot windows compilations.
Many of the windows files where not including stdlib.h even though they
are using malloc/free calls.

Bug: 18283958
(cherry picked from commit ae7bf0959b)

Change-Id: Iebc09cc314fa8f0ba6c6cd45ba26135052f156dd
2014-11-06 18:32:39 -08:00
Christopher Ferris
ae7bf0959b Fix adb/fastboot windows compilations.
Many of the windows files where not including stdlib.h even though they
are using malloc/free calls.

Change-Id: If6959df9909d9d9928e9f4a2a96018166361cf3c
2014-11-06 14:34:24 -08:00
Elliott Hughes
7e34ab181a am 1635b81b: am 26552565: am 452f08a0: Merge "Add razer usb vid for future use with adb"
* commit '1635b81b22abeb930feb02c63a1f5678a1386231':
  Add razer usb vid for future use with adb
2014-11-05 03:29:44 +00:00
Elliott Hughes
1635b81b22 am 26552565: am 452f08a0: Merge "Add razer usb vid for future use with adb"
* commit '2655256570b7c1c5af6d886735835eecb99f45f2':
  Add razer usb vid for future use with adb
2014-11-05 02:57:28 +00:00