Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Nov 29, 2022
1 parent 8956942 commit 1601bf3
Showing 5 changed files with 44 additions and 18 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# DirtyPipeCheck
# DirtyPipeRoot

Check if DirtyPipe(https://github.com/polygraphene/DirtyPipe-Android) is vulnerable of your Android devices.
Using []DirtyPipe](https://github.com/polygraphene/DirtyPipe-Android) to gain temporary root access for Android devices.

## Warning

!!! THIS MAY BRICK YOUR DEVICE !!! USE AT YOUR OWN RISK !!!

## About Magisk

1. Don't use install button on magisk app. It will brick your phone.
2. Don't reboot even if magisk app request. It will lose temporary root.
3. Only support root access. No magisk/zygisk modules support.

# License

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@ android {
applicationId "me.weishu.dirtypipecheck"
minSdk 28
targetSdk 32
versionCode 201
versionName "2.1"
versionCode 202
versionName "2.2"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
23 changes: 21 additions & 2 deletions app/src/main/java/me/weishu/dirtypipecheck/MainActivity.java
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ protected void onCreate(Bundle savedInstanceState) {
Button button = findViewById(R.id.btn);

button.setOnClickListener(v -> {
File tmpfile = new File(getCacheDir(), ".ditry_pipe_check");
File tmpfile = new File(getCacheDir(), ".dirty_pipe_check");
if (tmpfile.exists()) {
tmpfile.delete();
}
@@ -95,7 +95,26 @@ public boolean onCreateOptionsMenu(Menu menu) {
.setTitle(android.R.string.dialog_alert_title)
.setMessage(R.string.get_root_confirm)
.setPositiveButton(R.string.i_know_it,
(dialog, which) -> Check.getRoot(MainActivity.this, getWindow()))
(dialog, which) -> {
Check.getRoot(MainActivity.this, getWindow());

new AlertDialog.Builder(this)
.setTitle(android.R.string.dialog_alert_title)
.setMessage(R.string.get_root_tips)
.setPositiveButton(android.R.string.ok, (dialog1, which1) -> {
new AlertDialog.Builder(this).setTitle(android.R.string.dialog_alert_title)
.setMessage(R.string.get_root_tips2)
.setCancelable(false)
.setPositiveButton(android.R.string.ok, (dialog2, which2) -> {
dialog2.dismiss();
dialog1.dismiss();
dialog.dismiss();
}).show();
})
.setCancelable(false)
.show();

})
.setNegativeButton(android.R.string.cancel, null)
.show();
return true;
5 changes: 4 additions & 1 deletion app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DirtyPipeCheck</string>
<string name="app_name">DirtyPipeRoot</string>
<string name="desc">说明:绿色代表设备可以用 DirtyPipe(https://github.com/polygraphene/DirtyPipe-Android) 获取临时 Root,红色则意味着不行。</string>
<string name="get_root">获取 ROOT</string>
<string name="get_root_confirm">接下来的操作可能会让的手机变砖,也有可能导致你手机内部的数据完全丢失,确认要继续 ROOT 吗?</string>
<string name="i_know_it">确认</string>
<string name="about">关于</string>
<string name="vulnerable_tips">你的设备可通过 DirtyPipe 获取 ROOT 权限,点击右上角菜单继续。</string>
<string name="get_root_tips" >请等待大约 30 秒,Magisk 将自动安装完成;警告:\n1. 不要在 Magisk 内部执行任何安装操作,如果你的手机没有解锁,手机必定变砖,只能找售后解决。\n2. Magisk 如果提示你需要重启,请忽略它。\n3. Magisk 内只有 ROOT 可以使用,模块和 Zygisk 无法使用。</string>
<string name="get_root_tips2">请再次确认:不要在 Magisk 内部执行安装操作,如果你的手机没解锁,必定会变砖!!!!</string>
<string name="checkit">开始检测</string>
</resources>
16 changes: 5 additions & 11 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
<resources>
<string name="app_name">DirtyPipeCheck</string>
<string name="action_settings">Settings</string>
<!-- Strings used for fragments for navigation -->
<string name="first_fragment_label">First Fragment</string>
<string name="second_fragment_label">Second Fragment</string>
<string name="next">Next</string>
<string name="previous">Previous</string>
<string name="app_name">DirtyPipeRoot</string>

<string name="hello_first_fragment">Hello first fragment</string>
<string name="hello_second_fragment">Hello second fragment. Arg: %1$s</string>
<string name="author">Author: weishu \nContact me: https://github.com/tiann/DirtyPipeCheck</string>
<string name="checkit">开始检测</string>
<string name="author" translatable="false">Author: weishu \nContact me: https://github.com/tiann/DirtyPipeCheck</string>
<string name="desc">Description: Green means this device is vulnerable using DirtyPipe(https://github.com/polygraphene/DirtyPipe-Android), red is invulnerable</string>
<string name="get_root">Get Root</string>
<string name="get_root_confirm">This may brick your device and cuase your data loss, continue?</string>
<string name="i_know_it">Confirm it</string>
<string name="about">About</string>
<string name="vulnerable_tips">Your device can gain root by DirtyPipe, Click Settings to continue.</string>
<string name="get_root_tips" >Please wait about 30s, and the Magisk would be installed. Warning:\n 1. Don\'t use install button on magisk app. It will brick your phone.\n 2. Don\'t reboot even if Magisk app request. It will lose temporary root.\n 3. Only support root access. No magisk/zygisk modules support.</string>
<string name="get_root_tips2">Please confirm again that you should not INSTALL Magisk in Magisk App!!!! YOUR DEVICE WOULD BE BRICK !!!</string>
<string name="checkit">Check</string>
</resources>

0 comments on commit 1601bf3

Please sign in to comment.