From 10c379a8f288a7a006ec0909f7a2439759ddd6a2 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Wed, 7 Apr 2021 19:40:31 +0900 Subject: [PATCH] Replace IS_DEBUGGABLE with isDebuggable module API Introduce a Build.isDebuggable() getter instead of the IS_DEBUGGABLE static member. Also make it module API as APK modules now have access to module APIs in S, but also TestApi so it can be tested. Test: m Fixes: 182345786 Change-Id: I25d0848aee758792bbaba8ab73b5dd997a7250b3 --- services/core/java/com/android/server/ConnectivityService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 5aa3e5be2a..30667177ef 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -7677,7 +7677,7 @@ public class ConnectivityService extends IConnectivityManager.Stub } void addRequestReassignment(@NonNull final RequestReassignment reassignment) { - if (Build.IS_DEBUGGABLE) { + if (Build.isDebuggable()) { // The code is never supposed to add two reassignments of the same request. Make // sure this stays true, but without imposing this expensive check on all // reassignments on all user devices.