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
fd778663
Commit
fd778663
authored
Dec 13, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small refactoring fixes
parent
bce9cfa3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
BaseFragment.java
...ll/java/com/topjohnwu/magisk/components/BaseFragment.java
+1
-5
MagiskDB.java
core/src/main/java/com/topjohnwu/core/database/MagiskDB.java
+1
-1
utils.sh
core/src/main/res/raw/utils.sh
+3
-3
No files found.
app/src/full/java/com/topjohnwu/magisk/components/BaseFragment.java
View file @
fd778663
...
@@ -10,13 +10,9 @@ import butterknife.Unbinder;
...
@@ -10,13 +10,9 @@ import butterknife.Unbinder;
public
class
BaseFragment
extends
Fragment
implements
Topic
.
AutoSubscriber
{
public
class
BaseFragment
extends
Fragment
implements
Topic
.
AutoSubscriber
{
public
App
app
;
public
App
app
=
App
.
self
;
protected
Unbinder
unbinder
=
null
;
protected
Unbinder
unbinder
=
null
;
public
BaseFragment
()
{
app
=
App
.
self
;
}
@Override
@Override
public
void
onResume
()
{
public
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
...
...
core/src/main/java/com/topjohnwu/core/database/MagiskDB.java
View file @
fd778663
...
@@ -23,7 +23,7 @@ import java.util.Map;
...
@@ -23,7 +23,7 @@ import java.util.Map;
public
class
MagiskDB
{
public
class
MagiskDB
{
private
static
final
String
POLICY_TABLE
=
"policies"
;
private
static
final
String
POLICY_TABLE
=
"policies"
;
private
static
final
String
LOG_TABLE
=
"
err
"
;
private
static
final
String
LOG_TABLE
=
"
logs
"
;
private
static
final
String
SETTINGS_TABLE
=
"settings"
;
private
static
final
String
SETTINGS_TABLE
=
"settings"
;
private
static
final
String
STRINGS_TABLE
=
"strings"
;
private
static
final
String
STRINGS_TABLE
=
"strings"
;
...
...
core/src/main/res/raw/utils.sh
View file @
fd778663
...
@@ -63,9 +63,9 @@ restore_imgs() {
...
@@ -63,9 +63,9 @@ restore_imgs() {
post_ota
()
{
post_ota
()
{
cd
$1
cd
$1
chmod
755 bootctl
chmod
755 bootctl
.
./../../../../app/src/full/res/raw
/bootctl hal-info
||
return
./bootctl hal-info
||
return
[
`
.
./../../../../app/src/full/res/raw
/bootctl get-current-slot
`
-eq
0
]
&&
SLOT_NUM
=
1
||
SLOT_NUM
=
0
[
`
./bootctl get-current-slot
`
-eq
0
]
&&
SLOT_NUM
=
1
||
SLOT_NUM
=
0
.
./../../../../app/src/full/res/raw
/bootctl set-active-boot-slot
$SLOT_NUM
./bootctl set-active-boot-slot
$SLOT_NUM
echo
'${0%/*}/../bootctl mark-boot-successful;rm -f ${0%/*}/../bootctl $0'
>
post-fs-data.d/post_ota.sh
echo
'${0%/*}/../bootctl mark-boot-successful;rm -f ${0%/*}/../bootctl $0'
>
post-fs-data.d/post_ota.sh
chmod
755 post-fs-data.d/post_ota.sh
chmod
755 post-fs-data.d/post_ota.sh
cd
/
cd
/
...
...
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