Clean up Global settings stragglers.
Bug: 7242121 Change-Id: I27fd307e2ee4854558a6f6e4d2fdbbae3e89ffe0
This commit is contained in:
@@ -38,14 +38,15 @@ public class DefaultActivity extends Activity {
|
|||||||
super.onCreate(icicle);
|
super.onCreate(icicle);
|
||||||
|
|
||||||
// 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.Secure.putInt(getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 1);
|
Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 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, LocationManager.GPS_PROVIDER);
|
Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
|
||||||
|
LocationManager.GPS_PROVIDER);
|
||||||
|
|
||||||
// enable install from non market
|
// enable install from non market
|
||||||
Settings.Secure.putInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 1);
|
Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1);
|
||||||
|
|
||||||
// provision the backup manager.
|
// provision the backup manager.
|
||||||
IBackupManager bm = IBackupManager.Stub.asInterface(
|
IBackupManager bm = IBackupManager.Stub.asInterface(
|
||||||
|
|||||||
Reference in New Issue
Block a user