diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-05-13 15:06:13 -0700 | 
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-05-15 18:02:47 -0700 | 
| commit | a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3d (patch) | |
| tree | 75e0804e6628f9bb818c5f6f918315640c721d4b /core/java/android/os | |
| parent | ba2a3a1b32e242eea4e97c927d886e8987fde3d4 (diff) | |
| download | frameworks_base-a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3d.zip frameworks_base-a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3d.tar.gz frameworks_base-a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3d.tar.bz2 | |
Implement compatibility support for WRITE_SDCARD permission.
Now old applications will automatically be granted it.  Also renamed it from
SDCARD_WRITE to WRITE_SDCARD to be consistent with our other permissions,
and re-arranged how we do targetSdkVersion to actually be usuable for this
kind of stuff.
Note that right now this results in basically all apps being given the
WRITE_SDCARD permission, because their targetSdkVersion is not set.  I will
be dealing with that in a future change.
Diffstat (limited to 'core/java/android/os')
| -rw-r--r-- | core/java/android/os/Build.java | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index 5487c54..4a4285e 100644 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -87,6 +87,12 @@ public class Build {       */      public static class VERSION_CODES {          /** +         * Magic version number for a current development build, which has +         * not yet turned into an official release. +         */ +        public static final int CUR_DEVELOPMENT = 10000; +         +        /**           * October 2008: The original, first, version of Android.  Yay!           */          public static final int BASE = 1; @@ -98,6 +104,19 @@ public class Build {           * May 2009: Android 1.5.           */          public static final int CUPCAKE = 3; +        /** +         * Current work on "Donut" development branch. +         *  +         * <p>Applications targeting this or a later release will get these +         * new changes in behavior:</p> +         * <ul> +         * <li> They must explicitly request the +         * {@link android.Manifest.permission#WRITE_SDCARD} permission to be +         * able to modify the contents of the SD card.  (Apps targeting +         * earlier versions will always request the permission.) +         * </ul> +         */ +        public static final int DONUT = CUR_DEVELOPMENT;      }      /** The type of build, like "user" or "eng". */ | 
