Check tampered app

This commit is contained in:
NekoInverter committed 2021-11-09 20:37:32 +08:00
1 parent bdfa2e3240
commit aac8967eae
5 files changed
+69 -3

No files matched your search

@@ -30,6 +30,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StyleRes;
import com.hippo.ehviewer.Analytics;
import com.hippo.ehviewer.EhApplication;
import com.hippo.ehviewer.R;
import com.hippo.ehviewer.Settings;
@@ -96,6 +97,7 @@ public abstract class EhActivity extends MaterialActivity {
@Override
protected void onResume() {
super.onResume();
Analytics.checkTampered(this);
if (Settings.getEnabledSecurity()) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE);