Logging What Was Filtered

Google added Logcat messages related to filtering. They will appear with the AppFilter tag and will be of the form:

? I/AppsFilter: interaction: PackageSetting{...} -> PackageSetting{...} BLOCKED

…where the first ... will contain your application ID and the second ... will contain the application ID of the app that was filtered out.

This logging is enabled automatically for debug builds. If you need to test your production app on Android 11 for this sort of filtering behavior, you can use adb to enable it:

adb shell pm log-visibility --enable ...

…where the ... is your application ID.

Note that the Logcat output may be rather extensive, as it lists everything that was blocked by your query. If you have a narrow whitelist, the list of stuff outside the whitelist may be rather long.


Prev Table of Contents Next

This book is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.