Skip to content

Commit

Permalink
Connection Tracking, Firewall scree refractor and other bug fixes
Browse files Browse the repository at this point in the history
Connection Tracking:
* Introduced new screen to track all the app connections.
* isBlock method invocation from tunnel2socks will have the details of the connections. Those connections are added to the connection tracking screen.
* Conn Tracking Screen will have the details of the app, timestamp, IP, port, type of connection, and flag.
* Pending - -DNS UDP connection to an IP address.

#3

Firewall Screen:
* Removed the category and app list from firewall screen
* Introduced expandable list view which will show the app category and list of apps in the category.
* Livedata mapping with the database. (AppInfoDAO and CategoryInfoDAO).
* Prompt dialog box when an app with same UID is blocked/unblocked. Dialog box will contain list of apps blocked/unblocked along with the selected app.
* Included System apps also in firewall screen

#4
#14

About Page
* Introduced new screen in HomeScreenActivity as a fragment.
* Screen consists of Links, Contact and telegram group link.

Bug Fixes:
* Query Tracker - Median latency value was earlier added in a sorted list which is now modified to arraylist and the median is calculated in the arraylist.
* Webview - Destroying the webview activity when the user .
* Live data - Home screen tile values are updated by LiveData instead of Handlers.
	#8
* Firewall Implementation for 8+ - UID check is made against the blocked list and return boolean value whether to block/allow.
	#31
	#30
* DNS change delay - Delay of 1 sec has been introduced when the DNS URL's are changed. This is to avoid rapid change of URL's
	#35
* Brave Mode delay - Changing the modes in home screen now has a delay of 1 sec.
* Screen lock -
	#29
* UI - Various UI corrections and modification in strings.xml file.


Former-commit-id: 9734485
  • Loading branch information
hussainmohd-a committed Aug 25, 2020
1 parent 052bee1 commit 1927121
Show file tree
Hide file tree
Showing 78 changed files with 4,628 additions and 2,246 deletions.
7 changes: 2 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ android {
vectorDrawables.useSupportLibrary = true
minSdkVersion 26
targetSdkVersion 29
versionCode 3
versionName "0.3"
versionCode 6
versionName "0.4.2"
/* splits {
abi {
enable true
Expand Down Expand Up @@ -100,9 +100,6 @@ dependencies {
// https://mvnrepository.com/artifact/org.jsoup/jsoup
implementation group: 'org.jsoup', name: 'jsoup', version: '1.8.3'


// For go-tun2socks
implementation project(":tun2socks")

testImplementation "androidx.room:room-testing:$room_version"
}
14 changes: 12 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:usesCleartextTraffic="true"
android:roundIcon="@drawable/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme">
Expand All @@ -21,6 +22,7 @@
android:theme="@style/AppTheme" />
<activity
android:name=".ui.PermissionManagerActivity"
android:launchMode="singleInstance"
android:theme="@style/AppTheme" />
<activity
android:name=".ui.HomeScreenActivity"
Expand All @@ -32,19 +34,27 @@
<activity
android:name=".ui.QueryDetailActivity"
android:theme="@style/AppTheme"/>

<activity android:name=".ui.WelcomeActivity"
android:launchMode="singleTask"
android:theme="@style/AppTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.AppInfoActivity"
android:launchMode="singleInstance"
android:theme="@style/AppTheme"/>
<activity android:name=".ui.FaqWebViewActivity"
android:launchMode="singleInstance"
android:theme="@style/AppTheme"/>
<activity android:name=".sample.SampleExpandable"
android:theme="@style/AppTheme"/>
android:launchMode="singleInstance"
android:theme="@style/AppTheme"/>
<activity
android:name=".ui.ConnectionTrackerActivity"
android:theme="@style/AppTheme" />


<!--<receiver
Expand Down Expand Up @@ -133,7 +143,7 @@
android:exported="false"
android:stopWithTask="false">
<intent-filter>
<action android:name="com.celzero.bravedns.Receiver.ScreenLockService.ACTION_START_SERVICE"/>
<action android:name="com.celzero.bravedns.receiver.DeviceLockService.ACTION_START_SERVICE"/>
</intent-filter>
</service>

Expand Down
Loading

0 comments on commit 1927121

Please sign in to comment.