Skip to content

Commit 350bb15

Browse files
committed
Remove pointless exception supression.
Bug: 7198235 Change-Id: I3371403a79fd3e01d46678d58129d36eb921d10a
1 parent 0967a9e commit 350bb15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private boolean verifySignature(String content, int version, String requiredPrev
223223
return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT));
224224
}
225225

226-
private void writeUpdate(File dir, File file, String content) {
226+
private void writeUpdate(File dir, File file, String content) throws IOException {
227227
FileOutputStream out = null;
228228
File tmp = null;
229229
try {
@@ -247,8 +247,6 @@ private void writeUpdate(File dir, File file, String content) {
247247
if (!tmp.renameTo(file)) {
248248
throw new IOException("Failed to atomically rename " + file.getCanonicalPath());
249249
}
250-
} catch (IOException e) {
251-
Slog.e(TAG, "Failed to write update", e);
252250
} finally {
253251
if (tmp != null) {
254252
tmp.delete();
@@ -257,7 +255,7 @@ private void writeUpdate(File dir, File file, String content) {
257255
}
258256
}
259257

260-
private void install(String content, int version) {
258+
private void install(String content, int version) throws IOException {
261259
writeUpdate(updateDir, updateContent, content);
262260
writeUpdate(updateDir, updateVersion, Long.toString(version));
263261
}

0 commit comments

Comments
 (0)