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

Commit ffa8030c authored by Dave Mankoff's avatar Dave Mankoff Committed by Automerger Merge Worker
Browse files

Add Local FeatureFlags client to system servier. am: 7c3cae6b

parents a658fb22 7c3cae6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -110,7 +110,8 @@ public class FeatureFlags {
            try {
                mIFeatureFlags.registerCallback(mIFeatureFlagsCallback);
            } catch (RemoteException e) {
                // Won't happen in tests.
                // Shouldn't happen with things passed into tests.
                Log.e(TAG, "Could not register callbacks!", e);
            }
        }
    }
+4 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
package com.android.server.flags;

import android.content.Context;
import android.flags.FeatureFlags;
import android.util.Slog;

import com.android.server.SystemService;
@@ -52,8 +53,10 @@ public class FeatureFlagsService extends SystemService {
    @Override
    public void onStart() {
        Slog.d(TAG, "Started Feature Flag Service");
        FeatureFlagsBinder service = new FeatureFlagsBinder(mFlagStore, mShellCommand);
        publishBinderService(
                Context.FEATURE_FLAGS_SERVICE, new FeatureFlagsBinder(mFlagStore, mShellCommand));
                Context.FEATURE_FLAGS_SERVICE, service);
        publishLocalService(FeatureFlags.class, new FeatureFlags(service));
    }

}