am 5f7faa7a: am 83529e3a: Setup flags to make SDK images provisioned.

* commit '5f7faa7a31d2bd62c7640bbd0bedf462609b51c4':
  Setup flags to make SDK images provisioned.
This commit is contained in:
bohu
2015-05-21 22:06:34 +00:00
committed by Android Git Automerger

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.
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,