Fix RcsManager and add empty RcsThread class
This change fixes the RcsManager setup and adds an empty RcsThread class. Please see go/rcs-in-telephony-doc for details. Test: Builds fine Bug: 109759350 Change-Id: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
This commit is contained in:
@@ -152,6 +152,7 @@ import android.telephony.SubscriptionManager;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.telephony.euicc.EuiccCardManager;
|
||||
import android.telephony.euicc.EuiccManager;
|
||||
import android.telephony.rcs.RcsManager;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Log;
|
||||
import android.view.ContextThemeWrapper;
|
||||
@@ -546,6 +547,14 @@ final class SystemServiceRegistry {
|
||||
return new SubscriptionManager(ctx.getOuterContext());
|
||||
}});
|
||||
|
||||
registerService(Context.TELEPHONY_RCS_SERVICE, RcsManager.class,
|
||||
new CachedServiceFetcher<RcsManager>() {
|
||||
@Override
|
||||
public RcsManager createService(ContextImpl ctx) {
|
||||
return new RcsManager();
|
||||
}
|
||||
});
|
||||
|
||||
registerService(Context.CARRIER_CONFIG_SERVICE, CarrierConfigManager.class,
|
||||
new CachedServiceFetcher<CarrierConfigManager>() {
|
||||
@Override
|
||||
|
||||
@@ -4366,6 +4366,13 @@ public abstract class Context {
|
||||
*/
|
||||
public static final String APP_BINDING_SERVICE = "app_binding";
|
||||
|
||||
/**
|
||||
* Use with {@link #getSystemService(String)} to retrieve an
|
||||
* {@link android.telephony.rcs.RcsManager}.
|
||||
* @hide
|
||||
*/
|
||||
public static final String TELEPHONY_RCS_SERVICE = "ircs";
|
||||
|
||||
/**
|
||||
* Determine whether the given permission is allowed for a particular
|
||||
* process and user ID running in the system.
|
||||
|
||||
Reference in New Issue
Block a user