Commit bc506427 authored by Mygod's avatar Mygod

Fix direct boot

parent de209bd7
......@@ -191,7 +191,7 @@ object BaseService {
.put("plugin_opts", plugin.toString())
}
// sensitive Shadowsocks config is stored in
return File((if (Build.VERSION.SDK_INT < 24 || app.getSystemService<UserManager>()?.isUserUnlocked != true)
return File((if (Build.VERSION.SDK_INT < 24 || app.getSystemService<UserManager>()?.isUserUnlocked != false)
app else Core.deviceStorage).noBackupFilesDir, CONFIG_FILE).apply {
shadowsocksConfigFile = this
writeText(config.toString())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment