Skip to content
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

Can't access my work apps #8

Open
gothemknight opened this issue Oct 23, 2023 · 4 comments
Open

Can't access my work apps #8

gothemknight opened this issue Oct 23, 2023 · 4 comments
Labels
stuck More research needed

Comments

@gothemknight
Copy link

As title says, none of my work apps are showing up in the app drawer. Only thing it needs is a search function. Great launcher!

@peterfajdiga
Copy link
Owner

Hi, thanks for the report! What does work apps mean? Do you have a separate work profile? I've never used profiles or multi-users per device, so I'm not familiar with this.

@peterfajdiga
Copy link
Owner

Looking at Trebuchet code, I see I can get work apps by using LauncherApps.getActivityList (passing the work profile UserHandle) instead of PackageManager.queryIntentActivities and then LauncherActivityInfo.getActivityInfo for each app.

Unfortunately this getActivityInfo method requires API level 31. There should be another way to get work apps (maybe using PackageManager), because work profile has existed since API level 21, but I haven't found it yet, and I'm honestly more tempted to just stop supporting API level under 31.

@peterfajdiga peterfajdiga added help wanted Extra attention is needed stuck More research needed and removed help wanted Extra attention is needed labels Jan 6, 2024
@Pantyhose-X

This comment was marked as off-topic.

@Lg42tv
Copy link

Lg42tv commented Sep 30, 2024

A workaround for now (If you're using shelter), is clicking in app on individual apps and choosing the option:

Create Unfreaze and/ or Launch Shortcut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stuck More research needed
Projects
None yet
Development

No branches or pull requests

4 participants