Commit Graph

8075 Commits

Author SHA1 Message Date
Brigid Smith 8c82b35239 Updated trace.h to recognize ATRACE_TAG_BIONIC.
Bug: 15116468
Change-Id: If8d4971505ffe5cbc193c6ad71618a5adb8192b6
2014-05-27 12:37:48 -07:00
David 'Digit' Turner c335887516 am 6e7343b8: Merge "adb: implement "adb reverse <local> <remote>""
* commit '6e7343b8993fecb2f0600a9e5cff91dd4480a877':
  adb: implement "adb reverse <local> <remote>"
2014-05-27 16:33:16 +00:00
David 'Digit' Turner 6e7343b899 Merge "adb: implement "adb reverse <local> <remote>"" 2014-05-27 16:30:31 +00:00
David 'Digit' Turner 2525869419 adb: implement "adb reverse <local> <remote>"
This implements the logical opposite of 'adb forward', i.e.
the ability to reverse network connections from the device
to the host.

This feature is very useful for testing various programs
running on an Android device without root or poking at the
host's routing table.

Options and parameters are exactly the same as those for
'adb forward', except that the direction is reversed.

Examples:

  adb reverse tcp:5000 tcp:6000
    connections to localhost:5000 on the device will be
    forwarded to localhost:6000 on the host.

  adb reverse --no-rebind tcp:5000 tcp:6000
    same as above, but fails if the socket is already
    bound through a previous 'adb reverse tcp:5000 ...'
    command.

  adb reverse --list
    list all active reversed connections for the target
    device. Note: there is no command to list all
    reversed connections for all devices at once.

  adb reverse --remove tcp:5000
    remove any reversed connection on the device from
    localhost:5000

  adb reverse --remove-all
    remove all reversed connections form the current
    device.

Reversed connections are tied to a transport, in other
words, they disappear as soon as a device is disconnected.

Simple testing protocol:

  adb forward tcp:5000 tcp:6000
  adb reverse tcp:6000 tcp:7000
  nc -l localhost 7000

in another terminal:
  echo "Hello" | nc localhost 5000

Will print "Hello" on the first terminal.

Change-Id: I761af790cdb06829b68430afa4145a919fa0e6d5
2014-05-27 16:42:13 +02:00
Torne (Richard Coles) 234f696ea7 Add UID and directory for RELRO sharing support.
Define a UID to be used by the process responsible for creating shared
RELRO files for the WebView native library, and create a directory owned
by that UID to use to store the files.

Bug: 13005501
Change-Id: I5bbb1e1035405e5534b2681f554fe16f74e3da1a
2014-05-27 14:00:29 +01:00
Narayan Kamath 9196f5f2df am 5fe6fcc3: Merge "Add a zygote 64/32 bit config."
* commit '5fe6fcc35d10c88dd55213dc5b2303ea73c1883b':
  Add a zygote 64/32 bit config.
2014-05-27 11:04:38 +00:00
Narayan Kamath 5fe6fcc35d Merge "Add a zygote 64/32 bit config." 2014-05-27 11:00:37 +00:00
Christopher Ferris a0962b687a am d917d64f: Merge "Only copy mcontext data from sigcontext."
* commit 'd917d64fafb2eca22c9c75a8527eb4e920a9f079':
  Only copy mcontext data from sigcontext.
2014-05-23 22:28:43 +00:00
Mark Salyzyn 21157abcd9 am 8814bd1d: Merge "include: cleanup for -Wsystem-header"
* commit '8814bd1d24e3ce9476e64ba641d592521fcf80ed':
  include: cleanup for -Wsystem-header
2014-05-23 22:23:57 +00:00
Christopher Ferris d917d64faf Merge "Only copy mcontext data from sigcontext." 2014-05-23 22:23:45 +00:00
Mark Salyzyn 8814bd1d24 Merge "include: cleanup for -Wsystem-header" 2014-05-23 22:19:57 +00:00
Christopher Ferris e484607622 Only copy mcontext data from sigcontext.
The ucontext_t data structure could be bigger than the kernel data
structure. Since the unwinder only cares about the mcontext data, only
copy that out of the structure. The mcontext data is the same size in
the kernel and in the ucontext_t structure.

