Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by DuckOfDoom · Apr 06, 2016 at 02:15 PM · androidandroidpluginpermissions

READ_EXTERNAL_STORAGE permission out of nowhere

For some reason Unity keeps adding READ_EXTERNAL_STORAGE permission to my apk. There is not a single AndroidManifest.xml in the project where I declare that permission. I also checked all of my plugins and their post processors.

I also tried looking into Temp folder and the only file where I can find the string "READ_EXTERNAL_STORAGE" is libunity.so. Maybe Unity adds the permission there because I use one of the methods that require it?

I'm using some stuff from System.IO, namely StreamReader, also HttpWebRequest and similar stuff. Is there any way I can guess what produces this permission?

Unity 5.2.2f1

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dave-Carlile · Apr 06, 2016 at 02:43 PM 0
Share

Yes, Unity will add these permissions based on code you use. You can try commenting out suspected code until it's no longer auto-generated. If you're not actually reading from external storage you should be able to manually remove the permission in the final manifest.

avatar image DuckOfDoom Dave-Carlile · Apr 06, 2016 at 02:53 PM 0
Share

Thanks for the reply. The problem is - I'm not actually reading anything from external storage. I use StreamReaders to read data from HttpWebResponse streams. And I'm not even sure that StreamReader is the culprit.

avatar image Dave-Carlile DuckOfDoom · Apr 06, 2016 at 03:29 PM 0
Share

Unity doesn't know that - just knows you're using a class or assembly and generates the permission. You'll likely need to go through the steps I outlined to find out what it is and see if you can eli$$anonymous$$ate what's causing it. Or you'll need to manually remove the permission if it isn't applicable. You can search the forums for that permission as well and you may find more information there.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

57 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Remove the make a phone call permission (Android) 0 Answers

Avoid android permission prompt when returning to app after changing settings on device? 0 Answers

Unity Android Native Library Entry Point Not Found but ONLY on recently added functions 0 Answers

Finish UnityPlayerActivity in android unity project 0 Answers

Unable to locate player settings. bin/Data/settings.xml 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges