Please sign in to comment.
Use packageName "system" for system dialogues
The actual package name from the activity info is "android". However, the same name is also used for the system_server. It has been a common pattern to check for this package name before hooking any system services. Now, this check would also be true for certain system dialogues and break existing modules (causing ClassNotFoundExceptions). For the very few cases where a module needs to hook into this process, it can simply check for package name "system" instead.
- Loading branch information...
Showing with 5 additions and 4 deletions.