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

Refactor all things mk 2 #354

Merged
merged 21 commits into from
Sep 19, 2021
Merged

Refactor all things mk 2 #354

merged 21 commits into from
Sep 19, 2021

Conversation

hussainmohd-a
Copy link
Collaborator

New: Quick settings chips.
Added new icons to the settings page.
Bug fixes.
Code refractor.
Changes in log statements.
Removed unwanted code comments.
Changes in code comments.

(cherry picked from commit 517e70d)

New: Quick settings chips.
Added new icons to the settings page.
Bug fixes.
Code refractor.
Changes in log statements.
Removed unwanted code comments.
Changes in code comments.

(cherry picked from commit 517e70d)
Delete binary files

(cherry picked from commit e40cc8b)
Firewall manager's local cache is modified from
HashMultiMap to
Multimaps.synchronizedMultimap(HashMultimap).

Introducing read and write locks on app info local
cache.

(cherry picked from commit ba2e34e)
Code formatting on files.

(cherry picked from commit f71f309)
Fix for turning off custom proxy was not happening in
from Settings screen.

Version name changed from v0.5.3f to v053f

Addressed issue #352. Modified the minifyEnabled
value to false in build.gradle file.

Updating the label in home screen when the brave
mode is modified.

(cherry picked from commit 5ebd325)
Quick settings chips now has borders.

(cherry picked from commit 117daca)
Send email feature

(cherry picked from commit df52550)
Bug fix: Exclude app dialog select all option fix.

(cherry picked from commit 2d1b766)
@hussainmohd-a hussainmohd-a changed the title Post changes of v053f merge v053f: Missing changes Aug 10, 2021
Play-services - dependency of play services API's is
removed from the app, instead check if the
play service package name is available in the package
manager's application info.

Bug fix for rethinkdns plus DoH update - Change in
stamp not updated in Go tunnel.

UI bug fix in Settings screen - Now the proxy UI's status
will update based on both brave mode and
VpnLockdown status.

Changes in strings.xml for DNS mode and what's new
text.
app/src/main/AndroidManifest.xml Show resolved Hide resolved
app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/OrbotHelper.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Utilities.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Utilities.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Utilities.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Utilities.kt Outdated Show resolved Hide resolved
With InetAddresses the conversion of byte array to IP
address is done with LittleEndian.

Now using InetAddress.getByAddress() from
java.net.InetAddress

#357
Code refractor.
Removed / Changed unwanted code comments.
Changes in variable or method names.
Code simplification.
Removed unwanted code and modified code comments.
Copy link
Collaborator Author

@hussainmohd-a hussainmohd-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified the above mentioned code comments.

Copy link
Collaborator

@ignoramous ignoramous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets address the bug report zip with this commit.

app/src/main/java/com/celzero/bravedns/data/AppMode.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/data/AppMode.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/data/AppMode.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/data/AppMode.kt Outdated Show resolved Hide resolved
GoVpnAdapter modified from java to kotlin file.

Firewall manager lock usage changed from
ReenterantLock to ReadWriteLock.

Modified modes to enum class. AppStatus,
FirewallMode, DnsMode, Themes.

Workmanager to collect app exit information.

Work manager to refresh app database.

Introduced new cache for dns resolved IPs.

Changes in Pause timer.

Network log bottom sheet UI changes.

Added icons in drawable folder.

Introduced new activity (Unused): DomainDetailActivity,
DNSListActivity.
Changes to handle vpn in lockdown mode. When vpn is
lockdown, modify brave mode to dns + firewall
 regardless of user set mode.

disable option of changing brave mode when vpn
in lockdown mode.
New filter chips introduced in network log search view.

Change in logic on restartVpn when the app is excluded
from VPN.

Usage of locks in FirewallManager is modified.

Removed some unused methods from repository
classes.

New feature: Block newly installed apps.

Bug report extraction logic modified.

Modified logic of Pause timer long press (+ and -)
Added padding to the last element of the chip group
so that the horizontal scrollview will load without
trimming the last element's view.
Copy link
Collaborator

@ignoramous ignoramous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly minor comments.

Changes in BraveVpnService coroutines usage.

FirewallManager logic changes for AppStatus

NotificationHandlerDialog - New dialog activity
to take care of notification's activity launch.

Other minor bug fixes and modifications.
Code refractor, addressed comments from #354
Copy link
Collaborator

@ignoramous ignoramous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spotted some bugs, but majority of these are minor comments

app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Constants.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Constants.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Constants.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/Constants.kt Outdated Show resolved Hide resolved
app/src/main/java/com/celzero/bravedns/util/OrbotHelper.kt Outdated Show resolved Hide resolved
addressed comments of #354
addressed comments of #354
@ignoramous ignoramous changed the title v053f: Missing changes Refactor all thing mk 2 Sep 18, 2021
@ignoramous ignoramous changed the title Refactor all thing mk 2 Refactor all things mk 2 Sep 18, 2021
@ignoramous ignoramous merged this pull request into master Sep 19, 2021
ignoramous added a commit that referenced this pull request Sep 19, 2021
Quick Settings chips on the homescreen. Icons for all
Settings on all pages. Coroutines instead of threads and
associated improvements and mutexes (fixes) now that
most files have moved to Kotlin.

Fix LiveData observers (got rid of repeated calls
to it from onResume of various ui-elements).

Users can optionally view and email app-exit-info-reasons
zip file. A WorkManager manager job collects these and
zips them periodically. These are also collected on-demand,
when the user clicks on 'bug report' button in the app.

Introduce a ip-to-domain lookup based on recent queries
the resolver has seen. It isn't fool-proof as using PTR
queries but has proven useful regardless.

Introduce pause-mode for the app. All apps except the ones
blocked are exempt from the vpn for a certain time-period.

New firewall rule: Block newly installed apps. Track new-apps
lazily, as and when they send connections or whenever the
WorkManager runs to detect all such newly installed apps.

Tonne of other cosmetic code changes.

Co-authored-by: Murtaza Aliakbar <murtaza@live.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants