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
ea80cddd
Commit
ea80cddd
authored
May 12, 2021
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to official snet.jar link
parent
09a294c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Const.kt
app/src/main/java/com/topjohnwu/magisk/core/Const.kt
+1
-1
NetworkService.kt
...va/com/topjohnwu/magisk/data/repository/NetworkService.kt
+1
-4
No files found.
app/src/main/java/com/topjohnwu/magisk/core/Const.kt
View file @
ea80cddd
...
@@ -20,7 +20,7 @@ object Const {
...
@@ -20,7 +20,7 @@ object Const {
// Versions
// Versions
const
val
SNET_EXT_VER
=
17
const
val
SNET_EXT_VER
=
17
const
val
SNET_REVISION
=
"2
2
.0"
const
val
SNET_REVISION
=
"2
3
.0"
const
val
BOOTCTL_REVISION
=
"22.0"
const
val
BOOTCTL_REVISION
=
"22.0"
// Misc
// Misc
...
...
app/src/main/java/com/topjohnwu/magisk/data/repository/NetworkService.kt
View file @
ea80cddd
...
@@ -65,7 +65,7 @@ class NetworkService(
...
@@ -65,7 +65,7 @@ class NetworkService(
}
}
// Fetch files
// Fetch files
//
suspend fun fetchSafetynet() = wrap { jsd.fetchSafetynet() }
suspend
fun
fetchSafetynet
()
=
wrap
{
jsd
.
fetchSafetynet
()
}
suspend
fun
fetchBootctl
()
=
wrap
{
jsd
.
fetchBootctl
()
}
suspend
fun
fetchBootctl
()
=
wrap
{
jsd
.
fetchBootctl
()
}
suspend
fun
fetchInstaller
()
=
wrap
{
suspend
fun
fetchInstaller
()
=
wrap
{
val
sha
=
fetchMainVersion
()
val
sha
=
fetchMainVersion
()
...
@@ -75,7 +75,4 @@ class NetworkService(
...
@@ -75,7 +75,4 @@ class NetworkService(
suspend
fun
fetchString
(
url
:
String
)
=
wrap
{
raw
.
fetchString
(
url
)
}
suspend
fun
fetchString
(
url
:
String
)
=
wrap
{
raw
.
fetchString
(
url
)
}
private
suspend
fun
fetchMainVersion
()
=
api
.
fetchBranch
(
MAGISK_MAIN
,
"master"
).
commit
.
sha
private
suspend
fun
fetchMainVersion
()
=
api
.
fetchBranch
(
MAGISK_MAIN
,
"master"
).
commit
.
sha
// Temporary for canary builds, switch to release link at next public release
suspend
fun
fetchSafetynet
()
=
fetchFile
(
"https://github.com/topjohnwu/Magisk/releases/download/v22.1/snet.jar"
)
}
}
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