diff options
author | Ricardo Cervera <rcervera@google.com> | 2014-04-04 17:55:45 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-04 17:55:45 +0000 |
commit | 1e9b3f645e72d28073ef1c5dffde33aeec9f0c4b (patch) | |
tree | d1371f8c38f5c6444409e61b33e7842f524350c0 /core/java/android/content/Context.java | |
parent | 35dec44394358bac2cdf31d5e8377687a1723476 (diff) | |
parent | 8f81d29558bb0c97187d5ae3a7ee696ec13b264a (diff) | |
download | frameworks_base-1e9b3f645e72d28073ef1c5dffde33aeec9f0c4b.zip frameworks_base-1e9b3f645e72d28073ef1c5dffde33aeec9f0c4b.tar.gz frameworks_base-1e9b3f645e72d28073ef1c5dffde33aeec9f0c4b.tar.bz2 |
am 8f81d295: am d10b6543: am 5df82523: am ff3d89c0: Merge "docs: Added permissions note for Context.getFilesDir. Bug: 13716053" into klp-docs
* commit '8f81d29558bb0c97187d5ae3a7ee696ec13b264a':
docs: Added permissions note for Context.getFilesDir. Bug: 13716053
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r-- | core/java/android/content/Context.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 3fdaef2..27e526b 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -573,6 +573,9 @@ public abstract class Context { * Open a private file associated with this Context's application package * for writing. Creates the file if it doesn't already exist. * + * <p>No permissions are required to invoke this method, since it uses internal + * storage. + * * @param name The name of the file to open; can not contain path * separators. * @param mode Operating mode. Use 0 or {@link #MODE_PRIVATE} for the @@ -630,6 +633,9 @@ public abstract class Context { * Returns the absolute path to the directory on the filesystem where * files created with {@link #openFileOutput} are stored. * + * <p>No permissions are required to read or write to the returned path, since this + * path is internal storage. + * * @return The path of the directory holding application files. * * @see #openFileOutput |