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
9087207d
Commit
9087207d
authored
Oct 17, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes
parent
2760f37e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
Const.kt
app/src/main/java/com/topjohnwu/magisk/core/Const.kt
+0
-1
BaseDownloader.kt
...java/com/topjohnwu/magisk/core/download/BaseDownloader.kt
+2
-2
strings.xml
app/src/main/res/values/strings.xml
+1
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/core/Const.kt
View file @
9087207d
...
@@ -18,7 +18,6 @@ object Const {
...
@@ -18,7 +18,6 @@ object Const {
// Misc
// Misc
const
val
ANDROID_MANIFEST
=
"AndroidManifest.xml"
const
val
ANDROID_MANIFEST
=
"AndroidManifest.xml"
const
val
MAGISK_INSTALL_LOG_FILENAME
=
"magisk_install_log_%s.log"
const
val
MAGISK_INSTALL_LOG_FILENAME
=
"magisk_install_log_%s.log"
const
val
MANAGER_CONFIGS
=
".tmp.magisk.config"
val
USER_ID
=
Process
.
myUid
()
/
100000
val
USER_ID
=
Process
.
myUid
()
/
100000
object
Version
{
object
Version
{
...
...
app/src/main/java/com/topjohnwu/magisk/core/download/BaseDownloader.kt
View file @
9087207d
...
@@ -69,8 +69,8 @@ abstract class BaseDownloader : BaseService(), KoinComponent {
...
@@ -69,8 +69,8 @@ abstract class BaseDownloader : BaseService(), KoinComponent {
// -- Download logic
// -- Download logic
private
suspend
fun
Subject
.
startDownload
()
{
private
suspend
fun
Subject
.
startDownload
()
{
val
skip
Dl
=
this
is
Subject
.
Magisk
&&
file
.
checkSum
(
"MD5"
,
magisk
.
md5
)
val
skip
=
this
is
Subject
.
Magisk
&&
file
.
checkSum
(
"MD5"
,
magisk
.
md5
)
if
(!
skip
Dl
)
{
if
(!
skip
)
{
val
stream
=
service
.
fetchFile
(
url
).
toProgressStream
(
this
)
val
stream
=
service
.
fetchFile
(
url
).
toProgressStream
(
this
)
when
(
this
)
{
when
(
this
)
{
is
Subject
.
Module
->
// Download and process on-the-fly
is
Subject
.
Module
->
// Download and process on-the-fly
...
...
app/src/main/res/values/strings.xml
View file @
9087207d
...
@@ -219,7 +219,7 @@
...
@@ -219,7 +219,7 @@
<string
name=
"failure"
>
Failed
</string>
<string
name=
"failure"
>
Failed
</string>
<string
name=
"hide_manager_title"
>
Hiding Magisk Manager…
</string>
<string
name=
"hide_manager_title"
>
Hiding Magisk Manager…
</string>
<string
name=
"hide_manager_fail_toast"
>
Hide Magisk Manager failed
</string>
<string
name=
"hide_manager_fail_toast"
>
Hide Magisk Manager failed
</string>
<string
name=
"restore_manager_fail_toast"
>
Restor
ing
Magisk Manager failed
</string>
<string
name=
"restore_manager_fail_toast"
>
Restor
e
Magisk Manager failed
</string>
<string
name=
"open_link_failed_toast"
>
No application found to open the link
</string>
<string
name=
"open_link_failed_toast"
>
No application found to open the link
</string>
<string
name=
"complete_uninstall"
>
Complete Uninstall
</string>
<string
name=
"complete_uninstall"
>
Complete Uninstall
</string>
<string
name=
"restore_img"
>
Restore Images
</string>
<string
name=
"restore_img"
>
Restore Images
</string>
...
...
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