Skip to content

Commit

Permalink
1.5.2.1 Release & Change file interception strategies to prevent some…
Browse files Browse the repository at this point in the history
… crashes
  • Loading branch information
Dr-TSNG committed May 6, 2021
1 parent d41cff9 commit c5724b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 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 {
applicationId "com.tsng.hidemyapplist"
minSdkVersion 24
targetSdkVersion 30
versionCode 20
versionName "1.5.2"
versionCode 21
versionName "1.5.2.1"
}

buildTypes {
Expand Down
17 changes: 9 additions & 8 deletions app/src/main/cpp/NativeHooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@ bool isHideFile(const char *path) {
if (tpl.HideTWRP &&
std::regex_search(path, std::regex("/storage/emulated/(.*)/TWRP")))
return true;
if (tpl.HideAllApps &&
(std::regex_search(path, std::regex("/storage/emulated/(.*)/Android/data/")) ||
std::regex_search(path, std::regex("/data/data/")) ||
std::regex_search(path, std::regex("/data/user/"))))
return true;
for (const auto &pkg : tpl.HideApps)
if (strstr(path, pkg.c_str()) != nullptr)
return true;
if (std::regex_search(path, std::regex("/storage/emulated/(.*)/Android/")) ||
strstr(path, "/sdcard/Android/") != nullptr ||
strstr(path, "/data/data/") != nullptr ||
strstr(path, "/data/user/") != nullptr) {
if (tpl.HideAllApps) return true;
for (const auto &pkg : tpl.HideApps)
if (strstr(path, pkg.c_str()) != nullptr)
return true;
}
return false;
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<b>请仔细阅读关于页面的使用帮助!</b>\n
<b>请允许模块开机自启以使系统服务读取配置文件(之后无需保持后台)</b>\n
<b>提示:除了拦截文件检测外,不需要在EdXposed/LSPosed作用域中勾选目标APP</b>\n
<b>V1.5.2</b>\n
<b>V1.5.2.1</b>\n
[+] 更改文件拦截策略,解决部分qq模块(QN、QQCleaner)崩溃的问题(用pm的模块照样会炸)\n
[+] 修复intent queries拦截在realme手机上失效的问题\n
<b>V1.5.1</b>\n
[+] 添加图标\n
Expand Down

0 comments on commit c5724b0

Please sign in to comment.