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
53cf11db
Commit
53cf11db
authored
Sep 13, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failure if MagiskManager folder doesn't exist
parent
01052fbe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ProcessRepoZip.java
...main/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java
+5
-3
build.gradle
build.gradle
+1
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java
View file @
53cf11db
...
...
@@ -28,12 +28,14 @@ public class ProcessRepoZip extends ParallelTask<Void, Void, Boolean> {
private
ProgressDialog
progressDialog
;
private
boolean
mInstall
;
private
String
mLink
,
mFile
;
private
String
mLink
;
private
File
mFile
;
public
ProcessRepoZip
(
Activity
context
,
String
link
,
String
filename
,
boolean
install
)
{
super
(
context
);
mLink
=
link
;
mFile
=
Environment
.
getExternalStorageDirectory
()
+
"/MagiskManager/"
+
filename
;
mFile
=
new
File
(
Environment
.
getExternalStorageDirectory
()
+
"/MagiskManager"
,
filename
);
mFile
.
getParentFile
().
mkdirs
();
mInstall
=
install
;
}
...
...
@@ -108,7 +110,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Void, Boolean> {
Activity
activity
=
getActivity
();
if
(
activity
==
null
)
return
;
progressDialog
.
dismiss
();
Uri
uri
=
Uri
.
fromFile
(
new
File
(
mFile
)
);
Uri
uri
=
Uri
.
fromFile
(
mFile
);
if
(
result
)
{
if
(
Shell
.
rootAccess
()
&&
mInstall
)
{
Intent
intent
=
new
Intent
(
getActivity
(),
FlashActivity
.
class
);
...
...
build.gradle
View file @
53cf11db
...
...
@@ -7,7 +7,7 @@ buildscript {
maven
{
url
"https://maven.google.com"
}
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.0.0-beta
4
'
classpath
'com.android.tools.build:gradle:3.0.0-beta
5
'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
...
...
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