diff options
author | bohu <bohu@google.com> | 2015-05-21 22:06:34 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-21 22:06:34 +0000 |
commit | 1d2bd6a914081fd76b0bd0442e6ecf65c8245c5c (patch) | |
tree | b3176c891d15a7c98ee095a80d084f9687199a46 /apps | |
parent | bc6905fe4983ad707c2d96d850db293ba2393f60 (diff) | |
parent | 5f7faa7a31d2bd62c7640bbd0bedf462609b51c4 (diff) | |
download | android_development-1d2bd6a914081fd76b0bd0442e6ecf65c8245c5c.tar.gz android_development-1d2bd6a914081fd76b0bd0442e6ecf65c8245c5c.tar.bz2 android_development-1d2bd6a914081fd76b0bd0442e6ecf65c8245c5c.zip |
am 5f7faa7a: am 83529e3a: Setup flags to make SDK images provisioned.
* commit '5f7faa7a31d2bd62c7640bbd0bedf462609b51c4':
Setup flags to make SDK images provisioned.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java index 3a0b2a386..505a35368 100644 --- a/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java +++ b/apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java @@ -32,19 +32,21 @@ import android.provider.Settings; * */ public class DefaultActivity extends Activity { - + @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); - + // Add a persistent setting to allow other apps to know the device has been provisioned. Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1); + Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1); + // Enable the GPS. // Not needed since this SDK will contain the Settings app. Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, LocationManager.GPS_PROVIDER); - + // enable install from non market Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1); |