summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorRicardo Cervera <rcervera@google.com>2014-04-04 10:26:05 -0700
committerRicardo Cervera <rcervera@google.com>2014-04-04 10:26:05 -0700
commit90a5f9851ad778a7ce8e06b20f137d2d47e829e6 (patch)
tree76659257c2479ebfc79069f83c0625a7595bda61 /core/java/android/content/Context.java
parent6ae21ea7fb37c76429a48a41987c9c0e2c067c31 (diff)
downloadframeworks_base-90a5f9851ad778a7ce8e06b20f137d2d47e829e6.zip
frameworks_base-90a5f9851ad778a7ce8e06b20f137d2d47e829e6.tar.gz
frameworks_base-90a5f9851ad778a7ce8e06b20f137d2d47e829e6.tar.bz2
docs: Added permissions note for Context.getFilesDir. Bug: 13716053
Change-Id: I02e17c358630ab298bb99731723405cdeae701fc
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 2e4e209..a8c1f90 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -530,6 +530,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
@@ -587,6 +590,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
@@ -1798,7 +1804,7 @@ public abstract class Context {
* @hide like {@link #stopService(Intent)} but for a specific user.
*/
public abstract boolean stopServiceAsUser(Intent service, UserHandle user);
-
+
/**
* Connect to an application service, creating it if needed. This defines
* a dependency between your application and the service. The given