From 3c635b4bdf0a15b211398f37760a8cb297af9dd1 Mon Sep 17 00:00:00 2001 From: volzhs Date: Thu, 18 Apr 2019 08:07:03 +0900 Subject: [PATCH] Fix get_unique_id() on Android (cherry picked from commit 5a4b2087a015b105bac656f3679f68488c76abce) --- platform/android/java/src/org/godotengine/godot/Godot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/java/src/org/godotengine/godot/Godot.java b/platform/android/java/src/org/godotengine/godot/Godot.java index e42099ba0b4..74c6ed2720d 100644 --- a/platform/android/java/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/src/org/godotengine/godot/Godot.java @@ -429,7 +429,7 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC } io = new GodotIO(this); - io.unique_id = Secure.ANDROID_ID; + io.unique_id = Secure.getString(getContentResolver(), Secure.ANDROID_ID); GodotLib.io = io; mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);