-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Won't open in Samsung DeX mode #245
Comments
I don't know what Samsung DeX is, and I do not have a device to test, I will document. |
I am looking for Samsung DeX integration as well. It would be a great feature to have. |
@J-Jamet There are two main requirements, as detailed in the link in the issue: It has to be resizable: <application android:resizeableActivity="true">
<activity ... />
</application> It must work with a mouse and keyboard: <uses-configuration android:reqTouchScreen="finger" />
<uses-feature android:name="android.hardware.touchscreen" android:required="true" /> Even without a Samsung device to test, you can test that it's resizable and works with a mouse and keyboard on just about any recent device. |
There must be a way to get this working without going into developer mode. @J-Jamet did you add <uses-configuration android:reqTouchScreen="finger" />
<uses-feature android:name="android.hardware.touchscreen" android:required="true" /> like mentioned above? Otherwise you can check things in the Samsung DeX documentation and I will test your builds, if you want. PS: Can you please reopen this issue? |
No no, I had verified that this code was not present. You have to test with real compatible devices. For the moment I don't have one so I will leave it to the people concerned for now. ;) |
I have three different compatible devices available. So I can test any of your builds. Maybe you can also try the Samsung Tab S4 in the Remote Test Lab. But I don't know how good this works. |
I tried, it works but a lot of options are locked in the device and I cannot launch DeX mode with this method. |
Sure thing. And is there any documentation how to build it in general? The FAQ and the README doesn't seem to include anything build related and the repository doesn't seem to have any Also I'm not sure whether this is helping but Samsung also has an App Testing Guide for windowed / DeX applications. |
No there is no docker. For the build, the easiest is to use Android Studio as an IDE, it allows you to build easily. |
I have already tested with this method and have no problem, that's why I closed this issue. |
It seems that there are a few images and Dockerfiles with Android Studio. I will try a few of them in the following days and hopefully I will manage to build a apk. Just to be sure: the lines <uses-configuration android:reqTouchScreen="finger" />
<uses-feature android:name="android.hardware.touchscreen" android:required="true" /> have to be inserted into the
According to Samsung "All flagship models released after Galaxy S8/S8+" should support DeX. Including the Galaxy S9, S10, S20, Note8, Note9 and Note10 series and Galaxy A90 5G As well as the Galaxy Tab S4, S5e and Tab S6. I'm not sure which of them has the smallest memory (you mean RAM, right?), though. But I believe all of them have at least 4 GB of RAM. EDIT: It seems that 1Password also had this issue once, but was able to solve it in June, last year. I asked for a hint on Twitter. PS: I found another app (KDE connect) with the same error message. |
@J-Jamet do you know whether there's any possibility to check what 1Password might have changed to fix the Input Method Service bug on Samsung Dex and maybe apply this on KeePass DX as well? |
No, it is clearly indicated: "Do not explicitly declare the touchscreen support as it may disable the mouse and the keyboard interactions. This explicit declaration is shown in the code below."
Unfortunately no I can't, I don't have Samsung device and 1Password is not open source so I can't see the code to study how it works. |
I'm adding my two cents to this bug thread as Ihave made the transition to keepass after a massive breach report - i am very happy with the application and as someone who uses their Note 10+ as their main and only computer (dev, programming and design) I would greatly appreciate if the application would support being launched on Dex, even if it keeps its phone size and format. Unfortunately, the Dex xlabs 'force resize' has no effect as of this latest Android/Dex version and makes using the wallet impractical for applications that do not have attributes or triggers for the autofill. Thank you |
I set the whole Android environment up (Studio, SDK, loading a huge load of dependencies, running into various issues). But I finally did it. Now I can create a build that's starting on an Android Desktop environment (like Samsung DeX), by following the mentioned hint and removing But I don't know how it's possible to build a workaround by that information, since I have no experience with Android development (maybe someone at the Samsung forum knows what to do). But at least I have a working installation now for Samsung DeX 🎉 |
Thank you @alexanderadam for your detailed comment. |
Now I got an official answer from Samsung support (Jakia.Sultana):
|
Since the problem comes from the Magikeyboard permission, I thought I could make a separate bundle as it will become mandatory soon. The idea would be to download only the Magikeyboard if you need it and not to download it if you are on Samsung. But I still have to study the feasibility, maybe the manifest can't be changed anyway. |
I also read that enabling developer options on Samsung DeX could make it work but I don't know if it's true. If someone can test it would be nice. |
I have no experience with Android development or Android bundles but Samsung devices can switch between DeX/Desktop mode and 'regular' mode. In regular mode KeePassDX is working. So it's like switching to another desktop environment on GNU/Linux or *BSD (in case you are aware of this concept). Is the concept of bundles allowing to switch a bundle per run? PS: Thank you so much for delivering such a great FOSS experience. KeePassDX is a wonderful app that I happily recommend and it's great that you care, maintain and give feedback. 🙏 The only two issues that I have personally with KeePassDX are this DeX issue and the search issue. This is probably a very good quota. 😉 |
Wow, nice! I'm looking forward to test it once it is available in an F-Droid release! 🤩 Thank you so much @chenxiaolong! |
A user just told me that Samsung DEX was not working with version 3.4.4. I can't test, so can you tell me if this is the case or just a bad configuration? |
Sure, I can give it a try today and debug if needed. |
I built the 3.4.4 tag from source (with a different package name so I have a fresh configuration) and I'm not encountering any issues in DeX. The same limitation from before still applies though: KeePassDX must be run once outside of DeX mode before it will work inside DeX. The Android framework will not allow the (Would it be worth adding a FAQ entry for this? Running once outside of DeX is required after initial installation, force stop, or clearing data.) |
Thank you for checking so quickly, it is much appreciated. Modified FAQ: https://github.com/Kunzisoft/KeePassDX/wiki/FAQ#why-doesnt-the-samsung-dex-mode-work-immediately |
When attempting to open in on a Samsung Note 9 under DeX I see the error: "KeePass DX can't run in Samsung DeX..." It runs just fine in phone mode, just not in Samsung's desktop experience. Samsung provides some relevant information here.
The text was updated successfully, but these errors were encountered: