summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/jogamp')
-rw-r--r--src/java/jogamp/android/launcher/LauncherTempFileCache.java2
-rw-r--r--src/java/jogamp/common/os/android/AndroidUtilsImpl.java2
2 files changed, 2 insertions, 2 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);
diff --git a/src/java/jogamp/common/os/android/AndroidUtilsImpl.java b/src/java/jogamp/common/os/android/AndroidUtilsImpl.java
index 8dcdd6f..14c627d 100644
--- a/src/java/jogamp/common/os/android/AndroidUtilsImpl.java
+++ b/src/java/jogamp/common/os/android/AndroidUtilsImpl.java
@@ -75,7 +75,7 @@ public class AndroidUtilsImpl {
{
final Context ctx = StaticContext.getContext();
if(null != ctx) {
- 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
if(null==tmpRoot|| !tmpRoot.isDirectory() || !tmpRoot.canWrite()) {
throw new RuntimeException("Not a writable directory: '"+tmpRoot+"', retrieved Android static context");
}