恢复出厂设置
来源:互联网 发布:小学生同步英语软件 编辑:程序博客网 时间:2024/06/10 15:10
/Settings/src/com/android/settings/MasterClearConfirm.java
private void doMasterClear() {
if (mEraseSdCard) {
Intent intent = new Intent(ExternalStorageFormatter.FORMAT_AND_FACTORY_RESET);
intent.putExtra(Intent.EXTRA_REASON, "MasterClearConfirm");
intent.setComponent(ExternalStorageFormatter.COMPONENT_NAME);
getActivity().startService(intent);
} else {
Intent intent = new Intent(Intent.ACTION_MASTER_CLEAR);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.putExtra(Intent.EXTRA_REASON, "MasterClearConfirm");
getActivity().sendBroadcast(intent);
// Intent handling is asynchronous -- assume it will happen soon.
}
}
./frameworks/base/services/core/java/com/android/server/MasterClearReceiver.java
private void doMasterClear() {
if (mEraseSdCard) {
Intent intent = new Intent(ExternalStorageFormatter.FORMAT_AND_FACTORY_RESET);
intent.putExtra(Intent.EXTRA_REASON, "MasterClearConfirm");
intent.setComponent(ExternalStorageFormatter.COMPONENT_NAME);
getActivity().startService(intent);
} else {
Intent intent = new Intent(Intent.ACTION_MASTER_CLEAR);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.putExtra(Intent.EXTRA_REASON, "MasterClearConfirm");
getActivity().sendBroadcast(intent);
// Intent handling is asynchronous -- assume it will happen soon.
}
}
./frameworks/base/services/core/java/com/android/server/MasterClearReceiver.java
0 0
- S1恢复出厂设置
- 恢复出厂设置流程
- android-恢复出厂设置
- android-恢复出厂设置
- BIOS恢复出厂设置
- 恢复出厂设置流程
- 小米恢复出厂设置
- Android恢复出厂设置
- Android恢复出厂设置
- IPAD2 恢复出厂设置
- openwrt 恢复出厂设置
- mac 恢复出厂设置
- 恢复出厂设置
- android恢复出厂设置
- 恢复出厂设置
- Android恢复出厂设置
- 恢复出厂设置
- HIVE注册表恢复出厂设置
- 摄像机标定终极总结版03---实际应用中的摄像机标定过程
- [Java并发包学习二]Executors介绍
- mongo集群迁移删除孤立文档
- linux 安装 python2.7 +配置mysql
- Ninety-Nine Scala Problems 不错的scala入门练习题
- 恢复出厂设置
- 一种swift编码风格指南(供参考,by linkedin)
- 阿里面试
- 欢迎使用CSDN-markdown编辑器
- shape修改EditText和Button的外形
- 关于异常
- Java超级大火锅
- 51nod1384全排列--STL
- 代码提交时让svn忽略classpath、target、.project等(转载)