Commit Graph

14058 Commits

Author SHA1 Message Date
Dan Albert bec459a277 am 480bea33: Merge "Add top level sanitize options for ADB."
* commit '480bea3372e6b112c0ec80fdf82b16296d388d63':
  Add top level sanitize options for ADB.
2015-07-30 18:55:26 +00:00
Dan Albert 480bea3372 Merge "Add top level sanitize options for ADB." 2015-07-30 18:44:37 +00:00
Elliott Hughes 7a699a6ac6 am 9bc4e7a5: Merge "bionic no longer sends SIGPIPE to debuggerd."
* commit '9bc4e7a5530337e182a8876e14e71ee741dd67ac':
  bionic no longer sends SIGPIPE to debuggerd.
2015-07-30 17:42:56 +00:00
Elliott Hughes 9bc4e7a553 Merge "bionic no longer sends SIGPIPE to debuggerd." 2015-07-30 17:33:16 +00:00
Dan Albert 9113b47eac Add top level sanitize options for ADB.
Host and target are split here because the target can really only use
ubsan (most sanitizers don't support static executables).

Change-Id: I8a5a5adeeef5c27aaaa3d8145b1570760b764ce3
2015-07-30 10:25:32 -07:00
Dan Albert cc552ea335 am 3b5b1328: Merge "adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL"
* commit '3b5b1328173b4914ccc3c50bdd5eaa046dbd6cd7':
  adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL
2015-07-30 17:09:04 +00:00
Dan Albert 3b5b132817 Merge "adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL" 2015-07-30 17:04:52 +00:00
Elliott Hughes fb1ecbc55e am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS."
* commit 'e6e71608bd60b4745b048ec466b5ea1301020b32':
  Use __ANDROID__ instead of HAVE_ANDROID_OS.
2015-07-30 16:42:50 +00:00
Elliott Hughes e6e71608bd Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS." 2015-07-30 16:34:47 +00:00
Elliott Hughes 9b828adfad Use __ANDROID__ instead of HAVE_ANDROID_OS.
Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
2015-07-30 09:33:43 -07:00
Elliott Hughes f39383103b bionic no longer sends SIGPIPE to debuggerd.
Static binaries don't get the signal handler installed (that's done by the
dynamic linker) so we don't need to worry about seeing SIGPIPE crashes from
old binaries.

Bug: http://b/20659371
Change-Id: I3b5566634fadd3e822262561188d29814bccd1fd
2015-07-30 08:15:57 -07:00
Elliott Hughes 42dbc4b185 am 44443bea: Merge "Use _WIN32 rather than HAVE_WINSOCK."
* commit '44443bead6cf3c6e71029e7181f64ba82c6a8c8e':
  Use _WIN32 rather than HAVE_WINSOCK.
2015-07-30 15:03:27 +00:00
Elliott Hughes 44443bead6 Merge "Use _WIN32 rather than HAVE_WINSOCK." 2015-07-30 14:49:56 +00:00
Spencer Low 3e7feda3c5 adb/test_device.py fixes for win32 and no use of ANDROID_SERIAL
If ANDROID_SERIAL was not set, test_device.py was failing.

Use posixpath.join instead of os.path.join for make_random_device_files.

Change-Id: I24bfa43ba2a89a9a768f505fc0bba9d873082b2f
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-07-30 01:19:52 -07:00
Yasuhiro Matsuda 102ead3ae1 am b10e562b: Merge "Introduce a mechanism to trace boot sequence."
* commit 'b10e562b4cb5ffd6f02ab891d40644b581ad5d47':
  Introduce a mechanism to trace boot sequence.
2015-07-30 07:51:09 +00:00
Yasuhiro Matsuda b10e562b4c Merge "Introduce a mechanism to trace boot sequence." 2015-07-30 07:42:09 +00:00
Yasuhiro Matsuda 1a1f9beb1d am dcf89091: Merge "Add a script to record Android boot time."
* commit 'dcf890914c7571d3068046b9df1f672e9f45b4d2':
  Add a script to record Android boot time.
