Revoke NLS permission if the last association has been removed

When last association of a package is removed, the corresponding NLS permission should be removed too.

Bug: 391895151
Test: manual test + unit test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2a6e5b9b41a715431a1c0ee18e647db72c9f7dca)
Merged-In: I193b0dbb700f891d0dbfcf31cf9548fbd7ca0866
Change-Id: I193b0dbb700f891d0dbfcf31cf9548fbd7ca0866
1 file changed