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>
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
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
Long ago, we mounted secondary physical cards as readable by all
users on the device, which enabled the use-case of loading media on
a card and viewing it from all users.
More recently, we started giving write access to these secondary
physical cards, but this created a one-directional channel for
communication across user boundaries; something that CDD disallows.
This change is designed to give us the best of both worlds: the
package-specific directories are writable for the user that mounted
the card, but access to those "Android" directories are blocked for
all other users. Other users remain able to read content elsewhere
on the card.
Bug: 22787184
Change-Id: I4a04a1a857a65becf5fd37d775d927af022b40ca
* commit '4c0ebdf2ed3ae5ea61887c5ef97efc363b85d3ad': (200 commits)
metrics: Import protobufs from Chromium.
metrics: replace "Logging.*" with "Platform.*"
platform2: Fix issues with new version of libchrome
init: fix typo and prevent startup error
metrics: Add a check for abnormally small messages to prevent crashes
libchromeos: Switch http Response to use streams
Revert "metrics: Fix the import path of protobufs."
metrics: Fix the import path of protobufs.
platform2: Switch over to libchrome r323904
metrics: add TPM.EarlyResetDuringCommand CrOS event.
delete __STDC_{FORMAT,LIMIT}_MACROS
metrics: make metrics library also use /var/lib/metrics/uma-events
metrics: tell what file we can't open on error
metrics: move sample file from /var/run to /var/lib
metrics: don't upload metrics when metrics are disabled
metrics: Disable uploader on non-official build.
platform2: Switch over to using base64 functions from libchromeos
metrics: fix -Winconsistent-missing-override warning
metrics: Fix upload_service to work with base::MessageLoop
metrics: generate app_version from standard lsb-release fields
...
* commit 'db639251c9e2a5cba4d19655ffe8bfc9e63c2923': (225 commits)
Remove superfluous legacy DBus includes
crash: do not call list-proxies if it does not exist.
crash: Point to canonical org.chromium.SessionManagerInterface.xml
crash: update OWNERS file
platform2: Explicitly use base:: namespace with CommandLine
crash-reporter: add support for device coredump
delete __STDC_{FORMAT,LIMIT}_MACROS
crash: Convert list_proxies to chromeos-dbus-bindings generator
crash: Fix session manager D-Bus call service name
crash: Remove glib from crash_reporter
crash: Shorten crash-reporter project alias.
crash-reporter: Use chromeos::KeyValueStore.
crash-reporter: Clean up testing code.
crash-reporter: Add session_manager logs to Chrome crashes.
crash-reporter: Attach Chrome logs to crash reports.
crash-reporter: add a sanity check for kernel dmesg records
Update libchrome to r307740 and fix build errors
crash-reporter: disable device coredumps in verified mode
crash-reporter: accept kernel dmesg records with no ramoops header
crash-reporter: remove gflags dependency
...
* commit '15b8a778760707b33bffd97491ccc80854d994ce': (200 commits)
metrics: Import protobufs from Chromium.
metrics: replace "Logging.*" with "Platform.*"
platform2: Fix issues with new version of libchrome
init: fix typo and prevent startup error
metrics: Add a check for abnormally small messages to prevent crashes
libchromeos: Switch http Response to use streams
Revert "metrics: Fix the import path of protobufs."
metrics: Fix the import path of protobufs.
platform2: Switch over to libchrome r323904
metrics: add TPM.EarlyResetDuringCommand CrOS event.
delete __STDC_{FORMAT,LIMIT}_MACROS
metrics: make metrics library also use /var/lib/metrics/uma-events
metrics: tell what file we can't open on error
metrics: move sample file from /var/run to /var/lib
metrics: don't upload metrics when metrics are disabled
metrics: Disable uploader on non-official build.
platform2: Switch over to using base64 functions from libchromeos
metrics: fix -Winconsistent-missing-override warning
metrics: Fix upload_service to work with base::MessageLoop
metrics: generate app_version from standard lsb-release fields
...
* commit '5cab52906c1e7d7dd0adc0b03b8eb8994e5d3e9c': (225 commits)
Remove superfluous legacy DBus includes
crash: do not call list-proxies if it does not exist.
crash: Point to canonical org.chromium.SessionManagerInterface.xml
crash: update OWNERS file
platform2: Explicitly use base:: namespace with CommandLine
crash-reporter: add support for device coredump
delete __STDC_{FORMAT,LIMIT}_MACROS
crash: Convert list_proxies to chromeos-dbus-bindings generator
crash: Fix session manager D-Bus call service name
crash: Remove glib from crash_reporter
crash: Shorten crash-reporter project alias.
crash-reporter: Use chromeos::KeyValueStore.
crash-reporter: Clean up testing code.
crash-reporter: Add session_manager logs to Chrome crashes.
crash-reporter: Attach Chrome logs to crash reports.
crash-reporter: add a sanity check for kernel dmesg records
Update libchrome to r307740 and fix build errors
crash-reporter: disable device coredumps in verified mode
crash-reporter: accept kernel dmesg records with no ramoops header
crash-reporter: remove gflags dependency
...