d2239828d608a936e8a92319ce9c2b415998acb8 |
|
31-Oct-2017 |
Mike Ma <yanmin@google.com> |
Record proto to file in am instrument Add an option -f to record instrumentdata proto produced by am instrument to a file in addition to printing to stdout. Default path is /sdcard/instrument-logs/log-yyyyMMdd-hhmmss-SSS.instrumentation_data_proto. If the file exits, it will be deleted before writing. Path can be changed via optional <FILE> argument after -f. If -f and -m are both present, proto will be written to a file and print to stdout. Test: build, flash and run: bit -bi FrameworksCoreTests adb shell am instrument -w -r -f tmp/tmp.log \ -e class com.android.internal.os.BatteryStatsNoteTest \ com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner Change-Id: Iabc320c066d5995eee842c26416623eeb3d403f4
/frameworks/base/core/java/com/android/internal/os/BaseCommand.java
|
354736e196ff79962b3ddb52619a674044d773e2 |
|
23-Aug-2016 |
Dianne Hackborn <hackbod@google.com> |
New infrastructure to switch remaining commands to "cmd" calls. This introduces a new feature of the IBinder command protocol to allow the shell command implementation to call back into its caller to ask it to open files in the calling context. This is needed so that commands that have arguments specifying files can open those files as the calling shell, not the system (or whatever) process. To test this all out, move the "am start" implementation over to ActivityManagerShellCommand, in particular along with its option to specify a file in which to write profiling data. Test: Manual Change-Id: I0c1e3857defefbd19a2ac29413aafbb34b1e48a3
/frameworks/base/core/java/com/android/internal/os/BaseCommand.java
|
3cdb56efea044112bfe1b97b3ed78ee05e0dba46 |
|
11-Nov-2015 |
Dianne Hackborn <hackbod@google.com> |
Some debugging improvements. - Fix dumping of package manager intent filters so the option to print the filter detail works again. - Extend dump resolvers to allow you to specify the specific types of resolvers you'd like to dump. - Add new package manager commands for querying activities, services, receivers. - Move the code for parsing a command line into an intent to the framework, so it can be used by the new package manager commands and later elsewhere. Change-Id: I56ea2bb8c3dd0e5198ee333be8f41ad9dcdb626f
/frameworks/base/core/java/com/android/internal/os/BaseCommand.java
|
79f7ec70ebd5758ce54fd5b6fcd60fd27457cba6 |
|
05-Apr-2013 |
Dianne Hackborn <hackbod@google.com> |
Have audio service clean up new receivers in crashing processes. The new media button receiver with only a pending intent (no component name) could be left hanging if the process that registered it went away. These semantically need to be tied to the calling process's lifetime; we now clean them up when the calling process goes away. Also added some additional cleanup of media button receivers when packages change (updated, cleared). And on top of that, a new "media" command for doing media things. Currently lets you send media keys and monitor remote display data. Oh and finally added a new BaseCommand base class for implementing these command line utilities. Change-Id: Iba1d56f10bab1eec4a94a7bb1d1c2ae614c8bcf5
/frameworks/base/core/java/com/android/internal/os/BaseCommand.java
|