Keep a removed API to not break GCore presubmit
Change-Id: Ica38b7aad2a5a8792917d0da1d497f373b118077
diff --git a/api/current.txt b/api/current.txt
index cfcdb7d..c4ecc2a 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -36986,6 +36986,7 @@
public abstract class AutofillService extends android.app.Service {
ctor public AutofillService();
+ method public final deprecated void disableSelf();
method public final android.os.IBinder onBind(android.content.Intent);
method public void onConnected();
method public void onDisconnected();
diff --git a/api/system-current.txt b/api/system-current.txt
index df8d49a..caf43d0 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -40082,6 +40082,7 @@
public abstract class AutofillService extends android.app.Service {
ctor public AutofillService();
+ method public final deprecated void disableSelf();
method public final android.os.IBinder onBind(android.content.Intent);
method public void onConnected();
method public void onDisconnected();
diff --git a/api/test-current.txt b/api/test-current.txt
index a8060d8..e04c69e 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -37144,6 +37144,7 @@
public abstract class AutofillService extends android.app.Service {
ctor public AutofillService();
+ method public final deprecated void disableSelf();
method public final android.os.IBinder onBind(android.content.Intent);
method public void onConnected();
method public void onDisconnected();
diff --git a/core/java/android/service/autofill/AutofillService.java b/core/java/android/service/autofill/AutofillService.java
index d86dd5b..a4d3fb2 100644
--- a/core/java/android/service/autofill/AutofillService.java
+++ b/core/java/android/service/autofill/AutofillService.java
@@ -242,7 +242,7 @@
public void onDisconnected() {
}
- /** @hide */
+ @Deprecated
public final void disableSelf() {
// TODO(b/33197203): Remove when GCore has migrated off this API
getSystemService(AutofillManager.class).disableOwnedAutofillServices();