You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "mejainankit (via GitHub)" <gi...@apache.org> on 2024/02/27 11:11:55 UTC

[I] Duplicate Permission Error For WRITE_EXTERNAL_STORAGE [cordova-plugin-camera]

mejainankit opened a new issue, #882:
URL: https://github.com/apache/cordova-plugin-camera/issues/882

   # Bug Report
   
   ## Problem
   Duplicate Permission Error For WRITE_EXTERNAL_STORAGE is being added in Android Manifest file
   
   ### What is expected to happen?
   It should not add duplicate WRITE_EXTERNAL_STORAGE
   
   ### What does actually happen?
   Due to minSDK check, this was creating multiple permission in Android manifest file.
   If you are using any other plugin, which also requires the WRITE_EXTERNAL_STORAGE
   
   Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:20:5-108 duplicated with element declared at AndroidManifest.xml:13:5-81
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   plugin.xml
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Android
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Duplicate Permission Error For WRITE_EXTERNAL_STORAGE [cordova-plugin-camera]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #882: Duplicate Permission Error For WRITE_EXTERNAL_STORAGE
URL: https://github.com/apache/cordova-plugin-camera/issues/882


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Duplicate Permission Error For WRITE_EXTERNAL_STORAGE [cordova-plugin-camera]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #882:
URL: https://github.com/apache/cordova-plugin-camera/issues/882#issuecomment-1966559197

   Details on why max SDK is included in #881 along why #881 is accepted.
   
   To workaround this issue, you can use a hook to remove any duplicate entries: https://gist.github.com/breautek/bd157b8598f9a816f2ec0d45e3d932c8
   
   I'd recommend keeping the one with the max SDK 32 declared. The gist was originally prepared for this [SO Question](https://stackoverflow.com/questions/77074389/duplicate-write-external-storage-permissions-in-androidmanifest-using-cordova-12/77078295#77078295) and includes some usage examples.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Duplicate Permission Error For WRITE_EXTERNAL_STORAGE [cordova-plugin-camera]

Posted by "mejainankit (via GitHub)" <gi...@apache.org>.
mejainankit commented on issue #882:
URL: https://github.com/apache/cordova-plugin-camera/issues/882#issuecomment-1966317624

   This can be fixed with this PR https://github.com/apache/cordova-plugin-camera/pull/881


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Duplicate Permission Error For WRITE_EXTERNAL_STORAGE [cordova-plugin-camera]

Posted by "mejainankit (via GitHub)" <gi...@apache.org>.
mejainankit commented on issue #882:
URL: https://github.com/apache/cordova-plugin-camera/issues/882#issuecomment-1968293175

   @breautek Thanks for the update


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org