Skip to content
Merged

v055v #2505

Changes from 1 commit
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
49550ab
rpn: uncomment changes for rethink plus
hussainmohd-a Nov 17, 2025
ee93539
test: add instrumentation test for RpnWinServerRepository
hussainmohd-a Nov 17, 2025
1ac0294
rename repo to repository in class name for consistency
hussainmohd-a Nov 17, 2025
9233355
ui: rpn related activity, frag, adapter changes; pass 1
hussainmohd-a Nov 17, 2025
a0fc346
ui: update arrow icon vector drawables
hussainmohd-a Nov 17, 2025
c2ee218
ui: uncomment and add new activities in manifest
hussainmohd-a Nov 17, 2025
a282789
refactor InAppBillingHandler for improved concurrency and state handling
hussainmohd-a Nov 17, 2025
afebbf5
rpn: enable getRpnProps fn in VpnController
hussainmohd-a Nov 17, 2025
3de4e73
rpn: add country-level configuration management
hussainmohd-a Nov 17, 2025
082a57e
rpn: add rpn-win server entity, DAO, and repository
hussainmohd-a Nov 17, 2025
e8a1763
rpn: rmv LocationSelectorActivity and related UI components
hussainmohd-a Nov 17, 2025
17d1826
rpn-ui: ServerSelection to fragment and update navigation
hussainmohd-a Nov 17, 2025
738be81
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Nov 18, 2025
9b9caed
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Nov 18, 2025
ab6bd29
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Nov 18, 2025
e1eac19
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Nov 19, 2025
eb7a87d
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Nov 20, 2025
a3f14cc
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Nov 26, 2025
07318a4
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Dec 24, 2025
91ee215
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Dec 24, 2025
d2614d4
ui: improve wg apps list screen
hussainmohd-a Dec 26, 2025
ac94468
db: migration for rethink plus
hussainmohd-a Dec 27, 2025
783bdbc
tun: rethink plus related changes to tun
hussainmohd-a Dec 27, 2025
ec26e8f
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Dec 27, 2025
9295ebf
Merge branch 'v055n' of https://github.com/hussainmohd-a/rethink-app …
hussainmohd-a Jan 12, 2026
f0221a0
add release folder to .gitignore
hussainmohd-a Jan 12, 2026
50bee4c
bump build versions, add javatoolchain, add billing
hussainmohd-a Jan 12, 2026
192fc5d
rmv unused/replaced files
hussainmohd-a Jan 12, 2026
194110e
rmv unused/replaced files
hussainmohd-a Jan 12, 2026
9ad5870
add generic hop adapter and dialogs for proxy hopping
hussainmohd-a Jan 12, 2026
e6ebc40
refactor proxy app mapping logic and improve DAO queries
hussainmohd-a Jan 12, 2026
663f15a
ui: improve/handle konfetti anim for auto-dismiss
hussainmohd-a Jan 12, 2026
bc97b52
ui: add missing import
hussainmohd-a Jan 12, 2026
85a305d
lint-fix: drop unused columns
hussainmohd-a Jan 12, 2026
59fa3df
ktfmt: optimize import in RefreshDatabase
hussainmohd-a Jan 12, 2026
8711652
tun: changes for rpn proxy in tun
hussainmohd-a Jan 12, 2026
58430e1
lint: rmv magic number from MemoryUtils.kt
hussainmohd-a Jan 12, 2026
5edfa2a
ui: rmv unused methods from HomeScreenActivity
hussainmohd-a Jan 12, 2026
15931c7
refactor: part of proxy app mapping logic improvement
hussainmohd-a Jan 12, 2026
e80e9d2
rpn proxy ui with country selection and payment handling
hussainmohd-a Jan 12, 2026
8b11c35
rpn and server selection ui strings - pending cleanup
hussainmohd-a Jan 12, 2026
f9f063f
Merge branch 'celzero:main' into v055n
hussainmohd-a Jan 13, 2026
1e3aa6d
fix: #2508, handle NoSuchElementEx in FirewallManager::informObservers
hussainmohd-a Jan 13, 2026
01a8f23
ui: make the ui invisible instead of gone
hussainmohd-a Jan 20, 2026
c43af58
fix: show dialog if log level is error or below
hussainmohd-a Feb 8, 2026
b5a5d10
Merge branch 'celzero:main' into v055n
hussainmohd-a Feb 11, 2026
e521ca7
Merge branch 'celzero:main' into v055n
hussainmohd-a Feb 19, 2026
c128ddb
Merge branch 'celzero:main' into v055n
hussainmohd-a Mar 11, 2026
5d65e57
fix:#2508 rmv usage of runBlocking from FirewallMgr
hussainmohd-a Feb 19, 2026
bbf8f31
disable split apk for alpha builds
hussainmohd-a Feb 25, 2026
67722a3
improvements in glide init module
hussainmohd-a Mar 5, 2026
ad049db
ui: rmv treat dns rules as firewall rule
hussainmohd-a Mar 14, 2026
b021091
manifest: add newly added activities
hussainmohd-a Mar 14, 2026
955d8ce
init: err rpting, go logs in Application
hussainmohd-a Apr 2, 2026
0f91d43
add billing module to koin component
hussainmohd-a Apr 2, 2026
143f879
ui: console adapter; rmv ex check
hussainmohd-a Apr 2, 2026
31ff05b
ui: adapter; rmv usage of tos()
hussainmohd-a Apr 2, 2026
d99a01b
fix invalid argument in file download
hussainmohd-a Apr 2, 2026
94aa6f3
fix: add logs in chunk to zip file
hussainmohd-a Apr 2, 2026
38e7922
fix: rmv unused fn, fix delete logic
hussainmohd-a Apr 2, 2026
8219816
unused: fix the filname change, rmv tos()
hussainmohd-a Apr 2, 2026
0deaba7
impl: handle purchase conflict notification
hussainmohd-a Apr 2, 2026
04903c7
ui: impl repeated guide tour, skip payment on tests
hussainmohd-a Apr 2, 2026
2345019
ui: bubble-activity, fix submit data handling
hussainmohd-a Apr 2, 2026
8d64d35
add new event type 'proxy'
hussainmohd-a Apr 2, 2026
6b09235
ui: handle onBackPressed in fragment host activity
hussainmohd-a Apr 2, 2026
a14f550
log: handle nullable log name, enum for go log char
hussainmohd-a Apr 2, 2026
84f6ee7
ui: lifecycle aware submit data; visual cue during share btn click
hussainmohd-a Apr 2, 2026
d3d69bb
ui: handle nullable logger level in btmsht
hussainmohd-a Apr 2, 2026
39dc5a2
ui: handle nullable log level in dns blocklist btmsht
hussainmohd-a Apr 2, 2026
1ac23a9
ui: make the purchase processing btm sht as cancellable
hussainmohd-a Apr 2, 2026
a814a8c
ui: fix arg change in orbot btm sht
hussainmohd-a Apr 2, 2026
7b19803
ui: impl log filter for rpn logs
hussainmohd-a Apr 2, 2026
e951599
utils: rmv tos(), tob()
hussainmohd-a Apr 2, 2026
3e781c6
util: snackbar to access among all ui
hussainmohd-a Apr 2, 2026
ae8677e
minor: change appropriate coroutine name
hussainmohd-a Apr 2, 2026
c128c89
rmv GoStr impl from ip, domain, blocklist mgrs
hussainmohd-a Apr 2, 2026
53969d6
rpn: database related changes
hussainmohd-a Apr 2, 2026
3c8b452
ui: minor improvements in welcome slides
hussainmohd-a Apr 2, 2026
c9cd3ba
ui: rpn logs filter changes
hussainmohd-a Apr 2, 2026
b15ec44
rmv GoStr from wg config screen
hussainmohd-a Apr 2, 2026
8308922
ui: rmv GoStr(), fix args on apps dialog
hussainmohd-a Apr 2, 2026
b0bcfd7
ui: minor improvements on welcome screen
hussainmohd-a Apr 2, 2026
9c83844
ui: initial attempt of guided tour ui
hussainmohd-a Apr 2, 2026
2c38bdd
ui: rmv GoStr()
hussainmohd-a Apr 2, 2026
e4bd1d2
wg: impv err handling
hussainmohd-a Apr 2, 2026
fc15eb4
new makeThread() in Daemons.kt
hussainmohd-a Apr 2, 2026
f38bf3c
skip fdroid on error rpting
hussainmohd-a Apr 2, 2026
b0df50e
file: more imprpvements on handling encrypted file
hussainmohd-a Apr 2, 2026
bcdd0b4
proc: retrieve proc info for thread info
hussainmohd-a Apr 2, 2026
b3aac6c
ui: improvements in wg dialog to add apps
hussainmohd-a Apr 2, 2026
ffde762
ui: better handling of snackbar in util
hussainmohd-a Apr 2, 2026
c7b3e7e
v055w: attrs, dimens, styles, colors
hussainmohd-a Apr 2, 2026
f976548
log: pass1: handling go logs using fd
hussainmohd-a Apr 2, 2026
392a7b0
ui: show rpn proxy in proxy screen
hussainmohd-a Apr 2, 2026
495cdc1
refresh-db: improvements in handling proxy apps
hussainmohd-a Apr 2, 2026
044760b
new dbip.v4
hussainmohd-a Apr 2, 2026
9c9a4c5
log: more enhanced handling on logs and bug rpt
hussainmohd-a Apr 3, 2026
1ef763a
iab: backend client api handling class
hussainmohd-a Apr 9, 2026
0645b71
iab: changes reg backend class rename
hussainmohd-a Apr 9, 2026
148a920
nav: add rpn to home scn btm navigation
hussainmohd-a Apr 9, 2026
04e9d50
log: fix console log indexoutofbound ex
hussainmohd-a Apr 9, 2026
f21494d
ui: screens for rpn pass1
hussainmohd-a Apr 9, 2026
4dd9b50
Merge branch 'celzero:main' into v055n
hussainmohd-a Apr 10, 2026
86955de
wg/rpn: add config specific lockdown settings
hussainmohd-a Apr 10, 2026
b88bae9
ui: multiple screens/viewmodel for rpn pass2
hussainmohd-a Apr 10, 2026
79abc6f
ui: rmv unused obj from bundle (intent)
hussainmohd-a Apr 10, 2026
193eb32
ui: show proper plan name in rpn dashboard ui
hussainmohd-a Apr 10, 2026
2deebc1
ui: enable/disable dns settings based on selected dns proxy
hussainmohd-a Apr 10, 2026
f7d16dc
ui: home screen nav for rpn
hussainmohd-a Apr 10, 2026
31571fa
ui: proc/stats/test mode in about screen
hussainmohd-a Apr 10, 2026
c277a55
fix: imports for the changed package dir
hussainmohd-a Apr 10, 2026
9ecd8a0
rmv/rename: multiple renames and rmv unused files
hussainmohd-a Apr 22, 2026
9730e7a
rmv test payment setting, unused transaction error file
hussainmohd-a Apr 25, 2026
984fc7b
add controld ips
hussainmohd-a Apr 25, 2026
8544bfd
ui: custom ip/domain rules btmsht refresh
hussainmohd-a Apr 25, 2026
c5c66d1
logger: improved go-log handler
hussainmohd-a Apr 25, 2026
37f6986
ui: improved guided tour in home screen - pass 2
hussainmohd-a Apr 25, 2026
41df277
minor: rmv comments
hussainmohd-a Apr 25, 2026
c3c8a4d
ui: show snack bar on stability program toggle
hussainmohd-a Apr 25, 2026
7c31c99
ui: rmv notifying dataset changed for recycler in onResume()
hussainmohd-a Apr 25, 2026
193b5dd
minor: fix comments
hussainmohd-a Apr 25, 2026
7359580
ui: enable in-app msging, fix comments
hussainmohd-a Apr 25, 2026
0a710b7
ui: show snack bar on stability program toggle
hussainmohd-a Apr 25, 2026
9b5da15
better handling of property update
hussainmohd-a Apr 25, 2026
d1d730a
ui: handle rpn/sponsor btn based on rpn status
hussainmohd-a Apr 25, 2026
5473252
ui: apps, hop, logs ui refresh in wg-detail screen
hussainmohd-a Apr 25, 2026
dbc7357
ui: open proxy settings if enabled-> home screen btm sht
hussainmohd-a Apr 25, 2026
3ff80ea
minor: fix comment in NetLogTracker
hussainmohd-a Apr 25, 2026
8a1693b
minor: fix comment in wg apps dialog
hussainmohd-a Apr 25, 2026
87f1c63
ui: filter rpn logs in dns log screen
hussainmohd-a Apr 25, 2026
080d156
ui: new setting for wg persistent keep alive
hussainmohd-a Apr 25, 2026
99832a9
ui: fix proxy stats, guided tour in home screen
hussainmohd-a Apr 25, 2026
b935b1c
wg: hop changes wrt to rpn
hussainmohd-a Apr 25, 2026
abbf9e4
wg: hop changes wrt to rpn, pass2
hussainmohd-a Apr 25, 2026
ead2afa
minor: fix comments in Glide module
hussainmohd-a Apr 25, 2026
5fcf19e
v055v: add missing activities to manifest
hussainmohd-a Apr 25, 2026
3fc74c9
rpn: new activities, fragment, btm sheets. pass1
hussainmohd-a Apr 25, 2026
5153ee3
rpn: pass2: add rpn related viewmodels
hussainmohd-a Apr 25, 2026
ca509c4
rpn: pass3: related database repo, dao files
hussainmohd-a Apr 25, 2026
3091870
rpn: pass4: rpn mgr, hop, pip key changes
hussainmohd-a Apr 25, 2026
85439a7
rpn: pass 5: rpn related scheduler for play, server validation
hussainmohd-a Apr 25, 2026
0ae73a4
rpn: pass 6: in-app billing impl
hussainmohd-a Apr 25, 2026
f9b1bef
dep: no-op in app message provider
hussainmohd-a Apr 25, 2026
80ff4dd
dep: no-op in app message provider
hussainmohd-a Apr 25, 2026
d5612f8
rpn: pass 7: add view model dep related to rpn
hussainmohd-a Apr 25, 2026
d62d43b
rpn: pass 8: add secure store dependencies
hussainmohd-a Apr 25, 2026
13322fe
minor: rmv comment from colors.xml
hussainmohd-a Apr 25, 2026
013b5ab
tests: add tests for firewall list, wg hop mgr
hussainmohd-a Apr 25, 2026
de504ef
proxy: apps filtering now based on proxyId
hussainmohd-a Apr 25, 2026
266ad81
rpn: add server order dependency to the db module
hussainmohd-a Apr 25, 2026
7464e52
logger: improvements in go-log
hussainmohd-a Apr 25, 2026
1a3ed31
ui: drawable res releated to new rpn screens
hussainmohd-a Apr 25, 2026
ffcac9f
tun-adapter: multiple changes for rpn and other v055v features
hussainmohd-a Apr 25, 2026
eeee159
proxy: apps filtering now based on proxyId
hussainmohd-a Apr 25, 2026
185bc56
rpn: pass 9: multiple api related to rpn in VpnController.kt
hussainmohd-a Apr 25, 2026
2081801
minor: update comments in encrypted file mgr
hussainmohd-a Apr 25, 2026
8ad2ec6
receiver: listen for device lock, for wg ping
hussainmohd-a Apr 25, 2026
9bb7dc2
const: multiple constants related to rpn, v055v other changes
hussainmohd-a Apr 25, 2026
9a4f204
persistent: multiple var related to rpn, guided tour, other v055v set…
hussainmohd-a Apr 25, 2026
f1675f0
minor: fix comments in kernel proc
hussainmohd-a Apr 25, 2026
a201842
vpn: multiple changes related to rpn, other v055v features
hussainmohd-a Apr 25, 2026
b74de3b
vpn: multiple changes related to rpn, other v055v features
hussainmohd-a Apr 25, 2026
4ff936a
wg: proxy ping controller responsible for smart keep alive pings
hussainmohd-a Apr 26, 2026
0ee555f
rpn: pass10: fix format, add new identity result class
hussainmohd-a Apr 26, 2026
1d5b5ef
build: add google api dependency, rmv debug from firestack module
hussainmohd-a Apr 26, 2026
8dadb96
update, rpn prevention for alpha build
hussainmohd-a Apr 26, 2026
acaa439
alpha: new style for alpha to distingush with other builds
hussainmohd-a Apr 26, 2026
f60cc14
v055v : update build version
hussainmohd-a Apr 26, 2026
cd907fa
alpha: diff file for backup/restore, show a in title
hussainmohd-a Apr 26, 2026
8e67713
db: migration for v055v
hussainmohd-a Apr 26, 2026
61f0312
strings: unfiltered strings added in strings.xml
hussainmohd-a Apr 26, 2026
e70cece
v055v: change firestack repo to ossrh
hussainmohd-a Apr 26, 2026
706a211
fix: arg usage for correct url filepath
hussainmohd-a Apr 26, 2026
be56a30
fix: add callback to onDismiss instead of onDestroyView
hussainmohd-a Apr 26, 2026
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
Prev Previous commit
Next Next commit
refresh-db: improvements in handling proxy apps
  • Loading branch information
