Skip to content

PackageManager$NameNotFoundException no query permission #60

@Falcosc

Description

@Falcosc

Sometimes, Android losses access to your package names. Maybe because we lose the reason why it is visible automatically in some use cases https://developer.android.com/training/package-visibility/automatic
If it happens, createLocusVersion will fail with PackageManager$NameNotFoundException
And getAvailableVersions will return nothing because all packages run into the ignored NameNotFoundException catch.

Do we need to define all packages in the manifest like this https://developer.android.com/training/package-visibility/declaring? I ask it because your example doesn't do it.

Or do you need to define the queries in your API like in this https://developer.android.com/training/package-visibility/declaring#communicate-host-app library use case?
I don't know if your API structure applies to this concept or if it isn't a library use case.

Unfortunately we don't know how to trigger the issue Falcosc/locus-addon-tasker#38 We only know that a reboot is needed to restore access.

I guess the error will be fixed with adding the query permissions, and that's why I ask how we should add it. Either every app or on library level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions