This code do the factory reset function, it uses masterclear method,
but I don't know how it works,
like how to delete the application user install , how to recover the
param, can someone help to answer
this question?
private Button.OnClickListener mFinalClickListener = new
Button.OnClickListener() {
public void onClick(View v) {
// Those monkeys kept committing suicide, so we add
this property
// to disable going through with the master clear
if (!TextUtils.isEmpty(SystemProperties.get
("ro.monkey"))) {
return;
}
ICheckinService service =
ICheckinService.Stub.asInterface
(ServiceManager.getService("checkin"));
if (service != null) {
try {
// This RPC should never return
service.masterClear();
} catch (android.os.RemoteException e) {
// Intentionally blank - there's nothing we
can do here
Log.w("MasterClear", "Unable to invoke
ICheckinService.masterClear()");
}
} else {
Log.w("MasterClear", "Unable to locate
ICheckinService");
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---