Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
00659e47
Unverified
Commit
00659e47
authored
Feb 12, 2021
by
vvb2060
Committed by
GitHub
Feb 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide OTA option on virtual A/B devices
parent
cdda1020
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Info.kt
app/src/main/java/com/topjohnwu/magisk/core/Info.kt
+1
-0
InstallViewModel.kt
.../java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt
+1
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/core/Info.kt
View file @
00659e47
...
...
@@ -32,6 +32,7 @@ object Info {
@JvmStatic
val
env
by
lazy
{
loadState
()
}
@JvmField
var
isSAR
=
false
@JvmField
var
isAB
=
false
@JvmField
val
isVirtualAB
=
getProperty
(
"ro.virtual_ab.enabled"
,
"false"
)
==
"true"
@JvmStatic
val
isFDE
get
()
=
crypto
==
"block"
@JvmField
var
ramdisk
=
false
@JvmField
var
hasGMS
=
true
...
...
app/src/main/java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt
View file @
00659e47
...
...
@@ -29,7 +29,7 @@ class InstallViewModel(
val
isRooted
=
Shell
.
rootAccess
()
val
skipOptions
=
Info
.
isEmulator
||
(
Info
.
ramdisk
&&
!
Info
.
isFDE
&&
Info
.
isSAR
)
val
noSecondSlot
=
!
isRooted
||
Info
.
isPixel
||
!
Info
.
isAB
||
Info
.
isEmulator
val
noSecondSlot
=
!
isRooted
||
Info
.
isPixel
||
Info
.
isVirtualAB
||
!
Info
.
isAB
||
Info
.
isEmulator
@get
:
Bindable
var
step
=
if
(
skipOptions
)
1
else
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment