From 7135e1b5d47140e415346c4cd24c472f104b0f4c Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 2 May 2018 21:34:56 +0200 Subject: [PATCH] Update installation process --- OsmAnd/AndroidManifest-freedev.xml | 2 +- .../net/osmand/plus/activities/ContributionVersionActivity.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/AndroidManifest-freedev.xml b/OsmAnd/AndroidManifest-freedev.xml index c261d28945..cf06c52174 100644 --- a/OsmAnd/AndroidManifest-freedev.xml +++ b/OsmAnd/AndroidManifest-freedev.xml @@ -1,7 +1,7 @@ - + diff --git a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java index 048f272d6b..2701c75f22 100644 --- a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java @@ -110,6 +110,7 @@ public class ContributionVersionActivity extends OsmandListActivity { } else if(operationId == INSTALL_BUILD){ if(currentSelectedBuild != null){ Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setDataAndType(Uri.fromFile(pathToDownload), "application/vnd.android.package-archive"); startActivityForResult(intent, ACTIVITY_TO_INSTALL); updateInstalledApp(false, currentSelectedBuild.date);