Make emulator direct install env fix

This commit is contained in:
topjohnwu
2021-01-18 13:32:10 -08:00
parent d2bc2cfcf8
commit 9100186dce
5 changed files with 72 additions and 38 deletions
@@ -27,7 +27,8 @@ class InstallViewModel(
) : BaseViewModel(State.LOADED) {
val isRooted = Shell.rootAccess()
val skipOptions = Info.ramdisk && !Info.isFDE && Info.isSAR
val skipOptions = Info.isEmulator || (Info.ramdisk && !Info.isFDE && Info.isSAR)
val noSecondSlot = !isRooted || Info.isPixel || !Info.isAB || Info.isEmulator
@get:Bindable
var step = if (skipOptions) 1 else 0