OSDN Git Service

Spooler should not crash if print service config activities are not exported.
authorSvetoslav Ganov <svetoslavganov@google.com>
Sat, 14 Sep 2013 07:59:03 +0000 (00:59 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Sat, 14 Sep 2013 08:00:55 +0000 (01:00 -0700)
commit860f8a6b663ca96d30d17da09eca8caf065aae62
tree380a1f552c7584ac4a7c7bc0713c07473b696dfb
parentc8db445e42f1b60b9af036cb0d793ee11ae4c9c6
Spooler should not crash if print service config activities are not exported.

1. If a print service does not export its activities for settings and
   adding printers the print spooler ignores them instead of crashing.
   Also if the service is not enabled its activities are now ignored.

2. Added a dedicated permission for a print service to optionally
   protect its settings and add printer activities such that only the
   system can bind to them.

3. Fixed a crash in the print dialog if its content is detached
   from the window and animators are running.

bug:10680224

Change-Id: I20b57d6622a15f9b2352ba78d04c44e67b316a15
core/java/android/print/IPrintManager.aidl
core/java/android/print/PrintManager.java
core/java/android/printservice/PrintService.java
packages/PrintSpooler/AndroidManifest.xml
packages/PrintSpooler/res/values/strings.xml
packages/PrintSpooler/src/com/android/printspooler/PrintJobConfigActivity.java
packages/PrintSpooler/src/com/android/printspooler/SelectPrinterFragment.java
services/java/com/android/server/print/PrintManagerService.java
services/java/com/android/server/print/UserState.java