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

Commit 6cac6fdb authored by tyiu's avatar tyiu
Browse files

Option for disabling ODP

Added system property for disabling ODP service. Upon disabling, the
corresponding system registries will be null.

Bug: 322249125
Test: local build + confirm ODP did not start
Change-Id: I42c5a34a6ab731865a91741921cb69b5d2fbe6d5
parent 5a78383d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
package: "com.android.server.flags"

flag {
     namespace: "wear_frameworks"
     name: "enable_odp_feature_guard"
     description: "Enable guard based on system feature to prevent OnDevicePersonalization service from starting on form factors."
     bug: "322249125"
}
 No newline at end of file
+6 −3
Original line number Diff line number Diff line
@@ -2781,9 +2781,12 @@ public final class SystemServer implements Dumpable {
        t.traceEnd();

        // OnDevicePersonalizationSystemService
        if (!com.android.server.flags.Flags.enableOdpFeatureGuard()
                || SystemProperties.getBoolean("ro.system_settings.service.odp_enabled", true)) {
            t.traceBegin("StartOnDevicePersonalizationSystemService");
            mSystemServiceManager.startService(ON_DEVICE_PERSONALIZATION_SYSTEM_SERVICE_CLASS);
            t.traceEnd();
        }

        // Profiling
        if (android.server.Flags.telemetryApisService()) {