Deprecate permission tree APIs

Deprecate the permission tree APIs. There's no meaningful amount of
usage of dynamic permissions while it being a major source of security
defects.

Bug: 376535612
Test: Build
Flag: android.permission.flags.permission_tree_apis_deprecated
Change-Id: Ie3300614c21e793d7247aa637f5e6ce0f7b7408a
2 files changed