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
6d0e4a6a
Commit
6d0e4a6a
authored
Aug 01, 2018
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename base activity and fragments
parent
a2544768
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
65 additions
and
64 deletions
+65
-64
AboutActivity.java
app/src/full/java/com/topjohnwu/magisk/AboutActivity.java
+2
-2
FlashActivity.java
app/src/full/java/com/topjohnwu/magisk/FlashActivity.java
+3
-3
LogFragment.java
app/src/full/java/com/topjohnwu/magisk/LogFragment.java
+2
-2
MagiskFragment.java
app/src/full/java/com/topjohnwu/magisk/MagiskFragment.java
+5
-5
MagiskHideFragment.java
...rc/full/java/com/topjohnwu/magisk/MagiskHideFragment.java
+2
-2
MagiskLogFragment.java
...src/full/java/com/topjohnwu/magisk/MagiskLogFragment.java
+2
-2
MainActivity.java
app/src/full/java/com/topjohnwu/magisk/MainActivity.java
+2
-2
ModulesFragment.java
app/src/full/java/com/topjohnwu/magisk/ModulesFragment.java
+2
-2
NoUIActivity.java
app/src/full/java/com/topjohnwu/magisk/NoUIActivity.java
+2
-2
ReposFragment.java
app/src/full/java/com/topjohnwu/magisk/ReposFragment.java
+2
-2
SettingsActivity.java
app/src/full/java/com/topjohnwu/magisk/SettingsActivity.java
+2
-2
SplashActivity.java
app/src/full/java/com/topjohnwu/magisk/SplashActivity.java
+3
-3
SuLogFragment.java
app/src/full/java/com/topjohnwu/magisk/SuLogFragment.java
+2
-2
SuperuserFragment.java
...src/full/java/com/topjohnwu/magisk/SuperuserFragment.java
+2
-2
ReposAdapter.java
...full/java/com/topjohnwu/magisk/adapters/ReposAdapter.java
+5
-5
ProcessRepoZip.java
...full/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java
+7
-7
BaseFragment.java
...ll/java/com/topjohnwu/magisk/components/BaseFragment.java
+6
-5
InstallMethodDialog.java
.../com/topjohnwu/magisk/components/InstallMethodDialog.java
+2
-2
MagiskInstallDialog.java
.../com/topjohnwu/magisk/components/MagiskInstallDialog.java
+1
-1
ManagerInstallDialog.java
...com/topjohnwu/magisk/components/ManagerInstallDialog.java
+1
-1
RequestActivity.java
.../java/com/topjohnwu/magisk/superuser/RequestActivity.java
+3
-3
BaseActivity.java
...in/java/com/topjohnwu/magisk/components/BaseActivity.java
+3
-3
Download.java
app/src/main/java/com/topjohnwu/magisk/utils/Download.java
+2
-2
NoUIActivity.java
app/src/stub/java/com/topjohnwu/magisk/NoUIActivity.java
+2
-2
No files found.
app/src/full/java/com/topjohnwu/magisk/AboutActivity.java
View file @
6d0e4a6a
...
@@ -11,14 +11,14 @@ import android.view.View;
...
@@ -11,14 +11,14 @@ import android.view.View;
import
com.topjohnwu.magisk.asyncs.MarkDownWindow
;
import
com.topjohnwu.magisk.asyncs.MarkDownWindow
;
import
com.topjohnwu.magisk.components.AboutCardRow
;
import
com.topjohnwu.magisk.components.AboutCardRow
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
java.util.Locale
;
import
java.util.Locale
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
public
class
AboutActivity
extends
Activity
{
public
class
AboutActivity
extends
Base
Activity
{
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
app_version_info
)
AboutCardRow
appVersionInfo
;
@BindView
(
R
.
id
.
app_version_info
)
AboutCardRow
appVersionInfo
;
...
...
app/src/full/java/com/topjohnwu/magisk/FlashActivity.java
View file @
6d0e4a6a
...
@@ -16,7 +16,7 @@ import android.widget.Toast;
...
@@ -16,7 +16,7 @@ import android.widget.Toast;
import
com.topjohnwu.magisk.asyncs.FlashZip
;
import
com.topjohnwu.magisk.asyncs.FlashZip
;
import
com.topjohnwu.magisk.asyncs.InstallMagisk
;
import
com.topjohnwu.magisk.asyncs.InstallMagisk
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.RootUtils
;
import
com.topjohnwu.magisk.utils.RootUtils
;
import
com.topjohnwu.magisk.utils.Utils
;
import
com.topjohnwu.magisk.utils.Utils
;
...
@@ -35,7 +35,7 @@ import butterknife.BindView;
...
@@ -35,7 +35,7 @@ import butterknife.BindView;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
public
class
FlashActivity
extends
Activity
{
public
class
FlashActivity
extends
Base
Activity
{
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
txtLog
)
TextView
flashLogs
;
@BindView
(
R
.
id
.
txtLog
)
TextView
flashLogs
;
...
@@ -139,7 +139,7 @@ public class FlashActivity extends Activity {
...
@@ -139,7 +139,7 @@ public class FlashActivity extends Activity {
private
static
class
UninstallMagisk
extends
FlashZip
{
private
static
class
UninstallMagisk
extends
FlashZip
{
private
UninstallMagisk
(
Activity
context
,
Uri
uri
,
List
<
String
>
console
,
List
<
String
>
logs
)
{
private
UninstallMagisk
(
Base
Activity
context
,
Uri
uri
,
List
<
String
>
console
,
List
<
String
>
logs
)
{
super
(
context
,
uri
,
console
,
logs
);
super
(
context
,
uri
,
console
,
logs
);
}
}
...
...
app/src/full/java/com/topjohnwu/magisk/LogFragment.java
View file @
6d0e4a6a
...
@@ -9,13 +9,13 @@ import android.view.View;
...
@@ -9,13 +9,13 @@ import android.view.View;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
com.topjohnwu.magisk.adapters.TabFragmentAdapter
;
import
com.topjohnwu.magisk.adapters.TabFragmentAdapter
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
LogFragment
extends
Fragment
{
public
class
LogFragment
extends
Base
Fragment
{
private
Unbinder
unbinder
;
private
Unbinder
unbinder
;
...
...
app/src/full/java/com/topjohnwu/magisk/MagiskFragment.java
View file @
6d0e4a6a
...
@@ -21,11 +21,11 @@ import android.widget.TextView;
...
@@ -21,11 +21,11 @@ import android.widget.TextView;
import
com.topjohnwu.magisk.asyncs.CheckSafetyNet
;
import
com.topjohnwu.magisk.asyncs.CheckSafetyNet
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.BaseActivity
;
import
com.topjohnwu.magisk.components.BaseFragment
;
import
com.topjohnwu.magisk.components.CustomAlertDialog
;
import
com.topjohnwu.magisk.components.CustomAlertDialog
;
import
com.topjohnwu.magisk.components.EnvFixDialog
;
import
com.topjohnwu.magisk.components.EnvFixDialog
;
import
com.topjohnwu.magisk.components.ExpandableView
;
import
com.topjohnwu.magisk.components.ExpandableView
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.MagiskInstallDialog
;
import
com.topjohnwu.magisk.components.MagiskInstallDialog
;
import
com.topjohnwu.magisk.components.ManagerInstallDialog
;
import
com.topjohnwu.magisk.components.ManagerInstallDialog
;
import
com.topjohnwu.magisk.components.UninstallDialog
;
import
com.topjohnwu.magisk.components.UninstallDialog
;
...
@@ -41,7 +41,7 @@ import butterknife.ButterKnife;
...
@@ -41,7 +41,7 @@ import butterknife.ButterKnife;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
MagiskFragment
extends
Fragment
public
class
MagiskFragment
extends
Base
Fragment
implements
SwipeRefreshLayout
.
OnRefreshListener
,
ExpandableView
,
Topic
.
Subscriber
{
implements
SwipeRefreshLayout
.
OnRefreshListener
,
ExpandableView
,
Topic
.
Subscriber
{
private
Container
expandableContainer
=
new
Container
();
private
Container
expandableContainer
=
new
Container
();
...
@@ -117,12 +117,12 @@ public class MagiskFragment extends Fragment
...
@@ -117,12 +117,12 @@ public class MagiskFragment extends Fragment
// Show Manager update first
// Show Manager update first
if
(
Data
.
remoteManagerVersionCode
>
BuildConfig
.
VERSION_CODE
)
{
if
(
Data
.
remoteManagerVersionCode
>
BuildConfig
.
VERSION_CODE
)
{
new
ManagerInstallDialog
((
Activity
)
requireActivity
()).
show
();
new
ManagerInstallDialog
((
Base
Activity
)
requireActivity
()).
show
();
return
;
return
;
}
}
((
NotificationManager
)
mm
.
getSystemService
(
Context
.
NOTIFICATION_SERVICE
)).
cancelAll
();
((
NotificationManager
)
mm
.
getSystemService
(
Context
.
NOTIFICATION_SERVICE
)).
cancelAll
();
new
MagiskInstallDialog
((
Activity
)
getActivity
()).
show
();
new
MagiskInstallDialog
((
Base
Activity
)
getActivity
()).
show
();
}
}
@OnClick
(
R
.
id
.
uninstall_button
)
@OnClick
(
R
.
id
.
uninstall_button
)
...
...
app/src/full/java/com/topjohnwu/magisk/MagiskHideFragment.java
View file @
6d0e4a6a
...
@@ -13,14 +13,14 @@ import android.view.ViewGroup;
...
@@ -13,14 +13,14 @@ import android.view.ViewGroup;
import
android.widget.SearchView
;
import
android.widget.SearchView
;
import
com.topjohnwu.magisk.adapters.ApplicationAdapter
;
import
com.topjohnwu.magisk.adapters.ApplicationAdapter
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
MagiskHideFragment
extends
Fragment
implements
Topic
.
Subscriber
{
public
class
MagiskHideFragment
extends
Base
Fragment
implements
Topic
.
Subscriber
{
private
Unbinder
unbinder
;
private
Unbinder
unbinder
;
@BindView
(
R
.
id
.
swipeRefreshLayout
)
SwipeRefreshLayout
mSwipeRefreshLayout
;
@BindView
(
R
.
id
.
swipeRefreshLayout
)
SwipeRefreshLayout
mSwipeRefreshLayout
;
...
...
app/src/full/java/com/topjohnwu/magisk/MagiskLogFragment.java
View file @
6d0e4a6a
...
@@ -16,7 +16,7 @@ import android.widget.ProgressBar;
...
@@ -16,7 +16,7 @@ import android.widget.ProgressBar;
import
android.widget.ScrollView
;
import
android.widget.ScrollView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
com.topjohnwu.magisk.components.SnackbarMaker
;
import
com.topjohnwu.magisk.components.SnackbarMaker
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Utils
;
import
com.topjohnwu.magisk.utils.Utils
;
...
@@ -30,7 +30,7 @@ import butterknife.BindView;
...
@@ -30,7 +30,7 @@ import butterknife.BindView;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
MagiskLogFragment
extends
Fragment
{
public
class
MagiskLogFragment
extends
Base
Fragment
{
private
Unbinder
unbinder
;
private
Unbinder
unbinder
;
...
...
app/src/full/java/com/topjohnwu/magisk/MainActivity.java
View file @
6d0e4a6a
...
@@ -14,7 +14,7 @@ import android.view.Menu;
...
@@ -14,7 +14,7 @@ import android.view.Menu;
import
android.view.MenuItem
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.view.View
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.superuser.Shell
;
import
com.topjohnwu.superuser.Shell
;
...
@@ -22,7 +22,7 @@ import com.topjohnwu.superuser.Shell;
...
@@ -22,7 +22,7 @@ import com.topjohnwu.superuser.Shell;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
public
class
MainActivity
extends
Activity
public
class
MainActivity
extends
Base
Activity
implements
NavigationView
.
OnNavigationItemSelectedListener
,
Topic
.
Subscriber
{
implements
NavigationView
.
OnNavigationItemSelectedListener
,
Topic
.
Subscriber
{
private
final
Handler
mDrawerHandler
=
new
Handler
();
private
final
Handler
mDrawerHandler
=
new
Handler
();
...
...
app/src/full/java/com/topjohnwu/magisk/ModulesFragment.java
View file @
6d0e4a6a
...
@@ -18,7 +18,7 @@ import android.widget.TextView;
...
@@ -18,7 +18,7 @@ import android.widget.TextView;
import
com.topjohnwu.magisk.adapters.ModulesAdapter
;
import
com.topjohnwu.magisk.adapters.ModulesAdapter
;
import
com.topjohnwu.magisk.asyncs.LoadModules
;
import
com.topjohnwu.magisk.asyncs.LoadModules
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
com.topjohnwu.magisk.container.Module
;
import
com.topjohnwu.magisk.container.Module
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.superuser.Shell
;
import
com.topjohnwu.superuser.Shell
;
...
@@ -31,7 +31,7 @@ import butterknife.ButterKnife;
...
@@ -31,7 +31,7 @@ import butterknife.ButterKnife;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
ModulesFragment
extends
Fragment
implements
Topic
.
Subscriber
{
public
class
ModulesFragment
extends
Base
Fragment
implements
Topic
.
Subscriber
{
private
Unbinder
unbinder
;
private
Unbinder
unbinder
;
@BindView
(
R
.
id
.
swipeRefreshLayout
)
SwipeRefreshLayout
mSwipeRefreshLayout
;
@BindView
(
R
.
id
.
swipeRefreshLayout
)
SwipeRefreshLayout
mSwipeRefreshLayout
;
...
...
app/src/full/java/com/topjohnwu/magisk/NoUIActivity.java
View file @
6d0e4a6a
...
@@ -2,9 +2,9 @@ package com.topjohnwu.magisk;
...
@@ -2,9 +2,9 @@ package com.topjohnwu.magisk;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
public
class
NoUIActivity
extends
Activity
{
public
class
NoUIActivity
extends
Base
Activity
{
@Override
@Override
public
void
onRequestPermissionsResult
(
int
requestCode
,
@NonNull
String
[]
permissions
,
@NonNull
int
[]
grantResults
)
{
public
void
onRequestPermissionsResult
(
int
requestCode
,
@NonNull
String
[]
permissions
,
@NonNull
int
[]
grantResults
)
{
super
.
onRequestPermissionsResult
(
requestCode
,
permissions
,
grantResults
);
super
.
onRequestPermissionsResult
(
requestCode
,
permissions
,
grantResults
);
...
...
app/src/full/java/com/topjohnwu/magisk/ReposFragment.java
View file @
6d0e4a6a
...
@@ -16,14 +16,14 @@ import android.widget.TextView;
...
@@ -16,14 +16,14 @@ import android.widget.TextView;
import
com.topjohnwu.magisk.adapters.ReposAdapter
;
import
com.topjohnwu.magisk.adapters.ReposAdapter
;
import
com.topjohnwu.magisk.asyncs.UpdateRepos
;
import
com.topjohnwu.magisk.asyncs.UpdateRepos
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
ReposFragment
extends
Fragment
implements
Topic
.
Subscriber
{
public
class
ReposFragment
extends
Base
Fragment
implements
Topic
.
Subscriber
{
private
Unbinder
unbinder
;
private
Unbinder
unbinder
;
@BindView
(
R
.
id
.
recyclerView
)
RecyclerView
recyclerView
;
@BindView
(
R
.
id
.
recyclerView
)
RecyclerView
recyclerView
;
...
...
app/src/full/java/com/topjohnwu/magisk/SettingsActivity.java
View file @
6d0e4a6a
...
@@ -22,7 +22,7 @@ import android.widget.Toast;
...
@@ -22,7 +22,7 @@ import android.widget.Toast;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.HideManager
;
import
com.topjohnwu.magisk.asyncs.HideManager
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.receivers.DownloadReceiver
;
import
com.topjohnwu.magisk.receivers.DownloadReceiver
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.FingerprintHelper
;
import
com.topjohnwu.magisk.utils.FingerprintHelper
;
...
@@ -39,7 +39,7 @@ import java.util.Locale;
...
@@ -39,7 +39,7 @@ import java.util.Locale;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
public
class
SettingsActivity
extends
Activity
implements
Topic
.
Subscriber
{
public
class
SettingsActivity
extends
Base
Activity
implements
Topic
.
Subscriber
{
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
@BindView
(
R
.
id
.
toolbar
)
Toolbar
toolbar
;
...
...
app/src/full/java/com/topjohnwu/magisk/SplashActivity.java
View file @
6d0e4a6a
...
@@ -9,7 +9,7 @@ import android.os.Bundle;
...
@@ -9,7 +9,7 @@ import android.os.Bundle;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.CheckUpdates
;
import
com.topjohnwu.magisk.asyncs.LoadModules
;
import
com.topjohnwu.magisk.asyncs.LoadModules
;
import
com.topjohnwu.magisk.asyncs.UpdateRepos
;
import
com.topjohnwu.magisk.asyncs.UpdateRepos
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.database.RepoDatabaseHelper
;
import
com.topjohnwu.magisk.database.RepoDatabaseHelper
;
import
com.topjohnwu.magisk.receivers.ShortcutReceiver
;
import
com.topjohnwu.magisk.receivers.ShortcutReceiver
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
...
@@ -17,7 +17,7 @@ import com.topjohnwu.magisk.utils.LocaleManager;
...
@@ -17,7 +17,7 @@ import com.topjohnwu.magisk.utils.LocaleManager;
import
com.topjohnwu.magisk.utils.Utils
;
import
com.topjohnwu.magisk.utils.Utils
;
import
com.topjohnwu.superuser.Shell
;
import
com.topjohnwu.superuser.Shell
;
public
class
SplashActivity
extends
Activity
{
public
class
SplashActivity
extends
Base
Activity
{
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
...
@@ -66,7 +66,7 @@ public class SplashActivity extends Activity {
...
@@ -66,7 +66,7 @@ public class SplashActivity extends Activity {
Intent
intent
=
new
Intent
(
this
,
MainActivity
.
class
);
Intent
intent
=
new
Intent
(
this
,
MainActivity
.
class
);
intent
.
putExtra
(
Const
.
Key
.
OPEN_SECTION
,
getIntent
().
getStringExtra
(
Const
.
Key
.
OPEN_SECTION
));
intent
.
putExtra
(
Const
.
Key
.
OPEN_SECTION
,
getIntent
().
getStringExtra
(
Const
.
Key
.
OPEN_SECTION
));
intent
.
putExtra
(
Activity
.
INTENT_PERM
,
getIntent
().
getStringExtra
(
Activity
.
INTENT_PERM
));
intent
.
putExtra
(
BaseActivity
.
INTENT_PERM
,
getIntent
().
getStringExtra
(
Base
Activity
.
INTENT_PERM
));
startActivity
(
intent
);
startActivity
(
intent
);
finish
();
finish
();
}
}
...
...
app/src/full/java/com/topjohnwu/magisk/SuLogFragment.java
View file @
6d0e4a6a
...
@@ -12,13 +12,13 @@ import android.view.ViewGroup;
...
@@ -12,13 +12,13 @@ import android.view.ViewGroup;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.adapters.SuLogAdapter
;
import
com.topjohnwu.magisk.adapters.SuLogAdapter
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
SuLogFragment
extends
Fragment
{
public
class
SuLogFragment
extends
Base
Fragment
{
@BindView
(
R
.
id
.
empty_rv
)
TextView
emptyRv
;
@BindView
(
R
.
id
.
empty_rv
)
TextView
emptyRv
;
@BindView
(
R
.
id
.
recyclerView
)
RecyclerView
recyclerView
;
@BindView
(
R
.
id
.
recyclerView
)
RecyclerView
recyclerView
;
...
...
app/src/full/java/com/topjohnwu/magisk/SuperuserFragment.java
View file @
6d0e4a6a
...
@@ -10,7 +10,7 @@ import android.view.ViewGroup;
...
@@ -10,7 +10,7 @@ import android.view.ViewGroup;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.topjohnwu.magisk.adapters.PolicyAdapter
;
import
com.topjohnwu.magisk.adapters.PolicyAdapter
;
import
com.topjohnwu.magisk.components.Fragment
;
import
com.topjohnwu.magisk.components.
Base
Fragment
;
import
com.topjohnwu.magisk.container.Policy
;
import
com.topjohnwu.magisk.container.Policy
;
import
java.util.List
;
import
java.util.List
;
...
@@ -19,7 +19,7 @@ import butterknife.BindView;
...
@@ -19,7 +19,7 @@ import butterknife.BindView;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
public
class
SuperuserFragment
extends
Fragment
{
public
class
SuperuserFragment
extends
Base
Fragment
{
private
Unbinder
unbinder
;
private
Unbinder
unbinder
;
private
PackageManager
pm
;
private
PackageManager
pm
;
...
...
app/src/full/java/com/topjohnwu/magisk/adapters/ReposAdapter.java
View file @
6d0e4a6a
...
@@ -15,7 +15,7 @@ import android.widget.TextView;
...
@@ -15,7 +15,7 @@ import android.widget.TextView;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.asyncs.MarkDownWindow
;
import
com.topjohnwu.magisk.asyncs.MarkDownWindow
;
import
com.topjohnwu.magisk.asyncs.ProcessRepoZip
;
import
com.topjohnwu.magisk.asyncs.ProcessRepoZip
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.components.CustomAlertDialog
;
import
com.topjohnwu.magisk.components.CustomAlertDialog
;
import
com.topjohnwu.magisk.container.Module
;
import
com.topjohnwu.magisk.container.Module
;
import
com.topjohnwu.magisk.container.Repo
;
import
com.topjohnwu.magisk.container.Repo
;
...
@@ -97,19 +97,19 @@ public class ReposAdapter extends SectionedAdapter<ReposAdapter.SectionHolder, R
...
@@ -97,19 +97,19 @@ public class ReposAdapter extends SectionedAdapter<ReposAdapter.SectionHolder, R
holder
.
updateTime
.
setText
(
context
.
getString
(
R
.
string
.
updated_on
,
repo
.
getLastUpdateString
()));
holder
.
updateTime
.
setText
(
context
.
getString
(
R
.
string
.
updated_on
,
repo
.
getLastUpdateString
()));
holder
.
infoLayout
.
setOnClickListener
(
v
->
holder
.
infoLayout
.
setOnClickListener
(
v
->
new
MarkDownWindow
((
Activity
)
context
,
null
,
repo
.
getDetailUrl
()).
exec
());
new
MarkDownWindow
((
Base
Activity
)
context
,
null
,
repo
.
getDetailUrl
()).
exec
());
holder
.
downloadImage
.
setOnClickListener
(
v
->
{
holder
.
downloadImage
.
setOnClickListener
(
v
->
{
String
filename
=
repo
.
getName
()
+
"-"
+
repo
.
getVersion
()
+
".zip"
;
String
filename
=
repo
.
getName
()
+
"-"
+
repo
.
getVersion
()
+
".zip"
;
new
CustomAlertDialog
((
Activity
)
context
)
new
CustomAlertDialog
((
Base
Activity
)
context
)
.
setTitle
(
context
.
getString
(
R
.
string
.
repo_install_title
,
repo
.
getName
()))
.
setTitle
(
context
.
getString
(
R
.
string
.
repo_install_title
,
repo
.
getName
()))
.
setMessage
(
context
.
getString
(
R
.
string
.
repo_install_msg
,
filename
))
.
setMessage
(
context
.
getString
(
R
.
string
.
repo_install_msg
,
filename
))
.
setCancelable
(
true
)
.
setCancelable
(
true
)
.
setPositiveButton
(
R
.
string
.
install
,
(
d
,
i
)
->
.
setPositiveButton
(
R
.
string
.
install
,
(
d
,
i
)
->
new
ProcessRepoZip
((
Activity
)
context
,
repo
.
getZipUrl
(),
filename
,
true
).
exec
()
new
ProcessRepoZip
((
Base
Activity
)
context
,
repo
.
getZipUrl
(),
filename
,
true
).
exec
()
)
)
.
setNeutralButton
(
R
.
string
.
download
,
(
d
,
i
)
->
.
setNeutralButton
(
R
.
string
.
download
,
(
d
,
i
)
->
new
ProcessRepoZip
((
Activity
)
context
,
repo
.
getZipUrl
(),
filename
,
false
).
exec
())
new
ProcessRepoZip
((
Base
Activity
)
context
,
repo
.
getZipUrl
(),
filename
,
false
).
exec
())
.
setNegativeButton
(
R
.
string
.
no_thanks
,
null
)
.
setNegativeButton
(
R
.
string
.
no_thanks
,
null
)
.
show
();
.
show
();
});
});
...
...
app/src/full/java/com/topjohnwu/magisk/asyncs/ProcessRepoZip.java
View file @
6d0e4a6a
...
@@ -11,7 +11,7 @@ import android.widget.Toast;
...
@@ -11,7 +11,7 @@ import android.widget.Toast;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.Const
;
import
com.topjohnwu.magisk.FlashActivity
;
import
com.topjohnwu.magisk.FlashActivity
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.components.SnackbarMaker
;
import
com.topjohnwu.magisk.components.SnackbarMaker
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Utils
;
import
com.topjohnwu.magisk.utils.Utils
;
...
@@ -43,7 +43,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
...
@@ -43,7 +43,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
private
int
progress
=
0
,
total
=
-
1
;
private
int
progress
=
0
,
total
=
-
1
;
private
Handler
mHandler
;
private
Handler
mHandler
;
public
ProcessRepoZip
(
Activity
context
,
String
link
,
String
filename
,
boolean
install
)
{
public
ProcessRepoZip
(
Base
Activity
context
,
String
link
,
String
filename
,
boolean
install
)
{
super
(
context
);
super
(
context
);
mLink
=
link
;
mLink
=
link
;
mFile
=
new
File
(
Download
.
EXTERNAL_PATH
,
Download
.
getLegalFilename
(
filename
));
mFile
=
new
File
(
Download
.
EXTERNAL_PATH
,
Download
.
getLegalFilename
(
filename
));
...
@@ -76,20 +76,20 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
...
@@ -76,20 +76,20 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
}
}
@Override
@Override
protected
Activity
getActivity
()
{
protected
Base
Activity
getActivity
()
{
return
(
Activity
)
super
.
getActivity
();
return
(
Base
Activity
)
super
.
getActivity
();
}
}
@Override
@Override
protected
void
onPreExecute
()
{
protected
void
onPreExecute
()
{
Activity
activity
=
getActivity
();
Base
Activity
activity
=
getActivity
();
mFile
.
getParentFile
().
mkdirs
();
mFile
.
getParentFile
().
mkdirs
();
progressDialog
=
ProgressDialog
.
show
(
activity
,
activity
.
getString
(
R
.
string
.
zip_download_title
),
activity
.
getString
(
R
.
string
.
zip_download_msg
,
0
));
progressDialog
=
ProgressDialog
.
show
(
activity
,
activity
.
getString
(
R
.
string
.
zip_download_title
),
activity
.
getString
(
R
.
string
.
zip_download_msg
,
0
));
}
}
@Override
@Override
protected
Boolean
doInBackground
(
Void
...
params
)
{
protected
Boolean
doInBackground
(
Void
...
params
)
{
Activity
activity
=
getActivity
();
Base
Activity
activity
=
getActivity
();
if
(
activity
==
null
)
return
null
;
if
(
activity
==
null
)
return
null
;
try
{
try
{
// Request zip from Internet
// Request zip from Internet
...
@@ -135,7 +135,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
...
@@ -135,7 +135,7 @@ public class ProcessRepoZip extends ParallelTask<Void, Object, Boolean> {
@Override
@Override
protected
void
onPostExecute
(
Boolean
result
)
{
protected
void
onPostExecute
(
Boolean
result
)
{
Activity
activity
=
getActivity
();
Base
Activity
activity
=
getActivity
();
if
(
activity
==
null
)
return
;
if
(
activity
==
null
)
return
;
progressDialog
.
dismiss
();
progressDialog
.
dismiss
();
if
(
result
)
{
if
(
result
)
{
...
...
app/src/full/java/com/topjohnwu/magisk/components/Fragment.java
→
app/src/full/java/com/topjohnwu/magisk/components/
Base
Fragment.java
View file @
6d0e4a6a
package
com
.
topjohnwu
.
magisk
.
components
;
package
com
.
topjohnwu
.
magisk
.
components
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.support.v4.app.Fragment
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.MagiskManager
;
import
com.topjohnwu.magisk.MagiskManager
;
import
com.topjohnwu.magisk.utils.Topic
;
import
com.topjohnwu.magisk.utils.Topic
;
public
class
Fragment
extends
android
.
support
.
v4
.
app
.
Fragment
implements
Topic
.
AutoSubscriber
{
public
class
BaseFragment
extends
Fragment
implements
Topic
.
AutoSubscriber
{
public
MagiskManager
mm
;
public
MagiskManager
mm
;
public
Fragment
()
{
public
Base
Fragment
()
{
mm
=
Data
.
MM
();
mm
=
Data
.
MM
();
}
}
...
@@ -31,12 +32,12 @@ public class Fragment extends android.support.v4.app.Fragment implements Topic.A
...
@@ -31,12 +32,12 @@ public class Fragment extends android.support.v4.app.Fragment implements Topic.A
startActivityForResult
(
intent
,
requestCode
,
this
::
onActivityResult
);
startActivityForResult
(
intent
,
requestCode
,
this
::
onActivityResult
);
}
}
public
void
startActivityForResult
(
Intent
intent
,
int
requestCode
,
Activity
.
ActivityResultListener
listener
)
{
public
void
startActivityForResult
(
Intent
intent
,
int
requestCode
,
Base
Activity
.
ActivityResultListener
listener
)
{
((
Activity
)
requireActivity
()).
startActivityForResult
(
intent
,
requestCode
,
listener
);
((
Base
Activity
)
requireActivity
()).
startActivityForResult
(
intent
,
requestCode
,
listener
);
}
}
public
void
runWithPermission
(
String
[]
permissions
,
Runnable
callback
)
{
public
void
runWithPermission
(
String
[]
permissions
,
Runnable
callback
)
{
((
Activity
)
requireActivity
()).
runWithPermission
(
permissions
,
callback
);
((
Base
Activity
)
requireActivity
()).
runWithPermission
(
permissions
,
callback
);
}
}
@Override
@Override
...
...
app/src/full/java/com/topjohnwu/magisk/components/InstallMethodDialog.java
View file @
6d0e4a6a
...
@@ -19,7 +19,7 @@ import java.util.List;
...
@@ -19,7 +19,7 @@ import java.util.List;
class
InstallMethodDialog
extends
AlertDialog
.
Builder
{
class
InstallMethodDialog
extends
AlertDialog
.
Builder
{
InstallMethodDialog
(
Activity
activity
,
List
<
String
>
options
,
String
filename
)
{
InstallMethodDialog
(
Base
Activity
activity
,
List
<
String
>
options
,
String
filename
)
{
super
(
activity
);
super
(
activity
);
setTitle
(
R
.
string
.
select_method
);
setTitle
(
R
.
string
.
select_method
);
setItems
(
options
.
toArray
(
new
String
[
0
]),
(
dialog
,
idx
)
->
{
setItems
(
options
.
toArray
(
new
String
[
0
]),
(
dialog
,
idx
)
->
{
...
@@ -36,7 +36,7 @@ class InstallMethodDialog extends AlertDialog.Builder {
...
@@ -36,7 +36,7 @@ class InstallMethodDialog extends AlertDialog.Builder {
activity
.
startActivityForResult
(
intent
,
Const
.
ID
.
SELECT_BOOT
,
activity
.
startActivityForResult
(
intent
,
Const
.
ID
.
SELECT_BOOT
,
(
requestCode
,
resultCode
,
data
)
->
{
(
requestCode
,
resultCode
,
data
)
->
{
if
(
requestCode
==
Const
.
ID
.
SELECT_BOOT
&&
if
(
requestCode
==
Const
.
ID
.
SELECT_BOOT
&&
resultCode
==
Activity
.
RESULT_OK
&&
data
!=
null
)
{
resultCode
==
Base
Activity
.
RESULT_OK
&&
data
!=
null
)
{
Intent
i
=
new
Intent
(
activity
,
FlashActivity
.
class
)
Intent
i
=
new
Intent
(
activity
,
FlashActivity
.
class
)
.
putExtra
(
Const
.
Key
.
FLASH_SET_BOOT
,
data
.
getData
())
.
putExtra
(
Const
.
Key
.
FLASH_SET_BOOT
,
data
.
getData
())
.
putExtra
(
Const
.
Key
.
FLASH_ACTION
,
Const
.
Value
.
PATCH_BOOT
);
.
putExtra
(
Const
.
Key
.
FLASH_ACTION
,
Const
.
Value
.
PATCH_BOOT
);
...
...
app/src/full/java/com/topjohnwu/magisk/components/MagiskInstallDialog.java
View file @
6d0e4a6a
...
@@ -16,7 +16,7 @@ import java.util.ArrayList;
...
@@ -16,7 +16,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
public
class
MagiskInstallDialog
extends
CustomAlertDialog
{
public
class
MagiskInstallDialog
extends
CustomAlertDialog
{
public
MagiskInstallDialog
(
Activity
activity
)
{
public
MagiskInstallDialog
(
Base
Activity
activity
)
{
super
(
activity
);
super
(
activity
);
MagiskManager
mm
=
Data
.
MM
();
MagiskManager
mm
=
Data
.
MM
();
String
filename
=
Utils
.
fmt
(
"Magisk-v%s(%d).zip"
,
String
filename
=
Utils
.
fmt
(
"Magisk-v%s(%d).zip"
,
...
...
app/src/full/java/com/topjohnwu/magisk/components/ManagerInstallDialog.java
View file @
6d0e4a6a
...
@@ -15,7 +15,7 @@ import com.topjohnwu.magisk.utils.Utils;
...
@@ -15,7 +15,7 @@ import com.topjohnwu.magisk.utils.Utils;
public
class
ManagerInstallDialog
extends
CustomAlertDialog
{
public
class
ManagerInstallDialog
extends
CustomAlertDialog
{
public
ManagerInstallDialog
(
@NonNull
Activity
activity
)
{
public
ManagerInstallDialog
(
@NonNull
Base
Activity
activity
)
{
super
(
activity
);
super
(
activity
);
MagiskManager
mm
=
Data
.
MM
();
MagiskManager
mm
=
Data
.
MM
();
String
filename
=
Utils
.
fmt
(
"MagiskManager-v%s(%d).apk"
,
String
filename
=
Utils
.
fmt
(
"MagiskManager-v%s(%d).apk"
,
...
...
app/src/full/java/com/topjohnwu/magisk/superuser/RequestActivity.java
View file @
6d0e4a6a
...
@@ -23,7 +23,7 @@ import com.topjohnwu.magisk.Const;
...
@@ -23,7 +23,7 @@ import com.topjohnwu.magisk.Const;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.Data
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.asyncs.ParallelTask
;
import
com.topjohnwu.magisk.asyncs.ParallelTask
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.container.Policy
;
import
com.topjohnwu.magisk.container.Policy
;
import
com.topjohnwu.magisk.utils.FingerprintHelper
;
import
com.topjohnwu.magisk.utils.FingerprintHelper
;
...
@@ -33,7 +33,7 @@ import java.io.IOException;
...
@@ -33,7 +33,7 @@ import java.io.IOException;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.ButterKnife
;
public
class
RequestActivity
extends
Activity
{
public
class
RequestActivity
extends
Base
Activity
{
@BindView
(
R
.
id
.
su_popup
)
LinearLayout
suPopup
;
@BindView
(
R
.
id
.
su_popup
)
LinearLayout
suPopup
;
@BindView
(
R
.
id
.
timeout
)
Spinner
timeout
;
@BindView
(
R
.
id
.
timeout
)
Spinner
timeout
;
...
@@ -237,7 +237,7 @@ public class RequestActivity extends Activity {
...
@@ -237,7 +237,7 @@ public class RequestActivity extends Activity {
private
class
SocketManager
extends
ParallelTask
<
Void
,
Void
,
Boolean
>
{
private
class
SocketManager
extends
ParallelTask
<
Void
,
Void
,
Boolean
>
{
SocketManager
(
Activity
context
)
{
SocketManager
(
Base
Activity
context
)
{
super
(
context
);
super
(
context
);
}
}
...
...
app/src/main/java/com/topjohnwu/magisk/components/Activity.java
→
app/src/main/java/com/topjohnwu/magisk/components/
Base
Activity.java
View file @
6d0e4a6a
...
@@ -13,7 +13,7 @@ import android.widget.Toast;
...
@@ -13,7 +13,7 @@ import android.widget.Toast;
import
com.topjohnwu.magisk.NoUIActivity
;
import
com.topjohnwu.magisk.NoUIActivity
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.R
;
public
abstract
class
Activity
extends
FlavorActivity
{
public
abstract
class
Base
Activity
extends
FlavorActivity
{
public
static
final
String
INTENT_PERM
=
"perm_dialog"
;
public
static
final
String
INTENT_PERM
=
"perm_dialog"
;
...
@@ -30,14 +30,14 @@ public abstract class Activity extends FlavorActivity {
...
@@ -30,14 +30,14 @@ public abstract class Activity extends FlavorActivity {
}
else
{
}
else
{
// Passed in context should be an activity if not granted, need to show dialog!
// Passed in context should be an activity if not granted, need to show dialog!
permissionGrantCallback
=
callback
;
permissionGrantCallback
=
callback
;
if
(!(
context
instanceof
Activity
))
{
if
(!(
context
instanceof
Base
Activity
))
{
// Start activity to show dialog
// Start activity to show dialog
Intent
intent
=
new
Intent
(
context
,
NoUIActivity
.
class
);
Intent
intent
=
new
Intent
(
context
,
NoUIActivity
.
class
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
putExtra
(
INTENT_PERM
,
permissions
);
intent
.
putExtra
(
INTENT_PERM
,
permissions
);
context
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
}
else
{
}
else
{
ActivityCompat
.
requestPermissions
((
Activity
)
context
,
permissions
,
0
);
ActivityCompat
.
requestPermissions
((
Base
Activity
)
context
,
permissions
,
0
);
}
}
}
}
}
}
...
...
app/src/main/java/com/topjohnwu/magisk/utils/Download.java
View file @
6d0e4a6a
...
@@ -11,7 +11,7 @@ import android.os.Environment;
...
@@ -11,7 +11,7 @@ import android.os.Environment;
import
android.widget.Toast
;
import
android.widget.Toast
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.R
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.receivers.DownloadReceiver
;
import
com.topjohnwu.magisk.receivers.DownloadReceiver
;
import
java.io.File
;
import
java.io.File
;
...
@@ -27,7 +27,7 @@ public class Download {
...
@@ -27,7 +27,7 @@ public class Download {
if
(
isDownloading
)
if
(
isDownloading
)
return
;
return
;
Activity
.
runWithPermission
(
context
,
Base
Activity
.
runWithPermission
(
context
,
new
String
[]
{
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
},
()
->
{
new
String
[]
{
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
},
()
->
{
File
file
=
new
File
(
EXTERNAL_PATH
,
getLegalFilename
(
filename
));
File
file
=
new
File
(
EXTERNAL_PATH
,
getLegalFilename
(
filename
));
...
...
app/src/stub/java/com/topjohnwu/magisk/NoUIActivity.java
View file @
6d0e4a6a
...
@@ -5,7 +5,7 @@ import android.app.AlertDialog;
...
@@ -5,7 +5,7 @@ import android.app.AlertDialog;
import
android.os.AsyncTask
;
import
android.os.AsyncTask
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
com.topjohnwu.magisk.components.Activity
;
import
com.topjohnwu.magisk.components.
Base
Activity
;
import
com.topjohnwu.magisk.receivers.ManagerInstall
;
import
com.topjohnwu.magisk.receivers.ManagerInstall
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.Download
;
import
com.topjohnwu.magisk.utils.WebService
;
import
com.topjohnwu.magisk.utils.WebService
;
...
@@ -15,7 +15,7 @@ import org.json.JSONObject;
...
@@ -15,7 +15,7 @@ import org.json.JSONObject;
import
java.util.Locale
;
import
java.util.Locale
;
public
class
NoUIActivity
extends
Activity
{
public
class
NoUIActivity
extends
Base
Activity
{
private
String
apkLink
;
private
String
apkLink
;
private
String
version
;
private
String
version
;
...
...
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