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

Commit e8ca2b73 authored by Roshan Pius's avatar Roshan Pius
Browse files

WifiService: Enforce permission for enableVerboseLogging

Using enforce instead of silently ignoring calls with insufficient
permissions to let apps know that the operation failed.

Bug: 67008628
Test: Toggle verbose logging successfully from Settings.
Change-Id: I322e870212a7dbbd2e864635b1d0ccb3df613555
parent e1e0785c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3430,6 +3430,7 @@ public class WifiManager {
     * Set wifi verbose log. Called from developer settings.
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS)
    public void enableVerboseLogging (int verbose) {
        try {
            mService.enableVerboseLogging(verbose);