Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unchaining WIP-Release v0.1.31-alpha-build-00 #530

Merged
merged 69 commits into from
Jul 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
0ab70be
Change help toast to long toast
DJaeger Jun 22, 2015
184b61b
Added static context
DJaeger Jun 22, 2015
55dc592
added semicolons
DJaeger Jun 22, 2015
86282e7
Merge pull request #497 from DJaeger/development
E3V3A Jun 23, 2015
bd031a0
Update AndroidManifest.xml
E3V3A Jun 23, 2015
414caf1
Change context property to appContext
DJaeger Jun 23, 2015
e46cf45
Update AndroidManifest.xml
DJaeger Jun 23, 2015
f1a61a2
Removed "this" prefix
DJaeger Jun 23, 2015
8674a8b
Merge pull request #500 from DJaeger/development
SecUpwN Jun 23, 2015
898936e
Add singleton toaster
DJaeger Jun 24, 2015
a777e92
Merge pull request #501 from DJaeger/development
SecUpwN Jun 24, 2015
ae40a69
Increased build number
DJaeger Jun 24, 2015
dbca9d4
Merge pull request #502 from DJaeger/development
SecUpwN Jun 24, 2015
66eff48
added toast cancel on new toast
DJaeger Jun 24, 2015
392ae23
increased build number
DJaeger Jun 24, 2015
665885f
Avoid Travis CI failure on Coverity Scan limit
SecUpwN Jun 24, 2015
a513ade
made toast property static
DJaeger Jun 24, 2015
99d4db3
made toast property not final...
DJaeger Jun 24, 2015
e794797
split toast creation for msgShort
DJaeger Jun 24, 2015
cd89fc5
Merge pull request #503 from DJaeger/development
E3V3A Jun 25, 2015
1847632
comment out leakcanary
DJaeger Jun 25, 2015
af46a62
Increased build number
DJaeger Jun 25, 2015
54de958
Merge pull request #506 from DJaeger/development
E3V3A Jun 25, 2015
70726d2
Updated log calls to common TAGs
DJaeger Jun 25, 2015
88d1b5c
Added doublepoints to log calls and removed whitespaces
DJaeger Jun 25, 2015
47357a9
Increased build number
DJaeger Jun 25, 2015
552ba2f
Merge pull request #507 from DJaeger/development
SecUpwN Jun 25, 2015
037bd49
Added warning as requested in https://github.com/SecUpwN/Android-IMSI…
SecUpwN Jun 26, 2015
d5d8243
Changed mTAG as requested in https://github.com/SecUpwN/Android-IMSI-…
SecUpwN Jun 26, 2015
3a29f60
Testing WIP-Internal v0.1.30-alpha-build-07
SecUpwN Jun 26, 2015
f225323
Added Buildozer Buildnumber to About View
DJaeger Jun 26, 2015
ca2986a
Removed Crazy whitespaces
DJaeger Jun 26, 2015
70f91a7
repaired how to get Buildozer buildnumber in about fragment
DJaeger Jun 27, 2015
1e6b4e1
Add missed BuildozerView declaration
DJaeger Jun 27, 2015
abf70f6
Merge pull request #509 from DJaeger/development
E3V3A Jun 27, 2015
ba09ac9
Change timeout value from 40 to 80 seconds
E3V3A Jun 27, 2015
7e1d555
Truncate location directly in LocationTracker
marvinmarnold Jul 2, 2015
dfb633d
Merge pull request #516 from marvinmarnold/development
SecUpwN Jul 2, 2015
b8ce9fd
Repair OCIDCSV parsing
DJaeger Jul 2, 2015
efbcf44
Remove unneeded variable definition
DJaeger Jul 2, 2015
9967257
renamed variable
DJaeger Jul 2, 2015
7d4cf54
Removed dual declaration
DJaeger Jul 2, 2015
93d2bbc
Merge pull request #518 from DJaeger/development
E3V3A Jul 2, 2015
2a03b73
Increase build number after fixing OCID CSV parsing
DJaeger Jul 2, 2015
7e514f6
Merge pull request #521 from DJaeger/development
E3V3A Jul 2, 2015
9cf4977
Fix #325
DJaeger Jul 3, 2015
5dedfa7
Increase Build
DJaeger Jul 3, 2015
bb07096
Merge pull request #522 from DJaeger/development
SecUpwN Jul 3, 2015
fda3166
Small string fixes
SecUpwN Jul 3, 2015
63df129
Improved translations with @weblate to fix #460
SecUpwN Jul 3, 2015
1412ce3
Huge THANKS to @DJaeger for his awesome work! ;-)
SecUpwN Jul 3, 2015
893673b
Testing WIP-Internal v0.1.30-alpha-build-11
SecUpwN Jul 3, 2015
e1887bd
Added @weblate translation badge
SecUpwN Jul 3, 2015
aefcce9
Should fix #496
DJaeger Jul 3, 2015
e92a067
Merge pull request #1 from SecUpwN/development
DJaeger Jul 3, 2015
c00375a
increase buildnumber
DJaeger Jul 3, 2015
c6977a5
Merge pull request #524 from DJaeger/development
SecUpwN Jul 3, 2015
82bf500
fix comment
E3V3A Jul 3, 2015
3a36332
silence some spammy XPrivacy items
E3V3A Jul 3, 2015
8ab77ab
increase build number
E3V3A Jul 3, 2015
c48a65f
Antispam XPrivacy in DebugLogs and added OCID Log items
E3V3A Jul 4, 2015
3e2f6da
Fixed log TAGs
E3V3A Jul 4, 2015
8a7ffe1
Fixed log TAG and nulls according to cancelled PR 526
E3V3A Jul 4, 2015
75ec459
Replacement of PR 527 w/o updated deps
E3V3A Jul 5, 2015
002055d
Cleanup of SMS Timstamp code
E3V3A Jul 5, 2015
d590e2e
Minor cleanup and reformat
E3V3A Jul 5, 2015
81f1f1c
Shortened badge for better display on website
SecUpwN Jul 5, 2015
6ed9ed2
Update CHANGELOG
SecUpwN Jul 5, 2015
04d47ca
Preparing WIP-Release v0.1.31-alpha-build-00
SecUpwN Jul 5, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ addons:
build_command_prepend: "./gradlew clean"
build_command: "./gradlew build"
branch_pattern: development
build_script_url: https://spideroak.com/share/IFEU2U2JINCA/GitHub/home/SecUpwN/SpiderOak/MISC/external/travisci_build_coverity_scan.sh
110 changes: 110 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,116 @@
# CHANGELOG of 'AIMSICD'
----------------------

