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
2e02af99
Commit
2e02af99
authored
Jan 01, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump version
parent
836d9afe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
build.gradle
build.gradle
+2
-2
changelog.md
src/main/assets/changelog.md
+4
-4
ZipUtils.java
src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java
+5
-5
No files found.
build.gradle
View file @
2e02af99
...
...
@@ -8,8 +8,8 @@ android {
applicationId
"com.topjohnwu.magisk"
minSdkVersion
21
targetSdkVersion
27
versionCode
8
4
versionName
"5.5.
2
"
versionCode
8
6
versionName
"5.5.
3
"
ndk
{
moduleName
'zipadjust'
abiFilters
'x86'
,
'x86_64'
,
'armeabi-v7a'
,
'arm64-v8a'
...
...
src/main/assets/changelog.md
View file @
2e02af99
### v5.5.
2
-
Support sorting online repos with last update
-
Fix issue that advanced installation settings won't stick
-
Prevent sudb crashing Magisk Manager
### v5.5.
3
-
Update translations
-
Update internal scripts
-
Minor bug fixes
src/main/java/com/topjohnwu/magisk/utils/ZipUtils.java
View file @
2e02af99
...
...
@@ -11,8 +11,8 @@ import java.io.File;
import
java.io.FileInputStream
;
import
java.io.FileOutputStream
;
import
java.io.InputStream
;
import
java.util.
jar.Jar
Entry
;
import
java.util.
jar.Jar
InputStream
;
import
java.util.
zip.Zip
Entry
;
import
java.util.
zip.Zip
InputStream
;
public
class
ZipUtils
{
...
...
@@ -30,9 +30,9 @@ public class ZipUtils {
public
static
void
unzip
(
InputStream
zip
,
File
folder
,
String
path
,
boolean
junkPath
)
throws
Exception
{
try
{
JarInputStream
zipfile
=
new
Jar
InputStream
(
zip
);
Jar
Entry
entry
;
while
((
entry
=
zipfile
.
getNext
Jar
Entry
())
!=
null
)
{
ZipInputStream
zipfile
=
new
Zip
InputStream
(
zip
);
Zip
Entry
entry
;
while
((
entry
=
zipfile
.
getNextEntry
())
!=
null
)
{
if
(!
entry
.
getName
().
startsWith
(
path
)
||
entry
.
isDirectory
()){
// Ignore directories, only create files
continue
;
...
...
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