2015-07-30 05:35:22 +00:00
Yasuhiro Matsuda dcf890914c Merge "Add a script to record Android boot time." 2015-07-30 05:21:41 +00:00
Yasuhiro Matsuda ab3798399d Add a script to record Android boot time.
perfboot.py repeats the record of each event log during Android
boot specified times. By default, interval between measurements
is adjusted in such a way that CPUs are cooled down sufficiently
to avoid boot time slowdown caused by CPU thermal throttling.
This script also works around the issue of dropbox slowing down
boot time on userdebug build (http://b/20890386) by limiting
the number of files to be created by dropbox.
The result is output in a tab-separated value format.

BUG: 22207911
Change-Id: I0ddbac5d1c941efda87bc6db6388d8194d4bb3dd
2015-07-30 14:16:15 +09:00
Elliott Hughes ae7e8d44b0 am 6fd4de76: Merge "Fix Win32 <ziparchive/zip_archive.h>."
* commit '6fd4de76e05d98fa1fcbe07f579a715d61fbfbee':
  Fix Win32 <ziparchive/zip_archive.h>.
2015-07-30 03:32:31 +00:00
Elliott Hughes 6fd4de76e0 Merge "Fix Win32 <ziparchive/zip_archive.h>." 2015-07-30 03:19:10 +00:00
Elliott Hughes bb50a393ff Fix Win32 <ziparchive/zip_archive.h>.
Contrary to the comment in AndroidConfig.h, mingw does have
__BEGIN_DECLS and __END_DECLS; you just have to #include <sys/cdefs.h>
first. Which is strictly true normally too, but you're going to
get it transitively with bionic or glibc.

Change-Id: I2f2de45f56a7217f91df322d8e896280997ae7a0
2015-07-29 19:58:57 -07:00
Elliott Hughes e0541c7d7e am a6597598: Merge "fix adb {forward,reverse} --no-rebind"
* commit 'a6597598a0b82759960df09fd173192ca8c82f0c':
  fix adb {forward,reverse} --no-rebind
2015-07-30 00:51:26 +00:00
Elliott Hughes adbf442a51 Use _WIN32 rather than HAVE_WINSOCK.
Change-Id: I9855b6fe72e2f2f3a8360c0993a67cb988024ee4
2015-07-29 17:45:24 -07:00
Elliott Hughes a6597598a0 Merge "fix adb {forward,reverse} --no-rebind" 2015-07-30 00:38:05 +00:00
Spencer Low a6b340af12 fix adb {forward,reverse} --no-rebind
adb forward --no-rebind (and the matching reverse command) seem to have
been broken by 424af02f36. I fixed-up the
string parsing and also fixed the error message not to include
strerror(errno) since that does not apply because it is an
application-level error that doesn't have anything to do with the
OS/libc.

Change-Id: Iba7286283bfcf1782076355edcd9c355c0a0edfd
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-07-29 17:21:21 -07:00
Elliott Hughes 34c92f4652 am fc2f1e61: Merge "Move libutils off AndroidConfig.h."
* commit 'fc2f1e61146627e387b8273981914dd5bc059317':
  Move libutils off AndroidConfig.h.
2015-07-29 22:11:42 +00:00
Elliott Hughes fc2f1e6114 Merge "Move libutils off AndroidConfig.h." 2015-07-29 22:00:28 +00:00
Elliott Hughes 1f8bc86a7d Move libutils off AndroidConfig.h.
Change-Id: Ia0e4a4f968c640eb44317821d2dc6b195f9f490e
2015-07-29 14:31:54 -07:00
Bertrand Simonnet da65eee80a am 05b9edc2: Merge "crash_reporter: Add license information."
* commit '05b9edc207b481bb128b1b7357fe328826850930':
  crash_reporter: Add license information.
2015-07-29 16:26:43 +00:00
Bertrand Simonnet ddbbc6d2db am 75ecc74a: Merge "metrics: Add license information."
* commit '75ecc74a295f2230bdac32bcc4e39b0e47078be4':
  metrics: Add license information.
2015-07-29 16:26:41 +00:00
Bertrand Simonnet 05b9edc207 Merge "crash_reporter: Add license information." 2015-07-29 16:03:02 +00:00
Bertrand Simonnet 75ecc74a29 Merge "metrics: Add license information." 2015-07-29 16:02:52 +00:00
Yasuhiro Matsuda f93db4b827 Introduce a mechanism to trace boot sequence.
This CL adds a trigger and a service so that Systrace can be used
for tracing events during boot.
persist.debug.atrace.boottrace property is used for switching on
and off tracing during boot. /data/misc/boottrace/categories
file is used for specifying the categories to be traced.
These property and file are rewritten by Systrace when the newly
added option --boot is specified.

Here is an example of tracing events of am and wm catetories
during boot.

$ external/chromium-trace/systrace am wm --boot

This command will cause the device to reboot. Once the device has
booted up, the trace report is created by hitting Ctrl+C.

As written in readme.txt, this mechanism relies on persistent
property, so tracing events that are emitted before that are not
recorded. This is enough for tracing events after zygote is
launched though.
This only works on userdebug or eng build for security reason.

BUG: 21739901
Change-Id: I03f2963d77a678f47eab5e3e29fc7e91bc9ca3a4
2015-07-29 12:53:05 +09:00
Bertrand SIMONNET 45f59d634d crash_reporter: Add license information.
The license file was taken from the original repository at:
https://chromium.googlesource.com/chromiumos/platform2/+/master/LICENSE

Change-Id: I05a8284346ceb326fb80c692e24653bc446cc33d
2015-07-28 17:31:05 -07:00
Bertrand SIMONNET 0296345ea7 metrics: Add license information.
The license was copied from the original repo at:
https://chromium.googlesource.com/chromiumos/platform2/+/master/LICENSE

Change-Id: I39c3479d62a107bd8d264faa72021cdeed25cea2
2015-07-28 17:30:08 -07:00
Dan Albert fa3622b224 am c0e8d0fc: Merge "Fix AndroidDevice.get_prop, add tests."
* commit 'c0e8d0fc50dc635c6723497900cf3b0d2eb572dc':
  Fix AndroidDevice.get_prop, add tests.
2015-07-29 00:04:52 +00:00
Elliott Hughes 07bed1941f am 87998c07: Merge "Move sdcard off PAGESIZE and onto PAGE_SIZE."
* commit '87998c07a325d8cfa7517516edac7173dbea63bf':
  Move sdcard off PAGESIZE and onto PAGE_SIZE.
2015-07-29 00:04:50 +00:00
Dan Albert c0e8d0fc50 Merge "Fix AndroidDevice.get_prop, add tests." 2015-07-28 23:46:10 +00:00
Elliott Hughes 87998c07a3 Merge "Move sdcard off PAGESIZE and onto PAGE_SIZE." 2015-07-28 23:44:09 +00:00
Dan Albert e2b4a5fee0 Fix AndroidDevice.get_prop, add tests.
Had messed this up while refactoring before I submitted and neglected
to add a test. Thanks to mazda@ for catching this.

Also disabled the root/unroot tests for user builds.

Change-Id: Icb819a820a2afa227d548d678ae471d5195f0b96
2015-07-28 16:42:58 -07:00
Elliott Hughes e24e9a5091 Move sdcard off PAGESIZE and onto PAGE_SIZE.
Only sdcard is using PAGESIZE, and glibc doesn't have it.

Bug: http://b/22735893
Change-Id: Ib8af14a2e99d98881a79f21ad1a695499c7d74bd
2015-07-28 16:36:47 -07:00
Elliott Hughes 0adda0d5f5 am 524551fd: Merge "Document the current MAX_USBFS_BULK_SIZE situation."
* commit '524551fd67a581966b52c89a0712a5d3baaf7967':
  Document the current MAX_USBFS_BULK_SIZE situation.
2015-07-28 21:34:50 +00:00
Elliott Hughes ce2047a947 am 1a706865: Merge "Fix const-ness of strrchr callers."
* commit '1a706865307f4fbb2397cb3ca2eefad4ff6f83ea':
  Fix const-ness of strrchr callers.
2015-07-28 21:34:47 +00:00
Elliott Hughes 524551fd67 Merge "Document the current MAX_USBFS_BULK_SIZE situation." 2015-07-28 21:19:23 +00:00
Elliott Hughes 93f65faee8 Document the current MAX_USBFS_BULK_SIZE situation.
Bug: http://b/22688598
Change-Id: I8e5b92996d635f6b939f3add4dda0b9023629a8b
2015-07-28 14:18:50 -07:00
Elliott Hughes 1a70686530 Merge "Fix const-ness of strrchr callers." 2015-07-28 21:15:57 +00:00
Tao Bao beb1304469 am 1cae8cc1: Merge "Set mode bits for /system/etc/recovery.img."
* commit '1cae8cc13a5524b4354c187c49bb831965825c20':
  Set mode bits for /system/etc/recovery.img.
2015-07-28 21:02:36 +00:00
Tao Bao 1cae8cc13a Merge "Set mode bits for /system/etc/recovery.img." 2015-07-28 20:47:00 +00:00
Mark Salyzyn f2e86153ed am fac3bf35: Merge changes Id65ed2e8,Idbf8fae9
* commit 'fac3bf35af412292e1a955510095c4234dc0fd53':
  liblog: deprecate TARGET_USES_LOGD
  logd: deprecate TARGET_USES_LOGD
2015-07-28 18:08:55 +00:00