aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-10-26 12:52:45 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2015-10-26 13:48:25 +0100
commit968d0518772688346f7c8186e75d7e8c6ceda8d4 (patch)
treebbd1f2e4004ec81396a681422ce56d9769d0cf5c /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util
parentcab52c401301596cf0ad2646e8172912a5623366 (diff)
parent6a04866ae61e6b5cb383e45bdbe29a649e60013f (diff)
downloadopen-keychain-968d0518772688346f7c8186e75d7e8c6ceda8d4.tar.gz
open-keychain-968d0518772688346f7c8186e75d7e8c6ceda8d4.tar.bz2
open-keychain-968d0518772688346f7c8186e75d7e8c6ceda8d4.zip
Merge branch 'master' of github.com:open-keychain/open-keychain
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java
index c4d84a2d4..7345faad9 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/util/FileHelper.java
@@ -272,9 +272,12 @@ public class FileHelper {
return true;
}
- /**
- * A replacement for ContentResolver.openInputStream() that does not allow the usage of
- * "file" Uris that point to private files owned by the application only.
+ /** A replacement for ContentResolver.openInputStream() that does not allow
+ * the usage of "file" Uris that point to private files owned by the
+ * application only, *on Lollipop devices*.
+ *
+ * The check will be performed on devices >= Lollipop only, which have the
+ * necessary API to stat filedescriptors.
*
* @see FileHelperLollipop
*/