uni-app 云打包无法修改AndroidManifest.xml中的android:exported为true,无法修改权限配置
uni-app 云打包无法修改AndroidManifest.xml中的android:exported为true,无法修改权限配置
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Mac | macOS 15.1 | HBuilderX |
产品分类:uniapp/App
PC开发环境操作系统:Mac
PC开发环境操作系统版本号:macOS 15.1
HBuilderX类型:正式
HBuilderX版本号:4.75
手机系统:Android
手机系统版本号:Android 15
手机厂商:华为
手机机型:荣耀V20
页面类型:vue
vue版本:vue2
打包方式:云端
项目创建方式:HBuilderX
示例代码:
```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.oxmd.app">
<application>
<activity android:name="io.dcloud.PandoraEntryActivity" android:exported="true"
tools:replace="android:exported">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
</application>
</manifest>
操作步骤:
- 直接云打包
预期结果:
- 云打包后解包apk,得到AndroidManifest文件里面的android:exported为true,可以在手机相册分享中暴露出app
实际结果:
- 云打包后解包apk,得到AndroidManifest文件里面的android:exported为false,无法在手机相册分享中暴露出app
bug描述: 我在项目根目录新增了AndroidManifest.xml文件,添加了android.intent.action.SEND权限,但是云打包后android:exported被设置为false,无法在手机相册分享中暴露出来。
更多关于uni-app 云打包无法修改AndroidManifest.xml中的android:exported为true,无法修改权限配置的实战教程也可以访问 https://www.itying.com/category-93-b0.html

