Revert^2 "Add Local FeatureFlags client to system servier."
c44e351a78
Bug: 279054964
Change-Id: Ie2db80c85948d879c6330dd1f2463a2e8659cb6b
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user