hussainmohd-a committed Apr 2, 2026
commit 495cdc1840d037dfa1dda4e5bb87743573c72954
37 changes: 22 additions & 15 deletions app/src/main/java/com/celzero/bravedns/database/RefreshDatabase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ import android.os.SystemClock
import androidx.annotation.RequiresApi
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import androidx.paging.LOG_TAG
import com.celzero.bravedns.R
import com.celzero.bravedns.database.AppInfoRepository.Companion.NO_PACKAGE_PREFIX
import com.celzero.bravedns.receiver.NotificationActionReceiver
import com.celzero.bravedns.rpnproxy.RpnProxyManager
import com.celzero.bravedns.service.DomainRulesManager
import com.celzero.bravedns.service.EventLogger
import com.celzero.bravedns.service.FirewallManager
Expand Down Expand Up @@ -153,11 +155,11 @@ internal constructor(
val wgm = WireguardManager.load(forceRefresh = false)
val hm = WgHopManager.load(forceRefresh = false)
// val tm = TcpProxyHelper.load() // no need to load tcp-proxy mapping now (055v)
//val rm = RpnProxyManager.load()
val rm = RpnProxyManager.load()

Logger.i(
LOG_TAG_APP_DB,
"reload: fm: $fm; ip: $ipm; dom: $dm; px: $pxm; wg: $wgm; hm: $hm"
"reload: fm: $fm; ip: $ipm; dom: $dm; px: $pxm; wg: $wgm; hm: $hm, rm: $rm"
)

val canTombstone = persistentState.tombstoneApps
Expand Down Expand Up @@ -525,7 +527,7 @@ internal constructor(
return
}

ProxyManager.purgeDupsBeforeRefresh()
// ProxyManager.purgeDupsBeforeRefresh()
val canTombstone = persistentState.tombstoneApps
// remove the apps from proxy mapping which are not tracked by app info repository
// this will just sync the proxy mapping with the app info repository
Expand All @@ -536,8 +538,12 @@ internal constructor(
val update = findPackagesToUpdate(pxm, trackedApps, restore)
val add =
findPackagesToAdd(pxm, trackedApps).map {
FirewallManager.getAppInfoByPackage(it.packageName)
}
val appInfo = FirewallManager.getAppInfoByPackage(it.packageName)
if (appInfo == null) {
Logger.w(LOG_TAG_APP_DB, "invalid app info for ${it.packageName}")
}
appInfo
}.filterNotNull()
printAll(pxm, "px: tracked apps")
printAll(packageToAdd, "px: add apps")
printAll(update, "px: update apps")
Expand All @@ -549,16 +555,6 @@ internal constructor(
ProxyManager.updateApps(update)

// proceed to actual add/update/delete based on the package manager's installed apps
packageToAdd.forEach {
val appInfo = FirewallManager.getAppInfoByPackage(it.packageName)
if (appInfo != null) {
ProxyManager.addApp(appInfo)
}
}

packagesToUpdate.forEach {
ProxyManager.updateApp(it.uid, it.packageName)
}

packagesToTombstone.forEach {
ProxyManager.tombstoneApp(it.uid)
Expand All @@ -574,6 +570,17 @@ internal constructor(

}

packagesToUpdate.forEach {
ProxyManager.updateApp(it.uid, it.packageName)
}

packageToAdd.forEach {
val appInfo = FirewallManager.getAppInfoByPackage(it.packageName)
if (appInfo != null) {
ProxyManager.addNewApp(appInfo)
}
}

Logger.i(
LOG_TAG_APP_DB,
"refreshing proxy mapping, size: ${pxm.size}, trackedApps: ${trackedApps.size}"
Expand Down