Skip to content

Commit

Permalink
REMOVED: bugsense.
Browse files Browse the repository at this point in the history
  • Loading branch information
dataBaseError committed Jan 8, 2014
1 parent c518a69 commit f324e97
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 46 deletions.
1 change: 0 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="lib" path="libs/orwell-1.0-min.jar"/>
<classpathentry exported="true" kind="lib" path="libs/bugsense-3.5.jar"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
Expand Down
Binary file removed libs/bugsense-3.5.jar
Binary file not shown.
8 changes: 0 additions & 8 deletions res/xml/options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@
android:title="@string/feedback_options"
android:key="feedback_category">

<CheckBoxPreference
android:key="bugsense_enable"
android:title="@string/pref_enable_bugsense"
android:summaryOn="@string/pref_bugsense_enabled"
android:summaryOff="@string/pref_bugsense_disabled"
android:defaultValue="true"
android:persistent="true"/>

<PreferenceScreen
android:title="@string/source_code_title"
android:key="source_code"
Expand Down
12 changes: 4 additions & 8 deletions src/com/tinfoil/sms/TinfoilSMS.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@

import java.security.Security;

import android.app.Application;
import android.preference.PreferenceManager;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.settings.QuickPrefsActivity;

import org.spongycastle.jce.provider.BouncyCastleProvider;

import android.app.Application;


/**
* The main application class which is simply used to initialize Bugsense, which is
Expand All @@ -46,10 +42,10 @@ public void onCreate()
{
super.onCreate();

if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(
/*if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(
QuickPrefsActivity.BUGSENSE_ENABLE_SETTING_KEY, true))
{
BugSenseHandler.initAndStartSession(this, "169095e2");
}
}*/
}
}
7 changes: 0 additions & 7 deletions src/com/tinfoil/sms/crypto/Encryption.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@
import android.util.Base64;
import android.util.Log;

import com.bugsense.trace.BugSenseHandler;
import com.orwell.crypto.APrioriInfo;
import com.orwell.crypto.ECEngine;
import com.orwell.crypto.ECGKeyUtil;
import com.orwell.crypto.ECKeyParam;
import com.orwell.csprng.ISAACRandomGenerator;
import com.orwell.csprng.SDFGenerator;
import com.orwell.csprng.SDFParameters;

import com.tinfoil.sms.dataStructures.Number;
import com.tinfoil.sms.utility.SMSUtility;

Expand Down Expand Up @@ -158,11 +156,6 @@ else if (! decryptMap.containsKey(number.getId()))

/* Remove the nonce counter from the message received */
System.arraycopy(decodedMessage, COUNT_SIZE, encMessage, 0, encMessage.length);

/* Log the message data, before it's decrypted, in the event of a crash */
BugSenseHandler.addCrashExtraData("Original", message);
BugSenseHandler.addCrashExtraData("Decoded", new String(decodedMessage));
BugSenseHandler.addCrashExtraData("Encrypted", new String(encMessage));

/* decrypt the message, increment and save the nonce counter */
decMessage = decryptMap.get(number.getId()).processBlock(encMessage);
Expand Down
2 changes: 0 additions & 2 deletions src/com/tinfoil/sms/loader/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import android.content.Context;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.database.DBAccessor;

public abstract class Loader implements Runnable {
Expand Down Expand Up @@ -57,7 +56,6 @@ public void run() {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Loader Concurrency Issue", e);
}
}
}
Expand Down
11 changes: 4 additions & 7 deletions src/com/tinfoil/sms/messageQueue/MessageSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@

package com.tinfoil.sms.messageQueue;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.dataStructures.Entry;
import com.tinfoil.sms.database.DBAccessor;
import com.tinfoil.sms.utility.SMSUtility;

import android.content.Context;
import android.os.Looper;
import android.util.Log;

import com.tinfoil.sms.dataStructures.Entry;
import com.tinfoil.sms.database.DBAccessor;
import com.tinfoil.sms.utility.SMSUtility;

public class MessageSender implements Runnable{

private boolean loopRunner = true;
Expand Down Expand Up @@ -88,7 +87,6 @@ else if (mes == null && !loopRunner)
this.wait();
} catch (InterruptedException e) {
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "MessageSender Concurrency Issue", e);
}
}
}
Expand Down Expand Up @@ -131,7 +129,6 @@ else if (mes == null && !loopRunner)
this.wait();
} catch (InterruptedException e) {
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "MessageSender Concurrency Issue", e);
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/com/tinfoil/sms/settings/EditNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import android.widget.TextView;
import android.widget.Toast;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.R;
import com.tinfoil.sms.crypto.KeyExchange;
import com.tinfoil.sms.dataStructures.Number;
Expand Down Expand Up @@ -394,10 +393,8 @@ public void onClick(final DialogInterface dialog, final int which) {
f.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Import Public Key Not Found Error", e);
} catch (IOException e) {
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Import Public Key Error", e);
}

String keyExchangeMessage = sb.toString();
Expand Down
1 change: 0 additions & 1 deletion src/com/tinfoil/sms/settings/QuickPrefsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public class QuickPrefsActivity extends PreferenceActivity {
public static final String VIBRATE_SETTING_KEY = "vibrate";
public static final String VIBRATE_LENGTH_SETTING_KEY = "vibrate_length_settings";
public static final String RINGTONE_SETTING_KEY = "ringtone_settings";
public static final String BUGSENSE_ENABLE_SETTING_KEY = "bugsense_enable";
public static final String SOURCE_CODE_SETTING_KEY = "source_code";
public static final String REVERSE_MESSAGE_ORDERING_KEY = "list_order";
//public static final String messageLimitKey =
Expand Down
3 changes: 0 additions & 3 deletions src/com/tinfoil/sms/settings/UserKeySettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import android.widget.TextView;
import android.widget.Toast;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.R;
import com.tinfoil.sms.crypto.KeyExchange;
import com.tinfoil.sms.crypto.KeyGenerator;
Expand Down Expand Up @@ -253,12 +252,10 @@ public static void writeToFile(String name, String text)
catch (FileNotFoundException e)
{
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Export Public Key Not Found Error", e);
}
catch (IOException e)
{
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Export Public Key Error", e);
}
}
}
3 changes: 0 additions & 3 deletions src/com/tinfoil/sms/utility/MessageReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import android.util.Log;
import android.widget.Toast;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.R;
import com.tinfoil.sms.crypto.Encryption;
import com.tinfoil.sms.crypto.KeyExchange;
Expand Down Expand Up @@ -203,12 +202,10 @@ public void onReceive(Context context, Intent intent) {
Toast.makeText(context, R.string.key_exchange_failed_to_decrypt, Toast.LENGTH_LONG).show();
Toast.makeText(context, R.string.possible_man_in_the_middle_attack_warning, Toast.LENGTH_LONG).show();
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Decrypt Message Error or Man In The Middle Attack", e);
}
catch (Exception e)
{
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Message Receiver Error", e);
}
}
else
Expand Down
3 changes: 0 additions & 3 deletions src/com/tinfoil/sms/utility/SMSUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import android.util.Log;
import android.widget.Toast;

import com.bugsense.trace.BugSenseHandler;
import com.tinfoil.sms.R;
import com.tinfoil.sms.crypto.Encryption;
import com.tinfoil.sms.dataStructures.Entry;
Expand Down Expand Up @@ -255,14 +254,12 @@ public static boolean sendMessage(DBAccessor dba, final Context context, Entry m
{
Toast.makeText(context, R.string.failed_to_encrypt, Toast.LENGTH_LONG).show();
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Encrypt Message Error", e);
return false;
}
catch (final Exception e)
{
Toast.makeText(context, R.string.failed_to_sent, Toast.LENGTH_LONG).show();
e.printStackTrace();
BugSenseHandler.sendExceptionMessage("Type", "Send Message Error", e);
return false;
}
}
Expand Down

0 comments on commit f324e97

Please sign in to comment.