#### [05.07.2015 - WIP-Release v0.1.31-alpha-build-00](https://github.com/SecUpwN/Android-IMSI-Catcher-Detector/releases/tag/v0.1.31-alpha-b00)

* Removed: Commented out unused imports and re-ordered variable declarations
* Updated: Shortened badge of `Development Status` in `README` for better display
* Added: More clarifying code co´mments in `CellTracker.java`

#### 05.07.2015 - WIP-Internal v0.1.30-alpha-build-16

* Fixed: Cleanup of timestamp code in `MiscUtils.java`
* Fixed: AIMSICD Status-Icons are now shown correctly in colored style on Android 5+


---

#### 04.07.2015 - WIP-Internal v0.1.30-alpha-build-14

* Added: New Log items for MCC and MNC parameters when downloading OCID for debugging
* Fixed: Reformatted 23 char limitation of Log TAG with our standard TAG, mTAG + "text"
* Fixed: Corrected MiscUtils TAGs and nulls in CellTracker and improved some formatting
* Fixed: Silenced even more XPrivacy logcat spam in DebugLogs

---

#### 03.07.2015 - WIP-Internal v0.1.30-alpha-build-13

* Fixed: Comments in `RequestTask.java` have been fixed to reflect code changes
* Fixed: Silenced some spammy XPrivacy items using: `XPrivacy/XRuntime:S Xposed:S`

---

#### 03.07.2015 - WIP-Internal v0.1.30-alpha-build-12

* Added: Weblate translations badge added to our `README` for people to see progress
* Fixed: AIMSICD should now start again properly on previously complaining devices

---

#### 03.07.2015 - WIP-Internal v0.1.30-alpha-build-11

* Updated: `CREDITS` now reflect the latest awesome additions by our new developers
* Fixed: Small string fixes and translation improvements to move our new [Weblate](https://hosted.weblate.org/projects/aimsicd/strings/).

---

#### 03.07.2015 - WIP-Internal v0.1.30-alpha-build-10

* Fixed: Now truncating measured and used Lat/Lon GPS coordinates in `LocationTracker`

---

#### 27.06.2015 - WIP-Internal v0.1.30-alpha-build-09

* Changed: Timeout value in `RequestTask.java` has been increased to 80 seconds
* Fixed: Repaired OCIDCSV parsing which obviously temporarily broke during development

---

#### 27.06.2015 - WIP-Internal v0.1.30-alpha-build-08

* Added: Buildozer Buildnumber to has been added to About View for development builds

---

#### 26.06.2015 - WIP-Internal v0.1.30-alpha-build-07

* Changed: mTAG has been changed as requested to `SamsungMulticlientRilExecutor`
* Added: Small warning within code to not remove commented out stuff without prior asking

---

#### 25.06.2015 - WIP-Internal v0.1.30-alpha-build-06

* Updated: Log calls updated to common TAGs, added doublepoints and removed whitespaces

---

#### 25.06.2015 - WIP-Internal v0.1.30-alpha-build-05

* Changed: Customized build script in `.travis.yml` to override CoverityScan limits
* Changed: Made toast property static and non-final, splitting toast creation for `msgShort`
* Removed: Commented out `LeakCanary` until this libray has reived some code improvemens
* Fixed: Toasts are now displayed in the ccorrect position and duration to really read them

---

#### 24.06.2015 - WIP-Internal v0.1.30-alpha-build-04

* Added: Toasts are now being cancelled on new toast to prevent overapping of toasts

---

#### 24.06.2015 - WIP-Internal v0.1.30-alpha-build-03

* Fixed: Info box toasts are now shown longer by adding a new singleton toaster

---

#### 23.06.2015 - WIP-Internal v0.1.30-alpha-build-02

* Changed: Context property changed to `appContext` in `DrawerMenuAdapter.java`
* Removed: Purged `this` prefix of `appContext` as it is not needed anymore

---

#### 23.06.2015 - WIP-Internal v0.1.30-alpha-build-01

* Changed: Help toast has been changed to long toast in `DrawerMenuAdapter.java`

---

#### [21.06.2015 - WIP-Release v0.1.30-alpha-build-00](https://github.com/SecUpwN/Android-IMSI-Catcher-Detector/releases/tag/v0.1.30-alpha-b00)

* Updated: Refactored OpenCellId activity for better code quality and error handling
Expand Down
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ Feel invited to develop with us using these steps:

Let our app start up in your native language!

* Copy file [translatable_strings.xml](https://github.com/SecUpwN/Android-IMSI-Catcher-Detector/raw/development/app/src/main/res/values/translatable_strings.xml) into your values-[code](https://en.wikipedia.org/wiki/ISO_639-1) folder.
* Example: `app/src/main/res/values-de/translatable_strings.xml`
* Translate the xml-file with an Editor, Android Studio or IntelliJ IDEA.
6. Increase the build number `*-alpha-bXX` in `android:versionName`.
7. Test your changes and submit a [pull request](https://help.github.com/articles/using-pull-requests/) when we shall add it.
* See [our translations](https://hosted.weblate.org/projects/aimsicd/strings/) and login via [GitHub](https://hosted.weblate.org/accounts/login/github/?next=/projects/aimsicd/strings/) or [others](https://hosted.weblate.org/accounts/login/?next=/projects/aimsicd/strings/) to add yours.
* When translating, keep small device screens in mind. Shorten it.
* Translations will be pulled into our GitHub automatically. Enjoy!

---

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Android IMSI-Catcher Detector

[![BuildStatus](https://travis-ci.org/SecUpwN/Android-IMSI-Catcher-Detector.svg)](https://travis-ci.org/SecUpwN/Android-IMSI-Catcher-Detector) [![DevelopmentStatus](http://img.shields.io/badge/Development_Status-ALPHA-brightgreen.svg)](https://github.com/SecUpwN/Android-IMSI-Catcher-Detector/wiki/Development-Status) [![CoverityScan](https://scan.coverity.com/projects/3346/badge.svg)](https://scan.coverity.com/projects/3346)
[![BuildStatus](https://travis-ci.org/SecUpwN/Android-IMSI-Catcher-Detector.svg)](https://travis-ci.org/SecUpwN/Android-IMSI-Catcher-Detector) [![DevelopmentStatus](http://img.shields.io/badge/Development-ALPHA-brightgreen.svg)](https://github.com/SecUpwN/Android-IMSI-Catcher-Detector/wiki/Development-Status) [![CoverityScan](https://scan.coverity.com/projects/3346/badge.svg)](https://scan.coverity.com/projects/3346) [![Translations](https://hosted.weblate.org/widgets/aimsicd/-/shields-badge.svg)](https://hosted.weblate.org/projects/aimsicd/strings/)
[![Bountysource](https://www.bountysource.com/badge/team?team_id=40338&style=bounties_received)](https://www.bountysource.com/teams/android-imsi-catcher-detector/issues?utm_source=Android%20IMSI-Catcher%20Detector&utm_medium=shield&utm_campaign=bounties_received)

--
Expand Down
13 changes: 10 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,15 @@ android {
} catch (MissingPropertyException e) {
buildConfigField 'String', 'OPEN_CELLID_API_KEY', '"NA"'
}
try {
buildConfigField 'String', 'BUILDOZER_BUILDNUMBER', '\"' + System.getenv("BUILDOZER_BUILDNUMBER") + '\"'
} catch (MissingPropertyException e) {
buildConfigField 'String', 'BUILDOZER_BUILDNUMBER', '"NA"'
}
}
release {
buildConfigField 'String', 'OPEN_CELLID_API_KEY', '"NA"'
buildConfigField 'String', 'BUILDOZER_BUILDNUMBER', '"NA"'
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
Expand Down Expand Up @@ -125,6 +131,7 @@ android {
}

dependencies {
// DO NOT REMOVE BELOW COMMENTED-OUT CODE BEFORE ASKING!
//compile 'com.github.amlcurran.showcaseview:library:5.0.0'
//compile 'com.android.support:appcompat-v7:22.1.1'
//https://github.com/lp0/slf4j-android
Expand All @@ -140,6 +147,6 @@ dependencies {
compile 'com.nineoldandroids:library:2.4.0'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'com.google.code.gson:gson:2.2.4'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}
//debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
//releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.SecUpwN.AIMSICD"
android:versionCode="30"
android:versionName="0.1.30-alpha-b00">
android:versionCode="31"
android:versionName="0.1.31-alpha-b00">

<!-- If we ever wanna make this a system app, we can add the following 2 lines above:
coreApp="true"
Expand Down Expand Up @@ -204,4 +204,4 @@
</activity>
</application>

</manifest>
</manifest>
8 changes: 7 additions & 1 deletion app/src/main/assets/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,10 @@ for OCID improvements and code fixes.\n
\n
Willem van Engen\n
https://github.com/wvengen\n
for improving database imports.
for improving database imports.\n
\n
Daniel Jäger\n
https://github.com/DJaeger\n
for your unbelievable endurance\n
and all the lovely coding. THANK YOU!\n
\n
22 changes: 12 additions & 10 deletions app/src/main/java/com/SecUpwN/AIMSICD/AppAIMSICD.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
import com.SecUpwN.AIMSICD.constants.TinyDbKeys;
import com.SecUpwN.AIMSICD.utils.BaseAsyncTask;
import com.SecUpwN.AIMSICD.utils.TinyDB;
import com.squareup.leakcanary.LeakCanary;
// DO NOT REMOVE BELOW COMMENTED-OUT CODE BEFORE ASKING!
//import com.squareup.leakcanary.LeakCanary;

import java.util.ArrayList;
import java.util.List;

public class AppAIMSICD extends Application {
final static String TAG = "AppAIMSICD";
final static String TAG = "AIMSICD";
final static String mTAG = "AppAIMSICD";

/**
* Maps between an activity class name and the list of currently running
Expand All @@ -35,7 +37,8 @@ public AppAIMSICD() {
@Override
public void onCreate() {
super.onCreate();
LeakCanary.install(this);
// DO NOT REMOVE BELOW COMMENTED-OUT CODE BEFORE ASKING!
//LeakCanary.install(this);
TinyDB.getInstance().init(getApplicationContext());
TinyDB.getInstance().putBoolean(TinyDbKeys.FINISHED_LOAD_IN_MAP, true);
}
Expand All @@ -49,7 +52,7 @@ public void removeTask(BaseAsyncTask<?, ?, ?> pTask) {
if (lTask.equals(pTask)) {
tasks.remove(lTask);
if (BuildConfig.DEBUG) {
Log.v(TAG, "BaseTask removed:" + pTask.toString());
Log.v(TAG, mTAG + ": BaseTask removed:" + pTask.toString());
}
break;
}
Expand All @@ -66,7 +69,7 @@ public void addTask(Activity activity, BaseAsyncTask<?, ?, ?> pTask) {
return;
}
if (BuildConfig.DEBUG) {
Log.d(TAG, "BaseTask addTask activity:" + activity.getClass().getCanonicalName());
Log.d(TAG, mTAG + ": BaseTask addTask activity:" + activity.getClass().getCanonicalName());
}
int key = activity.getClass().getCanonicalName().hashCode();
List<BaseAsyncTask<?, ?, ?>> tasks = mActivityTaskMap.get(key);
Expand All @@ -75,7 +78,7 @@ public void addTask(Activity activity, BaseAsyncTask<?, ?, ?> pTask) {
mActivityTaskMap.put(key, tasks);
}
if (BuildConfig.DEBUG) {
Log.v(TAG, "BaseTask added:" + pTask.toString());
Log.v(TAG, mTAG + ": BaseTask added:" + pTask.toString());
}
tasks.add(pTask);
}
Expand All @@ -85,7 +88,7 @@ public void detach(Activity activity) {
return;
}
if (BuildConfig.DEBUG) {
Log.d(TAG, "BaseTask detach:" + activity.getClass().getCanonicalName());
Log.d(TAG, mTAG + ": BaseTask detach:" + activity.getClass().getCanonicalName());
}

List<BaseAsyncTask<?, ?, ?>> tasks = mActivityTaskMap.get(activity.getClass().getCanonicalName().hashCode());
Expand All @@ -101,7 +104,7 @@ public void attach(Activity activity) {
return;
}
if (BuildConfig.DEBUG) {
Log.d(TAG, "BaseTask attach:" + activity.getClass().getCanonicalName());
Log.d(TAG, mTAG + ": BaseTask attach:" + activity.getClass().getCanonicalName());
}
List<BaseAsyncTask<?, ?, ?>> tasks = mActivityTaskMap.get(activity.getClass().getCanonicalName().hashCode());
if (tasks != null) {
Expand All @@ -110,5 +113,4 @@ public void attach(Activity activity) {
}
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@
* @author Tor Henning Ueland
*/
public class BaseActivity extends FragmentActivity {
private static String TAG = "BaseActivity";
private static final String TAG = "AIMSICD";
private static final String mTAG = "BaseActivity";


/**
* Triggered when GUI is opened
*/
@Override
protected void onResume() {
super.onResume();
Log.d(TAG, "StatusWatcher starting watching");
Log.d(TAG, mTAG + ": StatusWatcher starting watching");
LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver,
new IntentFilter("StatusChange"));
updateIcon(this);
Expand All @@ -45,7 +47,7 @@ protected void onResume() {
private BroadcastReceiver mMessageReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.d(TAG, "StatusWatcher received status change to " + Status.getStatus().name()+", updating icon");
Log.d(TAG, mTAG + ": StatusWatcher received status change to " + Status.getStatus().name()+", updating icon");
updateIcon(context);
}
};
Expand All @@ -69,7 +71,7 @@ public void run() {
@Override
protected void onPause() {
super.onPause();
Log.d(TAG, "StatusWatcher stopped watching");
Log.d(TAG, mTAG + ": StatusWatcher stopped watching");
LocalBroadcastManager.getInstance(this).unregisterReceiver(mMessageReceiver);
}
}
Loading