-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Feature Request: Show work profile apps. #542
Comments
Are you able to see those from your device's pre-installed launcher? From what I can gather about device profiles on the internet:
Are these observations correct? If yes, does KISS work if you also install it in your work profile (provided that the companies device administration policy allows you to do so)? |
I am able to see the work profile only apps when using the system launcher (Google now launcher) as well as other third party launchers Ive installed (Nova launcher). The work profile is tied to a different account. I am not allowed to install the majority of apps on the play store with this account as you suspected. |
I did some digging through Android's usual mess of limited documentation and I believe I've found the problem: Are you able to install apps from "unknown sources" / outside of Google Play Store on your device to aid in testing code for this? I believe you are the first motivated user with this kind of problem unfortunately… |
I am and I am happy to be a guinea pig as long as I can see the branched code. Thank you for the quick turnaround. |
Assuming the above is fine, no need for a binary, i'll build it on my end. |
Thanks for your help! I'm glad if you can build the binary yourself – less work for me 😉 Here is a very simple patch that should simply add enumeration of app from other profiles to KISS: Known limitations:
Suspected issues (needs your confirmation!):
In any case I'd be very useful if you could also provide a Should look something like this (feel free to anonymous sensitive stuff):
|
Alright I gave the updated version a try and the following is what happened: When I search for Apps that are available in both profiles, e.g. Play store, I see two icons where as before I would only see one. However, regardless of which one I touch it launches the same non-work profile App. Also, with other launchers work profile apps have a little briefcase icon added to them in the corner so that one can distinguish which profile the app applies to but in KISS this does not currently happen. When I search for apps only in the work profile they show up as you predicted without an icon and again as you predicted they fail to load with the "Whoops, something went wrong…" popup. I've attached the log you requested below. |
Thanks for your feedback! This is exactly the kind of behaviour I hoped that would happen! I've created another patch that should now allow to launch foreign-profile apps and view their settings page. Looking at the Android documentation it seems that a direct uninstall button is not possible for these apps through. Some homework for you: 😉
Icon loading is still broken ATM. |
Attribution: Credit also goes to Nöme launcher, that ships some example code on how to use |
I hit a compile error. I poked around a bit but my Android/Java foo is weak :( Compile Error: |
Yes sorry I just quickly did some changes, before leaving and, of course, forgot to actually test the last code change… Anyway, it's fixed (and tested) now… |
Another update! Icon loading for foreign-profile apps should now be working (and if the Android docs didn't lie this will also include a nice "work" badge being displayed for apps from the "work" profile 🙂). |
Final update for today: App sorting in the application list section should now be working again. Please check this on your end (particularly with regards to work vs non-work apps). |
Alright. I loaded up the latest changes and apps are sorted properly. I see icons with the brief case and I am able to properly launch work apps. The only thing that doesn't appear to be working on my end is what you hypothesized. When I go to uninstall a work only app it acts like it is uninstalling it but the app is still installed/launchable. Let me know if you need me to test/confirm anything else |
Thanks for your feedback once again! This should hopefully be the final patch! Please test, in particular that:
Also, and I fear that you might not be authorized to help my out on this final one:
|
@dubwoc: Are you still around? It'd be a shame to let all this code go to waste because we couldn't get the final testing done. If you can't test the work mode removal and adding, please just say so; it's not a huge deal. |
Sorry about that I was on vacation. I went ahead and built the latest code and unfortunately I am unable to test any further as all work profile apps have disappeared. Also, your suspicions are correct with respect to my ability to removing my work profile. I'll see once we get beyond the current problem if there is something I can do about that but I think my options are quite limited there. |
Thanks for responding! |
Update: Just did a quick review of the current patchset and fixed a bug that would have affected excluding foreign-profile apps, also all commits have been rebased onto the current master. |
Apologies for the slow update. The next couple of days should allow for a tighter feedback loop. I pulled the latest code and tried out the apk and I still have the same problem where no work profile apps are showing up anymore. What can I provide on my end to help you out there? |
I apologize for the long radio-silence, but, truth to be told, I totally clueless what the issue might be. Could you please remove your current KISS source directory and do a clean checkout of "https://github.com/alexander255/kiss-launcher.git" and do a clean compile? I know this may seem like a waste of time (and I fear it might actually be), but please try anyways, as I simply cannot think of anything other than user-error that may cause this issue. (Sorry again if this offends you in any way.) |
I don't know if this is still relevant but I just tried this on my phone and work profiles are working good. Please let me know if there is anything specific you want to test. This launcher had been my default for a long time now and this issue recently became a deal breaker for me so I'm happy to help in any way necessary. |
Thanks for the feedback @squgeim! Here's a list of things I'd like to have tested:
Additionally the following things would be nice to have tested as well, but it's OK if you can't / don't want to do this:
In all of the above cases please make sure that if you have the same app installed twice (once in work-mode, once in user-mode), that indeed the correct one of the two is launched / interacted with. Thanks for your help! Looking forward to finally open a MR on this! 😁 |
BTW, you will have to |
|
Apparently, clicking on the favorites bar itself, and not just the long press, crashes the launcher. Can not launch any application from the favorites bar. |
Thanks for your valuable feedback! The crash when interacting with the favourites bar should be fixed now (you can tell I never use that thing 😉). Also please note that long-pressing on favourite-bar entries does not actually do anything, to remove an app from the favourites bar you need to locate it in the history or app list instead. (Something to fix for another day…) Some responses to your other comments:
Unfortunately there seems to be no obvious way of adding the briefcase symbol (or for even determining that a foreign user profile is indeed a work-mode profile) when custom icon themes are used, so it will stay in the current state for the foreseeable future.
The
I've tweaked the code to fall back to sorting the apps by their ID if their names are identical. Hopefully that should result in the more logical sorting behaviour that you have described. Thanks again for your feedback! If you can confirm that all the issues (except for the briefcase-on-custom-icon-theme thing) have been fixed. I'd finally feel comfortable enough about this code to get it merged. |
Everything looks fine now. Good work. Thanks for this awesome product. I haven't tested removing work profile altogether. I'll probable do it some other time. Enabling it was a long process so I'm guessing I need to take some time out for this. So, when can I expect to see it in the Play Store version? |
Don't worry about the work-mode profile removal / adding too much. It's very likely that it works at this point and even if it doesn't it really isn't that huge of an issue (adding/removing a profile tends to be something one does ~1 per device!?). I'm not saying that it wouldn't be a useful information to have, just that if it's too much work for you to test, the impact shouldn't be all that dramatic either 😁. Remember that we're all doing this on a voluntary bases and none of us devs actually has such a setup. As you may have noticed I (a) forgot to press "Comment" on this message 9 days ago (b) have submitted the current code for inclusion into the next version of KISS. Depending on when @Neamar goes on his next "merging spree" it should then land in the next KISS beta/F-Droid version within the next 1 to 4 weeks (unless a major issue is found with the code before that). Official Google-Store versions are then promoted from the Beta-Version some time after. |
@Alexander255 is absolutely right. |
Looks like it's working ok with Island as far as I can test. |
@licaon-kter Man, I really would have wished to have that thing during development! 😁 @Neamar: I don't want to be annoying or anything, but… could you please respond to my latest inquiry and on the PR and possibly get the code review done (or maybe assign on of the other devs, as a work-sharing option)? I don't want to have to rebase my code for months every time I try to submit any non-trivial change. |
@Alexander255 you're not annoying at all. You make very good points, and an obvious solution for me is the OPEN Open source model. You've contributed more than your fair share of PR, so are you interested in joining the core contributors to help with the review, maintenance and future of KISS? I've sent you an invite to join Flowdock, where we have live discussions about KISS. No hard commitments from you, just help as you can and maintain parts of the code you've written ;) (which is one of the reason I'm slow at merging, I want to be sure I understand everything because all too often the burden of maintenance would fall on me and I had some experiences where it was quite hard to understand "what is going on" on complex features ;)) |
Looks like I misunderstood the whole thing and did not realise the apps should appear in duplicates and that I needed @Alexander255 's branch to test Island. I'll get that asap and come back with feedback. |
I don't have any problems maintaining the parts of code that I've written or modified (and sometimes out other stuff like the phone matching thing as well). I actually try to do that already where possible, it just happens that stuff I write usually tends to be too low-level for it to receive lots of updates once it's released and stable. People want mostly features after all 😉. I tend to respond to those issues/code only if I think I can actually can meaningfully guide them to some kind of result (like a merge or maybe even close if has-to-be), that's why I, and hardly anybody else I suppose, am not that often responding to new issues. |
This should be fixed in latest master as #609 has now been merged. Feel free to comment/reopen if you still experience issue with this when using the latest master! |
I am unable to see any of my work profile apps unfortunately making using KiSs impossible for work. Please add this feature.
The text was updated successfully, but these errors were encountered: