Skip to content

Commit

Permalink
Remove Telemetry
Browse files Browse the repository at this point in the history
Current fork has no access to the analytics provide by Microsoft
appcenter, and we prefer to leave users anonymous.
  • Loading branch information
JingMatrix committed Nov 20, 2024
1 parent 705e8da commit 403b5fa
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 122 deletions.
3 changes: 0 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ dependencies {
implementation(libs.kotlin.stdlib)
implementation(libs.kotlinx.coroutines.core)
implementation(projects.services.managerService)

debugImplementation(libs.appcenter.analytics)
debugImplementation(libs.appcenter.crashes)
}

configurations.all {
Expand Down
86 changes: 0 additions & 86 deletions app/src/debug/java/org/lsposed/manager/util/Telemetry.java

This file was deleted.

4 changes: 0 additions & 4 deletions app/src/main/java/org/lsposed/manager/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import org.lsposed.manager.repo.RepoLoader;
import org.lsposed.manager.util.CloudflareDNS;
import org.lsposed.manager.util.ModuleUtil;
import org.lsposed.manager.util.Telemetry;
import org.lsposed.manager.util.ThemeUtil;
import org.lsposed.manager.util.UpdateUtil;

Expand Down Expand Up @@ -141,10 +140,8 @@ public static Handler getMainHandler() {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
Telemetry.start(this);
var map = new HashMap<String, String>(1);
map.put("isParasitic", String.valueOf(isParasitic));
Telemetry.trackEvent("App start", map);
var am = getSystemService(ActivityManager.class);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
map.clear();
Expand All @@ -155,7 +152,6 @@ protected void attachBaseContext(Context base) {
map.put("process", reasons.get(0).getProcessName());
map.put("reason", String.valueOf(reasons.get(0).getReason()));
map.put("status", String.valueOf(reasons.get(0).getStatus()));
Telemetry.trackEvent("Last exit reasons", map);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

import org.lsposed.manager.App;
import org.lsposed.manager.R;
import org.lsposed.manager.util.Telemetry;
import org.lsposed.manager.util.ThemeUtil;

import rikka.material.app.MaterialActivity;
Expand Down Expand Up @@ -70,12 +69,6 @@ protected void onStart() {
setTaskDescription(new ActivityManager.TaskDescription(getTitle().toString(), icon, getColor(R.color.ic_launcher_background)));
}

@Override
protected void onStop() {
super.onStop();
Telemetry.trackEvent("BaseActivity stop", null);
}

@Override
public void onApplyUserThemeResource(@NonNull Resources.Theme theme, boolean isDecorView) {
if (!ThemeUtil.isSystemAccent()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import org.lsposed.manager.ui.dialog.FlashDialogBuilder;
import org.lsposed.manager.ui.dialog.WelcomeDialog;
import org.lsposed.manager.util.NavUtil;
import org.lsposed.manager.util.Telemetry;
import org.lsposed.manager.util.UpdateUtil;
import org.lsposed.manager.util.chrome.LinkTransformationMethod;

Expand Down Expand Up @@ -246,7 +245,6 @@ private void updateStates(Activity activity, boolean binderAlive, boolean needUp
map.put("api", binding.api.getText().toString());
map.put("frameworkVersion", binding.frameworkVersion.getText().toString());
map.put("systemAbi", Arrays.toString(Build.SUPPORTED_ABIS));
Telemetry.trackEvent("HomeFragment", map);
binding.copyInfo.setOnClickListener(v -> {
ClipboardUtils.put(activity, info);
showHint(R.string.info_copied, false);
Expand Down
16 changes: 0 additions & 16 deletions app/src/release/java/org/lsposed/manager/util/Telemetry.java

This file was deleted.

2 changes: 1 addition & 1 deletion external/lsplant
3 changes: 0 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ lsplugin-cmaker = { id = "org.lsposed.lsplugin.cmaker", version = "1.2" }
lsplugin-jgit = { id = "org.lsposed.lsplugin.jgit", version = "1.1" }

[libraries]
appcenter-crashes = { group = "com.microsoft.appcenter", name = "appcenter-crashes", version.ref = "appcenter" }
appcenter-analytics = { group = "com.microsoft.appcenter", name = "appcenter-analytics", version.ref = "appcenter" }

rikkax-appcompat = { module = "dev.rikka.rikkax.appcompat:appcompat", version = "1.6.1" }
rikkax-core = { module = "dev.rikka.rikkax.core:core", version = "1.4.1" }
rikkax-insets = { module = "dev.rikka.rikkax.insets:insets", version = "1.3.0" }
Expand Down

0 comments on commit 403b5fa

Please sign in to comment.