summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/updates
diff options
context:
space:
mode:
authorGeremy Condra <gcondra@google.com>2012-09-20 01:40:03 -0700
committerGeremy Condra <gcondra@google.com>2012-09-20 01:40:03 -0700
commit350bb15ac74e0abb68ce0e2b2b972dc3cef46aff (patch)
tree74bd28493dd1540a82253cf5aaf1b7fe6baa2cad /services/java/com/android/server/updates
parent0967a9edfc29fe601c9242648b93448d710b7a97 (diff)
downloadframeworks_base-350bb15ac74e0abb68ce0e2b2b972dc3cef46aff.zip
frameworks_base-350bb15ac74e0abb68ce0e2b2b972dc3cef46aff.tar.gz
frameworks_base-350bb15ac74e0abb68ce0e2b2b972dc3cef46aff.tar.bz2
Remove pointless exception supression.
Bug: 7198235 Change-Id: I3371403a79fd3e01d46678d58129d36eb921d10a
Diffstat (limited to 'services/java/com/android/server/updates')
-rw-r--r--services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java b/services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java
index 5da612a..e07230d 100644
--- a/services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java
+++ b/services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java
@@ -223,7 +223,7 @@ public class ConfigUpdateInstallReceiver extends BroadcastReceiver {
return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT));
}
- private void writeUpdate(File dir, File file, String content) {
+ private void writeUpdate(File dir, File file, String content) throws IOException {
FileOutputStream out = null;
File tmp = null;
try {
@@ -247,8 +247,6 @@ public class ConfigUpdateInstallReceiver extends BroadcastReceiver {
if (!tmp.renameTo(file)) {
throw new IOException("Failed to atomically rename " + file.getCanonicalPath());
}
- } catch (IOException e) {
- Slog.e(TAG, "Failed to write update", e);
} finally {
if (tmp != null) {
tmp.delete();
@@ -257,7 +255,7 @@ public class ConfigUpdateInstallReceiver extends BroadcastReceiver {
}
}
- private void install(String content, int version) {
+ private void install(String content, int version) throws IOException {
writeUpdate(updateDir, updateContent, content);
writeUpdate(updateDir, updateVersion, Long.toString(version));
}