mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 10:35:26 +00:00
Hide install to second slot option until Magisk properly supports it
This commit is contained in:
parent
153d0f5505
commit
831112abd2
@ -134,10 +134,6 @@ public class ShowUI {
|
|||||||
if (Shell.rootAccess()) {
|
if (Shell.rootAccess()) {
|
||||||
options.add(mm.getString(R.string.direct_install));
|
options.add(mm.getString(R.string.direct_install));
|
||||||
}
|
}
|
||||||
String s = ShellUtils.fastCmd("grep_prop ro.build.ab_update");
|
|
||||||
if (s != null && Boolean.parseBoolean(s)) {
|
|
||||||
options.add(mm.getString(R.string.install_second_slot));
|
|
||||||
}
|
|
||||||
new AlertDialog.Builder(activity)
|
new AlertDialog.Builder(activity)
|
||||||
.setTitle(R.string.select_method)
|
.setTitle(R.string.select_method)
|
||||||
.setItems(
|
.setItems(
|
||||||
|
Loading…
Reference in New Issue
Block a user