Skip to content

Commit

Permalink
purged google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002e committed Apr 30, 2020
1 parent 894bb01 commit e0ec638
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 384 deletions.
3 changes: 0 additions & 3 deletions app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,4 @@ dependencies {
compile 'com.github.johnkil.print:print:1.3.1'
compile 'com.nononsenseapps:filepicker:3.1.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
}

apply plugin: 'com.google.gms.google-services'
6 changes: 3 additions & 3 deletions app/app/src/main/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ UTILITIES_PATH = ../../../../utilities
PATCHES_PATH = ../../../../patches

all: assets/nexmon assets libs/armeabi

assets: \
assets/nexmon/fw_bcm4330_5_90_100_41_sta.bin \
assets/nexmon/fw_bcm4339_6_37_34_43.bin \
Expand All @@ -20,7 +20,7 @@ assets: \
assets/nexmon/mdk3 \
assets/nexmon/socat \
assets/nexmon/libfakeioctl.so \
FORCE
FORCE

assets/nexmon: FORCE
mkdir -p assets/nexmon/
Expand Down Expand Up @@ -99,4 +99,4 @@ clean: FORCE
FORCE:


.PHONY: all clean
.PHONY: all clean
3 changes: 0 additions & 3 deletions app/app/src/main/external/src/libandroidlogger/Android.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@


LOCAL_PATH:=$(call my-dir)


include $(CLEAR_VARS)
LOCAL_SRC_FILES:=android-logger.c
LOCAL_MODULE:=libandroidlogger
Expand Down
2 changes: 1 addition & 1 deletion app/app/src/main/external/src/libmyaircrackwep/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(UTILITIES_PATH)/libssl/local/armeabi/libssl.a: FORCE

$(UTILITIES_PATH)/libcrypto/local/armeabi/libcrypto.a: FORCE
cd $(UTILITIES_PATH)/libcrypto && make

FORCE:

clean:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
import android.view.WindowManager;
import android.widget.Toast;

