Jason A. Donenfeld
1c0b211bd6
LogViewerActivity: remove unnecessary ?.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2025-12-31 12:23:59 +01:00
Jason A. Donenfeld
0295abd808
global: update copyright notices
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2025-05-19 17:31:02 +02:00
Jason A. Donenfeld
6aab7cccf9
LogViewerActivity: cast array to Any type instead of using union inference
...
Type argument for reified type parameter 'T' was inferred to the
intersection of ['Comparable<*>' & 'Serializable']. Reification of an
intersection type results in the common supertype being used. This may
lead to subtle issues and an explicit type argument is encouraged. This
will become an error in a future release.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2025-05-08 04:59:37 +02:00
Jason A. Donenfeld
db7f70736f
gradle: bump many deps
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-10-13 21:32:16 +02:00
Jason A. Donenfeld
40eaa54cf0
ui: reformat all code
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-05-05 13:18:30 +02:00
Jason A. Donenfeld
a3bfa6f1ab
ui: collect logs from IO thread only
...
Otherwise the pop() from the producer might causes an OOB read in the
consumer:
Exception java.lang.ArrayIndexOutOfBoundsException:
at androidx.collection.CircularArray.get (CircularArray.java)
at com.wireguard.android.activity.LogViewerActivity.rawLogBytes (LogViewerActivity.java)
at com.wireguard.android.activity.LogViewerActivity.onCreate$lambda$3 (LogViewerActivity.java:133)
at android.view.View.performClick (View.java:6935)
at android.view.View$PerformClick.run (View.java:26214)
at android.os.Handler.handleCallback (Handler.java:790)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7000)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-05-05 02:56:51 +02:00
Jason A. Donenfeld
19044b0f53
ui: LogViewerActivity: cleanup ret val
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-04-13 16:06:54 +02:00
Jason A. Donenfeld
8152191277
ui: further reduce log viewer memory usage
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-04-12 13:48:55 +02:00
Jason A. Donenfeld
59da677c23
ui: do not OOM when leaving log window open for a while
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-04-04 15:31:52 +02:00
Jason A. Donenfeld
d7ccbd92e5
ui: add log items in buffered batches
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-03-28 17:47:36 +02:00
Jason A. Donenfeld
2da80e8dee
ui: color verbose logs the same as debug logs
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-03-28 16:02:47 +02:00
Jason A. Donenfeld
450ef8ce1c
ui: don't call getColor on already resolved attribute
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-03-28 16:02:47 +02:00
Harsh Shandilya and Jason A. Donenfeld
4fcb8c4792
ui: introduce a fresh set of Material3 themes and migrate to them
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2023-03-27 16:10:24 +02:00
Jason A. Donenfeld
853e86e6d0
global: bump copyright date
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-03-21 15:41:11 +01:00
Jason A. Donenfeld
bf84e26a86
global: bump copyright year
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-10-29 16:47:12 +02:00
Harsh Shandilya
836c367499
gradle: upgrade AndroidX dependencies
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2021-10-28 03:19:55 +05:30
Harsh Shandilya
24ded8070f
build: upgrade AndroidX dependencies
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2021-05-19 01:33:06 +05:30
Jason A. Donenfeld
6008efcd95
ui: remove hack for broken kotlin compiler
...
Seems like things are finally fixed.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-05-06 16:22:58 +02:00
Jason A. Donenfeld
a31f0cf788
DownloadsFileSaver: initialize callback in constructor, not on the fly
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-10-02 12:11:48 +02:00
Jason A. Donenfeld
53ca421a85
ui: print proper exception trace from log viewer
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-26 12:01:58 +02:00
Harsh Shandilya
4bee579e48
ui: retire EdgeToEdge
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2020-09-17 23:09:05 +05:30
Jason A. Donenfeld
59935a12b9
activityx: use contracts more and refine
...
This is the beginning; there are still many of the old API's callsites
to convert.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-17 14:50:37 +02:00
Jason A. Donenfeld
a9ec828506
DownloadsFileSaver: encapsulate permission checks
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-17 14:50:37 +02:00
Jason A. Donenfeld
eebeece856
LogViewerActivity: simplify scoping
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-16 18:01:06 +02:00
Harsh Shandilya and Jason A. Donenfeld
dcd596907a
ui: resolve getColor deprecation in LogViewerActivity
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2020-09-16 18:01:06 +02:00
Jason A. Donenfeld
44c2afbfba
LogViewerActivity: destroy process when coroutine scope is cancelled
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-16 18:01:06 +02:00
Jason A. Donenfeld
49ac61304e
coroutines: use lifecycleScope where appropriate
...
There's still a bit of GlobalScope lingering around, which might be
removable.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-15 23:46:11 +02:00
Jason A. Donenfeld
bab70ab51e
coroutines: convert the rest
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-09-15 12:30:15 +02:00
Jason A. Donenfeld
017f420d42
LogViewerActivity: don't crash if pipe closes
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-03-30 03:25:47 -06:00
Jason A. Donenfeld
574ee5d0bb
LogViewerActivity: only scroll every quarter for the first 2.5 seconds of dumping
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-03-28 23:07:50 -06:00
Harsh Shandilya
536a6f3f83
ui: Replace ErrorMessages getter with indexing operator
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2020-03-27 15:38:04 +05:30
Jason A. Donenfeld
c8ac970d11
LogViewerActivity: merge lines that don't match regex
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-03-26 16:59:54 -06:00
Jason A. Donenfeld
a3a429bc41
LogViewerActivity: re-add error case to log export
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-03-26 15:58:02 -06:00
Jason A. Donenfeld
defc4f45ff
LogViewerActivity: constify request
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-03-26 14:56:13 -06:00
Harsh Shandilya and Jason A. Donenfeld
63a395125a
Introduce realtime log viewer
...
This contains a share button and a save button, the former using a
custom content provider.
Co-authored-by: Jason A. Donenfeld <Jason@zx2c4.com >
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2020-03-26 00:49:01 -06:00