Rename ro.monkey to monkey.running
So that Monkey can set it before running and reset it after running.
This commit is contained in:
@@ -62,7 +62,7 @@ public class DevelopmentSettings extends PreferenceActivity
|
|||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
||||||
mEnableAdb.setChecked(Settings.Secure.getInt(getContentResolver(),
|
mEnableAdb.setChecked(Settings.Secure.getInt(getContentResolver(),
|
||||||
Settings.Secure.ADB_ENABLED, 0) != 0);
|
Settings.Secure.ADB_ENABLED, 0) != 0);
|
||||||
mKeepScreenOn.setChecked(Settings.System.getInt(getContentResolver(),
|
mKeepScreenOn.setChecked(Settings.System.getInt(getContentResolver(),
|
||||||
@@ -76,7 +76,7 @@ public class DevelopmentSettings extends PreferenceActivity
|
|||||||
|
|
||||||
// Those monkeys kept committing suicide, so we add this property
|
// Those monkeys kept committing suicide, so we add this property
|
||||||
// to disable this functionality
|
// to disable this functionality
|
||||||
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
|
if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -206,7 +206,7 @@ public class LanguageSettings extends PreferenceActivity {
|
|||||||
// Input Method stuff
|
// Input Method stuff
|
||||||
// Those monkeys kept committing suicide, so we add this property
|
// Those monkeys kept committing suicide, so we add this property
|
||||||
// to disable this functionality
|
// to disable this functionality
|
||||||
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
|
if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -60,13 +60,13 @@ public class MasterClear extends Activity {
|
|||||||
*/
|
*/
|
||||||
private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
|
private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
||||||
// Those monkeys kept committing suicide, so we add this property
|
// Those monkeys kept committing suicide, so we add this property
|
||||||
// to disable going through with the master clear
|
// to disable going through with the master clear
|
||||||
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
|
if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ICheckinService service =
|
ICheckinService service =
|
||||||
ICheckinService.Stub.asInterface(ServiceManager.getService("checkin"));
|
ICheckinService.Stub.asInterface(ServiceManager.getService("checkin"));
|
||||||
if (service != null) {
|
if (service != null) {
|
||||||
|
@@ -54,16 +54,16 @@ public class MediaFormat extends Activity {
|
|||||||
private View mFinalView;
|
private View mFinalView;
|
||||||
private Button mFinalButton;
|
private Button mFinalButton;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The user has gone through the multiple confirmation, so now we go ahead
|
* The user has gone through the multiple confirmation, so now we go ahead
|
||||||
* and invoke the Mount Service to format the SD card.
|
* and invoke the Mount Service to format the SD card.
|
||||||
*/
|
*/
|
||||||
private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
|
private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
||||||
// Those monkeys kept committing suicide, so we add this property
|
// Those monkeys kept committing suicide, so we add this property
|
||||||
// to disable going through with the format
|
// to disable going through with the format
|
||||||
if (!TextUtils.isEmpty(SystemProperties.get("ro.monkey"))) {
|
if (!TextUtils.isEmpty(SystemProperties.get("monkey.running"))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
IMountService service =
|
IMountService service =
|
||||||
|
Reference in New Issue
Block a user