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
c9217a41
Commit
c9217a41
authored
Dec 08, 2016
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crashing when zip not signed
parent
cb1df521
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ZipUtils.java
app/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java
+3
-1
build.gradle
build.gradle
+1
-1
No files found.
app/src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java
View file @
c9217a41
...
@@ -136,7 +136,9 @@ public class ZipUtils {
...
@@ -136,7 +136,9 @@ public class ZipUtils {
Enumeration
e
=
zipfile
.
entries
();
Enumeration
e
=
zipfile
.
entries
();
while
(
e
.
hasMoreElements
())
{
while
(
e
.
hasMoreElements
())
{
entry
=
(
JarEntry
)
e
.
nextElement
();
entry
=
(
JarEntry
)
e
.
nextElement
();
if
(!
entry
.
getName
().
contains
(
path
))
{
if
(!
entry
.
getName
().
contains
(
path
)
||
entry
.
getName
().
charAt
(
entry
.
getName
().
length
()
-
1
)
==
'/'
)
{
// Ignore directories, only create files
continue
;
continue
;
}
}
Logger
.
dev
(
"ZipUtils: Extracting: "
+
entry
);
Logger
.
dev
(
"ZipUtils: Extracting: "
+
entry
);
...
...
build.gradle
View file @
c9217a41
...
@@ -6,7 +6,7 @@ buildscript {
...
@@ -6,7 +6,7 @@ buildscript {
mavenCentral
()
mavenCentral
()
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:2.2.
2
'
classpath
'com.android.tools.build:gradle:2.2.
3
'
// NOTE: Do not place your application dependencies here; they belong
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// 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