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
d010cb7e
Commit
d010cb7e
authored
Oct 23, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update stub
parent
71136d73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
build.gradle
stub/build.gradle
+1
-1
DownloadActivity.java
.../src/main/java/com/topjohnwu/magisk/DownloadActivity.java
+4
-5
misc.xml
stub/src/main/res/values/misc.xml
+4
-0
strings.xml
stub/src/main/res/values/strings.xml
+2
-5
No files found.
stub/build.gradle
View file @
d010cb7e
...
@@ -4,7 +4,7 @@ android {
...
@@ -4,7 +4,7 @@ android {
defaultConfig
{
defaultConfig
{
applicationId
'com.topjohnwu.magisk'
applicationId
'com.topjohnwu.magisk'
versionCode
1
versionCode
1
versionName
props
[
'appVersion'
]
versionName
"1.0"
buildConfigField
'String'
,
'DEV_CHANNEL'
,
props
[
'DEV_CHANNEL'
]
?:
'null'
buildConfigField
'String'
,
'DEV_CHANNEL'
,
props
[
'DEV_CHANNEL'
]
?:
'null'
}
}
...
...
stub/src/main/java/com/topjohnwu/magisk/DownloadActivity.java
View file @
d010cb7e
...
@@ -21,10 +21,8 @@ import static com.topjohnwu.magisk.DelegateApplication.MANAGER_APK;
...
@@ -21,10 +21,8 @@ import static com.topjohnwu.magisk.DelegateApplication.MANAGER_APK;
public
class
DownloadActivity
extends
Activity
{
public
class
DownloadActivity
extends
Activity
{
static
final
String
TAG
=
"MMStub"
;
static
final
String
TAG
=
"MMStub"
;
private
static
final
boolean
IS_CANARY
=
BuildConfig
.
VERSION_NAME
.
contains
(
"-"
);
private
static
final
String
URL
=
BuildConfig
.
DEV_CHANNEL
!=
null
?
BuildConfig
.
DEV_CHANNEL
:
private
static
final
String
URL
=
BuildConfig
.
DEV_CHANNEL
!=
null
?
BuildConfig
.
DEV_CHANNEL
:
"https://raw.githubusercontent.com/topjohnwu/magisk_files/"
+
"https://raw.githubusercontent.com/topjohnwu/magisk_files/master/stable.json"
;
(
IS_CANARY
?
"canary/release.json"
:
"master/stable.json"
);
private
String
apkLink
;
private
String
apkLink
;
private
ErrorHandler
err
=
(
conn
,
e
)
->
{
private
ErrorHandler
err
=
(
conn
,
e
)
->
{
...
@@ -34,8 +32,9 @@ public class DownloadActivity extends Activity {
...
@@ -34,8 +32,9 @@ public class DownloadActivity extends Activity {
private
void
showDialog
()
{
private
void
showDialog
()
{
ProgressDialog
.
show
(
this
,
ProgressDialog
.
show
(
this
,
"Downloading..."
,
getString
(
R
.
string
.
dling
),
"Downloading Magisk Manager"
,
true
);
getString
(
R
.
string
.
dling
)
+
" "
+
getString
(
R
.
string
.
app_name
),
true
);
}
}
private
void
dlAPK
()
{
private
void
dlAPK
()
{
...
...
stub/src/main/res/values/misc.xml
0 → 100644
View file @
d010cb7e
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string
name=
"app_name"
translatable=
"false"
>
Magisk Manager
</string>
</resources>
stub/src/main/res/values/strings.xml
View file @
d010cb7e
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources>
<string
name=
"app_name"
translatable=
"false"
>
Magisk Manager
</string>
<string
name=
"no_thanks"
>
No thanks
</string>
<string
name=
"no_thanks"
>
No thanks
</string>
<string
name=
"yes"
>
Yes
</string>
<string
name=
"yes"
>
Yes
</string>
<string
name=
"ok"
>
OK
</string>
<string
name=
"ok"
>
OK
</string>
<string
name=
"upgrade_msg"
>
Upgrade to full Magisk Manager to finish the setup. Download and install?
</string>
<string
name=
"upgrade_msg"
>
Upgrade to full Magisk Manager to finish the setup. Download and install?
</string>
<string
name=
"no_internet_msg"
>
Please connect to the Internet! Upgrading to full Magisk Manager is required.
</string>
<string
name=
"no_internet_msg"
>
Please connect to the Internet! Upgrading to full Magisk Manager is required.
</string>
<string
name=
"dling"
>
Downloading
</string>
</resources>
</resources>
\ No newline at end of file
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