Bug: 15189014
Change-Id: I5978169c4425b8212e11db85a57eb319cd0e264b
2014-05-23 15:11:26 -07:00
Mark Salyzyn 289e111a00 system/window.h: add deprecation warnings
Change-Id: I38de3d281f28e0750b4abb86f28509f98dfc7a72
2014-05-23 15:10:06 -07:00
Mark Salyzyn 4887842c92 include: cleanup for -Wsystem-header
- warnings as errors, or errors introduced when -Wsystem-header
  was experimentally introduced.

Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
2014-05-23 15:09:57 -07:00
Mark Salyzyn 3f69451b03 am 818f8004: Merge "logd: used before set warning"
* commit '818f80045fe4c925a7739a1d1e69e3ebb3a3dbd9':
  logd: used before set warning
2014-05-23 17:48:25 +00:00
Mark Salyzyn 0b17e1cf18 am 72be6d5e: Merge "cpio: Turn on -Werror"
* commit '72be6d5eea001e7bd1bc7b31e8c7e81a0c4a9cff':
  cpio: Turn on -Werror
2014-05-23 17:48:24 +00:00
Mark Salyzyn 818f80045f Merge "logd: used before set warning" 2014-05-23 17:42:47 +00:00
Mark Salyzyn 72be6d5eea Merge "cpio: Turn on -Werror" 2014-05-23 17:42:36 +00:00
Mark Salyzyn ab4b7308ec logd: used before set warning
Change-Id: I30c078f8b22ebe4dcb48d57adf88b3e51b4fa202
2014-05-23 09:48:09 -07:00
Mark Salyzyn 5ce757518b cpio: Turn on -Werror
- Solve st_mode is uint16_t on MAC
- Turn on -Werror

Change-Id: I67b62424245545099ed283c56dae544153b85425
2014-05-23 09:48:09 -07:00
Mark Salyzyn f998116bb0 am 08c372d1: Merge "libnetutils: Turn on -Werror"
* commit '08c372d18ecfc02cf7cba7ef65007118b78762bd':
  libnetutils: Turn on -Werror
2014-05-23 14:52:57 +00:00
Mark Salyzyn 08c372d18e Merge "libnetutils: Turn on -Werror" 2014-05-23 14:51:07 +00:00
Mark Salyzyn c829080ba9 libnetutils: Turn on -Werror
- Get rid of a pair of out of range comparison warnings.
- Turn on -Werror for compilation

Change-Id: Ie6754f41f9348852a02cc0ff35befb5a76ac2883
2014-05-23 07:49:29 -07:00
Mark Salyzyn 3bc628b2d4 am f5e2dc89: Merge "libctest: zap"
* commit 'f5e2dc8967d66362a1d57ce6f764e4585aad9883':
  libctest: zap
2014-05-22 22:42:48 +00:00
Colin Cross 17c3a22750 am 617c28b8: Merge "Fix list_for_each_safe macro"
* commit '617c28b8f2c9b90efa8b164ce2af2c7cd3007fbd':
  Fix list_for_each_safe macro
2014-05-22 22:42:48 +00:00
Colin Cross 184eecf017 am 4ecbda41: Merge "Add list_add_head to libcutils"
* commit '4ecbda41c921f3209e96a3d72928a4bcba9422e6':
  Add list_add_head to libcutils
2014-05-22 22:42:47 +00:00
Mark Salyzyn f5e2dc8967 Merge "libctest: zap" 2014-05-22 22:34:56 +00:00
Mark Salyzyn d7579650f5 libctest: zap
Related Changes:
- https://android-review.googlesource.com/#/c/95364
- https://googleplex-android-review.git.corp.google.com/#/c/470584
- https://googleplex-android-review.git.corp.google.com/#/c/470591
- https://googleplex-android-review.git.corp.google.com/#/c/470590

Change-Id: I28a017104f48cc4216df876eb9102ecd332d28e3
2014-05-22 22:34:23 +00:00
Colin Cross 617c28b8f2 Merge "Fix list_for_each_safe macro" 2014-05-22 22:27:14 +00:00
Colin Cross 4ecbda41c9 Merge "Add list_add_head to libcutils" 2014-05-22 22:26:43 +00:00
Colin Cross 55c3401b10 am 08befc3a: Merge "ueventd: support by-name symlinks for PCI block devices"
* commit '08befc3a8066626bb7336dd9ad656e737712153e':
  ueventd: support by-name symlinks for PCI block devices
