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
0f5f15a5
Commit
0f5f15a5
authored
Dec 08, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop signing module zips
Nobody should be using the signature verification in recoveries
parent
14ac37e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
DownloadModule.java
...full/java/com/topjohnwu/magisk/asyncs/DownloadModule.java
+1
-12
No files found.
app/src/full/java/com/topjohnwu/magisk/asyncs/DownloadModule.java
View file @
0f5f15a5
...
@@ -9,12 +9,10 @@ import com.topjohnwu.magisk.Const;
...
@@ -9,12 +9,10 @@ import com.topjohnwu.magisk.Const;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.FlashActivity
;
import
com.topjohnwu.magisk.FlashActivity
;
import
com.topjohnwu.magisk.MagiskManager
;
import
com.topjohnwu.magisk.MagiskManager
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.components.ProgressNotification
;
import
com.topjohnwu.magisk.components.ProgressNotification
;
import
com.topjohnwu.magisk.container.Repo
;
import
com.topjohnwu.magisk.container.Repo
;
import
com.topjohnwu.magisk.utils.WebService
;
import
com.topjohnwu.magisk.utils.WebService
;
import
com.topjohnwu.magisk.utils.ZipUtils
;
import
com.topjohnwu.superuser.ShellUtils
;
import
com.topjohnwu.superuser.ShellUtils
;
import
java.io.BufferedInputStream
;
import
java.io.BufferedInputStream
;
...
@@ -42,21 +40,12 @@ public class DownloadModule {
...
@@ -42,21 +40,12 @@ public class DownloadModule {
ProgressNotification
progress
=
new
ProgressNotification
(
output
.
getName
());
ProgressNotification
progress
=
new
ProgressNotification
(
output
.
getName
());
try
{
try
{
MagiskManager
mm
=
Data
.
MM
();
MagiskManager
mm
=
Data
.
MM
();
File
temp1
=
new
File
(
mm
.
getCacheDir
(),
"temp.zip"
);
HttpURLConnection
conn
=
WebService
.
mustRequest
(
repo
.
getZipUrl
());
HttpURLConnection
conn
=
WebService
.
mustRequest
(
repo
.
getZipUrl
());
ProgressInputStream
pis
=
new
ProgressInputStream
(
conn
.
getInputStream
(),
ProgressInputStream
pis
=
new
ProgressInputStream
(
conn
.
getInputStream
(),
conn
.
getContentLength
(),
progress
);
conn
.
getContentLength
(),
progress
);
removeTopFolder
(
new
BufferedInputStream
(
pis
),
removeTopFolder
(
new
BufferedInputStream
(
pis
),
new
BufferedOutputStream
(
new
FileOutputStream
(
temp1
)));
new
BufferedOutputStream
(
new
FileOutputStream
(
output
)));
conn
.
disconnect
();
conn
.
disconnect
();
progress
.
getNotification
()
.
setProgress
(
0
,
0
,
true
)
.
setContentTitle
(
mm
.
getString
(
R
.
string
.
zip_process_msg
))
.
setContentText
(
""
);
progress
.
update
();
ZipUtils
.
signZip
(
temp1
,
output
);
temp1
.
delete
();
if
(
install
)
{
if
(
install
)
{
progress
.
dismiss
();
progress
.
dismiss
();
Intent
intent
=
new
Intent
(
mm
,
Data
.
classMap
.
get
(
FlashActivity
.
class
));
Intent
intent
=
new
Intent
(
mm
,
Data
.
classMap
.
get
(
FlashActivity
.
class
));
...
...
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