Revert^2 "Add Local FeatureFlags client to system servier."

c44e351a78

Bug: 279054964
Change-Id: Ie2db80c85948d879c6330dd1f2463a2e8659cb6b
This commit is contained in:
Dave Mankoff
2023-07-12 19:32:11 +00:00
parent 7f18f9dc15
commit 6a9b4540f3
2 changed files with 6 additions and 2 deletions

View File

@@ -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);
}
}
}

View File

@@ -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));
}
}