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
f466c27d
Commit
f466c27d
authored
Dec 27, 2021
by
capntrips
Committed by
John Wu
Jan 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable pixel check for noSecondSlot
parent
bfe6bc30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
Info.kt
app/src/main/java/com/topjohnwu/magisk/core/Info.kt
+0
-1
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 @
f466c27d
...
@@ -39,7 +39,6 @@ object Info {
...
@@ -39,7 +39,6 @@ object Info {
var
noDataExec
=
false
var
noDataExec
=
false
@JvmField
var
hasGMS
=
true
@JvmField
var
hasGMS
=
true
@JvmField
val
isPixel
=
Build
.
BRAND
==
"google"
val
isSamsung
=
Build
.
MANUFACTURER
.
equals
(
"samsung"
,
ignoreCase
=
true
)
val
isSamsung
=
Build
.
MANUFACTURER
.
equals
(
"samsung"
,
ignoreCase
=
true
)
@JvmField
val
isEmulator
=
@JvmField
val
isEmulator
=
getProperty
(
"ro.kernel.qemu"
,
"0"
)
==
"1"
||
getProperty
(
"ro.kernel.qemu"
,
"0"
)
==
"1"
||
...
...
app/src/main/java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt
View file @
f466c27d
...
@@ -28,7 +28,7 @@ class InstallViewModel(
...
@@ -28,7 +28,7 @@ class InstallViewModel(
val
isRooted
=
Shell
.
rootAccess
()
val
isRooted
=
Shell
.
rootAccess
()
val
hideVbmeta
=
Info
.
vbmeta
||
Info
.
isSamsung
||
Info
.
isAB
val
hideVbmeta
=
Info
.
vbmeta
||
Info
.
isSamsung
||
Info
.
isAB
val
skipOptions
=
Info
.
isEmulator
||
(
Info
.
isSAR
&&
!
Info
.
isFDE
&&
hideVbmeta
&&
Info
.
ramdisk
)
val
skipOptions
=
Info
.
isEmulator
||
(
Info
.
isSAR
&&
!
Info
.
isFDE
&&
hideVbmeta
&&
Info
.
ramdisk
)
val
noSecondSlot
=
!
isRooted
||
Info
.
is
Pixel
||
Info
.
is
VirtualAB
||
!
Info
.
isAB
||
Info
.
isEmulator
val
noSecondSlot
=
!
isRooted
||
Info
.
isVirtualAB
||
!
Info
.
isAB
||
Info
.
isEmulator
@get
:
Bindable
@get
:
Bindable
var
step
=
if
(
skipOptions
)
1
else
0
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