Do I need permissions for SharedPrefrences?

I have a game that I just completed and it was working fine on two different cell phones, so I uploaded it to Google Play. I wanted to add a video and I read that I would need to update my phone(Samsung Galaxy S3) to Android 4.4 to use the ADB to record the screen(my phone does not have root access). After updating my phone, I could load my game into the main menu, the instruction screens, and basically every menu and screen that didn’t load from shared preferences(New Game, Load Game, and Delete Game).

I did some searching online, and I read that I needed to actually reinstall the APK. So I first tried installing without uninstalling and I got an error that said there was a certificate problem. So, I uninstall, and then reinstall. I still have the same problem, it crashes anytime it try’s anything with SharedPreferences.

I am not asking any permissions at all in the manifest.

The errors I’m getting in logcat are…


java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL


07-14 00:14:56.273: W/ActivityManager(680): Force removing ActivityRecord{433bb790 u0 com.imtroymiller.rocksfall.android/.AndroidLauncher t36}: app died, no saved state
07-14 00:14:56.273: W/WindowManager(680): Force-removing child win Window{433934a0 u0 SurfaceView} from container Window{4316bb60 u0 com.imtroymiller.rocksfall.android/com.imtroymiller.rocksfall.

I just installed the same APK on my other Galaxy S3 that has Android 4.1.2, and it works fine. Installed it on an old LG Optimus with Android 2.3.4(my only phone with root access) and it ran fine. Installed it on an LG Optimus F3 with Android 4.1.2 and it crashed on all menus that required shared preferences.

What could it be?

I got it.

Basic error I made.

If you could say what the basic error was, the random person who finds this thread via Google in two years when they’re trying to debug the same problem will be grateful.

The solution was posted in this crosspost: http://www.java-forums.org/android/90796-do-i-need-permissions-sharedprefrences.html