6 package com.google.appinventor.components.runtime.util;
8 import android.net.Uri;
9 import android.os.Build;
10 import android.util.Log;
11 import androidx.core.content.FileProvider;
18 private static final String LOG_TAG =
NougatUtil.class.getSimpleName();
24 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
26 return Uri.fromFile(apk);
29 String packageName = form.
$context().getPackageName();
30 Log.d(LOG_TAG,
"packageName = " + packageName);
31 return FileProvider.getUriForFile(form.
$context(), packageName +
".provider", apk);