# Android 10 Save Game Doesn't Work

**URL:** <https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755>\
**Category:** Mobile\
**Tags:** save-game, permission, unreal-engine, Android, question\
**Created:** [April 14, 2020, 12:33pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755 "2020-04-14T12:33:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![HakanErunsal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Post date:** [April 14, 2020, 12:33pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/1 "2020-04-14T12:33:53Z")

</div>

Hello, I have a published game on google play store, which already sold more than 500 and already has active players with save files. When I am publishing, I did not check the Use ExternalFilesDir option. Because for most of the devices save and load function works. But as I get from the reviews and comments under the game, most of the Android 10 users cannot save the game. If I check Use ExternalFilesDir option and update the game, I know all users who have already played the game will loose their save data. We do not want that because most of them already bought in app purchases and in game currency. Is there any way for us to fix this save game issue for android 10 without loosing the active players save data?

Note, I ask for write external permission on start. I checked on my Android 10 device for the application permissions and it has writing permission already. But still doesn’t save.

I tried the game on Android 10, in folder manager, UE4Game folder is not event created while playing, so it’s not writing.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![HakanErunsal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Post date:** [April 16, 2020, 9:45am UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/2 "2020-04-16T09:45:12Z")

</div>

Fixed by changing target api from 29 to 28.

---

<div class="post-metadata">

**Author:** ![CatalinDL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CatalinDL](https://forums.unrealengine.com/u/CatalinDL)\
**Post date:** [October 23, 2020, 7:19pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/3 "2020-10-23T19:19:22Z")

</div>

pfff … i have the same save game problem, but if i change api to 28 then Google will not let me upload it and ask me to use minimum api 29.

---

<div class="post-metadata">

**Author:** ![NAK\_LEVI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NAK\_LEVI](https://forums.unrealengine.com/u/NAK_LEVI)\
**Post date:** [November 10, 2020, 11:47pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/4 "2020-11-10T23:47:01Z")

</div>

Same, did you find any way around this?

---

<div class="post-metadata">

**Author:** ![HakanErunsal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Post date:** [November 11, 2020, 8:58am UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/5 "2020-11-11T08:58:36Z")

</div>

No, with the Google update requiring 29 as minimum api, we have no solution

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [November 14, 2020, 7:03pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/6 "2020-11-14T19:03:46Z")

</div>

Note that is better to store in app purchase on an external server / database since the local savegame can be easily altered to unlock anything for free.

I just noticed that my game wasn’t saving, and i got into checking why it’s not working since then.  
For what i found even epic says to Use ExternalFilesDir option, wich was not working for me on any target api, so i remade my Logic for Saving / Loading and Checking for Permissions and now it’s working but it’s probably not what we want so i finally found this page and got some info on what is going on:

> **[Android storage use cases and best practices  |  Android Developers](https://developer.android.com/training/data-storage/use-cases#opt-out-scoped-storage)**

ACTUAL SOLUTION:  
Check and rewrite your logic according to mine if this is not working for you

1. Uncheck Use ExternalFilesDir
2. Change your target API to 30 i found out it’s not working if you use 29 for some odd reason.
3. In  
project settings in Android tab, add  
an extra tag for application node  
and put this

> `android:requestLegacyExternalStorage="true"`

1. Add this Extra permissions

> `android.permission.WRITE_EXTERNAL_STORAGE`  
> `android.permission.READ_EXTERNAL_STORAGE`

 ![322036-permissions.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/f/58f4b9cd241450fa526879c8b3af977fe25f6f26.png)

If your app is scripted well it should work this way, if not you can check the screenshots of how i setup my logic in the Game Instance and just do a straight forward Save Game if the Save Game is not present.  
Hope this help you guys out to have save game working on latest api and upload to google play!

 ![322020-blueprint1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/c/32ca5dc332ff6a6a65528a6128f4048ec3bb1e9d.png)

 ![322041-blueprint2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/7/3d73eac6ab0530f86ad333b126818f5b5349c690.png)

Note that i removed the isValid node and moved the creation of the save object at the beginning of Event Init to fix some issues

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [November 14, 2020, 7:41pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/7 "2020-11-14T19:41:51Z")

</div>

I updated my answer after further testing and it’s working perfectly for me now without the use of ExternalFilesDir option  
If it works for you aswell please mark as answer for others with this problem!  
This was a real struggle been 48 hours of hell.

---

<div class="post-metadata">

**Author:** ![NAK\_LEVI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NAK\_LEVI](https://forums.unrealengine.com/u/NAK_LEVI)\
**Post date:** [November 15, 2020, 9:42pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/8 "2020-11-15T21:42:06Z")

</div>

Have you tested a shipping package? Mine only seems to work on a distribution version (at API 29)

---

<div class="post-metadata">

**Author:** ![NAK\_LEVI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NAK\_LEVI](https://forums.unrealengine.com/u/NAK_LEVI)\
**Post date:** [November 15, 2020, 9:42pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/9 "2020-11-15T21:42:34Z")

</div>

Excellent answer man.

---

<div class="post-metadata">

**Author:** ![HakanErunsal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Post date:** [November 16, 2020, 11:10am UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/10 "2020-11-16T11:10:18Z")

</div>

I am testing this, I’ll mark it if it works

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [November 16, 2020, 7:24pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/11 "2020-11-16T19:24:21Z")

</div>

If it’s relevant my game is packaged for Shipping with For Distribution checked on target 30 and works as intended on Android 10

---

<div class="post-metadata">

**Author:** ![HakanErunsal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Post date:** [January 2, 2021, 3:34pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/12 "2021-01-02T15:34:21Z")

</div>

I also made the same changes but still doesn’t save on android 10. It’s built for target 30.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_50949673](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_50949673](https://forums.unrealengine.com/u/anonymous_user_50949673)\
**Post date:** [January 24, 2021, 12:20pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/13 "2021-01-24T12:20:23Z")

</div>

Have you fixed your problem? (Because I have the same problem)

---

<div class="post-metadata">

**Author:** ![HakanErunsal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Post date:** [January 24, 2021, 12:23pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/14 "2021-01-24T12:23:44Z")

</div>

Shipping with android target 30 solved the issue for most of the devices that has android 10. But still, there are some who still have the save issue. And I have no idea why.

---

<div class="post-metadata">

**Author:** ![Silirin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Silirin](https://forums.unrealengine.com/u/Silirin)\
**Post date:** [April 12, 2021, 8:24pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/15 "2021-04-12T20:24:54Z")

</div>

Hi, I would like to ask, because I have the same problem with Android 11. On Android 10 everything works fine, what should I do to make save system work on Android 11?

---

<div class="post-metadata">

**Author:** ![3dvirtualworks\_d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dvirtualworks\_d](https://forums.unrealengine.com/u/3dvirtualworks_d)\
**Post date:** [June 1, 2021, 12:40pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/16 "2021-06-01T12:40:18Z")

</div>

I have the same problem for android 11. Is there anyone who can help us?

---

<div class="post-metadata">

**Author:** ![3dvirtualworks\_d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dvirtualworks\_d](https://forums.unrealengine.com/u/3dvirtualworks_d)\
**Post date:** [June 1, 2021, 12:53pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/17 "2021-06-01T12:53:31Z")

</div>

Did you find the solution to the problem? There are people who have the same problem.

---

<div class="post-metadata">

**Author:** ![Arturogalaxy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arturogalaxy](https://forums.unrealengine.com/u/Arturogalaxy)\
**Post date:** [June 6, 2021, 1:08am UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/18 "2021-06-06T01:08:58Z")

</div>

my question is, why don’t just use “Use ExternalFilesDir for UE4Game files” ? What are the advantages of each option?

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [June 23, 2021, 1:44pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/19 "2021-06-23T13:44:36Z")

</div>

The ExternalFilesDir delete the save game when uninstalling the app, the other way you can keep the savegame when the game is uninstalled.  
But since Android 11 has new restrictions, that is the easiest solution.

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [June 23, 2021, 1:50pm UTC](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755/20 "2021-06-23T13:50:48Z")

</div>

As a followup to my answer, i can confirm that everything works for Android 10 and Below,  
but Android 11 has new scoped restrictions and they changed the way you can access and write files.  
So this will not work on Android 11, the best thing is using the "Use ExternalFilesDir option, Otherwise you will have to edit the engine and change the save path and point it somwhere that can work with the new android 11 scoped permissions, another possible way is to use the new Permission to access all files but that requires google to grant you the permission to use it at the moment, that is what i know so far, if anyone has some more informations maybe we can figure it out. In my opinion is not worth the trouble of editing the engine at the moment, so for the moment i propose the use of ExternalFilesDir.

[Next page](https://forums.unrealengine.com/t/android-10-save-game-doesnt-work/463755.md?page=2)
