[core] Remove incorrect flags (#625)

This commit is contained in:
LoveSy 2021-05-19 04:34:09 +08:00 committed by GitHub
parent 61bee4743a
commit ee57426443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ import static org.lsposed.lspd.service.ServiceManager.TAG;
import android.content.ContentValues; import android.content.ContentValues;
import android.content.pm.PackageInfo; import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.database.Cursor; import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement; import android.database.sqlite.SQLiteStatement;
@ -352,7 +351,7 @@ public class ConfigManager {
int userId = cursor.getInt(userIdIdx); int userId = cursor.getInt(userIdIdx);
var pkgInfo = modules.computeIfAbsent(packageName, m -> { var pkgInfo = modules.computeIfAbsent(packageName, m -> {
try { try {
return PackageService.getPackageInfoFromAllUsers(m, PackageManager.MATCH_DISABLED_COMPONENTS | PackageManager.MATCH_UNINSTALLED_PACKAGES); return PackageService.getPackageInfoFromAllUsers(m, 0);
} catch (Throwable e) { } catch (Throwable e) {
Log.e(TAG, Log.getStackTraceString(e)); Log.e(TAG, Log.getStackTraceString(e));
return Collections.emptyMap(); return Collections.emptyMap();