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

Commit 03bf3596 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Fixing NPE when there is no DownloadProvider

If there is no content provider registered for authority 'downloads', or
it is disabled, InstallStart would crash. Fixing it by checking for
null.

Test: Manual.
1. Disable DownloadProvider:
adb shell pm disable com.android.providers.downloads
2. Use ES File explorer (or any other 3p app) to launch an apk install.
No crash - install goes through normally.

Fixes: 73078986
Change-Id: I4876174a7a87530aacaf9f35cca3071fa353b339
parent 349e3eeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment