Skip to content

Commit

Permalink
Bump version to 1.3(4)
Browse files Browse the repository at this point in the history
  • Loading branch information
canyie committed Aug 18, 2022
1 parent 8cd8a34 commit 2bce66c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
// On those devices, apps can simply check if there is a process named "magiskd"
minSdkVersion 21
targetSdkVersion 32
versionCode 2
versionName "1.1"
versionCode 4
versionName "1.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
20 changes: 19 additions & 1 deletion app/src/main/java/top/canyie/magiskkiller/MainActivity.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package top.canyie.magiskkiller;

import android.app.Activity;
import android.app.AlertDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
Expand Down Expand Up @@ -50,7 +51,24 @@ protected void onCreate(Bundle savedInstanceState) {
about.setVisibility(View.VISIBLE);
});
});
checkThread.start();

var sp = getSharedPreferences("config", MODE_PRIVATE);
if (!sp.contains("agreed_privaty_policy")) {
new AlertDialog.Builder(this)
.setTitle(R.string.privacy_policy_title)
.setMessage(R.string.privacy_policy)
.setPositiveButton(R.string.accept, (dialog, i) -> {
sp.edit().putBoolean("agreed_privaty_policy", true).apply();
checkThread.start();
})
.setNegativeButton(R.string.deny, (dialog, i) -> {
finish();
})
.setCancelable(false)
.show();
} else {
checkThread.start();
}
}

@Override protected void onDestroy() {
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Magisk Killer</string>

<string name="tracer">调试器(通常表示 MagiskHide):%s</string>
<string name="resetprop">被 Magisk 修改的系统属性:%s</string>
<string name="found">找到</string>
Expand All @@ -10,4 +11,8 @@
<string name="locked">已锁定</string>
<string name="self_signed">已锁定,但设备正在运行自签名系统</string>
<string name="about">\n\n关于:\n此应用程序检测 Magisk 但只是为了告诉你 Magisk v23.0 有非常多的 bug,应用程序可以轻易检测到 Magisk 所以你应该升级它。更新到 Magisk v24+ 就能通过所有检测。\n作者:GitHub @canyie\n开源地址:https://github.com/canyie/MagiskKiller</string>
</resources>
<string name="privacy_policy_title">隐私协议</string>
<string name="privacy_policy">这是一个简单的应用程序,帮助你了解你的 Magisk 是否正确被 MagiskHide 隐藏。\n\n此应用不需要任何权限。\n所有工作都在本机上运行,我们不会也无法发送任何数据到网络。</string>
<string name="accept">接受</string>
<string name="deny">拒绝</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
<string name="unlocked">unlocked</string>
<string name="self_signed">locked but device is running a self-signed ROM</string>
<string name="about">\n\nAbout: \nThis application detects Magisk but just want to tell you that Magisk v23.0 was buggy, applications can easily detect Magisk so you should update it. Update Magisk to v24 can pass all detections.\nAuthor: GitHub @canyie\nSource code: https://github.com/canyie/MagiskKiller</string>
<string name="privacy_policy_title">Privacy Policy</string>
<string name="privacy_policy">This is a simple app to help you know if your Magisk is properly hidden by MagiskHide.\n\nThis app does not require any permissions.\nAll checks runs locally, and we will not and cannot send any data to the Internet.</string>
<string name="accept">Accept</string>
<string name="deny">Deny</string>
</resources>

0 comments on commit 2bce66c

Please sign in to comment.