summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
AgeCommit message (Collapse)AuthorFilesLines
2022-03-24Remove unused account creation url in AndroidAlbin1-2/+0
The URL is a left-over after implementing in-app account creation via the daemon.
2022-03-24Initial adaption of Android login to device flowAlbin4-46/+47
Adapts the Android app to use the device login/logout functionality. Limitations: * State will not always be correctly propagated to all components of the app (i.e. Settings). This will be fixed in later device commits. * Some temporary error messages will be used in the Login view. These will change in later commits and/or be replaced with new views (i.e. when a user has too many devices registered).
2022-03-23Initial Android adaption of daemon device APIAlbin13-22/+152
Initial limited adaption of the daemon device changes. Makes it possible to launch, login and connect. However, there are some limitiations: * State is not properly handled thoughout the app. * The app itself doesn't expose any device functionality to the user. * The wireguard key actions are disabled (regenerate and verify). * Accounts are not remembered across app restart.
2022-03-14Update Rust-end JNI and Android IPCDavid Lönnhager1-8/+6
2022-03-01Remove API address rotationDavid Lönnhager1-2/+0
2022-02-24Update android stringsOskar Nyberg20-10/+29
2022-02-22Remove unused/dead code from Android tun providerDavid Lönnhager1-10/+0
2022-02-08Fix missing fdroid metadataAlbin15-40/+1
F-Droid requires the metadata to be present in a specific location which isn't compatible with our mono-repo structure, therefore this change moves the Gradle Play Publisher (GPP) directories to a location compatible with F-Droid and adds a symlink at the location GPP expects, which leads to the F-Droid location. The reason for doing it this way rather than symlinking the other way around is that we don't use GPP itself atm. Even if we start using it, it's still easier to make sure everything is working (in regards to the symlink) in the GPP build environment compared to the F-Droid build environment.
2022-02-04Fix tile service crashAlbin1-1/+6
Fixes tile service crash that occurred when the tile service tries to unbind even though there are no binding or pending binding.
2022-01-28Empty Google Play release notesAlbin1-1/+0
As releases usually are built from release branches, the current strategy will be to keep this file empty on master.
2022-01-27Fix app startup crash on Android TVsAlbin4-35/+7
The main activity and tv activity are both designed to be running as singleTask and the app would crash if both were started. This would not be common, but possible, on a phone or tablet, however this can potentially occur frequently on Android TV (perhaps depending on OEM), as both categories LAUNCHER and LEANBACK_LAUNCHER are used. E.g.the tv launcher would use LEANBACK_LAUNCHER whereas the settings app would use LAUNCHER. As the tv activity isn't used for any customization atm, this was fixed by simply removing the tv activity and adding the LEANBACK_LAUNCHER category to the main activity.
2022-01-24Specify default notification vibration behaviorAlbin3-3/+7
Default vibration behavior: * Vibration enabled for account expiration notification. * Vibration disabled for tunnel state notification. These defaults can be overridden in system settings.
2022-01-24Hide tunnel state notification from lock screenAlbin5-37/+8
The tunnel state notification is hidden from the lock screen by using the Android notification visibility mechanism.
2022-01-24Refactor to use NotificationChannelCompatAlbin1-10/+12
2022-01-24Cleanup notification when task removedAlbin2-0/+5
Remove the tunnel state notification if the task is removed (app swiped away from recent apps) while the tunnel is disconnected.
2022-01-24Skip updating notification when service is killedAlbin1-2/+0
Skip creating/updating the tunnel state notification when the vpn service is killed.
2022-01-20Fix auto-connect on app removed from recent appsAlbin2-1/+12
By default in Android, a service will be automatically killed if it belongs to a task that was removed (i.e. from recent apps) without a chance to run any cleanup logic. In this case, the lack of cleanup would lead to a crash and auto-restart (triggered by the system) resulting in a auto-connect. To fix this, a graceful stop will be ran if the task is removed while the tunnel is disconnected (service not running as foreground). However if the tunnel is in other states than disconnected (service running as foreground), the service should continue to run as it's bound by the system.
2022-01-10Fix Android website link buttonsAlbin5-1/+16
Fixes an issue with url buttons keeping an old reference to service dependent instances, even after the service connection is no longer available. The fix ensures that the reference is updated once there is a new service connection.
2021-12-20Clarify Android tile textAlbin3-1/+11
Change Android tile title/label to "Toggle VPN" to better inform the user about the tile action. Also set the subtitle (on Android Q and above) to match the state shown in the notification.
2021-12-16Split Android project and app moduleAlbin427-0/+22552
The purpose of this is to: * Comply better with the default Android project structure (see https://developer.android.com/studio/build). * Avoid conflicts between project and app dependencies and plugins.