Skip to content

Commit

Permalink
【Add】Delete App custom mask jailbreak detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wwg135 authored Aug 2, 2023
1 parent 3c2f69f commit aa480e9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
VERSION: '1.1.2_4'
VERSION: '1.1.2_5'

jobs:
build:
Expand Down Expand Up @@ -54,9 +54,9 @@ jobs:
echo -e "[点击当前版本下载](https://github.com/wwg135/Dopamine/releases/download/${{ env.msT }}/Dopamine.ipa)" >> body.txt
echo -e "\n更新时间:${{ env.logT }}" >> body.txt
echo -e "\n**当前更新日志如下:**" >> body.txt
echo -e "\n> - 1.同步官方代码更新\n> - 2.因已有自定义app屏蔽功能,删除官方的隐藏越狱功能,避免功能重复" >> body.txt
echo -e "\n> - 1.同步官方代码更新\n> - 2.添加/删除自定义App屏蔽越狱检测" >> body.txt
echo -e "\n1.1的修改版功能如下:" >> body.txt
echo -e "**注意:追求稳定,此版本无【桥接心浪】、【映射挂载】、【重建环境】功能**" >> body.txt
echo -e "**注意:追求稳定,此版本无【桥接心浪】、【映射挂载】功能**" >> body.txt
echo -e "> - 1、新增【检查更新】功能,设置里面打开即可检查更新,默认关闭!!!" >> body.txt
echo -e "> - 2、新增初次越狱/重建越狱时,默认安装 【ElleKit_1.0】 、 【PreferenceLoader_2.2.6.1】、【Xinamine】。感谢liam0205大佬的代码!!!" >> body.txt
echo -e "> - 3、首页新增【系统运行时间】----越狱后显示,打开多巴胺即弹出!!!" >> body.txt
Expand All @@ -65,7 +65,7 @@ jobs:
echo -e "> - 7、设置新增【清除越狱】确认。若处于越狱状态,提示确认重启设备后再清除操作,否则不允许清除越狱!!!" >> body.txt
echo -e "> - 8、新增越狱后默认配置底层屏蔽文件【zp.unject.plist】,路径为:/var/mobile/,可自定义app屏蔽越狱检测!!!" >> body.txt
echo -e "> - 9、新增一键启用【自定义app屏蔽越狱检测】(开关在越狱后设置里面)!!!" >> body.txt
echo -e "> - 10、新增【自定义App屏蔽越狱检测】功能,功能和说明在设置里面!!!" >> body.txt
echo -e "> - 10、新增【添加/删除App屏蔽】功能,功能和说明在设置里面!!!" >> body.txt
echo -e "> - 11、其他设置UI、显示细节优化。。。" >> body.txt
- name: Build ipa
Expand Down
10 changes: 7 additions & 3 deletions Dopamine/Dopamine/UI/Views/Jailbreak.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,13 @@ func newcustomforbidunject(newforbidunject: String) {
let fileManager = FileManager.default
let filePath = "/var/mobile/zp.unject.plist"
if fileManager.fileExists(atPath: filePath) {
let plist = NSMutableDictionary(contentsOfFile: filePath) ?? NSMutableDictionary()
plist[newforbidunject] = true
plist.write(toFile: filePath, atomically: true)
let plist = NSMutableDictionary(contentsOfFile: filePath) ?? NSMutableDictionary()
if let _ = plist[newforbidunject] {
plist.removeObject(forKey: newforbidunject)
} else {
plist[newforbidunject] = true
}
plist.write(toFile: filePath, atomically: true)
}
}

Expand Down
4 changes: 2 additions & 2 deletions Dopamine/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@

"Options_Enble_Bottom_Forbid_Unject" = "启用App越狱屏蔽";

"Options_Custom_Forbid_Unject" = "自定义App屏蔽越狱检测";
"Options_Custom_Forbid_Unject" = "添加/删除自定义App屏蔽";

"Set_Custom_Forbid_Unject_Alert_Shown_Title" = "请输入要屏蔽越狱检测的App名称Bundle";

"Set_Custom_Forbid_Unject_Message" = "输入说明:在越狱商店源https://repo.initnil.com/下载插件AppData-Rootless安装,上划要屏蔽越狱检测的app图标→→点击“应用安装目录”进去→→复制XXXXX.app中的“XXXXX”粘贴到这里确定即可";
"Set_Custom_Forbid_Unject_Message" = "1.输入说明:在越狱商店源https://repo.initnil.com/下载插件AppData-Rootless安装,上划要屏蔽越狱检测的app图标→→点击“应用安装目录”进去→→复制XXXXX.app中的“XXXXX”粘贴到这里确定即可。\n2.若要删除已添加的App屏蔽越狱检测,则输入添加时的Bundle进去确定即可。";
4 changes: 2 additions & 2 deletions Dopamine/zh_CN.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@

"Options_Enble_Bottom_Forbid_Unject" = "启用App越狱屏蔽";

"Options_Custom_Forbid_Unject" = "自定义App屏蔽越狱检测";
"Options_Custom_Forbid_Unject" = "添加/删除自定义App屏蔽";

"Set_Custom_Forbid_Unject_Alert_Shown_Title" = "请输入要屏蔽越狱检测的App名称Bundle";

"Set_Custom_Forbid_Unject_Message" = "输入说明:在越狱商店源https://repo.initnil.com/下载插件AppData-Rootless安装,上划要屏蔽越狱检测的app图标→→点击“应用安装目录”进去→→复制XXXXX.app中的“XXXXX”粘贴到这里确定即可";
"Set_Custom_Forbid_Unject_Message" = "1.输入说明:在越狱商店源https://repo.initnil.com/下载插件AppData-Rootless安装,上划要屏蔽越狱检测的app图标→→点击“应用安装目录”进去→→复制XXXXX.app中的“XXXXX”粘贴到这里确定即可。\n2.若要删除已添加的App屏蔽越狱检测,则输入添加时的Bundle进去确定即可。";

0 comments on commit aa480e9

Please sign in to comment.