-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix issue #9 & add bugreport
- Loading branch information
Showing
10 changed files
with
123 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
- 修复清除独立密码逻辑 | ||
- 不拦截某些静态共享库的卸载操作 | ||
- 支持使用Root激活 | ||
* Root激活和Xposed二选一即可,请勿同时使用 | ||
* 带后缀的为支持Root激活的构建,不带后缀的则只支持Xposed | ||
* 如果不知道下载什么版本直接下载universal版本即可 | ||
- 升级版本号 | ||
- 修复首次安装Root激活失败的问题 | ||
- 如果你已经安装了LSPosed或者其他Xposed框架,请不要使用Root激活,这可能会导致系统软重启 | ||
- 如果你非要在装了Xposed框架的系统上用Root激活,也请在系统启动后过几分钟,再尝试用Root激活 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
app/src/main/java/cn/tinyhai/ban_uninstall/utils/Bugreport.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package cn.tinyhai.ban_uninstall.utils | ||
|
||
import android.annotation.SuppressLint | ||
import cn.tinyhai.ban_uninstall.App | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.withContext | ||
import java.io.File | ||
import java.text.SimpleDateFormat | ||
import java.util.GregorianCalendar | ||
|
||
@SuppressLint("SimpleDateFormat") | ||
suspend fun getLogcatFile() = withContext(Dispatchers.IO) { | ||
val cacheDir = App.app.cacheDir | ||
val bugreportDir = File(cacheDir, "bugreport").also { it.mkdirs() } | ||
val time = GregorianCalendar.getInstance().time | ||
val formatter = SimpleDateFormat("yyyy-MM-dd_HH_mm") | ||
val logcatFile = File(bugreportDir, "logcat.txt") | ||
fastResultWithRootShell("logcat", "-d", ">", logcatFile.absolutePath) | ||
val bugreportFile = File(cacheDir, "BanUninstall_bugreport_${formatter.format(time)}.tar.gz") | ||
fastResultWithRootShell( | ||
"tar", | ||
"-czf", | ||
bugreportFile.absolutePath, | ||
"-C", | ||
bugreportDir.absolutePath, | ||
"." | ||
) | ||
fastResultWithRootShell( | ||
"rm", | ||
"-rf", | ||
bugreportDir.absolutePath | ||
) | ||
fastResultWithRootShell( | ||
"chmod", | ||
"0644", | ||
bugreportFile.absolutePath | ||
) | ||
bugreportFile | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<paths> | ||
<cache-path name="cache" path="."/> | ||
</paths> |