Stupid fix...
This commit is contained in:
parent
a173179b03
commit
160c6e6554
@ -40,7 +40,7 @@ import butterknife.ButterKnife;
|
||||
|
||||
public class LogFragment extends Fragment {
|
||||
|
||||
private static final String MAGISK_LOG = "/cache/magisk.dev";
|
||||
private static final String MAGISK_LOG = "/cache/magisk.log";
|
||||
|
||||
@BindView(R.id.txtLog) TextView txtLog;
|
||||
@BindView(R.id.svLog) ScrollView svLog;
|
||||
@ -154,7 +154,7 @@ public class LogFragment extends Fragment {
|
||||
|
||||
Calendar now = Calendar.getInstance();
|
||||
String filename = String.format(
|
||||
"magisk_%s_%04d%02d%02d_%02d%02d%02d.dev", "error",
|
||||
"magisk_%s_%04d%02d%02d_%02d%02d%02d.log", "error",
|
||||
now.get(Calendar.YEAR), now.get(Calendar.MONTH) + 1,
|
||||
now.get(Calendar.DAY_OF_MONTH), now.get(Calendar.HOUR_OF_DAY),
|
||||
now.get(Calendar.MINUTE), now.get(Calendar.SECOND));
|
||||
|
@ -98,7 +98,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
||||
navigationView.setCheckedItem(R.id.downloads);
|
||||
}
|
||||
}
|
||||
hm = getFragmentManager().findFragmentByTag("dev");
|
||||
hm = getFragmentManager().findFragmentByTag("log");
|
||||
if (hm != null) {
|
||||
if (hm.isVisible()) {
|
||||
navigationView.setCheckedItem(R.id.log);
|
||||
@ -227,7 +227,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
||||
break;
|
||||
case R.id.log:
|
||||
setTitle(R.string.log);
|
||||
tag = "dev";
|
||||
tag = "log";
|
||||
navFragment = new LogFragment();
|
||||
break;
|
||||
case R.id.settings:
|
||||
|
@ -254,8 +254,6 @@ public class Async {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
Logger.dev(mName + "; " + mFile.getPath());
|
||||
// return false;
|
||||
if (Shell.rootAccess()) {
|
||||
ret = Shell.su(
|
||||
"unzip -o " + mFile.getPath() + " META-INF/com/google/android/* -d " + mFile.getParent(),
|
||||
|
Loading…
Reference in New Issue
Block a user