2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 05:07:40 +00:00

2789 Commits

Author SHA1 Message Date
l10n daemon script
0fd9ff2bf8 GIT_SILENT made messages (after extraction) 2022-08-15 00:44:12 +00:00
l10n daemon script
305a1d4c78 GIT_SILENT made messages (after extraction) 2022-08-09 00:45:40 +00:00
Nicolas Fella
2285c9b4d3 Remove arcconfig
We are not using Phabricator anymore
2022-08-05 01:34:08 +02:00
Nicolas Fella
a94eeb4947 Revert "Remove arcconfig"
Had unrelated changes

This reverts commit 53e2e0be100eca7aca867dab2f96ad87a0f1f79c.
2022-08-05 01:23:55 +02:00
Nicolas Fella
53e2e0be10 Remove arcconfig
We are not using Phabricator anymore
2022-08-05 01:23:26 +02:00
l10n daemon script
357867145e GIT_SILENT made messages (after extraction) 2022-08-01 00:43:56 +00:00
Mikhail Zolotukhin
fccbdf0699 Declare repositories and project name in settings.gradle
Official gradle docs recommend using settings.gradle file (see https://docs.gradle.org/current/userguide/organizing_gradle_projects.html#always_define_a_settings_file).
Blank Android projects in Android Studio declare their name and repositories in settings.gradle. Therefore, it makes sense to create such file here and add that information in it.

An explicit project name allows us to know exactly to what `project.name` resolves, instead of relying on the project root directory name, which can be changed by the developer locally.
2022-07-25 20:44:56 +00:00
l10n daemon script
9de62747f7 GIT_SILENT made messages (after extraction) 2022-07-14 00:44:59 +00:00
l10n daemon script
28c0ad3328 GIT_SILENT made messages (after extraction) 2022-07-10 00:46:44 +00:00
l10n daemon script
358dbee727 GIT_SILENT made messages (after extraction) 2022-07-09 00:44:54 +00:00
l10n daemon script
cfee01f820 GIT_SILENT made messages (after extraction) 2022-07-07 00:44:14 +00:00
l10n daemon script
461b096af3 GIT_SILENT made messages (after extraction) 2022-07-04 00:45:10 +00:00
Nicolas Fella
cf94436208 [mpris] Remove workarounds for Spotify
It looks like Spotify fixed its MPRIS impl and these things are no longer broken

There's no need to hide them from the UI any more
2022-06-27 23:15:37 +00:00
Ilmaz Gumerov
edc655da5a Add logs reading for sending clipboard on Android 10
Enable with:
adb -d shell pm grant org.kde.kdeconnect_tp android.permission.READ_LOGS;
adb -d shell appops set org.kde.kdeconnect_tp SYSTEM_ALERT_WINDOW allow;
adb -d shell am force-stop org.kde.kdeconnect_tp;
2022-06-27 17:00:34 -04:00
l10n daemon script
de1e68d62f GIT_SILENT made messages (after extraction) 2022-06-25 00:47:11 +00:00
Art Pinch
f1d0c9acc6 Fix MprisActivity crash in landscape orientation
## Summary

Fixed MprisActivity crash in landscape orientation caused by mismatched portrait and landscape layout resources

BUG: 435016

## Test Plan

### Before:
App crashed on MprisActivity when phone is switched to landscape orientation

### After:
App works normally in landscape mode
2022-06-09 02:10:37 +00:00
Nicolas Fella
f2481644ae Update Gradle plugin 2022-06-02 00:39:06 +02:00
Art Pinch
7080b43d2d Control remote device volume by volume keys when MPRIS session is active
Allows to control the volume of the default sink of the remote device by pressing phone volume keys on API21+ (Lollipop and onwards) when MPRIS session is active (i.e. MPRIS media control notification is present). Remote device should support System Volume Plugin and report its default sink. Volume controlling works both when the phone screen is off and on. When the screen is on, you'll see a new slider in the volume panel.

BUG: 398848
2022-06-01 22:35:54 +00:00
Ravi Mistry
8f49ff57ab Fix byte array conversions
## Summary

Currently, KDE Connect for Android doesn't show the last 2 characters of the verification key when pairing a device. This MR solves this issue.

This bug is caused by incomplete conversions from byte arrays to strings in `SslHelper.java`:

```java
for (int i = 0; i < hash.length - 1; i++) {
    formatter.format("%02x", hash[i]);
}
```
The ```i < hash.length -1``` converts the bytes in the array up to (inclusive) the penultimate one. Removing the ```- 1``` allows for the last byte to be converted (this is the missing 2 characters).

BUG: 445955

## Test Plan

### Before:
Selecting a desktop from the available devices, then clicking the `Request Pairing` button causes a 62 character key to be displayed. It is 2 characters short of the actual key, which can be seen on the desktop KDE Connect app.

### After:
Selecting the `Request Pairing` button now shows the whole verification key, as intended.
2022-05-30 21:28:03 +00:00
l10n daemon script
9834a690b4 GIT_SILENT made messages (after extraction) 2022-05-21 00:44:36 +00:00
l10n daemon script
5a64ff7ebd GIT_SILENT made messages (after extraction) 2022-05-10 00:44:37 +00:00
l10n daemon script
bcd1bdb856 GIT_SILENT made messages (after extraction) 2022-05-08 00:45:48 +00:00
l10n daemon script
4148d672ba GIT_SILENT made messages (after extraction) 2022-05-06 00:45:18 +00:00
l10n daemon script
96ad654d7c GIT_SILENT made messages (after extraction) 2022-05-01 00:47:59 +00:00
l10n daemon script
4e4c68526e GIT_SILENT made messages (after extraction) 2022-04-22 00:45:00 +00:00
Thore Goebel
8e43ef421b Capture back press in Settings and About
The Settings and About fragments are arguably one logical layer below the PairingFragment (which feels like the "main screen").
Capture the back press and return to the PairingFragment.

Fixes https://bugs.kde.org/show_bug.cgi?id=442716.

Notes:
- In a DeviceFragment back-pressing continues to close the app, as before. Judging from the fact that the app persists the last selected device to the shared prefs, I assume this is a intentional.
- I also thought about storing from where the Settings/About were opened (e.g. from a specific DeviceFragment) and returning there. However this would be a much larger change with arguable user benefit. After all, from the PairingFragment it's just a single click to your device.
2022-04-21 00:54:42 +00:00
l10n daemon script
cbabc40e7b GIT_SILENT made messages (after extraction) 2022-04-21 00:43:49 +00:00
l10n daemon script
91709c5a2a GIT_SILENT made messages (after extraction) 2022-04-17 00:46:22 +00:00
l10n daemon script
222f748211 GIT_SILENT made messages (after extraction) 2022-04-12 00:43:22 +00:00
Thore Goebel
a2c20d93f2 Set action bar title in SettingsFragment
Set the title "Settings" to the action bar in the SettingsFragment.

Previously, depending on where you came from, it just read "KDE Connect Devices", "About" or the device name.
2022-04-09 16:39:58 +00:00
l10n daemon script
a2d7a1b58a GIT_SILENT made messages (after extraction) 2022-03-30 00:50:21 +00:00
l10n daemon script
3dafea53c9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-29 02:08:04 +00:00
l10n daemon script
006eb5bc4a GIT_SILENT made messages (after extraction) 2022-03-19 00:43:53 +00:00
Albert Vaca Cintora
f628bbdabc Share plugin: Honor received last modified metadata 2022-03-06 12:49:08 +01:00
Albert Vaca Cintora
4fa634afa4 Upgrade gradle plugin 2022-03-03 23:58:23 +01:00
Jing Xia
3bf3cb1629 Automatically reconnect to trusted networks in the background on API 29+
## Problem

On Android 10 (API 29) or later, when a trusted network has been configured, if the mobile device rejoins the network while KDE Connect is running in the background, it doesn't reconnect to any paired devices in the trusted network. It only reconnects when the user brings the app to the foreground.

## Cause

Android 10 introduced [a separate permission for background location access](https://developer.android.com/about/versions/10/privacy/changes#app-access-device-location). 

When KDE Connect is running in the background with API 29+, [`TrustedNetworkHelper.currentSSID` fails to get the SSID](d22967f475/src/org/kde/kdeconnect/Helpers/TrustedNetworkHelper.java (L77)) because it doesn't have the required permission. This prevents KDE Connect from verifying whether a network is trusted.

## Solution

Make KDE Connect request for background location access permission.

To request for background location access, an app must [declare it in the manifest](https://developer.android.com/training/location/permissions#background), or else the option to to enable background location access won't appear in settings.

As a side note, the permission request dialog in `TrustedNetworksActivity` doesn't require changes because after Android 11, the option to allow background location no longer shows up in a dialog. [It has to be manually enabled in settings.](https://developer.android.com/training/location/permissions#background-dialog-target-sdk-version)

## Test Plan

### Before:
On Android 10 or later, configure a trusted network and pair with a device in it. Let KDE Connect run in the background. Disconnect from the trusted network and then rejoin. KDE Connect won't automatically reconnect to the paired device.

### After:
Do the same steps as above, except after configuring the trust network, go into settings and allow KDE Connect to access location all the time. After KDE Connect rejoins the trusted network, it should automatically reconnect to the paired device.

![kdeconnect_location_permission_settings](/uploads/c7d03de9f1fb1502d7036f45ccb811a0/kdeconnect_location_permission_settings.png)
2022-03-01 22:08:54 +00:00
l10n daemon script
22f47b660b GIT_SILENT made messages (after extraction) 2022-02-26 00:47:37 +00:00
l10n daemon script
bdf5f1e25a GIT_SILENT made messages (after extraction) 2022-02-24 00:43:35 +00:00
l10n daemon script
980cfaedad GIT_SILENT made messages (after extraction) 2022-02-21 00:43:16 +00:00
l10n daemon script
422ad0a11f GIT_SILENT made messages (after extraction) 2022-02-20 00:44:05 +00:00
l10n daemon script
9115e0f24b GIT_SILENT made messages (after extraction) 2022-02-18 00:44:24 +00:00
Manuel Jesús de la Fuente
5ba84c6e78 Add Android 8+ adaptive icons
![image](/uploads/a1aa9ed5e5ea5c8a0f39fb655299e79d/image.png)

Adds the Android 8+ style adaptive icons, using the app's highlight color for extra contrast against the current fallback white background behind the white phone border. This new icon follows the size and grid guidelines of material design, and was created as a 108dp@1x svg
2022-02-16 22:54:52 +00:00
l10n daemon script
90ceb073ae GIT_SILENT made messages (after extraction) 2022-02-16 00:44:51 +00:00
l10n daemon script
2b5943572c GIT_SILENT made messages (after extraction) 2022-02-14 00:43:20 +00:00
l10n daemon script
65a5e59d4b GIT_SILENT made messages (after extraction) 2022-02-13 00:42:54 +00:00
l10n daemon script
3a338609e8 GIT_SILENT made messages (after extraction) 2022-02-12 00:43:09 +00:00
l10n daemon script
62744ddae3 GIT_SILENT made messages (after extraction) 2022-02-07 00:44:04 +00:00
l10n daemon script
152b6e9a96 GIT_SILENT made messages (after extraction) 2022-02-06 00:46:27 +00:00
Manuel Jesús de la Fuente
ecd2752579 Make trashcan icon visible
BUG: 435986
2022-02-05 09:52:50 +00:00
l10n daemon script
9b2cd6a97f GIT_SILENT made messages (after extraction) 2022-02-05 00:43:21 +00:00