From e0f7387dffb5d1b993a365cb8e58434c5e642a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 29 Aug 2022 12:02:29 +0800 Subject: [PATCH] Fix search android package in non-owner users --- common/process/searcher_android.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/process/searcher_android.go b/common/process/searcher_android.go index 638c00c5..e1835b47 100644 --- a/common/process/searcher_android.go +++ b/common/process/searcher_android.go @@ -22,13 +22,13 @@ func (s *androidSearcher) FindProcessInfo(ctx context.Context, network string, s if err != nil { return nil, err } - if sharedPackage, loaded := s.packageManager.SharedPackageByID(uid); loaded { + if sharedPackage, loaded := s.packageManager.SharedPackageByID(uid % 100000); loaded { return &Info{ UserId: int32(uid), PackageName: sharedPackage, }, nil } - if packageName, loaded := s.packageManager.PackageByID(uid); loaded { + if packageName, loaded := s.packageManager.PackageByID(uid % 100000); loaded { return &Info{ UserId: int32(uid), PackageName: packageName,