@@ -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