summaryrefslogtreecommitdiffstats
path: root/cmds/am/src
Commit message (Collapse)AuthorAgeFilesLines
* am deaa8ff1: am a7ef18fc: Merge "Some debugging support." into gingerbreadDianne Hackborn2010-09-241-8/+100
|\ | | | | | | | | | | | | Merge commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14' * commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14': Some debugging support.
| * Some debugging support.Dianne Hackborn2010-09-241-8/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | - New feature to "am monitor" to have it automatically launch gdbserv for you when a crash/ANR happens, and tell you how to run the client. - Update dumpstate to match new location of binder debug logs - Various commented out logs that are being used to track down issues. Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
* | resolved conflicts for merge of 8952a448 to masterDianne Hackborn2010-09-231-0/+215
|\ \ | |/ | | | | Change-Id: I9c752a5d10ae8d8e5ead1243b6abd4795204fc0b
| * Fix issue #3022508: Crash during media scanDianne Hackborn2010-09-231-0/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't kill processes for excessive wake lock use, even if they are in the background, as long as they have running services. Also fix some problems with this, such as not noting the kill in battery stats. And add killing of processes for cpu usage as well, along with some optimizations to computing CPU usage. And fix BatteryWaster to be better behaving for testing these cases. Add new "monitor" command to am to watch as the activity manager does stuff (so we can catch things at the point of ANR). Finally some miscellaneous debug output for the stuff here, as well as in progress debugging of an ANR. Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
* | Add support for giving arrays of ints and longs to the "am" command.Jack Veenstra2010-09-081-1/+22
| | | | | | | | Change-Id: Ibc4ae63fb5f8025a847bec7d37a1fce5abd81b39
* | Doc Change:ActivityManager usage doc:running test packageJoe Malin2010-08-301-1/+6
| | | | | | | | Change-Id: I9a0c28e59f87e30c81d18162bee082b851d07a94
* | Add --el option to am for long extras.Makoto Onuki2010-08-241-0/+6
| | | | | | | | Change-Id: I13b92284fa4e0765620552b7d9b08d7441254389
* | Fix incorrect usage text for am.Daniel Sandler2010-08-201-1/+1
| | | | | | | | Change-Id: I95afb3bd02ce23bb8d0797ec4c33e27a9530988e
* | Allow "am" to initiate heap dumps.Andy McFadden2010-07-121-0/+26
|/ | | | | | | | | | | | | | | | | | | | | | This was mostly cloned from the "am profile" implementation. It's intended to replace the old "kill -10" approach used by "runhat". We could really use a native heap dump, so I pass a "managed" flag through that indicates whether we want to dump the native or managed heap. We don't currently have a native heap dump-to-file function, so it currently just logs a warning. (android.ddm.DdmHandleNativeHeap.getLeakInfo is a good start -- it copies /proc/maps and then calls get_malloc_leak_info to get some goodies. Needs some formatting to make it human-readable. I didn't want to cram all that into this change.) It would be useful if "am" didn't exit until the heap dump operation completed, but I'm not sure how to do that. Bug 2759474. Change-Id: I46bc98067738d8c72ac0fc10002ca67bb4929271
* merge from open-source masterThe Android Open Source Project2010-05-191-1/+1
|\ | | | | | | Change-Id: I0598edad283a177a5ddcc30e20d2284503e6038e
| * Removed Calls to deprecated APIsChristian Mehlmauer2010-05-171-1/+1
| | | | | | | | Change-Id: I3f9b6a8d3c8a050156a6cc7ea0eb9de33b82f79a
| * Unify am startservice commands.Jean-Baptiste Queru2010-04-161-14/+12
| | | | | | | | | | | | This replaces the implementation with an equivalent one. Change-Id: I1343ddee9414a67906cd426b8381ddbace873894
| * Allow Am to start servicesAnthony Newnam2010-04-141-0/+15
| | | | | | | | Change-Id: I31d066ae2c980cc293e55034446a63a0f42088ad
* | Fix issue #2538228: Intents targeting browsers constantly naggingDianne Hackborn2010-03-261-1/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some applications are setting the MIME type field for an http: intent, which is technically wrong because the recipient opening the URI will get the MIME type from the header. This was hitting a bug when we compute the intent filter when setting the preferred activity, where we have to set both the MIME type and data URI for the intent filter. (For file: and content: URIs only the MIME type is needed, since these can be opened directly through ContentResolver so everyone is presumed to be able to handle them.) Change-Id: Ia7025e6859e9c90997bf56c2c80f225fca7a2007
* | Add new -W option to Am to wait for the start to complete.Dianne Hackborn2010-02-261-13/+51
| |
* | add "startservice" option to am command-line utilityDoug Zongker2010-02-241-0/+13
| | | | | | | | | | | | Allows starting Services in addition to Activities. Change-Id: Ib078115f6200faa8907b35909af2f64b0c563b38
* | add --esn option to am to allow adding extra with a null valueDoug Zongker2009-11-301-9/+14
|/
* Fix issue #2166755: BroadcastReceiver trying to return result during a ↵Dianne Hackborn2009-10-051-1/+2
| | | | | | | | | | | | non-ordered broadcast Tell the broadcast receiver whether it is getting an initial sticky value, so it will be quiet about attempts to do ordered broadcast stuff. Note that the original bug being reported was not actually a crash, just an error log. So all we are doing here is making the log quieter. Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859
* Make intent broadcasts in "am" synchronous (they wait until exit).Dan Egnor2009-07-221-305/+261
| | | | | | | Clean up error handling and reporting in "am". Make the usage message for "am" more informative. Make it easier to turn on logging in GoogleHttpClient.
* Fix bug 1829561 ("am profile" with bad filename kills process).Dianne Hackborn2009-06-241-2/+17
| | | | | | | | The am command is now the one that takes care of opening the target file, handling the opened file descriptor to the process that will be profiled. This allows you to send profile data to anywhere the shell can access, and avoids any problems coming up from the target process trying to open the file.
* The '-D' option for the 'am' command appears to be optional, so reflect that ↵Marco Nelissen2009-06-041-1/+1
| | | | in the usage.
* Fix issue where apps could prevent the user from going home.Dianne Hackborn2009-05-191-15/+25
| | | | | | | | | | Now we have a 5-second time after home is pressed, during which only the home app (and the status bar) can switch to another app. After that time, any start activity requests that occurred will be executed, to allow things like alarms to be displayed. Also if during that time the user launches another app, the pending starts will be executed without resuming their activities and the one they started placed at the top and executed.
* auto import from //depot/cupcake/@136745The Android Open Source Project2009-03-051-1/+47
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+487
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-487/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+487