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
5a39f7cd
Commit
5a39f7cd
authored
Feb 14, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce duplicate initialization
parent
5d400fbe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
RootRegistry.kt
...main/java/com/topjohnwu/magisk/core/utils/RootRegistry.kt
+3
-5
No files found.
app/src/main/java/com/topjohnwu/magisk/core/utils/RootRegistry.kt
View file @
5a39f7cd
...
@@ -12,11 +12,7 @@ import kotlin.system.exitProcess
...
@@ -12,11 +12,7 @@ import kotlin.system.exitProcess
class
RootRegistry
(
stub
:
Any
?)
:
RootService
()
{
class
RootRegistry
(
stub
:
Any
?)
:
RootService
()
{
constructor
()
:
this
(
null
)
constructor
()
:
this
(
null
)
{
private
val
className
:
String
?
=
stub
?.
javaClass
?.
name
init
{
// Always log full stack trace with Timber
// Always log full stack trace with Timber
Timber
.
plant
(
Timber
.
DebugTree
())
Timber
.
plant
(
Timber
.
DebugTree
())
Thread
.
setDefaultUncaughtExceptionHandler
{
_
,
e
->
Thread
.
setDefaultUncaughtExceptionHandler
{
_
,
e
->
...
@@ -25,6 +21,8 @@ class RootRegistry(stub: Any?) : RootService() {
...
@@ -25,6 +21,8 @@ class RootRegistry(stub: Any?) : RootService() {
}
}
}
}
private
val
className
:
String
?
=
stub
?.
javaClass
?.
name
override
fun
onBind
(
intent
:
Intent
):
IBinder
{
override
fun
onBind
(
intent
:
Intent
):
IBinder
{
// TODO: PLACEHOLDER
// TODO: PLACEHOLDER
return
Binder
()
return
Binder
()
...
...
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