OSDN Git Service

Do not thrown on error persisting runtime permissions
authorSvet Ganov <svetoslavganov@google.com>
Sat, 20 Jun 2015 17:31:25 +0000 (10:31 -0700)
committerSvet Ganov <svetoslavganov@google.com>
Sat, 20 Jun 2015 17:31:28 +0000 (10:31 -0700)
bug:20752986

Change-Id: I49d7e30afd49d3dcb1bcffd2fd48e9460ed5147f

services/core/java/com/android/server/pm/Settings.java

index 286bbfe..6415343 100644 (file)
@@ -4339,8 +4339,6 @@ final class Settings {
                 Slog.wtf(PackageManagerService.TAG,
                         "Failed to write settings, restoring backup", t);
                 destination.failWrite(out);
-                throw new IllegalStateException("Failed to write runtime permissions,"
-                        + " restoring backup", t);
             } finally {
                 IoUtils.closeQuietly(out);
             }