Skip to content

Android: Replace QUERY_ALL_PACKAGES with targeted queries #6

@0xharkirat

Description

@0xharkirat

Priority: High

AndroidManifest.xml declares QUERY_ALL_PACKAGES for OACP app discovery. Google Play restricts this permission to specific app categories and may reject the app.

Recommended fix

Replace with a targeted <queries> block. OACP apps expose ContentProviders with authority ending in .oacp:

<queries>
    <provider android:authorities="*.oacp" />
</queries>

If wildcard authority queries are insufficient on all Android versions, consider an alternative discovery mechanism or document the sideload-only limitation.

Files

  • android/app/src/main/AndroidManifest.xml (line 3)
  • android/app/src/main/kotlin/com/oacp/hark/OacpDiscoveryHandler.kt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions