Bug 437995 - kdeconnect.photo.request opens blank/white KDE connect android app
Summary: kdeconnect.photo.request opens blank/white KDE connect android app
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Android 11.x
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 12:41 UTC by Indignation
Modified: 2021-06-02 12:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Indignation 2021-06-02 12:41:42 UTC
SUMMARY

After sending a `kdeconnect.photo.request` (with an empty body) to my android smartphone (Google Pixel 5 running CalyxOS, a degoogled ROM with microG, the stock Google Camera app and the stock Google Photos app with capped network access), it opens the KDE connect app I installed from f-droid. The app stays blank/white and nothing happens.

STEPS TO REPRODUCE

1. Send a kdeconnect.photo.request (with an empty body) to a paired android smartphone (in my case, I'm using GSConnect and have checked the logs)
2. Smartphone opens the KDE Connect app with no content
3. Nothing happens

OBSERVED RESULT

It opens the KDE Connect app without any content (plain white) and doesn't shoot a photo.

EXPECTED RESULT

It opens my default Camera app (Google Camera), shoots a photo, and sends the photo back to my computer.

SOFTWARE/OS VERSIONS
Desktop OS: Arch GNU/Linux (rolling release)
Desktop Environment: GNOME 40
Desktop Server: GSConnect extension (uses the standard KDE Connect protocol as observed in the logs)
Smartphone OS: Android 11 (CalyxOS) with the microG Google Framework replacement layer
Smartphone Applications: Google Camera, Google Photos (no network access)
Smartphone Client: KDE Connect 1.17.0 installed from F-Droid (standard repository)

ADDITIONAL INFORMATION

Request log:
```
GSConnect: 46 (user)
GJS:       16801
Session:   wayland
OS:        Arch Linux
--------------------------------------------------------------------------------
-- Journal begins at [...] --
[...] org.gnome.Shell.Extensions.GSConnect[2710]: [/service/device.js:sendPacket:446]: Pixel 5: {
    "id": 1622637336251,
    "type": "kdeconnect.photo.request",
    "body": {}
}
[...]
```
GSConnect source code relevant to sending said packet: https://github.com/GSConnect/gnome-shell-extension-gsconnect/blob/master/src/service/device.js#L428-L456
GSConnect source code relevant to the Photo plugin: https://github.com/GSConnect/gnome-shell-extension-gsconnect/blob/master/src/service/plugins/photo.js
I have opened an issue in the GSConnect repository before I filed a bug report here (it was labeled an upstream issue): https://github.com/GSConnect/gnome-shell-extension-gsconnect/issues/1066
Comment 1 Indignation 2021-06-02 12:52:26 UTC
Update: debug-level output from `adb logcat '*'`
```
1468  2229 I ActivityTaskManager: START u0 {flg=0x10000000 cmp=org.kde.kdeconnect_tp/org.kde.kdeconnect.Plugins.PhotoPlugin.PhotoActivity (has extras)} from uid 10186
1468 15340 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (166682083)
3232  3232 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3400 
3232  3232 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1972 
1468  1587 I ActivityTaskManager: Displayed org.kde.kdeconnect_tp/org.kde.kdeconnect.Plugins.PhotoPlugin.PhotoActivity: +58ms
2044  2044 W Choreographer: Frame time is 0.097735 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
```
Doesn't hint at anything going terribly wrong on the client side.
It's a bummer markdown formatting isn't supported here :(