Search code examples
androidmanifestandroid-11

Programmatically Set the android query in manifest for declaring package names


I have two APPS and I am using each other's data(using content provider) and declaring package name in manifest file under query tag, it is working fine,

But I want to declare query and package name programmatically,

How can achieve this


Solution

  • Sorry, but you cannot change the package visibility rules at runtime from Java/Kotlin.