Commit Graph

561 Commits

Author SHA1 Message Date
Kenny Root
6f85220da8 am 83a5926e: Merge "Add DUMP permission checks to services"
* commit '83a5926ee349a3daf33cd8efd21e312fc0b1621e':
  Add DUMP permission checks to services
2011-09-30 08:58:46 -07:00
Kenny Root
3abd75ba3a Add DUMP permission checks to services
Some services have info that is not readily available any other way. Add
a permission check to those services.

Bug: 5389201
Change-Id: I5a9724ec89e1c11ef7813eeb52a6a05b3ea92af5
2011-09-29 11:04:15 -07:00
Dianne Hackborn
0ba3f30655 am a982ad19: Merge "Fix issue #5173952: Opening a Notification From Lock Screen..."
* commit 'a982ad19d2aee54f714fa3ad9ee4ddbac08dc0fe':
  Fix issue #5173952: Opening a Notification From Lock Screen...
2011-09-23 14:56:48 -07:00
Dianne Hackborn
90c52de286 Fix issue #5173952: Opening a Notification From Lock Screen...
...Should Skip Unsecure Lockscreen (ICS)

Also while I am in there, clean up logging of intent objects to include
even less sensitive information, while showing the true Intent in dump
output (since apps can't get to that).

Change-Id: I35fed714645b21e4304ba38a11ebb9c4c963538e
2011-09-23 13:39:33 -07:00
Dianne Hackborn
04d98fb638 am 67c5b125: Merge "Fix issue #5321282: Force Stop Button in Battery Screen Not disabled correctly"
* commit '67c5b1251178532726964c2e0f4229d079ff0a3e':
  Fix issue #5321282: Force Stop Button in Battery Screen Not disabled correctly
2011-09-23 12:58:33 -07:00
Dianne Hackborn
80a7ac1063 Fix issue #5321282: Force Stop Button in Battery Screen Not disabled correctly
If the app had activities still finishing, when we checked whether it was
now stopped we would get told no.  Also some other improvements:

- Schedule an idle as part of the force stop, to get any finishing
  activities out of the stack soon rather than waiting for some activity
  to idle.
- Don't filter out stopped system apps.  This is dangerous because
  system apps may have no way for the user to explicitly launch them,
  so they could get put into a stopped state for which there is no way
  to get them out.  Also if the user really wants a system app to not
  run, the new disabling mechanism is more appropriate.

Change-Id: I34003f21dac29e2ca0f66a23b88c710de41bab99
2011-09-22 18:32:52 -07:00
Dianne Hackborn
0a4300b79f am 04ef5b8d: Merge "Fix issue #5253941: ICS ignoring provider\'s android:process flag"
* commit '04ef5b8dd7262ee90b56df9c992f103695d0a21c':
  Fix issue #5253941: ICS ignoring provider's android:process flag
2011-09-21 17:33:16 -07:00
Dianne Hackborn
2a6bcda03b Fix issue #5253941: ICS ignoring provider's android:process flag
Provider was not being removed from the class map because it was using
the wrong key.  D'oh.

Also a little cleanup.

Change-Id: I318e8b1a265318ac1474e0a7f14f27f89f357505
2011-09-21 15:07:05 -07:00
Mike Lockwood
1acfc1d48a ActivityManagerService: Disable app crashed dialog on headless builds
Change-Id: Ife4bd7ea2d660feb4d630be2ca63e0403e953dde
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-13 17:21:46 -04:00
Mike Lockwood
1d29e2129f Fix problems dispatching media button events on headless devices
Change-Id: Ib0f8ca008c7e1325d5dc6f6534f08960c527eeac
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-13 16:29:38 -04:00
Dianne Hackborn
2ac2a7c61c am e123612c: Merge "Work on issue #5144065: Tap on Music icon from Home screen - a different app opens"
* commit 'e123612c08719352d3313005d0b792f17bbe090d':
  Work on issue #5144065: Tap on Music icon from Home screen - a different app opens
2011-09-09 14:55:13 -07:00
Dianne Hackborn
e123612c08 Merge "Work on issue #5144065: Tap on Music icon from Home screen - a different app opens" 2011-09-09 14:53:53 -07:00
Dianne Hackborn
e5ba16a7af Work on issue #5144065: Tap on Music icon from Home screen - a different app opens
When force stopping an app, when removing its activities also finish any
activities from other apps above it in the task.  This avoids some situations
where the task gets into a bad state where its root becomes a different app.

Change-Id: I79e5cd520ae321bec80adefd2ccc2b0370ace372
2011-09-09 14:48:13 -07:00
Dianne Hackborn
238fb93c19 am 3cb55598: Merge "Fix issue #5139085: Some Recents items can\'t be killed"
* commit '3cb55598500be4cb3ae654cc2950a9338fb01a6a':
  Fix issue #5139085: Some Recents items can't be killed
2011-09-08 14:02:48 -07:00
Dianne Hackborn
eeb1dca393 Fix issue #5139085: Some Recents items can't be killed
Change-Id: Ib4fa413266c4aa2223576ce0299be743358fdc26
2011-09-08 13:30:11 -07:00
Dianne Hackborn
569857cd44 am 4ee36669: Merge "Fix issue #5263361: Browser instance not created in application picker"
* commit '4ee366690111e5f71a248a2af10301db425162d5':
  Fix issue #5263361: Browser instance not created in application picker
2011-09-08 10:41:59 -07:00
Dianne Hackborn
905577f634 Fix issue #5263361: Browser instance not created in application picker
The resolver activity was hiding the following activity from recents.

Also some other fixes: a little better memory use debugging, removed
some unneeded code from window manager, moved some system activities
into their own process, added some more running process information for
manage apps.

Change-Id: I66687d16989ff965d524b92dc360f37c19199717
2011-09-08 10:35:11 -07:00
Dianne Hackborn
59a12eb2cc am 6b0c11da: Merge "Fix issue #5150899: Call activity takes 15MB we never get back."
* commit '6b0c11da5a7a7ea236fd9dc409d1ce7a33bff9c2':
  Fix issue #5150899: Call activity takes 15MB we never get back.
2011-09-02 17:20:44 -07:00
Dianne Hackborn
5d927c2d8e Fix issue #5150899: Call activity takes 15MB we never get back.
Persistent process can no longer use hardware acclerated drawing
when running on a low-memory device.

Change-Id: I3110335617af1c98fcede9bf41f4a1d0c20d0e87
2011-09-02 12:22:18 -07:00
Mike Lockwood
056d76183e ActivityManager: Make sure BOOT_COMPLETED Intent is sent when running headless
Change-Id: I7419d14e1f2ac1e045bb95d16f5658a0217a9d81
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-31 14:48:35 -04:00
Dianne Hackborn
66e295b9a7 am 123adee3: Merge "Fix issue #5214105 and work on issue #5109947."
* commit '123adee398361809beaeddf2f3c073c0283b1e62':
  Fix issue #5214105 and work on issue #5109947.
2011-08-25 13:28:00 -07:00
Dianne Hackborn
295e3c27e4 Fix issue #5214105 and work on issue #5109947.
Change-Id: Iff2cfec5280a314989d915aa830c16124f921611
5214105: taking a screenshot while "Android is upgrading..." crashes device
5109947: Race condition between retrieving a content provider and updating its oom adj
2011-08-25 13:19:08 -07:00
Dianne Hackborn
e67afddf4a am 19bc995e: Merge "Fix animation scale to also scale start offset."
* commit '19bc995e9ae4ec9ea48c183758759e2b68ec964b':
  Fix animation scale to also scale start offset.
2011-08-25 13:14:11 -07:00
Jason Simmons
df6bb0a7ee resolved conflicts for merge of 33264596 to ics-aah
Change-Id: I1b0b2c3a63d97d49940666ceec71293bdbab4e2e
2011-08-25 09:57:48 -07:00
Dianne Hackborn
a4bacb8b74 Fix animation scale to also scale start offset.
Also more better info in meminfo dump.

Change-Id: I45ab41821cd8dd81b61605de6a0cf7074e76c71a
2011-08-24 15:12:38 -07:00
Dianne Hackborn
29aae6f36e Fix issue #4279860: previous UI flashes before showing lock screen...
...(when turning display on after recently turning it off)

Also clean up when we decide to turn the screen on to improve that
transition.  There are still problems here with turning it on
before the wallpaper gets dispayed.

Change-Id: I2bc56c12e5ad75a1ce5a0546f43a845bf0823e66
2011-08-23 17:44:52 -07:00
Jason Simmons
4fbb071fe8 resolved conflicts for merge of 661cd52e to ics-aah
Change-Id: I5eb4154ab969a5367e9f597595c09b5e499174d0
2011-08-22 16:39:16 -07:00
Dianne Hackborn
661cd52e0e Add progress dialog for booting after an upgrade.
This introduces a new facility for code during the boot process
to display messages to the user through a progress dialog.  This
is only for use when performing longer-than-usual post-upgrade
operations such as running dexopt on applications or upgrading
databases.

Change-Id: I0e78439ccec3850fb67872c22f235bf12a158dae
2011-08-22 13:42:05 -07:00
Christopher Tate
1c536f13cc am d6a2be3e: Merge "Allow Instrumentation to kill even persistent processes"
* commit 'd6a2be3ef75892d223bddc82db8a4b4f22d0ec20':
  Allow Instrumentation to kill even persistent processes
2011-08-19 15:23:13 -07:00
Christopher Tate
d6a2be3ef7 Merge "Allow Instrumentation to kill even persistent processes" 2011-08-19 15:21:43 -07:00
Christopher Tate
3dacd8470a Allow Instrumentation to kill even persistent processes
Fixes bug 5117630

Change-Id: Iff40145fbbdc1d81a60cf2ecc5b24321162f7897
2011-08-19 14:57:57 -07:00
Dianne Hackborn
ae070921fd am ace0be25: Merge "Fix issue #5187844: Query is misrouted to wrong content provider"
* commit 'ace0be25d8b1043c8f3d74f8daf20c485b7496ef':
  Fix issue #5187844: Query is misrouted to wrong content provider
2011-08-19 14:52:21 -07:00
Dianne Hackborn
1c9b260cf5 Fix issue #5187844: Query is misrouted to wrong content provider
Change-Id: I56834f41844990d67edc8af83273036b3d755e37
2011-08-19 14:08:43 -07:00
Dianne Hackborn
dccb1b0fc9 am 937ffc17: Merge "Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked"
* commit '937ffc174c742c56d33f64c6f1129403445193fd':
  Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked
2011-08-18 18:07:00 -07:00
Dianne Hackborn
d99b293d5f Fix issue #5180553: permission RECEIVE_BOOT_COMPLETED is not checked
Change-Id: I069673f2fbdf05e409c5e9ed99ccd1e15b4fe3ed
2011-08-18 16:02:41 -07:00
Dianne Hackborn
031057d845 am c7e6c479: Merge "Fix issue #5163456: logspam/tight loop in BatteryStatsImpl"
* commit 'c7e6c47952fdf5707cce1a2394a68c1dde59e5ca':
  Fix issue #5163456: logspam/tight loop in BatteryStatsImpl
2011-08-17 19:21:08 -07:00
Dianne Hackborn
e8c88e6f76 Fix issue #5163456: logspam/tight loop in BatteryStatsImpl
No longer use the old history code.

Change-Id: I878ffe16e0014453c46db6a4f7228a81468d8cb9
2011-08-17 19:09:23 -07:00
Dianne Hackborn
188abec55a am e518be30: am 51beb81a: am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."
* commit 'e518be3085c7457f3451a64fbea3f9499ae39bf5':
  Handle stopping of services with still bound applications.
2011-08-16 20:49:18 -07:00
Dianne Hackborn
e518be3085 am 51beb81a: am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."
* commit '51beb81a8e901020293b7a30a68b405bca71d258':
  Handle stopping of services with still bound applications.
2011-08-16 20:47:39 -07:00
Dianne Hackborn
51beb81a8e am ee93fd5c: am 7a0d746b: am baaf3ce6: Merge "Handle stopping of services with still bound applications."
* commit 'ee93fd5c0d7b0296fca17363ec00dc2ee63a0841':
  Handle stopping of services with still bound applications.
2011-08-16 20:45:19 -07:00
Dianne Hackborn
baaf3ce638 Merge "Handle stopping of services with still bound applications." 2011-08-16 19:29:25 -07:00
Mike Lockwood
210ea86260 Merge "Add headless mode for running the framework without the surface flinger" into ics-aah 2011-08-15 21:13:21 -07:00
Mike Lockwood
1c40327c7c Add headless mode for running the framework without the surface flinger
Enabled by setting system property ro.config.headless to 1
This will allow the framework to run without starting activities,
system UI and the keyguard.
Framework can still run services, content providers and broadcast receivers.

Change-Id: I507d461f937f9ae4e0cfc1067d66b83e58904d54
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-15 18:22:21 -07:00
Dianne Hackborn
62f20ecf49 Add new am option to profile the launching of an activity.
Change-Id: Ie71a8043eafe41f53a0b3dbb5170276d87acbc9b
2011-08-15 17:55:57 -07:00
Mark Brophy
c63502720e Store last-resume times in a separate XML file.
In UsageStatsService, separate last-resume times from the rest of
the statistics, and serialize them to an XML file daily.

This way, ApplicationsProvider will still be able to acces this data,
even thoguh other statistics are flushed to disk and discarded each day.

Bug: 5108745
Change-Id: Id3df3c98243ba02cde16b31e5e29bd9ff3602108
2011-08-08 16:24:16 +01:00
Dianne Hackborn
7d608423b7 Move OOM kernel settings to activity manager.
The activity manager now take care of plugging the correct settings
into the OOM killer in the kernel.  This is a lot cleaner because
it is really central to how the activity manager works, and nobody
else cares about them.

Taking advantage of this, the activity manager computes what it
thinks are appropriate OOM levels based on the RAM and display
size of the device.

Also a small optization to the package manager to keep a binding
to the package install helper for a bit after done using it, to
avoid thrashing on it.

And some new APIs that are now needed by Settings.

Change-Id: I2b2d379194445d8305bde331c19bde91c8f24751
2011-08-07 20:20:56 -07:00
Dianne Hackborn
b437e090ec Improved memory use reporting.
Change-Id: I38e53e6228bba92a142bafeedb5af8df4e4e5724
2011-08-05 18:18:05 -07:00
Dianne Hackborn
c68c913d35 Various work on out of memory managment.
- Improve how we handle processes that have shown UI, to take care
  of more cases where we want to push them into the background LRU
  list.
- New trim memory level for when an application that has done UI
  is no longer visible to the user.
- Add APIs to get new trim memory callback.
- Add a host of new bind flags to tweak how the system will adjust
  the OOM level of the target process.

Change-Id: I23ba354112f411a9f8773a67426b4dff85fa2439
2011-07-29 02:06:46 -07:00
Jeff Brown
d5d7e164d3 Support wrapping app processes to inject debug instrumentation.
Bug: 4437846

Change-Id: Ib0559e5224b0fa0df074e485787307b6634e8654
2011-07-28 14:00:27 -07:00
Christopher Tate
3c6c3ddb6a Merge "Don't actually try to stop processes marked 'persistent'" 2011-07-27 12:41:42 -07:00