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
This commit is contained in:
bohu
2015-05-21 13:56:02 -07:00
parent 574922caa9
commit 83529e3a2c

View File

@@ -40,6 +40,8 @@ public class DefaultActivity extends Activity {
// Add a persistent setting to allow other apps to know the device has been provisioned. // 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.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
// Enable the GPS. // Enable the GPS.
// Not needed since this SDK will contain the Settings app. // Not needed since this SDK will contain the Settings app.
Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,