Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfb995d6 authored by Song Pan's avatar Song Pan Committed by Automerger Merge Worker
Browse files

Expose some level of logging to aid debugging. am: bc86158b am: 66fbe163

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818182

Change-Id: I2a2862ebe04834ea2cf4437bad97dad511de685b
parents 3ed72f5a 66fbe163
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
@@ -205,8 +205,13 @@ public class AppIntegrityManagerServiceImpl extends IAppIntegrityManager.Stub {
                    }

                    if (DEBUG_INTEGRITY_COMPONENT) {
                        Slog.i(TAG, String.format("Successfully pushed rule set: %s", version));
                        Slog.i(
                                TAG,
                                String.format(
                                        "Successfully pushed rule set to version '%s' from '%s'",
                                        version, ruleProvider));
                    }

                    FrameworkStatsLog.write(
                            FrameworkStatsLog.INTEGRITY_RULES_PUSHED,
                            success,
@@ -324,13 +329,12 @@ public class AppIntegrityManagerServiceImpl extends IAppIntegrityManager.Stub {
                                + getAllowedInstallers(packageInfo));
            }
            IntegrityCheckResult result = mEvaluationEngine.evaluate(appInstallMetadata);
            if (DEBUG_INTEGRITY_COMPONENT) {
            if (!result.getMatchedRules().isEmpty() || DEBUG_INTEGRITY_COMPONENT) {
                Slog.i(
                        TAG,
                        "Integrity check result: "
                                + result.getEffect()
                                + " due to "
                                + result.getMatchedRules());
                        String.format(
                                "Integrity check of %s result: %s due to %s",
                                packageName, result.getEffect(), result.getMatchedRules()));
            }

            FrameworkStatsLog.write(
@@ -673,7 +677,9 @@ public class AppIntegrityManagerServiceImpl extends IAppIntegrityManager.Stub {
        // Obtain the system apps that are whitelisted in config_integrityRuleProviderPackages.
        List<String> allowedRuleProviders = getAllowedRuleProviderSystemApps();
        if (DEBUG_INTEGRITY_COMPONENT) {
            Slog.i(TAG, String.format(
            Slog.i(
                    TAG,
                    String.format(
                            "Rule provider system app list contains: %s", allowedRuleProviders));
        }