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

Commit ffd88ca9 authored by Fabien Sanglard's avatar Fabien Sanglard
Browse files

Unify WIFI_PERSISTENT_CONFIG_PROPERTY constant

Test: NA
Bug: NA
Change-Id: I45fa007bc0f51f1394f5a36dc45ba1b7288a3767
parent d891e96b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -156,8 +156,6 @@ public class AdbDebuggingManager {
    @Nullable private final File mUserKeyFile;
    @Nullable private final File mTempKeysFile;

    private static final String WIFI_PERSISTENT_CONFIG_PROPERTY =
            "persist.adb.tls_server.enable";
    private static final String WIFI_PERSISTENT_GUID =
            "persist.adb.wifi.guid";
    private static final int PAIRING_CODE_LENGTH = 6;
@@ -1093,7 +1091,7 @@ public class AdbDebuggingManager {
                    intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
                    mContext.registerReceiver(mBroadcastReceiver, intentFilter);

                    SystemProperties.set(WIFI_PERSISTENT_CONFIG_PROPERTY, "1");
                    SystemProperties.set(AdbService.WIFI_PERSISTENT_CONFIG_PROPERTY, "1");
                    mConnectionPortPoller =
                            new AdbDebuggingManager.AdbConnectionPortPoller(mPortListener);
                    mConnectionPortPoller.start();
@@ -1143,7 +1141,7 @@ public class AdbDebuggingManager {
                    intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
                    mContext.registerReceiver(mBroadcastReceiver, intentFilter);

                    SystemProperties.set(WIFI_PERSISTENT_CONFIG_PROPERTY, "1");
                    SystemProperties.set(AdbService.WIFI_PERSISTENT_CONFIG_PROPERTY, "1");
                    mConnectionPortPoller =
                            new AdbDebuggingManager.AdbConnectionPortPoller(mPortListener);
                    mConnectionPortPoller.start();
+1 −1
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ public class AdbService extends IAdbManager.Stub {
     * May also contain vendor-specific default functions for testing purposes.
     */
    private static final String USB_PERSISTENT_CONFIG_PROPERTY = "persist.sys.usb.config";
    private static final String WIFI_PERSISTENT_CONFIG_PROPERTY = "persist.adb.tls_server.enable";
    static final String WIFI_PERSISTENT_CONFIG_PROPERTY = "persist.adb.tls_server.enable";

    private final Context mContext;
    private final ContentResolver mContentResolver;