Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f982d7e7 authored by Songchun Fan's avatar Songchun Fan
Browse files

[PackageInstaller] catch yet another exception

In certain corner cases ContentResolver might throw an
IllegalArgumentException. The caller is expected to catch such exception
and handle it gracefully.

BUG: 240380933
Test: builds
Change-Id: I14cae1d54d65957a418551cea5db5e1bcab14acb
parent 723ce143
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -189,7 +189,8 @@ public class InstallStaging extends AlertActivity {
                        out.write(buffer, 0, bytesRead);
                    }
                }
            } catch (IOException | SecurityException | IllegalStateException e) {
            } catch (IOException | SecurityException | IllegalStateException
                    | IllegalArgumentException e) {
                Log.w(LOG_TAG, "Error staging apk from content URI", e);
                return false;
            }