Disable repack on android 5.0

am does not support -p
This commit is contained in:
vvb2060 2022-06-01 04:27:31 +08:00 committed by John Wu
parent 8186f253e8
commit 9679874874
2 changed files with 3 additions and 5 deletions

View File

@ -54,10 +54,8 @@ class SettingsViewModel : BaseViewModel(), BaseSettingsItem.Handler {
AppSettings,
UpdateChannel, UpdateChannelUrl, DoHToggle, UpdateChecker, DownloadPath
))
if (Info.env.isActive) {
if (Const.USER_ID == 0) {
if (hidden) list.add(Restore) else list.add(Hide)
}
if (Build.VERSION.SDK_INT >= 22 && Info.env.isActive && Const.USER_ID == 0) {
if (hidden) list.add(Restore) else list.add(Hide)
}
// Magisk

View File

@ -163,7 +163,7 @@ static void exec_cmd(const char *action, vector<Extra> &data,
// Finally, fallback to start activity with component name
args[4] = "-n";
snprintf(target, sizeof(target), "%s/.ui.surequest.SuRequestActivity", info->mgr_pkg.data());
snprintf(target, sizeof(target), "%s/com.topjohnwu.magisk.ui.surequest.SuRequestActivity", info->mgr_pkg.data());
exec.fd = -2;
exec.fork = fork_dont_care;
exec_command(exec);