fix:【光环助手】5.27验收问题汇总(2) https://jira.shanqu.cc/browse/CWZS-71

This commit is contained in:
叶子维
2023-06-06 16:39:38 +08:00
parent 97bafee09e
commit 4045e42a7b
2 changed files with 7 additions and 5 deletions

View File

@ -563,11 +563,11 @@ public class PackageUtils {
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
context.getPackageManager().getPackageInfo(
VirtualAppManager.AIDL_SERVER_PACKAGE_NAME,
packageName,
PackageManager.PackageInfoFlags.of(0)
);
} else {
context.getPackageManager().getPackageInfo(VirtualAppManager.AIDL_SERVER_PACKAGE_NAME, 0);
context.getPackageManager().getPackageInfo(packageName, 0);
}
return true;
} catch (Exception e) {