Skip to content

Commit

Permalink
Update PmsHookTarget28.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG authored Aug 25, 2022
1 parent 9990f13 commit 761dee7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class PmsHookTarget28(private val service: HMAService) : IFrameworkHook {
val callingApps = Utils.binderLocalScope {
service.pms.getPackagesForUid(callingUid)
} ?: return@hookBefore
val targetApp = Utils.getPackageNameFromPackageSettings(param.args[0])
val packageSettings = param.args[0] ?: return@hookBefore
val targetApp = Utils.getPackageNameFromPackageSettings(packageSettings)
for (caller in callingApps) {
if (service.shouldHide(caller, targetApp)) {
param.result = true
Expand Down

0 comments on commit 761dee7

Please sign in to comment.