summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2015-05-21 13:56:02 -0700
committerbohu <bohu@google.com>2015-05-21 14:13:05 -0700
commit83529e3a2cd332be515a366669931af2ee691b7e (patch)
treea551c1dd6d03d834758d01471dd42ed269fff19d /apps
parent574922caa9927b6d1ce64ea52e098dc47eff1a8b (diff)
downloadandroid_development-83529e3a2cd332be515a366669931af2ee691b7e.tar.gz
android_development-83529e3a2cd332be515a366669931af2ee691b7e.tar.bz2
android_development-83529e3a2cd332be515a366669931af2ee691b7e.zip
Setup flags to make SDK images provisioned.
USER_SETUP_COMPLETE is set to 1 so that the device can be fully functional. bug: 21164174 Change-Id: Ibd5db3a939df56b8e8963a3fa056db9c49b96f5e
Diffstat (limited to 'apps')
-rw-r--r--apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java8
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);