diff --git a/packages/Shell/res/values/strings.xml b/packages/Shell/res/values/strings.xml index 95e36fd479d3d..3d6643d8b0a0e 100644 --- a/packages/Shell/res/values/strings.xml +++ b/packages/Shell/res/values/strings.xml @@ -44,6 +44,8 @@ Bug report file could not be read + + Couldn\'t add bug report details to zip file unnamed diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index 7023a1a7d566d..474e3e64ad3d2 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -1134,6 +1134,8 @@ public class BugreportProgressService extends Service { addEntry(zos, "description.txt", info.description); } catch (IOException e) { Log.e(TAG, "exception zipping file " + tmpZip, e); + Toast.makeText(mContext, R.string.bugreport_add_details_to_zip_failed, + Toast.LENGTH_LONG).show(); return; } finally { // Make sure it only tries to add details once, even it fails the first time.