import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
Expand All @@ -78,30 +74,6 @@ public class MyApplication extends Application {

public static boolean isAppVisible = false;

private static Tracker mTracker;

public static final int SURVEY_NOTIFICATION_ID = 99999;
private static SpannableStringBuilder installInfo;

/**
* Gets the default {@link Tracker} for this {@link Application}.
* @return tracker
*/
synchronized public static Tracker getDefaultTracker() {
if (mTracker == null) {
GoogleAnalytics analytics = GoogleAnalytics.getInstance(getAppContext());
// To enable debug logging use: adb shell setprop log.tag.GAv4 DEBUG
mTracker = analytics.newTracker(R.xml.global_tracker);
mTracker.set("&uid", nexmonUID);
mTracker.send(new HitBuilders.EventBuilder()
.setCategory("Device to Client-ID")
.setLabel("Device: " + Build.MODEL + " Client-ID: " + nexmonUID)
.setAction("Tracking started")
.build());
}
return mTracker;
}

private static final String TAG = "PenTestSuite";

private static final String APP_PACKAGE = "de.tu_darmstadt.seemoo.nexmon";
Expand Down Expand Up @@ -584,4 +556,4 @@ public static void toast(String msg) {
Toast.makeText(MyApplication.getAppContext(), msg, Toast.LENGTH_SHORT).show();
} catch(Exception e) {e.printStackTrace();}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package de.tu_darmstadt.seemoo.nexmon.gui;

import android.app.Fragment;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
Expand Down Expand Up @@ -55,7 +56,7 @@
import de.tu_darmstadt.seemoo.nexmon.stations.Station;


public class APfragment extends TrackingFragment implements CurrentChannelListener {
public class APfragment extends Fragment implements CurrentChannelListener {

public static final int UPDATE_LIST = 30;
public static final int UPDATE_LIST_COMPLETE = 31;
Expand Down Expand Up @@ -272,11 +273,6 @@ public void onReceive(Context context, Intent intent) {
contUpdate();
}

@Override
public String getTrackingName() {
return "Screen: Airodump";
}

private void toggleApFinder() {
if (!aPfinderService.isRunning()) {
guiHandler.sendEmptyMessage(CLEAR_LIST);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package de.tu_darmstadt.seemoo.nexmon.gui;


import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
Expand All @@ -34,7 +33,7 @@
/**
* A simple {@link Fragment} subclass.
*/
public class AboutUsFragment extends TrackingFragment {
public class AboutUsFragment extends Fragment {

private ImageView imgTudLogo;
private ImageView imgSeemooLogo;
Expand Down Expand Up @@ -102,13 +101,6 @@ public void onClick(View v) {
return view;
}



@Override
public String getTrackingName() {
return "Screen: About us";
}

@Override
public void onPause() {
super.onPause();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package de.tu_darmstadt.seemoo.nexmon.gui;


import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
Expand Down Expand Up @@ -61,7 +60,7 @@
* Use the {@link AircrackWepFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class AircrackWepFragment extends TrackingFragment implements Attack.IAttackInstanceUpdate{
public class AircrackWepFragment extends Fragment implements Attack.IAttackInstanceUpdate{


private static final int CHOOSE_FILE = 12;
Expand Down Expand Up @@ -226,11 +225,6 @@ public void onResume() {

}

@Override
public String getTrackingName() {
return "Screen: Aircrack WEP";
}

@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package de.tu_darmstadt.seemoo.nexmon.gui;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
Expand Down Expand Up @@ -51,7 +52,7 @@
/**
* Created by fabian on 8/25/16.
*/
public class AirdecapFragment extends TrackingFragment {
public class AirdecapFragment extends Fragment {

private static final int SHOW_LOADING = 80;
private static final int DISMISS_LOADING = 81;
Expand Down Expand Up @@ -92,11 +93,6 @@ public void onCreate(Bundle savedInstanceState) {

}

@Override
public String getTrackingName() {
return "Screen: Airdecap";
}

@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
Expand Down Expand Up @@ -254,7 +250,6 @@ public void run() {
scanStart += scanAmount;
}


guiHandler.sendEmptyMessage(UPDATE_SPINNER);
guiHandler.sendEmptyMessage(DISMISS_LOADING);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* Use the {@link AttackInfoFragment#newInstance} factory method to
* create an instance of this fragment.
*/
public class AttackInfoFragment extends TrackingFragment {
public class AttackInfoFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_ATTACK = "ATTACK";
Expand Down Expand Up @@ -158,11 +158,6 @@ public void onResume() {

}

@Override
public String getTrackingName() {
return "Screen: AttackInfo";
}

@Override
public void onPause() {
super.onPause();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import android.widget.ArrayAdapter;
import android.widget.ListView;

import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;
import com.stericson.RootShell.execution.Command;
import com.stericson.RootTools.RootTools;

Expand Down Expand Up @@ -75,13 +73,6 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
String selectedChannel = channels[position];
setWlanChannel(selectedChannel);

Tracker tracker = MyApplication.getDefaultTracker();
tracker.send(new HitBuilders.EventBuilder()
.setCategory("Channel")
.setLabel("Channel Selection Dialog")
.setAction("Channel changed")
.build());

dismiss();
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package de.tu_darmstadt.seemoo.nexmon.gui;

import android.app.Fragment;
import android.content.Intent;
import android.content.res.AssetManager;
import android.os.Build;
Expand All @@ -17,8 +18,6 @@
import android.widget.TextView;
import android.widget.Toast;

import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;
import com.nononsenseapps.filepicker.FilePickerActivity;
import com.roger.catloadinglibrary.CatLoadingView;
import com.stericson.RootShell.exceptions.RootDeniedException;
Expand All @@ -37,7 +36,7 @@
import de.tu_darmstadt.seemoo.nexmon.R;


public class FirmwareFragment extends TrackingFragment implements View.OnClickListener {
public class FirmwareFragment extends Fragment implements View.OnClickListener {

private static final int UPDATE_TV_FIRMWARE_VERSION = 50;
private static final int UPDATE_BUTTON_ENABLED = 51;
Expand Down Expand Up @@ -411,15 +410,6 @@ public void commandOutput(int id, String line) {

Message msg = guiHandler.obtainMessage(UPDATE_TV_FIRMWARE_VERSION, out);
guiHandler.sendMessage(msg);

// Get tracker.
Tracker t = MyApplication.getDefaultTracker();
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
.setCategory("Firmware Version")
.setLabel("Device: " + Build.MODEL)
.setAction("Version: " + out)
.build());
}

super.commandOutput(id, line);
Expand Down Expand Up @@ -489,14 +479,6 @@ public void onClick(View v) {
switch(v.getId()) {
case R.id.btnInstallNexmonFirmware:
onClickInstallNexmonFirmware();
// Get tracker.
Tracker t = MyApplication.getDefaultTracker();
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
.setCategory("Firmware")
.setLabel("Device: " + Build.MODEL + " FW: " + tvFirmwareVersionOutput.getText())
.setAction("Install")
.build());
break;
case R.id.btnRestoreFirmwareBackup:
onClickRestoreFirmwareBackup();
Expand Down Expand Up @@ -532,9 +514,4 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
}
}
}

@Override
public String getTrackingName() {
return "Screen: Firmware";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package de.tu_darmstadt.seemoo.nexmon.gui;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
Expand All @@ -39,7 +40,7 @@
/**
* Created by fabian on 9/26/16.
*/
public class IvsMergeFragment extends TrackingFragment {
public class IvsMergeFragment extends Fragment {
private static final int HANDLER_SHOW_LOADING = 1;
private static final int HANDLER_DISMISS_LOADING = 2;

Expand Down Expand Up @@ -126,11 +127,6 @@ public void onResume() {

}

@Override
public String getTrackingName() {
return "Screen: IVS merge";
}

@Override
public void onPause() {
super.onPause();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package de.tu_darmstadt.seemoo.nexmon.gui;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
Expand All @@ -41,9 +42,7 @@
/**
* Created by fabian on 9/25/16.
*/
public class PcapConcatFragment extends TrackingFragment{


public class PcapConcatFragment extends Fragment{

private static final int HANDLER_SHOW_LOADING = 1;
private static final int HANDLER_DISMISS_LOADING = 2;
Expand Down Expand Up @@ -132,12 +131,7 @@ public void onResume() {

}

@Override
public String getTrackingName() {
return "Screen: PCAP concat";
}

@Override
@Override
public void onPause() {
super.onPause();
}
Expand Down
Loading

0 comments on commit e0ec638

Please sign in to comment.