mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
fix(android): Isolate provider access to a subdirectory (#901)
This commit is contained in:
parent
faa4615ee0
commit
44480300d9
@ -367,7 +367,10 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
||||
throw new IllegalArgumentException("Invalid Encoding Type: " + encodingType);
|
||||
}
|
||||
|
||||
return new File(getTempDirectoryPath(), fileName);
|
||||
File cacheDir = new File(getTempDirectoryPath(), "org.apache.cordova.camera");
|
||||
cacheDir.mkdir();
|
||||
|
||||
return new File(cacheDir, fileName);
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,5 +17,5 @@
|
||||
-->
|
||||
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<cache-path name="cache_files" path="." />
|
||||
</paths>
|
||||
<cache-path name="cache_files" path="org.apache.cordova.camera/" />
|
||||
</paths>
|
||||
|
Loading…
Reference in New Issue
Block a user