Open opxdelwin opened 6 months ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
HELLO?
I cannot reproduce this with the example
project, this is my merged manifest in the example app:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.shareexample"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="34" />
<uses-permission android:name="android.permission.INTERNET" />
<permission
android:name="io.flutter.plugins.shareexample.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION"
android:protectionLevel="signature" />
<uses-permission android:name="io.flutter.plugins.shareexample.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" />
<application
android:name="android.app.Application"
android:appComponentFactory="androidx.core.app.CoreComponentFactory"
android:debuggable="true"
android:extractNativeLibs="true"
android:icon="@mipmap/ic_launcher"
android:label="share_example" >
<activity
android:name="io.flutter.embedding.android.FlutterActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection"
android:exported="true"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Black.NoTitleBar"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<provider
android:name="io.flutter.plugins.imagepicker.ImagePickerFileProvider"
android:authorities="io.flutter.plugins.shareexample.flutter.image_provider"
android:exported="false"
android:grantUriPermissions="true" >
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/flutter_image_picker_file_paths" />
</provider>
<!--
Declares a provider which allows us to store files to share in
'.../caches/share_plus' and grant the receiving action access
-->
<provider
android:name="dev.fluttercommunity.plus.share.ShareFileProvider"
android:authorities="io.flutter.plugins.shareexample.flutter.share_provider"
android:exported="false"
android:grantUriPermissions="true" >
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/flutter_share_file_paths" />
</provider>
<!--
This manifest declared broadcast receiver allows us to use an explicit
Intent when creating a PendingItent to be informed of the user's choice
-->
<receiver
android:name="dev.fluttercommunity.plus.share.SharePlusPendingIntent"
android:exported="false" >
<intent-filter>
<action android:name="EXTRA_CHOSEN_COMPONENT" />
</intent-filter>
</receiver>
<uses-library
android:name="androidx.window.extensions"
android:required="false" />
<uses-library
android:name="androidx.window.sidecar"
android:required="false" />
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="io.flutter.plugins.shareexample.androidx-startup"
android:exported="false" >
<meta-data
android:name="androidx.profileinstaller.ProfileInstallerInitializer"
android:value="androidx.startup" />
</provider>
<receiver
android:name="androidx.profileinstaller.ProfileInstallReceiver"
android:directBootAware="false"
android:enabled="true"
android:exported="true"
android:permission="android.permission.DUMP" >
<intent-filter>
<action android:name="androidx.profileinstaller.action.INSTALL_PROFILE" />
</intent-filter>
<intent-filter>
<action android:name="androidx.profileinstaller.action.SKIP_FILE" />
</intent-filter>
<intent-filter>
<action android:name="androidx.profileinstaller.action.SAVE_PROFILE" />
</intent-filter>
<intent-filter>
<action android:name="androidx.profileinstaller.action.BENCHMARK_OPERATION" />
</intent-filter>
</receiver>
</application>
</manifest>
Also, no AD_ID
is found in the packages/share_plus/share_plus/example/build/app/outputs/logs/manifest-merger-debug-report.txt
file.
Are you sure you are talking about share_plus
? Can you try with the latest plugin release?
Besides, I fail to understand how share_plus could add that permission, except if there is some kind of malicious dependency in pub.dev or similar. Overall this is very strange.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days
Platform
emulator
Plugin
share_plus
Version
^7.1.0
Flutter SDK
3.0.6
Steps to reproduce
release
buildbuild\app\intermediates\merged_manifest\release\AndroidManifest.xml
, see that permissioncom.google.android.gms.permission.AD_ID
was added.build\app\outputs\logs\manifest-merger-profile-report.txt
to find that permission was added by share_plus.Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean