# Save game not work on Android sdk version 30

**URL:** <https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426>\
**Category:** Editor Scripting\
**Tags:** savegame, Android-Packaging, unreal-engine, Android, question\
**Created:** [July 20, 2021, 8:40am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426 "2021-07-20T08:40:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CppGod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CppGod](https://forums.unrealengine.com/u/CppGod)\
**Post date:** [July 20, 2021, 8:40am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/1 "2021-07-20T08:40:42Z")

</div>

Hello everyone, according to the new Google policy, soon all applications should support SDK version 30, but the problem is that saves do not work in this version of SDK, has someone encountered this problem or knows how to solve it? I have the required permission to read and write files

 ![344565-pmsn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/b/67b8d3a91161ecac076c168ed2feeb375117cf32.png)

---

<div class="post-metadata">

**Author:** ![threepm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@threepm](https://forums.unrealengine.com/u/threepm)\
**Post date:** [August 4, 2021, 3:26am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/2 "2021-08-04T03:26:17Z")

</div>

I am also experiencing the same issue. Android is not saving any file, however, saves do work if ran in editor.

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 6, 2021, 1:35am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/3 "2021-08-06T01:35:19Z")

</div>

Brother have you found the solution to this problem??? I have searched alot but no hellp ☹

---

<div class="post-metadata">

**Author:** ![CppGod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CppGod](https://forums.unrealengine.com/u/CppGod)\
**Post date:** [August 6, 2021, 8:11am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/4 "2021-08-06T08:11:17Z")

</div>

There is no problem, it turns out because of the new security system this is how it should work, after you pack the game with a key and for distribution, everything will work through google play

---

<div class="post-metadata">

**Author:** ![CppGod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CppGod](https://forums.unrealengine.com/u/CppGod)\
**Post date:** [August 6, 2021, 8:11am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/5 "2021-08-06T08:11:21Z")

</div>

There is no problem, it turns out because of the new security system this is how it should work, after you pack the game with a key and for distribution, everything will work through google play

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 6, 2021, 1:16pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/6 "2021-08-06T13:16:14Z")

</div>

Really thanks for solution. But i am kinda confuse. I will be thankfull if you give me following information

1. You are successfully saving game in android 11 using just **“Write\_External\_storage”**  **“Read\_External\_Storage”** permissions???

2. Or you used **“Manage\_External\_Storage”** Permission??

3. Or you are Requesting Write/Read Permissions in runtime through Blueprint node **“Request Permission”**??

If you used some other way kindly tell me Or if you can, kindly share you project setting android section image. So that i can see what permissions you used.

I will be very greatfull to you brother 🙂

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 7, 2021, 8:48am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/7 "2021-08-07T08:48:50Z")

</div>

Really thanks for solution. But i am kinda confuse. I will be thankfull if you give me following information

You are successfully saving game in android 11 using just “Write\_External\_storage” “Read\_External\_Storage” permissions???

Or you used “Manage\_External\_Storage” Permission??

Or you are Requesting Write/Read Permissions in runtime through Blueprint node “Request Permission” ??

If you used some other way kindly tell me Or if you can, kindly share you project setting android section image. So that i can see what permissions you used.

---

<div class="post-metadata">

**Author:** ![CppGod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CppGod](https://forums.unrealengine.com/u/CppGod)\
**Post date:** [August 7, 2021, 8:54am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/8 "2021-08-07T08:54:03Z")

</div>

read-only and write-only, Manage\_External\_Storage gives a lot of powers, and when loading the apk in the play console, Google will require you to explain why you are using this permission

---

<div class="post-metadata">

**Author:** ![threepm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@threepm](https://forums.unrealengine.com/u/threepm)\
**Post date:** [August 7, 2021, 1:34pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/9 "2021-08-07T13:34:01Z")

</div>

I was able to get my save game working finally in Android 11.  
I needed to enable Use External Storage, Manage\_External\_Srorage, and added Read and Write permissions. Using Google PAD this now worked for SDK30 / Android 11.

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 7, 2021, 2:04pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/10 "2021-08-07T14:04:45Z")

</div>

Yeah i have read that MANAGE\_EXTERNAL\_STORAGE should be use in special case like file manager apps etc.  
So i will avoid manage\_external\_storage. Will only use read/write…i hope it will work

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 7, 2021, 3:02pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/11 "2021-08-07T15:02:37Z")

</div>

I heard google rejects app if you use Manage\_External\_Storage. Then how you managed to publish your app with ManagE\_Extetnal\_Storage?

---

<div class="post-metadata">

**Author:** ![threepm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@threepm](https://forums.unrealengine.com/u/threepm)\
**Post date:** [August 7, 2021, 3:13pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/12 "2021-08-07T15:13:27Z")

</div>

I haven’t published it yet, however it is in open testing on Google play and there haven’t been any notifications or errors after uploading. Per googles own documentation on the new permissions for Android 11 there was no mention of apps not being able to use this functionality.

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 7, 2021, 9:53pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/13 "2021-08-07T21:53:49Z")

</div>

can i get your contact info? whatsapp or email anything?

---

<div class="post-metadata">

**Author:** ![threepm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@threepm](https://forums.unrealengine.com/u/threepm)\
**Post date:** [August 8, 2021, 12:22am UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/14 "2021-08-08T00:22:32Z")

</div>

Sure. Message me on here?! Or [support@smidgegames.com](mailto:support@smidgegames.com)

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 9, 2021, 8:23pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/15 "2021-08-09T20:23:07Z")

</div>

Brother i have published my game on play store with Write\_External\_Storage and Read\_External\_Storage but still Save Games not working in android 11. Kindly guide me im kinda stressed.

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 10, 2021, 4:24pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/16 "2021-08-10T16:24:58Z")

</div>

Brother i have mailed you… Kindly reply there

---

<div class="post-metadata">

**Author:** ![Usama\_Gunner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Usama\_Gunner](https://forums.unrealengine.com/u/Usama_Gunner)\
**Post date:** [August 11, 2021, 12:06pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/17 "2021-08-11T12:06:11Z")

</div>

Sorry for disturbing you again bro. Iam using ue4.26, target api 30 minimum 23  
Ndk api level=android 30  
Sdk api= matchndk  
Giving write n read permissions  
Even after publishing(updating old game app wd these settings) using .aab …iam.still no lt successfull  
Iam.not using PAD because my .aab size is less than 150mb

I dont know what to do  
Kindly help me…or kindly give me your contact info …so that i can talk u in detail…im really stressed

---

<div class="post-metadata">

**Author:** ![HowlC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/howlc/32/595992_2.png) [@HowlC](https://forums.unrealengine.com/u/HowlC)\
**Post date:** [April 22, 2022, 3:29pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/18 "2022-04-22T15:29:18Z")

</div>

I submit request to explain why my game needs local saves after adding MANAGE\_EXTERNAL\_STORAGE.

However, do you know how to use storage access framework that GooglePlay recommends in unreal engine?

Any advice is apprecited.

---

<div class="post-metadata">

**Author:** ![crossmr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@crossmr](https://forums.unrealengine.com/u/crossmr)\
**Post date:** [October 27, 2022, 1:50pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/19 "2022-10-27T13:50:26Z")

</div>

> [@CppGod](#):
>
> There is no problem, it turns out because of the new security system this is how it should work, after you pack the game with a key and for distribution, everything will work through google play

There clearly is a problem if developers can’t properly test apps on their own phones because things like this refuse to work. I’m making an app for my own use that I have no desire to publish through the play store. I should be able to save data when I need to. Currently I cannot. I’ve been going nuts over 3 days trying every suggestion I can find and nothing allows save data to work. Read/write permission is given but it still won’t create an actual save file.

---

<div class="post-metadata">

**Author:** ![emrebaris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emrebaris](https://forums.unrealengine.com/u/emrebaris)\
**Post date:** [December 25, 2022, 6:00pm UTC](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426/20 "2022-12-25T18:00:09Z")

</div>

The fastest way to solve the issue is as follows:

In SaveGameSystem.h

```auto
	virtual FString GetSaveGamePath(const TCHAR* Name)
	{
		FString saveDir;
#ifdef USE_ANDROID_FILE
		extern FString GInternalFilePath;
		saveDir = FString::Printf(TEXT("%s/SaveGames/%s.sav"), *GInternalFilePath, Name);
#else
		saveDir = FString::Printf(TEXT("%sSaveGames/%s.sav"), *FPaths::ProjectSavedDir(), Name);
#endif

		UE_LOG(LogTemp, Warning, TEXT("Save game path: %s"), *saveDir);

		return saveDir;
	}

```

PS: This solution requires no write permission because GInternalFilePath is set with getFilesDir() function call in native side and then set in AndroidJNI.cpp `GInternalFilePath = FJavaHelper::FStringFromParam(jenv, internalFilePath);`  
([Data and file storage overview &nbsp;|&nbsp; Android Developers](https://developer.android.com/training/data-storage#:~:text=on%20app%20uninstall%3F-,App%2Dspecific%20files,-Files%20meant%20for))

[Next page](https://forums.unrealengine.com/t/save-game-not-work-on-android-sdk-version-30/486426.md?page=2)
