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
164a9968
Commit
164a9968
authored
Feb 27, 2019
by
John Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make case Intent.ACTION_REBOOT fall through
parent
0eef4eac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
21 deletions
+5
-21
GeneralReceiver.java
...java/com/topjohnwu/magisk/components/GeneralReceiver.java
+5
-21
No files found.
app/src/full/java/com/topjohnwu/magisk/components/GeneralReceiver.java
View file @
164a9968
...
...
@@ -41,27 +41,11 @@ public class GeneralReceiver extends BroadcastReceiver {
return
;
switch
(
action
)
{
case
Intent
.
ACTION_REBOOT
:
String
rebootAction
=
intent
.
getStringExtra
(
"action"
);
switch
(
rebootAction
)
{
case
"request"
:
Intent
i
=
new
Intent
(
app
,
ClassMap
.
get
(
SuRequestActivity
.
class
))
.
putExtra
(
"socket"
,
intent
.
getStringExtra
(
"socket"
))
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
app
.
startActivity
(
i
);
break
;
case
"log"
:
SU_LOGGER
.
handleLogs
(
intent
);
break
;
case
"notify"
:
SU_LOGGER
.
handleNotify
(
intent
);
break
;
}
break
;
case
Intent
.
ACTION_BOOT_COMPLETED
:
String
boot
Action
=
intent
.
getStringExtra
(
"action"
);
if
(
boot
Action
==
null
)
bootAction
=
"boot
"
;
switch
(
boot
Action
)
{
String
real
Action
=
intent
.
getStringExtra
(
"action"
);
if
(
real
Action
==
null
)
realAction
=
"boot_complete
"
;
switch
(
real
Action
)
{
case
"request"
:
Intent
i
=
new
Intent
(
app
,
ClassMap
.
get
(
SuRequestActivity
.
class
))
.
putExtra
(
"socket"
,
intent
.
getStringExtra
(
"socket"
))
...
...
@@ -74,7 +58,7 @@ public class GeneralReceiver extends BroadcastReceiver {
case
"notify"
:
SU_LOGGER
.
handleNotify
(
intent
);
break
;
case
"boot"
:
case
"boot
_complete
"
:
default
:
/* Devices with DTBO might want to patch dtbo.img.
* However, that is not possible if Magisk is installed by
...
...
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