Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

该安全模式如何能执行到阻塞修复策略?麻烦解答一下 #1

Open
Doonkey opened this issue Sep 4, 2019 · 0 comments

Comments

@Doonkey
Copy link

Doonkey commented Sep 4, 2019

根据源码Protector.java源码片段:
public void init(Application application) { ....... ProtectorSpUtils.putInt(SpConstant.CRASHCONUT, ProtectorSpUtils.getInt(SpConstant.CRASHCONUT, 0) + 1); ...... int countNow = ProtectorSpUtils.getInt(SpConstant.CRASHCONUT, 0); if (countNow > Times_FirstLevel) { ........ if (countNow > Times_SecondLevel) { // clear all ProtectorLogUtils.i("enter level two"); **ProtectorClearer.clearAllFile(sContext);** if (countNow >= Times_WorstLevel && mSynProtectorTask != null) { // fix operation ......... } } } new Handler(Looper.getMainLooper()).postDelayed(new Runnable() { @Override public void run() { markLanuchSucceed(); } }, 10000); }
其中ProtectorClearer.clearAllFile(sContext);已经清理了应用数据,应用再次启动后SpConstant.CRASHCONUT值应该从0开始了,应该始终不会满足条件if (countNow >= Times_WorstLevel && mSynProtectorTask != null),不知道对不对?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant