aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/android/launcher/LauncherTempFileCache.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-26 04:19:36 +0100
committerSven Gothel <[email protected]>2019-12-26 04:19:36 +0100
commitfaa37334e2912e02cb58e738570a127cc6402b37 (patch)
treeb85e8d79a457544771c1f65159b4ccbc03c30721 /src/java/jogamp/android/launcher/LauncherTempFileCache.java
parent6e98be1a1bc819b47e2cc52eb35d23a7489fdf1b (diff)
Bug 1417 - Android: Context.MODE_WORLD_READABLE causes SecurityException on API >= 24, use Context.MODE_PRIVATE for temp cache
Diffstat (limited to 'src/java/jogamp/android/launcher/LauncherTempFileCache.java')
-rw-r--r--src/java/jogamp/android/launcher/LauncherTempFileCache.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/jogamp/android/launcher/LauncherTempFileCache.java b/src/java/jogamp/android/launcher/LauncherTempFileCache.java
index 6836dd9..7860bba 100644
--- a/src/java/jogamp/android/launcher/LauncherTempFileCache.java
+++ b/src/java/jogamp/android/launcher/LauncherTempFileCache.java
@@ -145,7 +145,7 @@ public class LauncherTempFileCache {
synchronized (System.out) {
// Get the name of the tmpbase directory.
{
- final File tmpRoot = ctx.getDir("temp", Context.MODE_WORLD_READABLE);
+ final File tmpRoot = ctx.getDir("temp", Context.MODE_PRIVATE); // Context.MODE_WORLD_READABLE -> SecurityException API >= 24
tmpBaseDir = new File(new File(tmpRoot, tmpSubDir), tmpDirPrefix);
}
tmpRootPropValue = System.getProperty(tmpRootPropName);