From d43eea7ebe9b9c6ebfa46a16348ca3145d63a2ed Mon Sep 17 00:00:00 2001 From: NekoInverter <42698724+NekoInverter@users.noreply.github.com> Date: Wed, 5 Feb 2020 19:11:34 +0800 Subject: [PATCH] fix install apk crash --- .../java/org/meowcat/edxposed/manager/util/InstallApkUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/meowcat/edxposed/manager/util/InstallApkUtil.java b/app/src/main/java/org/meowcat/edxposed/manager/util/InstallApkUtil.java index 99c19e5d..536a815b 100644 --- a/app/src/main/java/org/meowcat/edxposed/manager/util/InstallApkUtil.java +++ b/app/src/main/java/org/meowcat/edxposed/manager/util/InstallApkUtil.java @@ -16,6 +16,7 @@ import androidx.core.content.FileProvider; import com.topjohnwu.superuser.Shell; +import org.meowcat.edxposed.manager.BuildConfig; import org.meowcat.edxposed.manager.R; import org.meowcat.edxposed.manager.XposedApp; @@ -58,7 +59,7 @@ public class InstallApkUtil extends AsyncTask { installIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Uri uri; if (Build.VERSION.SDK_INT >= 24) { - uri = FileProvider.getUriForFile(context, "moe.guo.edxpmanager.fileprovider", new File(localFilename)); + uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID + ".fileprovider", new File(localFilename)); installIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } else { uri = Uri.fromFile(new File(localFilename));