question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Here we have some default permissions https://github.com/crazecoder/open_file/blob/master/android/src/main/AndroidManifest.xml#L5-L6

  1. How can I remove them?
  2. Why we have REQUEST_INSTALL_PACKAGES?
  3. I am always using getApplicationDocumentsDirectory so I think READ_EXTERNAL_STORAGE is redundant , right?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
crazecodercommented, Apr 19, 2021

For ease of use, the required permissions are written in the plugin. If you don’t need them, you can remove them like this

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="xxxxx">
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"
        tools:node="remove"/> 
</manifest>
1reaction
micsan13brcommented, Apr 26, 2021

These permissions should not be included by default and should be moved to the readme page. “Don’t unnecessarily request storage-related permissions for devices that run Android 10 or higher” https://developer.android.com/training/data-storage/shared/media

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permissions on Android - Android Developers
... <data> · <grant-uri-permission> · <instrumentation> · <intent-filter> · <manifest> ... Best practices for sharing video · Additional Resources for Media.
Read more >
Extra permissions are being added to apk and bundle
When I build apk or bundle dangerous permissions like write external storage is being added to manifest. I found out it when wanted...
Read more >
Change app permissions on your Android phone - Google Help
On your phone, open the Settings app. · Tap Apps. · Tap the app you want to change. If you can't find it,...
Read more >
Permissions Property - Business Central | Microsoft Learn
Sets whether an object has additional permission required to perform some operations on one or more tables.
Read more >
Requesting additional permissions | Authentication
When requesting user permission to access user data or other resources, you can request all scopes up-front in the initial request or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found