2014-05-22 19:20:07 +00:00
Colin Cross 08befc3a80 Merge "ueventd: support by-name symlinks for PCI block devices" 2014-05-22 19:17:15 +00:00
Mark Salyzyn 6b5f4c3413 am 0c7e5cda: Merge "libusbhost: Turn on -Werror"
* commit '0c7e5cdaebc96fb1aee8860303eaeab351acf4bc':
  libusbhost: Turn on -Werror
2014-05-22 19:11:23 +00:00
Mark Salyzyn c5fa4b19e3 am 065c2706: Merge "libsuspend: Turn on -Werror"
* commit '065c2706ab105ff09212850bb521573afc0418db':
  libsuspend: Turn on -Werror
2014-05-22 19:11:22 +00:00
Mark Salyzyn 1010b67271 am b05866af: Merge "libion: Turn on -Werror"
* commit 'b05866afccd10b005e97804319abdd361b311f2a':
  libion: Turn on -Werror
2014-05-22 19:11:21 +00:00
Mark Salyzyn 7d28098b9a am 99337883: Merge "sdcard: Turn on -Werror"
* commit '993378832e6f580b3b13b189f3656066492fe80a':
  sdcard: Turn on -Werror
2014-05-22 19:11:20 +00:00
Mark Salyzyn 0c7e5cdaeb Merge "libusbhost: Turn on -Werror" 2014-05-22 19:06:29 +00:00
Mark Salyzyn 065c2706ab Merge "libsuspend: Turn on -Werror" 2014-05-22 19:06:03 +00:00
Mark Salyzyn b05866afcc Merge "libion: Turn on -Werror" 2014-05-22 19:05:49 +00:00
Mark Salyzyn 993378832e Merge "sdcard: Turn on -Werror" 2014-05-22 19:05:25 +00:00
Mark Salyzyn f1c66a852f am 5e9c2b9f: Merge "reboot: Turn on -Werror"
* commit '5e9c2b9faa6fbf6ce8dab3a7d5029f582066b487':
  reboot: Turn on -Werror
2014-05-22 17:39:43 +00:00
Mark Salyzyn 5e9c2b9faa Merge "reboot: Turn on -Werror" 2014-05-22 17:34:06 +00:00
Dan Albert 3ab1d61b75 am 3b5cd911: Merge "Remove libstdc++ dependency from host libbacktrace"
* commit '3b5cd9117df7e7420055352b496383a477f008d3':
  Remove libstdc++ dependency from host libbacktrace
2014-05-22 17:27:05 +00:00
Dan Albert 3b5cd9117d Merge "Remove libstdc++ dependency from host libbacktrace" 2014-05-22 17:21:52 +00:00
Elliott Hughes 337f94f1eb am e9a6d0a0: Merge "Remove unnecessary #includes of <sys/atomics.h>."
* commit 'e9a6d0a09950b9d28f63c8bb3e05530cd23574c0':
  Remove unnecessary #includes of <sys/atomics.h>.
2014-05-22 17:06:02 +00:00
Elliott Hughes e9a6d0a099 Merge "Remove unnecessary #includes of <sys/atomics.h>." 2014-05-22 17:02:25 +00:00
Elliott Hughes 617681d355 Remove unnecessary #includes of <sys/atomics.h>.
Bug: 14903517
Change-Id: I5b0a418dd982f1a2fd90609b12bd8364f7f34996
2014-05-22 10:00:35 -07:00
Mark Salyzyn 8c6245e11d am 80e16069: Merge "libsync: Turn on -Werror"
* commit '80e160693c795aacfecd5ba34caa1485a6c717f4':
  libsync: Turn on -Werror
2014-05-22 16:49:49 +00:00
Mark Salyzyn 80e160693c Merge "libsync: Turn on -Werror" 2014-05-22 16:46:53 +00:00
Elliott Hughes 49ea55f599 am 48ac3d1b: Merge "Judge mmap failed by MAP_FAILED instead of NULL"
* commit '48ac3d1b14f036a4994adba22707f7465ccfae2f':
  Judge mmap failed by MAP_FAILED instead of NULL
2014-05-22 16:27:19 +00:00