Revert "Revert "Themes: Track NotFoundException on app launch failure""

This reverts commit 2427a2870d4859ae99d9867c019b2be95e4c179e.
Revert "Revert "Use hidden API to validate APK chains""

This reverts commit 9645d7a8102655264ade23b98dbf59ebef46a692.