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
7532477a
Commit
7532477a
authored
Jan 14, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make release builds work
parent
433ae89e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
16 deletions
+6
-16
proguard-rules.pro
app/proguard-rules.pro
+3
-9
GeneralReceiver.kt
...rc/main/java/com/topjohnwu/magisk/core/GeneralReceiver.kt
+3
-7
No files found.
app/proguard-rules.pro
View file @
7532477a
...
@@ -23,21 +23,15 @@
...
@@ -23,21 +23,15 @@
void
onResponse
(
int
);
void
onResponse
(
int
);
}
}
# Keep all fragment constructors
# Fragments
-
keepclassmembers
class
*
extends
androidx
.
fragment
.
app
.
Fragment
{
-
keep
,
allowobfuscation
class
*
extends
androidx
.
fragment
.
app
.
Fragment
public
<
init
>
(...);
}
#
DelegateWork
er
#
BaseWorkerWrapp
er
-
keep
,
allowobfuscation
class
*
extends
com
.
topjohnwu
.
magisk
.
core
.
base
.
BaseWorkerWrapper
-
keep
,
allowobfuscation
class
*
extends
com
.
topjohnwu
.
magisk
.
core
.
base
.
BaseWorkerWrapper
# BootSigner
# BootSigner
-
keep
class
a
.
a
{
*
;
}
-
keep
class
a
.
a
{
*
;
}
# Workaround R8 bug
-
keep
,
allowobfuscation
class
com
.
topjohnwu
.
magisk
.
core
.
GeneralReceiver
-
keepclassmembers
class
a
.
e
{
*
;
}
# Strip logging
# Strip logging
-
assumenosideeffects
class
timber
.
log
.
Timber
.
Tree
{
*
;
}
-
assumenosideeffects
class
timber
.
log
.
Timber
.
Tree
{
*
;
}
...
...
app/src/main/java/com/topjohnwu/magisk/core/GeneralReceiver.kt
View file @
7532477a
...
@@ -5,12 +5,12 @@ import android.content.Intent
...
@@ -5,12 +5,12 @@ import android.content.Intent
import
com.topjohnwu.magisk.core.base.BaseReceiver
import
com.topjohnwu.magisk.core.base.BaseReceiver
import
com.topjohnwu.magisk.core.download.DownloadService
import
com.topjohnwu.magisk.core.download.DownloadService
import
com.topjohnwu.magisk.core.magiskdb.PolicyDao
import
com.topjohnwu.magisk.core.magiskdb.PolicyDao
import
com.topjohnwu.magisk.core.model.ManagerJson
import
com.topjohnwu.magisk.core.su.SuCallbackHandler
import
com.topjohnwu.magisk.core.su.SuCallbackHandler
import
com.topjohnwu.magisk.core.view.Shortcuts
import
com.topjohnwu.magisk.extensions.reboot
import
com.topjohnwu.magisk.extensions.reboot
import
com.topjohnwu.magisk.core.model.ManagerJson
import
com.topjohnwu.magisk.model.entity.internal.Configuration
import
com.topjohnwu.magisk.model.entity.internal.Configuration
import
com.topjohnwu.magisk.model.entity.internal.DownloadSubject
import
com.topjohnwu.magisk.model.entity.internal.DownloadSubject
import
com.topjohnwu.magisk.core.view.Shortcuts
import
com.topjohnwu.superuser.Shell
import
com.topjohnwu.superuser.Shell
import
org.koin.core.inject
import
org.koin.core.inject
...
@@ -27,11 +27,7 @@ open class GeneralReceiver : BaseReceiver() {
...
@@ -27,11 +27,7 @@ open class GeneralReceiver : BaseReceiver() {
when
(
intent
.
action
?:
return
)
{
when
(
intent
.
action
?:
return
)
{
Intent
.
ACTION_REBOOT
->
{
Intent
.
ACTION_REBOOT
->
{
SuCallbackHandler
(
SuCallbackHandler
(
context
,
intent
.
getStringExtra
(
"action"
),
intent
.
extras
)
context
,
intent
.
getStringExtra
(
"action"
),
intent
.
extras
)
}
}
Intent
.
ACTION_PACKAGE_REPLACED
->
{
Intent
.
ACTION_PACKAGE_REPLACED
->
{
// This will only work pre-O
// This will only work pre-O
...
...
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