Express a clearer status about supported versions.

By explaining the full story in README.txt.
By inlining API 11 constants so we can really compile the library against API 4.

Change-Id: I423e807114c15805e97860ff5db22ef9ff1e24c0
diff --git a/instrumentation/project.properties b/instrumentation/project.properties
index 1b8c5a3..22e1c48 100644
--- a/instrumentation/project.properties
+++ b/instrumentation/project.properties
@@ -11,5 +11,5 @@
 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
 
 # Project target.
-target=android-18
+target=android-14
 android.library=true
diff --git a/library/Android.mk b/library/Android.mk
index 7d5cbb7..053084f 100644
--- a/library/Android.mk
+++ b/library/Android.mk
@@ -16,7 +16,7 @@
 
 include $(CLEAR_VARS)
 LOCAL_MODULE := android-support-multidex
-LOCAL_SDK_VERSION := 11
+LOCAL_SDK_VERSION := 4
 LOCAL_SRC_FILES := $(call all-java-files-under, src)
 
 ifneq "" "$(filter eng.%,$(BUILD_NUMBER))"
diff --git a/library/README.txt b/library/README.txt
index df4772a..62e8737 100644
--- a/library/README.txt
+++ b/library/README.txt
@@ -1,7 +1,13 @@
-Library Project including compatibility multi dex loader.
+Library Project including a multidex loader.
 
-This can be used by an Android project to install classloader
-with multiple dex of applications running on API 14+.
+This can be used by an Android project to install multiple dexes
+in the classloader of an application running on API 4+.
+
+Note that multidexing will allow to go over the dex index limit.
+It can also help with the linearalloc limit during installation but it
+won't help with linearalloc at execution time. This means that
+most applications requiring multidexing because of the dex index
+limit won't execute on API below 14 because of linearalloc limit.
 
 There is technically no source, but the src folder is necessary
 to ensure that the build system works.  The content is actually
diff --git a/library/project.properties b/library/project.properties
index 1b8c5a3..22e1c48 100644
--- a/library/project.properties
+++ b/library/project.properties
@@ -11,5 +11,5 @@
 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
 
 # Project target.
-target=android-18
+target=android-14
 android.library=true
diff --git a/library/src/android/support/multidex/MultiDexExtractor.java b/library/src/android/support/multidex/MultiDexExtractor.java
index b7e0a11..b5973c5 100644
--- a/library/src/android/support/multidex/MultiDexExtractor.java
+++ b/library/src/android/support/multidex/MultiDexExtractor.java
@@ -243,9 +243,9 @@
 
     private static SharedPreferences getMultiDexPreferences(Context context) {
         return context.getSharedPreferences(PREFS_FILE,
-                Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB
+                Build.VERSION.SDK_INT < 11 /* Build.VERSION_CODES.HONEYCOMB */
                         ? Context.MODE_PRIVATE
-                        : Context.MODE_PRIVATE | Context.MODE_MULTI_PROCESS);
+                        : Context.MODE_PRIVATE | 0x0004 /* Context.MODE_MULTI_PROCESS */);
     }
 
     /**