Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
am 5f7faa7: am 83529e3: Setup flags to make SDK images provisioned.
Browse files Browse the repository at this point in the history
* commit '5f7faa7a31d2bd62c7640bbd0bedf462609b51c4':
  Setup flags to make SDK images provisioned.
  • Loading branch information
bohu-google authored and Android Git Automerger committed May 21, 2015
2 parents bc6905f + 5f7faa7 commit 1d2bd6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/SdkSetup/src/com/android/sdksetup/DefaultActivity.java
Expand Up @@ -32,19 +32,21 @@
*
*/
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);

Expand Down

0 comments on commit 1d2bd6a

Please sign in to comment.