SN checks is possible after repackage if using new API

This commit is contained in:
topjohnwu
2018-08-22 12:32:53 +08:00
parent d4a956c355
commit bfac1f1bc2
27 changed files with 4 additions and 97 deletions

View File

@ -93,14 +93,7 @@ public class MagiskFragment extends BaseFragment
new CheckSafetyNet(requireActivity()).exec();
collapse();
};
if (!TextUtils.equals(mm.getPackageName(), Const.ORIG_PKG_NAME)) {
new CustomAlertDialog(requireActivity())
.setTitle(R.string.cannot_check_sn_title)
.setMessage(R.string.cannot_check_sn_notice)
.setCancelable(true)
.setPositiveButton(R.string.ok, null)
.show();
} else if (!CheckSafetyNet.dexPath.exists()) {
if (!CheckSafetyNet.dexPath.exists()) {
// Show dialog
new CustomAlertDialog(requireActivity())
.setTitle(R.string.proprietary_title)