android - 为什么 flutter 有 android.permission.REQUEST_INSTALL_PACKAGES

标签 android flutter android-permissions

我将我的 bundle 上传到谷歌播放并向我展示了这个权限,其中包含
android.permission.REQUEST_INSTALL_PACKAGES

这是我的 AndroidManifest 文件内容:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flutter.application">

<!-- The INTERNET permission is required for development. Specifically,
     flutter needs it to communicate with the running application
     to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET"/>
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
     calls FlutterMain.startInitialization(this); in its onCreate method.
     In most cases you can leave this as-is, but you if you want to provide
     additional functionality it is fine to subclass or reimplement
     FlutterApplication and put your custom class here. -->
<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="flutter"
    android:icon="@mipmap/ic_launcher">
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <!-- This keeps the window background of the activity showing
             until Flutter renders its first frame. It can be removed if
             there is no splash screen (such as the default splash screen
             defined in @style/LaunchTheme). -->
        <meta-data
            android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
            android:value="true" />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
        <intent-filter>
            <action android:name="FLUTTER_NOTIFICATION_CLICK" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.yalantis.ucrop.UCropActivity"
        android:screenOrientation="portrait"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
</application>

这个权限是什么以及我如何处理它或从我的包裹中删除它
当我在手机上安装我的应用程序时,此权限不显示?

最佳答案

好的,我找到了为什么将 android.permission.REQUEST_INSTALL_PACKAGES 权限添加到包中
这是因为 file_open 包有这个权限
并自动添加到项目中

关于android - 为什么 flutter 有 android.permission.REQUEST_INSTALL_PACKAGES,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59598402/

相关文章:

用于调用 Web 服务的 Android 代码给出 "application stopped unexpectedly"错误

Android异常: java. io.IOException:打开失败:EACCES(权限被拒绝)

Android 11 对麦克风使用的限制

java - 如何跨多个 IntelliJ 项目使用公共(public)源代码?

android - 如何从Android中的其他包中引用类?

flutter - 多提供者在 flutter 中的 Material 应用程序中不起作用?

dart - 如何检查用户是否已登录,如果已登录则显示其他屏幕?

flutter - 在运行 Flutter For Web 应用程序时,Flutter 无法解析依赖项。进程以退出代码 69 结束

android - 我的应用仅使用存储权限,是否需要隐私政策?

android - 无提示调用号码