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

Commit 419d7a7e authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Replace user with debuggable check in ConnectivityService

IS_USER is a hidden symbol, whereas IS_DEBUGGABLE is part
of the module API.
The check is generally equivalent, as non-user builds are eng or
userdebug, which are debuggable.

Bug: 170598012
Change-Id: I7d09939652844eb2e3a6f0200b1ba50691a147da
Test: atest FrameworksNetTests
parent 69508ee6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7233,7 +7233,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
        }

        void addRequestReassignment(@NonNull final RequestReassignment reassignment) {
            if (!Build.IS_USER) {
            if (Build.IS_DEBUGGABLE) {
                // 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.