|
|
|
@ -50,10 +50,6 @@ import java.util.zip.ZipEntry;
|
|
|
|
|
import java.util.zip.ZipFile;
|
|
|
|
|
import java.util.zip.ZipInputStream;
|
|
|
|
|
|
|
|
|
|
import io.sentry.Breadcrumb;
|
|
|
|
|
import io.sentry.Sentry;
|
|
|
|
|
import io.sentry.SentryLevel;
|
|
|
|
|
|
|
|
|
|
public class InstallerActivity extends FoxActivity {
|
|
|
|
|
private static final String TAG = "InstallerActivity";
|
|
|
|
|
public LinearProgressIndicator progressIndicator;
|
|
|
|
@ -108,7 +104,7 @@ public class InstallerActivity extends FoxActivity {
|
|
|
|
|
}
|
|
|
|
|
Log.i(TAG, "Install link: " + target);
|
|
|
|
|
// Note: Sentry only send this info on crash.
|
|
|
|
|
if (MainApplication.isCrashReportingEnabled()) {
|
|
|
|
|
/*if (MainApplication.isCrashReportingEnabled()) {
|
|
|
|
|
Breadcrumb breadcrumb = new Breadcrumb();
|
|
|
|
|
breadcrumb.setType("install");
|
|
|
|
|
breadcrumb.setData("target", target);
|
|
|
|
@ -117,7 +113,7 @@ public class InstallerActivity extends FoxActivity {
|
|
|
|
|
breadcrumb.setCategory("app.action.preinstall");
|
|
|
|
|
breadcrumb.setLevel(SentryLevel.INFO);
|
|
|
|
|
Sentry.addBreadcrumb(breadcrumb);
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
boolean urlMode = target.startsWith("http://") || target.startsWith("https://");
|
|
|
|
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
|
|
|
|
setTitle(name);
|
|
|
|
@ -455,7 +451,7 @@ public class InstallerActivity extends FoxActivity {
|
|
|
|
|
installCommand).to(installerController, installerMonitor);
|
|
|
|
|
}
|
|
|
|
|
// Note: Sentry only send this info on crash.
|
|
|
|
|
if (MainApplication.isCrashReportingEnabled()) {
|
|
|
|
|
/*if (MainApplication.isCrashReportingEnabled()) {
|
|
|
|
|
Breadcrumb breadcrumb = new Breadcrumb();
|
|
|
|
|
breadcrumb.setType("install");
|
|
|
|
|
breadcrumb.setData("moduleId", moduleId == null ? "<null>" : moduleId);
|
|
|
|
@ -468,7 +464,7 @@ public class InstallerActivity extends FoxActivity {
|
|
|
|
|
breadcrumb.setCategory("app.action.install");
|
|
|
|
|
breadcrumb.setLevel(SentryLevel.INFO);
|
|
|
|
|
Sentry.addBreadcrumb(breadcrumb);
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
if (mmtReborn && magiskCmdLine) {
|
|
|
|
|
Log.w(TAG, "mmtReborn and magiskCmdLine may not work well together");
|
|
|
|
|
}
|
|
|
|
|