正在查看: Kaspi.kz v5.85.1 应用的 NetworkMonitorAutoDetect.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kaspi.kz v5.85.1 应用的 NetworkMonitorAutoDetect.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package org.webrtc;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.net.ConnectivityManager;
import android.net.LinkAddress;
import android.net.LinkProperties;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.NetworkInfo;
import android.net.NetworkRequest;
import android.net.wifi.WifiInfo;
import android.net.wifi.p2p.WifiP2pGroup;
import android.net.wifi.p2p.WifiP2pManager;
import android.os.Build;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.annotation.Nullable;
import java.lang.reflect.Method;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import o.C0703ceK;
import o.COMPACT_WITH_MODIFIERSlambda1;
import o.ClassifierNamePolicy;
import o.DEBUG_TEXTlambda9;
import org.mvel2.DataTypes;
import org.webrtc.NetworkChangeDetector;
import org.webrtc.NetworkMonitorAutoDetect;
public class NetworkMonitorAutoDetect extends BroadcastReceiver implements NetworkChangeDetector {
private static int $10 = 0;
private static int $11 = 1;
private static final long INVALID_NET_ID = -1;
private static final String TAG = "NetworkMonitorAutoDetect";
private static boolean includeWifiDirect;
private final ConnectivityManager.NetworkCallback allNetworkCallback;
final Set<Network> availableNetworks;
private NetworkChangeDetector.ConnectionType connectionType;
private ConnectivityManagerDelegate connectivityManagerDelegate;
private final Context context;
private final IntentFilter intentFilter;
private boolean isRegistered;
private final ConnectivityManager.NetworkCallback mobileNetworkCallback;
private final NetworkChangeDetector.Observer observer;
private WifiDirectManagerDelegate wifiDirectManagerDelegate;
private WifiManagerDelegate wifiManagerDelegate;
private String wifiSSID;
private static final byte[] $$d = {121, -91, -123, -2, 65, -69, -1, 2, 9, -5, 7, 36, -44, 1, -8, 17, -13, -2, 15, -13, 14, -15, 46, -35, 4, -7, 8, 14, -11, -11, -9, 16, -12, 2, 63, -57, -8, 0, 8, -5, 7, 55, -51, -13, 10, -14, 3, 6, 5, 54, -57, -6, -6, 69, -59, -5, -6, 15, -13, 4, 13, -11, 62, -63, 1, 1, 2, -11, 21, -23, 13, -10, 10, -6, 1, 15, -7, 5, -2, -2, 55, -76, 0, 25, -23, 14, -15, 40, -21, -1, -3, -7, 65, -69, 30, 14, -15, 37, -33, -4, 11, -6, 1, -5, 65, -64, 13, -19, 11, -13, 17, 33, -33, -7, 7, -15, 15, 18, -22, -5, 3, 71, -79, 14, -15, 47, -45, 0, 3, -3, 65, -57, 2, -15, 49, -41, -3, 1, 9, 4, -1, -10, 7, -12, 2, 63, -57, -8, 0, 8, -5, 7, 55, -51, -13, 10, -14, 3, 6, 5, 54, -57, -6, -6, 69, -59, -5, -6, 15, -13, 4, 13, -11, 62, -63, 1, 1, 2, -11, 21, -4, -12, 2, 0, -2, 1, 64, -76, 0, 23, -2, 65, -57, 2, -15, 32, -37, 9, 11, 21, -17, -17, 17, -12, 8, -15, 15, -13, 47, -44, -6, 7, -6, 65, -57, 2, -15, 49, -37, -1, -3, 8, 35, -51, 80, -79, 14, -15, 47, -45, 0, 3, -3, 14, -15, 47, -45, 0, 3, -3, 65, -21, -37, 7, -17, 47, -5, 21, 15, -79, 14, -15, 46, -35, 4, -7, 8, 14, -11, -11, -9, 16, 65, -53, -12, 2, -3, -5, 1, 15, 24, -20, -23, 37, -33, 19, -2, -8, 42, -45, 10, 24, -35, 12, 2, -11, 65, -69, 14, -15, 47, -39, -7, 14, 28, -29, 65, -53, -15, 13, 4, -19, 15, 32, -41, -6, 2, 17, -13, 11, -2, 14, -14, 3, 28, -44, 17, -6, -6, 8, -9, -6, 65, -53, 2, -13, 28, -19, -14, 4, 3, -10, 17, 17, -17, -19, 4, 48, -37, -9, 13, 2, -17, 11, -6, 1, 74, -46, -19, -8, -2, -5, 15, 36, -34, -17, 11, -6, 1, 43, -44, 2, -3, 15, -19, 36, -17, -17, 15, -2, -7, 3, -17, 21, -13, 65, -51, 17, 13, 65, -21, -41, 7, 4, -17, 44, -44, 17, -12, 8, -14, -3, 11, 57, -73, 18, 3, -16, -2, 17, 53, -72, 7, 6, 6, -2, 0, -9, 7, -2, -5, 9, 55, -41, -14, 3, 16, -34, 17, 34, -52, 17, -5, -6, 29, -19, 2, -12, -3, 14, 64, -29, -52, 17, -5, -6, 28, -14, -12, -3, 4, 7, -14, 14, -15, 50, -31, -2, -8, 4, -11, 3, -6, 7, 10};
private static final int $$e = 23;
private static final byte[] $$a = {22, 24, 61, 57, 12, -17, 48, -33, -4, -10, 2, -13, 1, -8, 5, 8, 12, -17, 45, -47, -2, 1, -5, 12, -17, 35, -35, -6, 9, -8, -1, -7, 12, -17, 44, -37, 2, -9, 6, 12, -13, -13, -11, 14, 12, -17, 38, -23, -3, -5, -9, 3, 7, -13, 13};
private static final int $$b = 34;
private static int setFieldValue = 0;
private static int setOptions = 1;
private static char[] setBackground = {45906, 45897, 45846, 45888, 45899, 45929, 45847, 45895, 45894, 45848, 45905, 45922, 45902, 45898, 45844, 45903, 45842, 45939, 45845, 45896, 45901, 45890, 45839, 45891, 45912, 45893, 45849, 45907, 45843, 45900, 45909, 45911, 45892, 45840, 45841, 45938};
private static char setError = 34493;
private static void b(short r7, byte r8, short r9, java.lang.Object[] r10) {
throw new UnsupportedOperationException("Method not decompiled: org.webrtc.NetworkMonitorAutoDetect.b(short, byte, short, java.lang.Object[]):void");
}
private static void c(byte r6, int r7, short r8, java.lang.Object[] r9) {
throw new UnsupportedOperationException("Method not decompiled: org.webrtc.NetworkMonitorAutoDetect.c(byte, int, short, java.lang.Object[]):void");
}
static class NetworkState {
private final boolean connected;
private final int subtype;
private final int type;
private final int underlyingNetworkSubtypeForVpn;
private final int underlyingNetworkTypeForVpn;
public NetworkState(boolean z, int i, int i2, int i3, int i4) {
this.connected = z;
this.type = i;
this.subtype = i2;
this.underlyingNetworkTypeForVpn = i3;
this.underlyingNetworkSubtypeForVpn = i4;
}
public boolean isConnected() {
return this.connected;
}
public int getNetworkType() {
return this.type;
}
public int getNetworkSubType() {
return this.subtype;
}
public int getUnderlyingNetworkTypeForVpn() {
return this.underlyingNetworkTypeForVpn;
}
public int getUnderlyingNetworkSubtypeForVpn() {
return this.underlyingNetworkSubtypeForVpn;
}
}
class SimpleNetworkCallback extends ConnectivityManager.NetworkCallback {
final Set<Network> availableNetworks;
SimpleNetworkCallback(Set<Network> set) {
this.availableNetworks = set;
}
@Override
public void onAvailable(Network network) {
Logging.d(NetworkMonitorAutoDetect.TAG, "Network handle: " + NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network) + " becomes available: " + network.toString());
synchronized (this.availableNetworks) {
this.availableNetworks.add(network);
}
onNetworkChanged(network);
}
@Override
public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) {
Logging.d(NetworkMonitorAutoDetect.TAG, "handle: " + NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network) + " capabilities changed: " + networkCapabilities.toString());
onNetworkChanged(network);
}
@Override
public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) {
Logging.d(NetworkMonitorAutoDetect.TAG, "handle: " + NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network) + " link properties changed");
onNetworkChanged(network);
}
@Override
public void onLosing(Network network, int i) {
Logging.d(NetworkMonitorAutoDetect.TAG, "Network handle: " + NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network) + ", " + network.toString() + " is about to lose in " + i + "ms");
}
@Override
public void onLost(Network network) {
Logging.d(NetworkMonitorAutoDetect.TAG, "Network handle: " + NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network) + ", " + network.toString() + " is disconnected");
synchronized (this.availableNetworks) {
this.availableNetworks.remove(network);
}
NetworkMonitorAutoDetect.m112$$Nest$fgetobserver(NetworkMonitorAutoDetect.this).onNetworkDisconnect(NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network));
}
private void onNetworkChanged(Network network) {
NetworkChangeDetector.NetworkInformation networkToInfo = NetworkMonitorAutoDetect.m111$$Nest$fgetconnectivityManagerDelegate(NetworkMonitorAutoDetect.this).networkToInfo(network);
if (networkToInfo != null) {
NetworkMonitorAutoDetect.m112$$Nest$fgetobserver(NetworkMonitorAutoDetect.this).onNetworkConnect(networkToInfo);
}
}
}
static class WifiDirectManagerDelegate extends BroadcastReceiver {
private static final int WIFI_P2P_NETWORK_HANDLE = 0;
private final Context context;
private final NetworkChangeDetector.Observer observer;
private NetworkChangeDetector.NetworkInformation wifiP2pNetworkInfo;
private static final byte[] $$c = {120, 68, 45, -61};
private static final int $$f = 11;
private static int $10 = 0;
private static int $11 = 1;
private static final byte[] $$d = {104, -108, 33, 122, -65, 23, 34, 5, -26, 19, 9, -10, 1, 13, -13, 13, -64, -14, 79, -14, 15, -47, 45, 0, -3, 3, -14, 15, -47, 45, 0, -3, 3, -65, 57, 5, -25, 33, -15, 9, -11, 6, 3, -31, 20, 18, -8, -24, 18, 11, -15, 17, -17, 19, -15, -65, 79, -14, 15, -50, 31, 2, 8, -4, 11, -3, 6, -7, -10, -14, 15, -37, 33, 4, -11, 6, -1, 5, -65, 57, -2, 15, -49, 37, 1, 3, -8, -35, 51, -80, 79, -14, 15, -47, 45, 0, -3, 3, -65, 69, -30, 12, -2, -63, 69, -6, -12, 17, 2, -15, 9, -7, 2, 5, -9, 14, -69, 53, 12, -2, 0, 2, -1, -64, 35, 36, -20, 3, 14, -17, 13, -7, 5, -7, -65, 57, -2, 15, -50, 51, -12, 3, 8, -43, 37, 5, -45, 35, 3, -7, -23, 19, 12, -8, -65, 53, -2, 13, -28, 19, 14, -4, -3, 10, -17, -17, 17, 19, -4, -48, 37, 9, -13, -2, 17, -11, 6, -1, -74, 46, 19, 8, 2, 5, -15, -36, 34, 17, -11, 6, -1, -43, 44, -2, 3, -15, 19, -36, 17, 17, -15, 2, 7, -3, 17, -21, 13, -14, 15, -40, 21, 1, 3, 7, -65, 40, 19, -5, 1, 10, -44, 44, -1, -8, 3, -2, -67, 79, -14, 15, -46, 35, -4, 7, -8, -14, 11, 11, 9, -16, -65, 57, -2, 15, -32, 37, -9, -11, -21, 17, 17, -17, 12, -8, 15, -15, 13, -47, 44, 6, -7, 6, -14, 15, -46, 35, -4, 7, -8, -14, 11, 11, 9, -16, -65, 39, 26, -14, 15, -50, 31, 2, 8, -4, 11, -3, 6, -7, -10, -65, 57, -2, 15, -49, 41, 3, -1, -9, -4, 1, 10, -7, -65, 21, 41, -11, 18, 0, -47, 33, 14, -16, 15, -9, 7, 4, -5, 3, -44, 27, 2, 17, -5, 3, 7, -65, 51, 21, -19, -63, 79, -14, 15, -47, 45, 0, -3, 3, -65, 52, -24, 42, -80, 79, -14, 15, -46, 35, -4, 7, -8, -14, 11, 11, 9, -16, 12, -2, -63, 57, 8, 0, -8, 5, -7, -55, 51, 13, -10, 14, -3, -6, -5, -54, 57, 6, 6, -69, 59, 5, 6, -15, 13, -4, -13, 11, -62, 63, -1, -1, -2, 11, -21, 23, -13, 10, -10, 6, -1, -15, 7, -5, 2, 2, -55, 76, 0, -25, 23, -65, 51, 2, 0, 2, 14, 0, -4, 3, -38, 21, 25, -1, -47, 23, 21, -21, -30, 41, -11, 18, 0, -38, 24, 8, -11, 3, 13, -31, 16, 12, 1, -11, 7, -11, 12, -11, 2, -3, -45, -16, 79, -14, 15, -40, 21, 1, 3, 7, -72, 16, -65, 51, 25, -44, -42, 79, -14, 15, -47, 45, 0, -3, 3};
private static final int $$e = 47;
private static final byte[] $$a = {69, 0, -57, -62, 12, -17, 35, -35, -6, 9, -8, -1, -7, 12, -17, 44, -37, 2, -9, 6, 12, -13, -13, -11, 14, 12, -17, 48, -33, -4, -10, 2, -13, 1, -8, 5, 8, 12, -17, 38, -23, -3, -5, -9, 12, -17, 45, -47, -2, 1, -5, 3, 7, -13, 13};
private static final int $$b = 89;
private static int setError = 0;
private static int setFieldValue = 1;
private static int[] setLabel = {727888824, 264248698, -276844701, 1455408400, -606429605, -998691756, 1022387963, -59619716, -1109578489, -763605607, -690233800, 1849013584, -1164741766, 2058458391, 1781271373, -1676531758, 798472233, 989141415};
private static java.lang.String $$g(int r6, short r7, short r8) {
throw new UnsupportedOperationException("Method not decompiled: org.webrtc.NetworkMonitorAutoDetect.WifiDirectManagerDelegate.$$g(int, short, short):java.lang.String");
}
private static void b(short r6, short r7, int r8, java.lang.Object[] r9) {
throw new UnsupportedOperationException("Method not decompiled: org.webrtc.NetworkMonitorAutoDetect.WifiDirectManagerDelegate.b(short, short, int, java.lang.Object[]):void");
}
private static void c(short s, short s2, int i, Object[] objArr) {
int i2 = 115 - (s * 4);
byte[] bArr = $$d;
int i3 = 459 - s2;
byte[] bArr2 = new byte[54 - i];
int i4 = 53 - i;
int i5 = -1;
if (bArr == null) {
i2 = i4 + i3;
i3 = i3;
i5 = -1;
}
while (true) {
int i6 = i5 + 1;
bArr2[i6] = (byte) i2;
int i7 = i3 + 1;
if (i6 == i4) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i2 += bArr[i7];
i3 = i7;
i5 = i6;
}
}
}
private static void a(int i, int[] iArr, Object[] objArr) {
int i2;
int i3 = 2 % 2;
DEBUG_TEXTlambda9 dEBUG_TEXTlambda9 = new DEBUG_TEXTlambda9();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr2 = setLabel;
int i4 = -1;
int i5 = 1217413561;
int i6 = 1;
int i7 = 0;
if (iArr2 != null) {
int length = iArr2.length;
int[] iArr3 = new int[length];
int i8 = 0;
while (i8 < length) {
try {
Object[] objArr2 = {Integer.valueOf(iArr2[i8])};
Object background = ClassifierNamePolicy.setBackground(i5);
if (background == null) {
byte b = (byte) i4;
byte b2 = (byte) (b + 1);
background = ClassifierNamePolicy.setBackground(((byte) KeyEvent.getModifierMetaStateMask()) + 26, (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 2649, (char) (ViewConfiguration.getWindowTouchSlop() >> 8), -2132537533, false, $$g(b, b2, b2), new Class[]{Integer.TYPE});
}
iArr3[i8] = ((Integer) ((Method) background).invoke(null, objArr2)).intValue();
i8++;
i4 = -1;
i5 = 1217413561;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i9 = $11 + 19;
$10 = i9 % 128;
int i10 = i9 % 2;
iArr2 = iArr3;
}
int length2 = iArr2.length;
int[] iArr4 = new int[length2];
int[] iArr5 = setLabel;
int i11 = 16;
if (iArr5 != null) {
int length3 = iArr5.length;
int[] iArr6 = new int[length3];
int i12 = $11 + 3;
$10 = i12 % 128;
int i13 = i12 % 2;
int i14 = 0;
while (i14 < length3) {
int i15 = $10 + DataTypes.W_BYTE;
$11 = i15 % 128;
if (i15 % 2 == 0) {
Object[] objArr3 = new Object[i6];
objArr3[i7] = Integer.valueOf(iArr5[i14]);
Object background2 = ClassifierNamePolicy.setBackground(1217413561);
if (background2 == null) {
int offsetBefore = TextUtils.getOffsetBefore("", i7) + 25;
int windowTouchSlop = 2648 - (ViewConfiguration.getWindowTouchSlop() >> 8);
char jumpTapTimeout = (char) (ViewConfiguration.getJumpTapTimeout() >> i11);
byte b3 = (byte) (-1);
byte b4 = (byte) (b3 + 1);
background2 = ClassifierNamePolicy.setBackground(offsetBefore, windowTouchSlop, jumpTapTimeout, -2132537533, false, $$g(b3, b4, b4), new Class[]{Integer.TYPE});
}
iArr6[i14] = ((Integer) ((Method) background2).invoke(null, objArr3)).intValue();
} else {
Object[] objArr4 = {Integer.valueOf(iArr5[i14])};
Object background3 = ClassifierNamePolicy.setBackground(1217413561);
if (background3 == null) {
byte b5 = (byte) (-1);
byte b6 = (byte) (b5 + 1);
background3 = ClassifierNamePolicy.setBackground(TextUtils.indexOf("", "") + 25, 2648 - TextUtils.indexOf("", "", 0), (char) TextUtils.getCapsMode("", 0, 0), -2132537533, false, $$g(b5, b6, b6), new Class[]{Integer.TYPE});
}
iArr6[i14] = ((Integer) ((Method) background3).invoke(null, objArr4)).intValue();
i14++;
}
i11 = 16;
i6 = 1;
i7 = 0;
}
i2 = i7;
iArr5 = iArr6;
} else {
i2 = 0;
}
System.arraycopy(iArr5, i2, iArr4, i2, length2);
dEBUG_TEXTlambda9.setError = i2;
while (dEBUG_TEXTlambda9.setError < iArr.length) {
int i16 = $11 + 33;
$10 = i16 % 128;
int i17 = i16 % 2;
cArr[0] = (char) (iArr[dEBUG_TEXTlambda9.setError] >> 16);
cArr[1] = (char) iArr[dEBUG_TEXTlambda9.setError];
cArr[2] = (char) (iArr[dEBUG_TEXTlambda9.setError + 1] >> 16);
cArr[3] = (char) iArr[dEBUG_TEXTlambda9.setError + 1];
dEBUG_TEXTlambda9.setFieldValue = (cArr[0] << 16) + cArr[1];
dEBUG_TEXTlambda9.setBackground = (cArr[2] << 16) + cArr[3];
DEBUG_TEXTlambda9.setOptions(iArr4);
int i18 = 0;
for (int i19 = 16; i18 < i19; i19 = 16) {
dEBUG_TEXTlambda9.setFieldValue ^= iArr4[i18];
try {
Object[] objArr5 = {dEBUG_TEXTlambda9, Integer.valueOf(DEBUG_TEXTlambda9.setError(dEBUG_TEXTlambda9.setFieldValue)), dEBUG_TEXTlambda9, dEBUG_TEXTlambda9};
Object background4 = ClassifierNamePolicy.setBackground(-561149403);
if (background4 == null) {
background4 = ClassifierNamePolicy.setBackground(15 - View.resolveSizeAndState(0, 0, 0), 6256 - Color.argb(0, 0, 0, 0), (char) (22575 - KeyEvent.normalizeMetaState(0)), 385467615, false, "p", new Class[]{Object.class, Integer.TYPE, Object.class, Object.class});
}
int intValue = ((Integer) ((Method) background4).invoke(null, objArr5)).intValue();
dEBUG_TEXTlambda9.setFieldValue = dEBUG_TEXTlambda9.setBackground;
dEBUG_TEXTlambda9.setBackground = intValue;
i18++;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
int i20 = dEBUG_TEXTlambda9.setFieldValue;
dEBUG_TEXTlambda9.setFieldValue = dEBUG_TEXTlambda9.setBackground;
dEBUG_TEXTlambda9.setBackground = i20;
dEBUG_TEXTlambda9.setBackground ^= iArr4[16];
dEBUG_TEXTlambda9.setFieldValue ^= iArr4[17];
int i21 = dEBUG_TEXTlambda9.setFieldValue;
int i22 = dEBUG_TEXTlambda9.setBackground;
cArr[0] = (char) (dEBUG_TEXTlambda9.setFieldValue >>> 16);
cArr[1] = (char) dEBUG_TEXTlambda9.setFieldValue;
cArr[2] = (char) (dEBUG_TEXTlambda9.setBackground >>> 16);
cArr[3] = (char) dEBUG_TEXTlambda9.setBackground;
DEBUG_TEXTlambda9.setOptions(iArr4);
cArr2[dEBUG_TEXTlambda9.setError * 2] = cArr[0];
cArr2[(dEBUG_TEXTlambda9.setError * 2) + 1] = cArr[1];
cArr2[(dEBUG_TEXTlambda9.setError * 2) + 2] = cArr[2];
cArr2[(dEBUG_TEXTlambda9.setError * 2) + 3] = cArr[3];
Object[] objArr6 = {dEBUG_TEXTlambda9, dEBUG_TEXTlambda9};
Object background5 = ClassifierNamePolicy.setBackground(-1327832954);
if (background5 == null) {
background5 = ClassifierNamePolicy.setBackground(13 - Gravity.getAbsoluteGravity(0, 0), 6010 - Color.alpha(0), (char) KeyEvent.getDeadChar(0, 0), 2024713852, false, "q", new Class[]{Object.class, Object.class});
}
((Method) background5).invoke(null, objArr6);
int i23 = $10 + 55;
$11 = i23 % 128;
int i24 = i23 % 2;
}
objArr[0] = new String(cArr2, 0, i);
}
WifiDirectManagerDelegate(NetworkChangeDetector.Observer observer, Context context) {
this.context = context;
this.observer = observer;
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction("android.net.wifi.p2p.STATE_CHANGED");
intentFilter.addAction("android.net.wifi.p2p.CONNECTION_STATE_CHANGE");
context.registerReceiver(this, intentFilter);
if (Build.VERSION.SDK_INT > 28) {
WifiP2pManager wifiP2pManager = (WifiP2pManager) context.getSystemService("wifip2p");
wifiP2pManager.requestGroupInfo(wifiP2pManager.initialize(context, context.getMainLooper(), null), new WifiP2pManager.GroupInfoListener() {
@Override
public final void onGroupInfoAvailable(WifiP2pGroup wifiP2pGroup) {
NetworkMonitorAutoDetect.WifiDirectManagerDelegate.$r8$lambda$QrCXyvx0F_bs8sn8wEKNs9RfbLI(NetworkMonitorAutoDetect.WifiDirectManagerDelegate.this, wifiP2pGroup);
}
});
int i = setFieldValue + 95;
setError = i % 128;
if (i % 2 == 0) {
int i2 = 2 % 2;
}
}
int i3 = setFieldValue + 19;
setError = i3 % 128;
if (i3 % 2 != 0) {
int i4 = 3 / 0;
}
}
private void lambda$new$0(WifiP2pGroup wifiP2pGroup) {
int i = 2 % 2;
int i2 = setFieldValue + DataTypes.W_BYTE;
setError = i2 % 128;
int i3 = i2 % 2;
onWifiP2pGroupChange(wifiP2pGroup);
if (i3 != 0) {
int i4 = 31 / 0;
}
}
public static void $r8$lambda$QrCXyvx0F_bs8sn8wEKNs9RfbLI(WifiDirectManagerDelegate wifiDirectManagerDelegate, WifiP2pGroup wifiP2pGroup) {
int i = 2 % 2;
int i2 = setFieldValue + 89;
setError = i2 % 128;
int i3 = i2 % 2;
wifiDirectManagerDelegate.lambda$new$0(wifiP2pGroup);
if (i3 != 0) {
throw null;
}
}
@Override
public void onReceive(android.content.Context r44, android.content.Intent r45) {
throw new UnsupportedOperationException("Method not decompiled: org.webrtc.NetworkMonitorAutoDetect.WifiDirectManagerDelegate.onReceive(android.content.Context, android.content.Intent):void");
}
public void release() {
int i = 2 % 2;
int i2 = setError + 1;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
this.context.unregisterReceiver(this);
if (i3 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public List<NetworkChangeDetector.NetworkInformation> getActiveNetworkList() {
int i = 2 % 2;
int i2 = setFieldValue;
int i3 = i2 + 35;
setError = i3 % 128;
int i4 = i3 % 2;
NetworkChangeDetector.NetworkInformation networkInformation = this.wifiP2pNetworkInfo;
if (networkInformation == null) {
return Collections.emptyList();
}
int i5 = i2 + 97;
setError = i5 % 128;
int i6 = i5 % 2;
List<NetworkChangeDetector.NetworkInformation> singletonList = Collections.singletonList(networkInformation);
int i7 = setFieldValue + 69;
setError = i7 % 128;
int i8 = i7 % 2;
return singletonList;
}
private void onWifiP2pGroupChange(@Nullable WifiP2pGroup wifiP2pGroup) {
int i = 2 % 2;
int i2 = setError;
int i3 = i2 + 49;
setFieldValue = i3 % 128;
int i4 = i3 % 2;
if (wifiP2pGroup != null) {
int i5 = i2 + 115;
setFieldValue = i5 % 128;
int i6 = i5 % 2;
if (wifiP2pGroup.getInterface() == null) {
return;
}
try {
ArrayList list = Collections.list(NetworkInterface.getByName(wifiP2pGroup.getInterface()).getInetAddresses());
NetworkChangeDetector.IPAddress[] iPAddressArr = new NetworkChangeDetector.IPAddress[list.size()];
for (int i7 = 0; i7 < list.size(); i7++) {
iPAddressArr[i7] = new NetworkChangeDetector.IPAddress(((InetAddress) list.get(i7)).getAddress());
}
NetworkChangeDetector.NetworkInformation networkInformation = new NetworkChangeDetector.NetworkInformation(wifiP2pGroup.getInterface(), NetworkChangeDetector.ConnectionType.CONNECTION_WIFI, NetworkChangeDetector.ConnectionType.CONNECTION_NONE, 0L, iPAddressArr);
this.wifiP2pNetworkInfo = networkInformation;
this.observer.onNetworkConnect(networkInformation);
} catch (SocketException e) {
Logging.e(NetworkMonitorAutoDetect.TAG, "Unable to get WifiP2p network interface", e);
}
}
}
private void onWifiP2pStateChange(int i) {
int i2 = 2 % 2;
int i3 = setFieldValue + 63;
int i4 = i3 % 128;
setError = i4;
int i5 = i3 % 2;
if (i == 1) {
int i6 = i4 + 95;
setFieldValue = i6 % 128;
int i7 = i6 % 2;
this.wifiP2pNetworkInfo = null;
this.observer.onNetworkDisconnect(0L);
int i8 = setFieldValue + 71;
setError = i8 % 128;
int i9 = i8 % 2;
}
}
}
static class ConnectivityManagerDelegate {
private final Set<Network> availableNetworks;
private final ConnectivityManager connectivityManager;
private final boolean getAllNetworksFromCache;
private final boolean includeOtherUidNetworks;
private final boolean requestVPN;
ConnectivityManagerDelegate(Context context, Set<Network> set, String str) {
this((ConnectivityManager) context.getSystemService("connectivity"), set, str);
}
ConnectivityManagerDelegate(ConnectivityManager connectivityManager, Set<Network> set, String str) {
this.connectivityManager = connectivityManager;
this.availableNetworks = set;
this.getAllNetworksFromCache = checkFieldTrial(str, "getAllNetworksFromCache", false);
this.requestVPN = checkFieldTrial(str, "requestVPN", false);
this.includeOtherUidNetworks = checkFieldTrial(str, "includeOtherUidNetworks", false);
}
private static boolean checkFieldTrial(String str, String str2, boolean z) {
if (str.contains(str2 + ":true")) {
return true;
}
if (str.contains(str2 + ":false")) {
return false;
}
return z;
}
NetworkState getNetworkState() {
ConnectivityManager connectivityManager = this.connectivityManager;
if (connectivityManager == null) {
return new NetworkState(false, -1, -1, -1, -1);
}
return getNetworkState(connectivityManager.getActiveNetworkInfo());
}
NetworkState getNetworkState(@Nullable Network network) {
ConnectivityManager connectivityManager;
NetworkInfo activeNetworkInfo;
if (network == null || (connectivityManager = this.connectivityManager) == null) {
return new NetworkState(false, -1, -1, -1, -1);
}
NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network);
if (networkInfo == null) {
Logging.w(NetworkMonitorAutoDetect.TAG, "Couldn't retrieve information from network " + network.toString());
return new NetworkState(false, -1, -1, -1, -1);
}
if (networkInfo.getType() != 17) {
NetworkCapabilities networkCapabilities = this.connectivityManager.getNetworkCapabilities(network);
if (networkCapabilities == null || !networkCapabilities.hasTransport(4)) {
return getNetworkState(networkInfo);
}
return new NetworkState(networkInfo.isConnected(), 17, -1, networkInfo.getType(), networkInfo.getSubtype());
}
if (networkInfo.getType() == 17) {
if (network.equals(this.connectivityManager.getActiveNetwork()) && (activeNetworkInfo = this.connectivityManager.getActiveNetworkInfo()) != null && activeNetworkInfo.getType() != 17) {
return new NetworkState(networkInfo.isConnected(), 17, -1, activeNetworkInfo.getType(), activeNetworkInfo.getSubtype());
}
return new NetworkState(networkInfo.isConnected(), 17, -1, -1, -1);
}
return getNetworkState(networkInfo);
}
private NetworkState getNetworkState(@Nullable NetworkInfo networkInfo) {
if (networkInfo == null || !networkInfo.isConnected()) {
return new NetworkState(false, -1, -1, -1, -1);
}
return new NetworkState(true, networkInfo.getType(), networkInfo.getSubtype(), -1, -1);
}
Network[] getAllNetworks() {
Network[] networkArr;
if (this.connectivityManager == null) {
return new Network[0];
}
if (supportNetworkCallback() && this.getAllNetworksFromCache) {
synchronized (this.availableNetworks) {
networkArr = (Network[]) this.availableNetworks.toArray(new Network[0]);
}
return networkArr;
}
return this.connectivityManager.getAllNetworks();
}
List<NetworkChangeDetector.NetworkInformation> getActiveNetworkList() {
if (!supportNetworkCallback()) {
return null;
}
ArrayList arrayList = new ArrayList();
for (Network network : getAllNetworks()) {
NetworkChangeDetector.NetworkInformation networkToInfo = networkToInfo(network);
if (networkToInfo != null) {
arrayList.add(networkToInfo);
}
}
return arrayList;
}
long getDefaultNetId() {
NetworkInfo activeNetworkInfo;
NetworkInfo networkInfo;
if (!supportNetworkCallback() || (activeNetworkInfo = this.connectivityManager.getActiveNetworkInfo()) == null) {
return -1L;
}
long j = -1;
for (Network network : getAllNetworks()) {
if (hasInternetCapability(network) && (networkInfo = this.connectivityManager.getNetworkInfo(network)) != null && networkInfo.getType() == activeNetworkInfo.getType()) {
if (j != -1) {
throw new RuntimeException("Multiple connected networks of same type are not supported.");
}
j = NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network);
}
}
return j;
}
public NetworkChangeDetector.NetworkInformation networkToInfo(@Nullable Network network) {
ConnectivityManager connectivityManager;
if (network == null || (connectivityManager = this.connectivityManager) == null) {
return null;
}
LinkProperties linkProperties = connectivityManager.getLinkProperties(network);
if (linkProperties == null) {
Logging.w(NetworkMonitorAutoDetect.TAG, "Detected unknown network: " + network.toString());
return null;
}
if (linkProperties.getInterfaceName() == null) {
Logging.w(NetworkMonitorAutoDetect.TAG, "Null interface name for network " + network.toString());
return null;
}
NetworkState networkState = getNetworkState(network);
NetworkChangeDetector.ConnectionType connectionType = NetworkMonitorAutoDetect.getConnectionType(networkState);
if (connectionType == NetworkChangeDetector.ConnectionType.CONNECTION_NONE) {
Logging.d(NetworkMonitorAutoDetect.TAG, "Network " + network.toString() + " is disconnected");
return null;
}
if (connectionType == NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN || connectionType == NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN_CELLULAR) {
Logging.d(NetworkMonitorAutoDetect.TAG, "Network " + network.toString() + " connection type is " + connectionType + " because it has type " + networkState.getNetworkType() + " and subtype " + networkState.getNetworkSubType());
}
return new NetworkChangeDetector.NetworkInformation(linkProperties.getInterfaceName(), connectionType, NetworkMonitorAutoDetect.m113$$Nest$smgetUnderlyingConnectionTypeForVpn(networkState), NetworkMonitorAutoDetect.m114$$Nest$smnetworkToNetId(network), getIPAddresses(linkProperties));
}
boolean hasInternetCapability(Network network) {
NetworkCapabilities networkCapabilities;
ConnectivityManager connectivityManager = this.connectivityManager;
return (connectivityManager == null || (networkCapabilities = connectivityManager.getNetworkCapabilities(network)) == null || !networkCapabilities.hasCapability(12)) ? false : true;
}
NetworkRequest createNetworkRequest() {
NetworkRequest.Builder addCapability = new NetworkRequest.Builder().addCapability(12);
if (this.requestVPN) {
addCapability.removeCapability(15);
}
if (Build.VERSION.SDK_INT >= 31 && this.includeOtherUidNetworks) {
addCapability.setIncludeOtherUidNetworks(true);
}
return addCapability.build();
}
public void registerNetworkCallback(ConnectivityManager.NetworkCallback networkCallback) {
this.connectivityManager.registerNetworkCallback(createNetworkRequest(), networkCallback);
}
public void requestMobileNetwork(ConnectivityManager.NetworkCallback networkCallback) {
NetworkRequest.Builder builder = new NetworkRequest.Builder();
builder.addCapability(12).addTransportType(0);
this.connectivityManager.requestNetwork(builder.build(), networkCallback);
}
NetworkChangeDetector.IPAddress[] getIPAddresses(LinkProperties linkProperties) {
NetworkChangeDetector.IPAddress[] iPAddressArr = new NetworkChangeDetector.IPAddress[linkProperties.getLinkAddresses().size()];
Iterator<LinkAddress> it = linkProperties.getLinkAddresses().iterator();
int i = 0;
while (it.hasNext()) {
iPAddressArr[i] = new NetworkChangeDetector.IPAddress(it.next().getAddress().getAddress());
i++;
}
return iPAddressArr;
}
public void releaseCallback(ConnectivityManager.NetworkCallback networkCallback) {
if (supportNetworkCallback()) {
Logging.d(NetworkMonitorAutoDetect.TAG, "Unregister network callback");
this.connectivityManager.unregisterNetworkCallback(networkCallback);
}
}
public boolean supportNetworkCallback() {
return this.connectivityManager != null;
}
}
private static void a(byte b, int i, char[] cArr, Object[] objArr) {
int i2;
Object obj;
int i3 = 2 % 2;
COMPACT_WITH_MODIFIERSlambda1 cOMPACT_WITH_MODIFIERSlambda1 = new COMPACT_WITH_MODIFIERSlambda1();
char[] cArr2 = setBackground;
Object obj2 = null;
if (cArr2 != null) {
int i4 = $11 + 47;
$10 = i4 % 128;
int i5 = i4 % 2;
int length = cArr2.length;
char[] cArr3 = new char[length];
for (int i6 = 0; i6 < length; i6++) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
Object background = ClassifierNamePolicy.setBackground(-2062101873);
if (background == null) {
background = ClassifierNamePolicy.setBackground(25 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 434, (char) ('0' - AndroidCharacter.getMirror('0')), 1298308213, false, "a", new Class[]{Integer.TYPE});
}
cArr3[i6] = ((Character) ((Method) background).invoke(null, objArr2)).charValue();
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr3 = {Integer.valueOf(setError)};
Object background2 = ClassifierNamePolicy.setBackground(-2062101873);
if (background2 == null) {
background2 = ClassifierNamePolicy.setBackground((ViewConfiguration.getLongPressTimeout() >> 16) + 25, (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 434, (char) (ViewConfiguration.getPressedStateDuration() >> 16), 1298308213, false, "a", new Class[]{Integer.TYPE});
}
char charValue = ((Character) ((Method) background2).invoke(null, objArr3)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
} else {
i2 = i;
}
if (i2 > 1) {
int i7 = $11 + 117;
$10 = i7 % 128;
int i8 = i7 % 2;
cOMPACT_WITH_MODIFIERSlambda1.setOptions = 0;
while (cOMPACT_WITH_MODIFIERSlambda1.setOptions < i2) {
int i9 = $11 + 29;
$10 = i9 % 128;
int i10 = i9 % 2;
cOMPACT_WITH_MODIFIERSlambda1.setBackground = cArr[cOMPACT_WITH_MODIFIERSlambda1.setOptions];
cOMPACT_WITH_MODIFIERSlambda1.setError = cArr[cOMPACT_WITH_MODIFIERSlambda1.setOptions + 1];
if (cOMPACT_WITH_MODIFIERSlambda1.setBackground == cOMPACT_WITH_MODIFIERSlambda1.setError) {
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions] = (char) (cOMPACT_WITH_MODIFIERSlambda1.setBackground - b);
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions + 1] = (char) (cOMPACT_WITH_MODIFIERSlambda1.setError - b);
obj = obj2;
} else {
Object[] objArr4 = {cOMPACT_WITH_MODIFIERSlambda1, cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1, cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1, cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1, cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1};
Object background3 = ClassifierNamePolicy.setBackground(39243752);
if (background3 == null) {
background3 = ClassifierNamePolicy.setBackground(KeyEvent.normalizeMetaState(0) + 18, KeyEvent.normalizeMetaState(0) + 6655, (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1), -903708398, false, "e", new Class[]{Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class});
}
if (((Integer) ((Method) background3).invoke(null, objArr4)).intValue() == cOMPACT_WITH_MODIFIERSlambda1.read) {
Object[] objArr5 = {cOMPACT_WITH_MODIFIERSlambda1, cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1, cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1, Integer.valueOf(charValue), cOMPACT_WITH_MODIFIERSlambda1};
Object background4 = ClassifierNamePolicy.setBackground(300954933);
if (background4 == null) {
background4 = ClassifierNamePolicy.setBackground(3 - ImageFormat.getBitsPerPixel(0), ((Process.getThreadPriority(0) + 20) >> 6) + 5946, (char) (ExpandableListView.getPackedPositionGroup(0L) + 61330), -645628977, false, "d", new Class[]{Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class});
}
obj = null;
int intValue = ((Integer) ((Method) background4).invoke(null, objArr5)).intValue();
int i11 = (cOMPACT_WITH_MODIFIERSlambda1.setFieldValue * charValue) + cOMPACT_WITH_MODIFIERSlambda1.read;
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions] = cArr2[intValue];
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions + 1] = cArr2[i11];
} else {
obj = null;
if (cOMPACT_WITH_MODIFIERSlambda1.setLabel == cOMPACT_WITH_MODIFIERSlambda1.setFieldValue) {
int i12 = $10 + 115;
$11 = i12 % 128;
int i13 = i12 % 2;
cOMPACT_WITH_MODIFIERSlambda1.write = ((cOMPACT_WITH_MODIFIERSlambda1.write + charValue) - 1) % charValue;
cOMPACT_WITH_MODIFIERSlambda1.read = ((cOMPACT_WITH_MODIFIERSlambda1.read + charValue) - 1) % charValue;
int i14 = (cOMPACT_WITH_MODIFIERSlambda1.setLabel * charValue) + cOMPACT_WITH_MODIFIERSlambda1.write;
int i15 = (cOMPACT_WITH_MODIFIERSlambda1.setFieldValue * charValue) + cOMPACT_WITH_MODIFIERSlambda1.read;
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions] = cArr2[i14];
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions + 1] = cArr2[i15];
} else {
int i16 = (cOMPACT_WITH_MODIFIERSlambda1.setLabel * charValue) + cOMPACT_WITH_MODIFIERSlambda1.read;
int i17 = (cOMPACT_WITH_MODIFIERSlambda1.setFieldValue * charValue) + cOMPACT_WITH_MODIFIERSlambda1.write;
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions] = cArr2[i16];
cArr4[cOMPACT_WITH_MODIFIERSlambda1.setOptions + 1] = cArr2[i17];
}
}
}
cOMPACT_WITH_MODIFIERSlambda1.setOptions += 2;
obj2 = obj;
}
}
for (int i18 = 0; i18 < i; i18++) {
cArr4[i18] = (char) (cArr4[i18] ^ 13722);
}
objArr[0] = new String(cArr4);
}
static class WifiManagerDelegate {
private final Context context;
WifiManagerDelegate(Context context) {
this.context = context;
}
WifiManagerDelegate() {
this.context = null;
}
String getWifiSSID() {
WifiInfo wifiInfo;
String ssid;
Intent registerReceiver = this.context.registerReceiver(null, new IntentFilter("android.net.wifi.STATE_CHANGE"));
return (registerReceiver == null || (wifiInfo = (WifiInfo) registerReceiver.getParcelableExtra("wifiInfo")) == null || (ssid = wifiInfo.getSSID()) == null) ? "" : ssid;
}
}
public NetworkMonitorAutoDetect(NetworkChangeDetector.Observer observer, Context context) {
HashSet hashSet = new HashSet();
this.availableNetworks = hashSet;
this.observer = observer;
this.context = context;
this.connectivityManagerDelegate = new ConnectivityManagerDelegate(context, hashSet, observer.getFieldTrialsString());
this.wifiManagerDelegate = new WifiManagerDelegate(context);
NetworkState networkState = this.connectivityManagerDelegate.getNetworkState();
this.connectionType = getConnectionType(networkState);
this.wifiSSID = getWifiSSID(networkState);
this.intentFilter = new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE");
if (includeWifiDirect) {
this.wifiDirectManagerDelegate = new WifiDirectManagerDelegate(observer, context);
int i = setFieldValue + DataTypes.INTEGER;
setOptions = i % 128;
int i2 = i % 2;
int i3 = 2 % 2;
}
registerReceiver();
ConnectivityManager.NetworkCallback networkCallback = null;
if (this.connectivityManagerDelegate.supportNetworkCallback()) {
ConnectivityManager.NetworkCallback networkCallback2 = new ConnectivityManager.NetworkCallback();
try {
this.connectivityManagerDelegate.requestMobileNetwork(networkCallback2);
int i4 = 2 % 2;
networkCallback = networkCallback2;
} catch (SecurityException unused) {
Logging.w(TAG, "Unable to obtain permission to request a cellular network.");
}
this.mobileNetworkCallback = networkCallback;
SimpleNetworkCallback simpleNetworkCallback = new SimpleNetworkCallback(this.availableNetworks);
this.allNetworkCallback = simpleNetworkCallback;
this.connectivityManagerDelegate.registerNetworkCallback(simpleNetworkCallback);
return;
}
this.mobileNetworkCallback = null;
this.allNetworkCallback = null;
int i5 = setFieldValue + 47;
setOptions = i5 % 128;
if (i5 % 2 == 0) {
return;
}
int i6 = 2 % 2;
}
public static void setIncludeWifiDirect(boolean z) {
int i = 2 % 2;
int i2 = setOptions;
int i3 = i2 + 85;
setFieldValue = i3 % 128;
int i4 = i3 % 2;
includeWifiDirect = z;
int i5 = i2 + 37;
setFieldValue = i5 % 128;
int i6 = i5 % 2;
}
@Override
public boolean supportNetworkCallback() {
int i = 2 % 2;
int i2 = setOptions + 47;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
ConnectivityManagerDelegate connectivityManagerDelegate = this.connectivityManagerDelegate;
if (i3 == 0) {
return connectivityManagerDelegate.supportNetworkCallback();
}
connectivityManagerDelegate.supportNetworkCallback();
Object obj = null;
obj.hashCode();
throw null;
}
void setConnectivityManagerDelegateForTests(ConnectivityManagerDelegate connectivityManagerDelegate) {
int i = 2 % 2;
int i2 = setOptions + 63;
int i3 = i2 % 128;
setFieldValue = i3;
int i4 = i2 % 2;
this.connectivityManagerDelegate = connectivityManagerDelegate;
int i5 = i3 + 71;
setOptions = i5 % 128;
int i6 = i5 % 2;
}
void setWifiManagerDelegateForTests(WifiManagerDelegate wifiManagerDelegate) {
int i = 2 % 2;
int i2 = setFieldValue + 23;
int i3 = i2 % 128;
setOptions = i3;
int i4 = i2 % 2;
this.wifiManagerDelegate = wifiManagerDelegate;
if (i4 == 0) {
throw null;
}
int i5 = i3 + 29;
setFieldValue = i5 % 128;
int i6 = i5 % 2;
}
boolean isReceiverRegisteredForTesting() {
int i = 2 % 2;
int i2 = setFieldValue + DataTypes.W_LONG;
setOptions = i2 % 128;
int i3 = i2 % 2;
boolean z = this.isRegistered;
if (i3 == 0) {
int i4 = 17 / 0;
}
return z;
}
@Override
public List<NetworkChangeDetector.NetworkInformation> getActiveNetworkList() {
int i = 2 % 2;
List<NetworkChangeDetector.NetworkInformation> activeNetworkList = this.connectivityManagerDelegate.getActiveNetworkList();
if (activeNetworkList != null) {
ArrayList arrayList = new ArrayList(activeNetworkList);
WifiDirectManagerDelegate wifiDirectManagerDelegate = this.wifiDirectManagerDelegate;
if (wifiDirectManagerDelegate != null) {
arrayList.addAll(wifiDirectManagerDelegate.getActiveNetworkList());
}
int i2 = setOptions + 15;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
return arrayList;
}
int i4 = setFieldValue + 37;
setOptions = i4 % 128;
Object obj = null;
if (i4 % 2 != 0) {
return null;
}
obj.hashCode();
throw null;
}
@Override
public void destroy() {
int i = 2 % 2;
ConnectivityManager.NetworkCallback networkCallback = this.allNetworkCallback;
Object obj = null;
if (networkCallback != null) {
int i2 = setFieldValue + 51;
setOptions = i2 % 128;
if (i2 % 2 != 0) {
this.connectivityManagerDelegate.releaseCallback(networkCallback);
} else {
this.connectivityManagerDelegate.releaseCallback(networkCallback);
obj.hashCode();
throw null;
}
}
ConnectivityManager.NetworkCallback networkCallback2 = this.mobileNetworkCallback;
if (networkCallback2 != null) {
this.connectivityManagerDelegate.releaseCallback(networkCallback2);
}
WifiDirectManagerDelegate wifiDirectManagerDelegate = this.wifiDirectManagerDelegate;
if (wifiDirectManagerDelegate != null) {
int i3 = setFieldValue + 15;
setOptions = i3 % 128;
if (i3 % 2 != 0) {
wifiDirectManagerDelegate.release();
} else {
wifiDirectManagerDelegate.release();
obj.hashCode();
throw null;
}
}
unregisterReceiver();
}
private void registerReceiver() {
int i = 2 % 2;
int i2 = setFieldValue + 65;
int i3 = i2 % 128;
setOptions = i3;
int i4 = i2 % 2;
if (!this.isRegistered) {
this.isRegistered = true;
this.context.registerReceiver(this, this.intentFilter);
} else {
int i5 = i3 + 91;
setFieldValue = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
}
private void unregisterReceiver() {
int i = 2 % 2;
int i2 = setOptions + 13;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
if (this.isRegistered) {
this.isRegistered = false;
this.context.unregisterReceiver(this);
int i4 = setOptions + 49;
setFieldValue = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}
public NetworkState getCurrentNetworkState() {
int i = 2 % 2;
int i2 = setFieldValue + DataTypes.W_SHORT;
setOptions = i2 % 128;
int i3 = i2 % 2;
NetworkState networkState = this.connectivityManagerDelegate.getNetworkState();
int i4 = setFieldValue + 37;
setOptions = i4 % 128;
if (i4 % 2 != 0) {
return networkState;
}
throw null;
}
public long getDefaultNetId() {
int i = 2 % 2;
int i2 = setOptions + 77;
setFieldValue = i2 % 128;
if (i2 % 2 != 0) {
this.connectivityManagerDelegate.getDefaultNetId();
throw null;
}
long defaultNetId = this.connectivityManagerDelegate.getDefaultNetId();
int i3 = setOptions + 47;
setFieldValue = i3 % 128;
if (i3 % 2 == 0) {
return defaultNetId;
}
throw null;
}
private static NetworkChangeDetector.ConnectionType getConnectionType(boolean z, int i, int i2) {
int i3 = 2 % 2;
if (!z) {
return NetworkChangeDetector.ConnectionType.CONNECTION_NONE;
}
if (i != 0) {
if (i == 1) {
NetworkChangeDetector.ConnectionType connectionType = NetworkChangeDetector.ConnectionType.CONNECTION_WIFI;
int i4 = setFieldValue + 95;
setOptions = i4 % 128;
int i5 = i4 % 2;
return connectionType;
}
int i6 = setFieldValue + 61;
int i7 = i6 % 128;
setOptions = i7;
int i8 = i6 % 2;
if (i != 4) {
int i9 = i7 + 45;
setFieldValue = i9 % 128;
int i10 = i9 % 2;
if (i != 5) {
return i != 6 ? i != 7 ? i != 9 ? i != 17 ? NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN : NetworkChangeDetector.ConnectionType.CONNECTION_VPN : NetworkChangeDetector.ConnectionType.CONNECTION_ETHERNET : NetworkChangeDetector.ConnectionType.CONNECTION_BLUETOOTH : NetworkChangeDetector.ConnectionType.CONNECTION_4G;
}
}
}
switch (i2) {
case 1:
case 2:
case 4:
case 7:
case 11:
case 16:
return NetworkChangeDetector.ConnectionType.CONNECTION_2G;
case 3:
case 5:
case 6:
case 8:
case 9:
case 10:
case 12:
case 14:
case 15:
case C0703ceK.ComponentActivity2:
return NetworkChangeDetector.ConnectionType.CONNECTION_3G;
case 13:
case C0703ceK.setFieldValue:
NetworkChangeDetector.ConnectionType connectionType2 = NetworkChangeDetector.ConnectionType.CONNECTION_4G;
int i11 = setOptions + 27;
setFieldValue = i11 % 128;
if (i11 % 2 == 0) {
return connectionType2;
}
throw null;
case 19:
default:
return NetworkChangeDetector.ConnectionType.CONNECTION_UNKNOWN_CELLULAR;
case 20:
return NetworkChangeDetector.ConnectionType.CONNECTION_5G;
}
}
public static NetworkChangeDetector.ConnectionType getConnectionType(NetworkState networkState) {
int i = 2 % 2;
int i2 = setOptions + 119;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
NetworkChangeDetector.ConnectionType connectionType = getConnectionType(networkState.isConnected(), networkState.getNetworkType(), networkState.getNetworkSubType());
int i4 = setFieldValue + DataTypes.W_LONG;
setOptions = i4 % 128;
if (i4 % 2 != 0) {
return connectionType;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override
public NetworkChangeDetector.ConnectionType getCurrentConnectionType() {
int i = 2 % 2;
int i2 = setFieldValue + 49;
setOptions = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
getConnectionType(getCurrentNetworkState());
obj.hashCode();
throw null;
}
NetworkChangeDetector.ConnectionType connectionType = getConnectionType(getCurrentNetworkState());
int i3 = setOptions + 1;
setFieldValue = i3 % 128;
if (i3 % 2 == 0) {
return connectionType;
}
obj.hashCode();
throw null;
}
private static NetworkChangeDetector.ConnectionType getUnderlyingConnectionTypeForVpn(NetworkState networkState) {
int i = 2 % 2;
int i2 = setOptions + 11;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
if (networkState.getNetworkType() != 17) {
return NetworkChangeDetector.ConnectionType.CONNECTION_NONE;
}
NetworkChangeDetector.ConnectionType connectionType = getConnectionType(networkState.isConnected(), networkState.getUnderlyingNetworkTypeForVpn(), networkState.getUnderlyingNetworkSubtypeForVpn());
int i4 = setFieldValue + 57;
setOptions = i4 % 128;
int i5 = i4 % 2;
return connectionType;
}
private String getWifiSSID(NetworkState networkState) {
int i = 2 % 2;
if (getConnectionType(networkState) != NetworkChangeDetector.ConnectionType.CONNECTION_WIFI) {
int i2 = setFieldValue + 11;
setOptions = i2 % 128;
int i3 = i2 % 2;
return "";
}
String wifiSSID = this.wifiManagerDelegate.getWifiSSID();
int i4 = setOptions + 9;
setFieldValue = i4 % 128;
if (i4 % 2 == 0) {
return wifiSSID;
}
throw null;
}
static ConnectivityManagerDelegate m111$$Nest$fgetconnectivityManagerDelegate(NetworkMonitorAutoDetect networkMonitorAutoDetect) {
int i = 2 % 2;
int i2 = setFieldValue + 21;
int i3 = i2 % 128;
setOptions = i3;
int i4 = i2 % 2;
ConnectivityManagerDelegate connectivityManagerDelegate = networkMonitorAutoDetect.connectivityManagerDelegate;
int i5 = i3 + 81;
setFieldValue = i5 % 128;
int i6 = i5 % 2;
return connectivityManagerDelegate;
}
static NetworkChangeDetector.Observer m112$$Nest$fgetobserver(NetworkMonitorAutoDetect networkMonitorAutoDetect) {
int i = 2 % 2;
int i2 = setOptions + 93;
int i3 = i2 % 128;
setFieldValue = i3;
int i4 = i2 % 2;
NetworkChangeDetector.Observer observer = networkMonitorAutoDetect.observer;
int i5 = i3 + DataTypes.DOUBLE;
setOptions = i5 % 128;
int i6 = i5 % 2;
return observer;
}
static NetworkChangeDetector.ConnectionType m113$$Nest$smgetUnderlyingConnectionTypeForVpn(NetworkState networkState) {
int i = 2 % 2;
int i2 = setOptions + DataTypes.W_LONG;
setFieldValue = i2 % 128;
int i3 = i2 % 2;
NetworkChangeDetector.ConnectionType underlyingConnectionTypeForVpn = getUnderlyingConnectionTypeForVpn(networkState);
if (i3 != 0) {
int i4 = 38 / 0;
}
int i5 = setFieldValue + 91;
setOptions = i5 % 128;
int i6 = i5 % 2;
return underlyingConnectionTypeForVpn;
}
static long m114$$Nest$smnetworkToNetId(Network network) {
int i = 2 % 2;
int i2 = setFieldValue + 75;
setOptions = i2 % 128;
int i3 = i2 % 2;
long networkToNetId = networkToNetId(network);
int i4 = setFieldValue + 69;
setOptions = i4 % 128;
if (i4 % 2 != 0) {
return networkToNetId;
}
Object obj = null;
obj.hashCode();
throw null;
}
private void connectionTypeChanged(NetworkState networkState) {
int i = 2 % 2;
int i2 = setFieldValue + 53;
setOptions = i2 % 128;
if (i2 % 2 != 0) {
NetworkChangeDetector.ConnectionType connectionType = getConnectionType(networkState);
String wifiSSID = getWifiSSID(networkState);
if (connectionType == this.connectionType && wifiSSID.equals(this.wifiSSID)) {
int i3 = setFieldValue + 25;
setOptions = i3 % 128;
int i4 = i3 % 2;
return;
}
this.connectionType = connectionType;
this.wifiSSID = wifiSSID;
Logging.d(TAG, "Network connectivity changed, type is: " + connectionType);
this.observer.onConnectionTypeChanged(connectionType);
return;
}
getConnectionType(networkState);
getWifiSSID(networkState);
throw null;
}
@Override
public void onReceive(android.content.Context r42, android.content.Intent r43) {
throw new UnsupportedOperationException("Method not decompiled: org.webrtc.NetworkMonitorAutoDetect.onReceive(android.content.Context, android.content.Intent):void");
}
private static long networkToNetId(Network network) {
int i = 2 % 2;
int i2 = setFieldValue + 63;
setOptions = i2 % 128;
if (i2 % 2 != 0) {
return network.getNetworkHandle();
}
long networkHandle = network.getNetworkHandle();
int i3 = 42 / 0;
return networkHandle;
}
}