aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Match lowercase asus phones for fab hackJason A. Donenfeld2020-01-231-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manifest: reorderJason A. Donenfeld2020-01-231-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: set empty underlying networksJason A. Donenfeld2020-01-231-0/+1
| | | | | | | | | | | https://lists.zx2c4.com/pipermail/wireguard/2020-January/004859.html https://issuetracker.google.com/issues/114309459 https://developer.android.com/about/versions/pie/android-9.0-changes-all#network-capabilities-vpn Apparently we need to call this at least once. Reported-by: Andrey Kupreychik <foxel@quickfox.ru> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Manifest: make wireguard compatible with android TVRevath S Kumar2020-01-221-0/+3
| | | | | | | | | | | | As of now wireguard is not listed in Android TV play store due to the lack of CATEGORY_LEANBACK_LAUNCHER [1]. Even the app is not listed when we sideload into TV device[2]. [1]: https://developer.android.com/reference/android/content/Intent.html#CATEGORY_LEANBACK_LAUNCHER [2]: https://developer.android.com/training/tv/start/start.html#tv-activity Signed-off-by: Revath S Kumar <rsk@revathskumar.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Add Italian translationxalloc2020-01-221-0/+180
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Introduce TunnelToggleActivityHarsh Shandilya2019-12-204-15/+75
| | | | | | | | | | | | | | | | On Android 10, apps cannot start services when they're in the background. This means that starting VpnService from within QuickTileService when the app is not active ends badly. To mitigate this situation, we introduce a proxy activity of sorts that will handle starting VpnService for us. The activity is completely transparent and invisible, and does only four things: - Toggle the tunnel state - Request the Tile bound by QuickTileService to refresh its state - Handle any error that might have been thrown during toggle - Call finishAffinity() and go away Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Use RequiresApi instead of TargetApiJason A. Donenfeld2019-12-202-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: require phone be unlockedJason A. Donenfeld2019-11-271-6/+8
| | | | | | Reported-by: Simon <simon@laro.se> Reported-by: Harsh Shandilya <me@msfjarvis.dev> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Implement statisticsJason A. Donenfeld2019-11-208-6/+247
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ModuleLoader: sync file before renamingJason A. Donenfeld2019-10-221-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: write to temporary file, fsync, renameJason A. Donenfeld2019-10-212-3/+8
| | | | | Reported-by: Andre Christanto <christantoandre@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* InetAddresses: cleanup and implement final fallbackJason A. Donenfeld2019-10-181-22/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: put user agent in log to help debuggingJason A. Donenfeld2019-10-182-6/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Suppress depreciation warningsJason A. Donenfeld2019-10-182-0/+3
| | | | | | We know what we're doing here, and it's not nice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Google doesn't want to enable others to support free open source softwareJason A. Donenfeld2019-10-163-47/+0
| | | | | | | | | | | | Revert "preferences: add donation link" This reverts commit e5455f579aec48abb30ba68b0248b02d79303126. The app was removed from the Play Store for violating their payments policy. Upon filing an appeal, I was told that they do not allow donations to projects like WireGuard. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Download modules after verifying signify signatureJason A. Donenfeld2019-10-146-1/+314
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Revert "Fix activity leak on Android Q"Jason A. Donenfeld2019-10-131-10/+1
| | | | | | | | This reverts commit 489518000971914b2608da43e2146690dcc02cb9. October has arrived. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: extract from apk instead of relying on native extractionJason A. Donenfeld2019-10-133-51/+39
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: separate out extractionJason A. Donenfeld2019-10-131-29/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: prioritize ABI orderingJason A. Donenfeld2019-10-131-10/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: iterate through all apks for bundlesJason A. Donenfeld2019-10-131-30/+41
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Activity: make dark/night theme follow system on QJason A. Donenfeld2019-10-123-6/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: use preferences from compat libsJason A. Donenfeld2019-10-121-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* export: use content resolver on android Q+Jason A. Donenfeld2019-10-125-38/+125
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* preferences: add donation linkJason A. Donenfeld2019-10-123-0/+47
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to Android 10Harsh Shandilya2019-09-301-3/+11
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* InetAddresses: prepare for Android 10's real method supportJason A. Donenfeld2019-09-301-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FragmentUtils: Directly cast context as SettingsActivityHarsh Shandilya2019-09-271-2/+2
| | | | | | | | ContextThemeWrapper#getContext seems to be an instance of ContextImpl now which is not public API and also not what we want. Directly cast context as SettingsActivity which seems to work exactly how we need this to. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Fix activity leak on Android QHarsh Shandilya2019-09-271-1/+10
| | | | | | | | | | This workaround was discussed at https://twitter.com/Piwai/status/1169274622614704129 after Google had closed the issuetracker with a WONTFIX at https://issuetracker.google.com/issues/139738913. The situation has since changed with Google promising a fix on October's ASB but since we can't really know, patch this ourselves for the timebeing. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* TunnelList: Get focus to toggle button via remote for Fire TVRevath S Kumar2019-06-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | This removes a no-longer-needed workaround for the ListView OnItemClickListener (it won't fire if a focusable view is inside the item view). Since converting our ListView instances to RecyclerView instances, we set the OnClick and OnLongClick listeners directly on the item view, and this workaround no longer has any effect. Unsurprisingly, the workaround breaks focusability of the Switch, which is necessary to toggle tunnels on devices with keypad-based navigation, such as the Fire TV. This commit also adds explicit focusability hints for the Switch. Related mail thread: https://lists.zx2c4.com/pipermail/wireguard/2019-May/004112.html Reported-by: Christophe-Marie Duquesne <chmd@chmd.fr> Reported-by: Revath S Kumar <gmail@revathskumar.com> [Samuel: sorted attributes; expanded commit message] Signed-off-by: Samuel Holland <samuel@sholland.org>
* InetEndpoint: properly match IPv6 addressesJason A. Donenfeld2019-03-191-1/+1
| | | | | | | The old one didn't account for trailing digits. Reported-by: Brandon Jackson <bjackson@napshome.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: %i is invalidJason A. Donenfeld2019-03-191-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WgQuickBackend: pass result to error stringJason A. Donenfeld2019-03-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* project: bump dependenciesJason A. Donenfeld2019-02-171-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: fix typo on cleanupJason A. Donenfeld2019-02-171-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: Require Magisk 18Jason A. Donenfeld2019-02-141-6/+6
| | | | | | | People installing magisk modules are people capable of updating Magisk. No need to leave around old compat cruft. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: Use chcon over restoreconHarsh Shandilya2019-02-141-1/+1
| | | | | | | | | | | restorecon probes file_contexts to get the context to be applied to the file. /sbin/.magisk does not exist in file_contexts for obvious reasons so restorecon always fails. Use chcon directly with the system_file context to allow contexts to be applied. Suggested-by: Chris Renshaw <osm0sis@outlook.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Update copyrightJason A. Donenfeld2019-01-0771-71/+71
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* PeerProxy: Only add IPv4 DNS servers when excluding private IPsSamuel Holland2019-01-071-0/+1
| | | | | | Reported-By: Christophe-Marie Duquesne <chmd@chmd.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: squelch warning on multiple %sJason A. Donenfeld2018-12-181-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to AndroidXHarsh Shandilya2018-12-1864-157/+152
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* InetEndpoint: disallow huge portsJason A. Donenfeld2018-12-151-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Clean up error messagesSamuel Holland2018-12-1515-113/+217
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Provide semantically meaningful exceptions for translationSamuel Holland2018-12-1518-186/+364
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix locale usageJason A. Donenfeld2018-12-1112-49/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Squelch xml warningJason A. Donenfeld2018-12-111-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Throw illegalargumentexception instead of nullpointerexception for builder errorsJason A. Donenfeld2018-12-113-3/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Unwrap the correct exceptionZachary Wander2018-12-111-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Order stringsJason A. Donenfeld2018-12-111-55/+53
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Localize exception messagesZachary Wander2018-12-1113-35/+92
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>