Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by UDN_d20097af-75a5-4446-beed-b85569b12afb · Jan 29, 2021 at 01:05 PM · android-manifestpermissions

I cant set up the permissions/ i dont have AndroidManifets.xml

I wanted to read users data like images to use it in the game. This needs to the user can set up own pictures. But there is a several problems to me. I know that i need permissions to read and write data and i need to set those permission into the AndroidManifets.xml, but i dont have it. Insted i have LauncherManifest.xml and UnityManifest.xml. Which one i should use to set up my permission.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by xxmariofer · Jan 29, 2021 at 02:01 PM

Simply create your own AndroidManifest.xml in yoour project and unity will mix it with its own manifest. The permision for reading and writing data can be set in the

 project settings > player > other settings > write permission 

and unity will automatically add them to the manifest

Comment
Add comment · Show 4 · Share
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 UDN_d20097af-75a5-4446-beed-b85569b12afb · Jan 29, 2021 at 02:30 PM 0
Share

Just create an empty file Plugins/Android/Android$$anonymous$$anifest.xml?

avatar image UDN_d20097af-75a5-4446-beed-b85569b12afb · Jan 29, 2021 at 03:10 PM 0
Share

thanks its working for external storage now would it work for internal storage too? and its asking for permissionon the start of the game, how can i make it not asking for permission on the start. and one more question almost each android device has its own dcim path is there a solution to find dcim folder for each android device?

avatar image xxmariofer UDN_d20097af-75a5-4446-beed-b85569b12afb · Jan 30, 2021 at 08:11 PM 0
Share

Yes, create an empty Plugins/Android/Android$$anonymous$$anifest.xml, it doesnt need to be in that path but is a good practice, (you can pick a manifest sample from the web, it doesnt need to be empty, unity will merge them on the export) second, I am not sure if I understand your issue, if your app requieres a permision that is not granted by default the user needs to grant it manually, thats android politics to avoid harmfull apps. I am not aware about the dcim path in unity, most likely you need to build your native plugins in android studio and use it from unity, or simply use one of the solutions provided by third parties like (I havepersonally used this and if you want to get the path to a video/image in the gallery this works perfectly) :

https://assetstore.unity.com/packages/tools/integration/native-gallery-for-android-ios-112630?_ga=2.237441216.1312290864.1612036169-1322877492.1590351887

avatar image UDN_d20097af-75a5-4446-beed-b85569b12afb xxmariofer · Feb 01, 2021 at 03:09 PM 0
Share

thanks ill try it

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

111 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 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

Android Location Permission 0 Answers

Removing unecessary permissions from AndroidManifest that Unity+Plugins put in there? 0 Answers

Does WRITE_EXTERNAL_STORAGE permission auto popup when run App ? 0 Answers

Android Manifest with Single Permission 2 Answers

Remove the make a phone call permission (Android) 0 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