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

Commit e83ff4d8 authored by Hyein Yu's avatar Hyein Yu
Browse files

Hide unintentionally exposed TelephonyFrameworkInitializer apis

Bug: 418868405
Bug: 412560144
Test: presubmit
Flag: EXEMPT update hide
Change-Id: I653d46c6e13ad9aaae98e66906010ce5415fc32b
parent ac9b9a0c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -638,8 +638,6 @@ package android.telephony {

  @FlaggedApi("com.android.internal.telephony.flags.enable_phone_number_parsing_api") public class TelephonyFrameworkInitializer {
    method @Nullable public static android.os.TelephonyServiceManager getTelephonyServiceManager();
    method public static void registerServiceWrappers();
    method public static void setTelephonyServiceManager(@NonNull android.os.TelephonyServiceManager);
  }

  public class TelephonyManager {
+4 −0
Original line number Diff line number Diff line
@@ -70,6 +70,8 @@ public class TelephonyFrameworkInitializer {
     *
     * @param telephonyServiceManager instance of {@link TelephonyServiceManager} that allows
     * the telephony mainline module to register/obtain telephony binder services.
     *
     * @hide
     */
    public static void setTelephonyServiceManager(
            @NonNull TelephonyServiceManager telephonyServiceManager) {
@@ -101,6 +103,8 @@ public class TelephonyFrameworkInitializer {
     *
     * @throws IllegalStateException if this is called from anywhere besides
     * {@link SystemServiceRegistry}
     *
     * @hide
     */
    public static void registerServiceWrappers() {
        SystemServiceRegistry.registerContextAwareService(