正在查看: Share Any v2.1.7 应用的 LocalOnlyHotspotService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Share Any v2.1.7 应用的 LocalOnlyHotspotService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.shareany.app.service;
import a6.d;
import a6.j;
import a6.m;
import android.app.Service;
import android.content.Intent;
import android.net.wifi.SoftApConfiguration;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.IBinder;
import android.provider.Settings;
import java.util.Objects;
import m5.h;
public class LocalOnlyHotspotService extends Service {
public static final int b = 0;
public j a;
public class a extends WifiManager.LocalOnlyHotspotCallback {
public a() {
}
@Override
public void onFailed(int i) {
super.onFailed(i);
h.a(new byte[]{-6, -48, -15}, new byte[]{-87, -111});
h.a(new byte[]{-115, 83, -115, 11, -122, 95, -108, 89, -127, 103, -102, 72, -108, 71, -70, 69, -103, 82, -67, 68, -127, 88, -123, 68, -127, 11, -102, 69, -77, 74, -100, 71, -112, 79, -35, 2, -43}, new byte[]{-11, 43});
LocalOnlyHotspotService localOnlyHotspotService = LocalOnlyHotspotService.this;
int i2 = LocalOnlyHotspotService.b;
localOnlyHotspotService.a(null, i);
}
@Override
public void onStarted(WifiManager.LocalOnlyHotspotReservation localOnlyHotspotReservation) {
super.onStarted(localOnlyHotspotReservation);
h.a(new byte[]{25, 89, 18}, new byte[]{74, 24});
h.a(new byte[]{89, -16, 89, -88, 82, -4, 64, -6, 85, -60, 78, -21, 64, -28, 110, -26, 77, -15, 105, -25, 85, -5, 81, -25, 85, -88, 78, -26, 114, -4, 64, -6, 85, -19, 69, -96, 8, -88, -60, 20, -119, -88, 118, -63, 103, -63, 126, -55, 113, -41, 114, -36, 96, -36, 100, -41, 98, -64, 96, -58, 102, -51, 101, -88, -60, 49, -98, 110, -77, 37, -59, 49, -86, 109, -79, 6, -50, 52, -83, 110, -76, 13, 25, -90, 17, 108, -102, 45, -60, 7, -85, 108, -102, 45, -59, 48, -85, 97, -67, 8, -60, 20, -119, 96, -114, 45, -60, 19, -65, 96, -111, 11, -60, 15, -100, 110, -76, 56, -59, 48, -116, 96, -81, 63, -60, 7, -73, 111, -94, 37, -58, 10, -104, 97, -92, 5, -58, 53, -113, 108, -98, 41, -57, 9, -114}, new byte[]{33, -120});
LocalOnlyHotspotService localOnlyHotspotService = LocalOnlyHotspotService.this;
int i = LocalOnlyHotspotService.b;
Objects.requireNonNull(localOnlyHotspotService);
Intent putExtra = new Intent(h.a(new byte[]{-97, 53, -111, 116, -101, 63, -110, 53, -110, 56, -103, 46, -99, 116, -88, 40, -103, 56, -112, 63, -81, 50, -109, 46, -46, 46, -114, 59, -110, 41, -99, 57, -120, 51, -109, 52, -46, 59, -97, 46, -107, 53, -110, 116, -76, 21, -88, 9, -84, 21, -88, 5, -81, 14, -67, 14, -87, 9}, new byte[]{-4, 90})).putExtra(h.a(new byte[]{61, 43, 44, 33, 57, 27, 55, 39, 43, 35, 55, 39, 29, 61, 57, 49, 52, 54, 60}, new byte[]{88, 83}), localOnlyHotspotReservation != null).putExtra(h.a(new byte[]{52, -81, 37, -91, 48, -97, 62, -93, 34, -89, 62, -93, 23, -74, 56, -69, 52, -77, 3, -78, 48, -92, 62, -71}, new byte[]{81, -41}), 0);
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 30) {
if (localOnlyHotspotReservation.getSoftApConfiguration() != null) {
SoftApConfiguration softApConfiguration = localOnlyHotspotReservation.getSoftApConfiguration();
h.a(new byte[]{30, 32, 19, 33, 24, 44, 9, 111, 53, 0, 41, 28, 45, 0, 41, 111}, new byte[]{125, 79});
Objects.toString(localOnlyHotspotReservation.getSoftApConfiguration());
h.a(new byte[]{-11, 52, -8, 53, -13, 56, -30, 123, -34, 20, -62, 8, -58, 20, -62, 123, -14, 62, -30, 58, -1, 55, -27, 123}, new byte[]{-106, 91});
softApConfiguration.getSsid();
h.a(new byte[]{-42}, new byte[]{-6, -116});
softApConfiguration.getPassphrase();
h.a(new byte[]{-91}, new byte[]{-119, -53});
softApConfiguration.getSecurityType();
h.a(new byte[]{-60}, new byte[]{-24, 56});
localOnlyHotspotReservation.getWifiConfiguration().allowedKeyManagement.toString();
putExtra.putExtra(h.a(new byte[]{-124, -118, -107, Byte.MIN_VALUE, Byte.MIN_VALUE, -70, -114, -122, -110, -126, -114, -122, -81, -109, -116, -105}, new byte[]{-31, -14}), localOnlyHotspotReservation.getSoftApConfiguration().getSsid()).putExtra(h.a(new byte[]{-67, 81, -84, 91, -71, 97, -73, 93, -85, 89, -73, 93, -120, 72, -85, 90, -81, 70, -86, 77}, new byte[]{-40, 41}), localOnlyHotspotReservation.getSoftApConfiguration().getPassphrase()).putExtra(h.a(new byte[]{39, 81, 54, 91, 35, 97, 45, 93, 49, 89, 45, 93, 9, 76, 59, 100, 35, 71, 35, 78, 39, 68, 39, 71, 54}, new byte[]{66, 41}), m.c(localOnlyHotspotReservation.getWifiConfiguration()));
}
h.a(new byte[]{35, 94, 35, 6, 40, 67, 53, 66, 19, 73, 47, 85, 43, 73, 47, 117, 47, 71, 47, 83, 40, 6, 50, 85, 30, 72, 58, 68, 55, 67, 63, 6}, new byte[]{91, 38});
localOnlyHotspotReservation.getSoftApConfiguration();
} else if (i2 >= 26) {
if (localOnlyHotspotReservation.getWifiConfiguration() != null) {
putExtra.putExtra(h.a(new byte[]{22, 61, 7, 55, 18, 13, 28, 49, 0, 53, 28, 49, 61, 36, 30, 32}, new byte[]{115, 69}), localOnlyHotspotReservation.getWifiConfiguration().SSID).putExtra(h.a(new byte[]{32, 82, 49, 88, 36, 98, 42, 94, 54, 90, 42, 94, 21, 75, 54, 89, 50, 69, 55, 78}, new byte[]{69, 42}), localOnlyHotspotReservation.getWifiConfiguration().preSharedKey).putExtra(h.a(new byte[]{104, -62, 121, -56, 108, -14, 98, -50, 126, -54, 98, -50, 70, -33, 116, -9, 108, -44, 108, -35, 104, -41, 104, -44, 121}, new byte[]{13, -70}), m.c(localOnlyHotspotReservation.getWifiConfiguration()));
}
h.a(new byte[]{82, 99, 82, 59, 89, 126, 68, Byte.MAX_VALUE, 98, 116, 94, 104, 90, 116, 94, 72, 94, 122, 94, 110, 89, 59, 67, 104, 111, 117, 75, 121, 70, 126, 78, 59}, new byte[]{42, 27});
localOnlyHotspotReservation.getWifiConfiguration();
}
localOnlyHotspotService.sendBroadcast(putExtra);
}
@Override
public void onStopped() {
super.onStopped();
h.a(new byte[]{Byte.MIN_VALUE, -49, -117}, new byte[]{-45, -114});
h.a(new byte[]{-48, -89, -48, -1, -37, -85, -55, -83, -36, -109, -57, -68, -55, -77, -25, -79, -60, -90, -32, -80, -36, -84, -40, -80, -36, -1, -57, -79, -5, -85, -57, -81, -40, -70, -52, -9, -127}, new byte[]{-88, -33});
}
}
static {
h.a(new byte[]{-103, 41, -110}, new byte[]{-54, 104});
}
public final void a(WifiConfiguration wifiConfiguration, int i) {
Intent putExtra = new Intent(h.a(new byte[]{-69, 55, -75, 118, -65, 61, -74, 55, -74, 58, -67, 44, -71, 118, -116, 42, -67, 58, -76, 61, -117, 48, -73, 44, -10, 44, -86, 57, -74, 43, -71, 59, -84, 49, -73, 54, -10, 57, -69, 44, -79, 55, -74, 118, -112, 23, -116, 11, -120, 23, -116, 7, -117, 12, -103, 12, -115, 11}, new byte[]{-40, 88})).putExtra(h.a(new byte[]{61, -10, 44, -4, 57, -58, 55, -6, 43, -2, 55, -6, 29, -32, 57, -20, 52, -21, 60}, new byte[]{88, -114}), wifiConfiguration != null).putExtra(h.a(new byte[]{-7, -64, -24, -54, -3, -16, -13, -52, -17, -56, -13, -52, -38, -39, -11, -44, -7, -36, -50, -35, -3, -53, -13, -42}, new byte[]{-100, -72}), i);
if (wifiConfiguration != null) {
putExtra.putExtra(h.a(new byte[]{52, -104, 37, -110, 48, -88, 62, -108, 34, -112, 62, -108, 31, -127, 60, -123}, new byte[]{81, -32}), wifiConfiguration.SSID).putExtra(h.a(new byte[]{-6, -81, -21, -91, -2, -97, -16, -93, -20, -89, -16, -93, -49, -74, -20, -92, -24, -72, -19, -77}, new byte[]{-97, -41}), wifiConfiguration.preSharedKey).putExtra(h.a(new byte[]{66, -104, 83, -110, 70, -88, 72, -108, 84, -112, 72, -108, 108, -123, 94, -83, 70, -114, 70, -121, 66, -115, 66, -114, 83}, new byte[]{39, -32}), m.c(wifiConfiguration));
}
h.a(new byte[]{100, -49, 100, -105, 111, -46, 114, -45, 84, -40, 104, -60, 108, -40, 104, -28, 104, -42, 104, -62, 111, -105, 117, -60, 89, -39, 125, -43, 112, -46, 120, -105}, new byte[]{28, -73});
sendBroadcast(putExtra);
}
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public void onCreate() {
super.onCreate();
h.a(new byte[]{-113, 93, -113, 5, -104, 75, -76, 87, -110, 68, -125, 64, -33, 12}, new byte[]{-9, 37});
j.c c = j.c(this);
this.a = c;
if (!(c instanceof j.c) || Build.VERSION.SDK_INT < 26) {
return;
}
c.d = new a();
}
@Override
public void onDestroy() {
h.a(new byte[]{-68, 12, -68, 84, -85, 26, Byte.MIN_VALUE, 17, -73, 0, -74, 27, -67, 92, -19}, new byte[]{-60, 116});
if (this.a.f()) {
this.a.a();
h.a(new byte[]{-22, -6, -22, -94, -3, -20, -42, -25, -31, -10, -32, -19, -21, -86, -69, -72, -78, -47, -26, -19, -30, -14, -5, -20, -11, -94, -6, -19, -26, -15, -30, -19, -26, -94, -70, -14, -32, -25, -28, -21, -3, -9, -31, -18, -21, -94, -31, -10, -13, -16, -26, -25, -10, -85}, new byte[]{-110, -126});
}
super.onDestroy();
}
@Override
public int onStartCommand(Intent intent, int i, int i2) {
int i3;
boolean z;
super.onStartCommand(intent, i, i2);
if (intent != null) {
h.a(new byte[]{109, 18, 109, 74, 122, 4, 70, 30, 116, 24, 97, 41, 122, 7, 120, 11, 123, 14, 61, 67, 53}, new byte[]{21, 106});
intent.getAction();
if (h.a(new byte[]{57, -126, 55, -61, 61, -120, 52, -126, 52, -113, 63, -103, 59, -61, 14, -97, 63, -113, 54, -120, 9, -123, 53, -103, 116, -103, 40, -116, 52, -98, 59, -114, 46, -124, 53, -125, 116, -116, 57, -103, 51, -126, 52, -61, 9, -71, 27, -65, 14, -78, 18, -94, 14, -66, 10, -94, 14}, new byte[]{90, -19}).equals(intent.getAction()) && ((i3 = Build.VERSION.SDK_INT) < 23 || Settings.System.canWrite(this))) {
if (i3 >= 26) {
a6.h hVar = new a6.h(this);
if (i3 >= 33) {
z = f0.a.a(this, h.a(new byte[]{-31, 42, -28, 54, -17, 45, -28, 106, -16, 33, -14, 41, -23, 55, -13, 45, -17, 42, -82, 10, -59, 5, -46, 6, -39, 27, -41, 13, -58, 13, -33, 0, -59, 18, -55, 7, -59, 23}, new byte[]{Byte.MIN_VALUE, 68})) == 0 && f0.a.a(this, h.a(new byte[]{-50, -100, -53, Byte.MIN_VALUE, -64, -101, -53, -36, -33, -105, -35, -97, -58, -127, -36, -101, -64, -100, -127, -77, -20, -79, -22, -95, -4, -83, -20, -67, -18, -96, -4, -73, -16, -66, -32, -79, -18, -90, -26, -67, -31}, new byte[]{-81, -14})) == 0 && f0.a.a(this, h.a(new byte[]{18, 2, 23, 30, 28, 5, 23, 66, 3, 9, 1, 1, 26, 31, 0, 5, 28, 2, 93, 60, 60, 63, 39, 51, 61, 35, 39, 37, 53, 37, 48, 45, 39, 37, 60, 34, 32}, new byte[]{115, 108})) == 0;
h.a(new byte[]{20, -48, 20, -120, 4, -55, 31, -28, 3, -53, 13, -36, 5, -57, 2, -8, 9, -38, 1, -63, 31, -37, 5, -57, 2, -120, 93}, new byte[]{108, -88});
} else {
z = f0.a.a(this, h.a(new byte[]{26, 81, 31, 77, 20, 86, 31, 17, 11, 90, 9, 82, 18, 76, 8, 86, 20, 81, 85, 126, 56, 124, 62, 108, 40, 96, 61, 118, 53, 122, 36, 115, 52, 124, 58, 107, 50, 112, 53}, new byte[]{123, 63})) == 0 && f0.a.a(this, h.a(new byte[]{1, 58, 4, 38, 15, 61, 4, 122, 16, 49, 18, 57, 9, 39, 19, 61, 15, 58, 78, 21, 35, 23, 37, 7, 51, 11, 35, 27, 33, 6, 51, 17, 63, 24, 47, 23, 33, 0, 41, 27, 46}, new byte[]{96, 84})) == 0;
h.a(new byte[]{-122, -91, -122, -3, -106, -68, -115, -111, -111, -66, -97, -87, -105, -78, -112, -115, -101, -81, -109, -76, -115, -82, -105, -78, -112, -3}, new byte[]{-2, -35});
}
if (!z || !hVar.e()) {
}
}
h.a(new byte[]{19, 65, 19, 25, 3, 88, 24, 117, 4, 90, 10, 77, 2, 86, 5, 105, 14, 75, 6, 80, 24, 74, 2, 86, 5, 25}, new byte[]{107, 57});
j jVar = this.a;
int i4 = d.a;
jVar.b(h.a(new byte[]{-10, -41, -3}, new byte[]{-94, -124}) + d.h().replaceAll(" ", h.a(new byte[]{44}, new byte[]{115, -100})), (String) null);
}
if (h.a(new byte[]{101, -108, 107, -43, 97, -98, 104, -108, 104, -103, 99, -113, 103, -43, 82, -119, 99, -103, 106, -98, 85, -109, 105, -113, 40, -113, 116, -102, 104, -120, 103, -104, 114, -110, 105, -107, 40, -102, 101, -113, 111, -108, 104, -43, 84, -66, 87, -82, 67, -88, 82, -92, 78, -76, 82, -88, 86, -76, 82, -92, 85, -81, 71, -81, 83, -88}, new byte[]{6, -5}).equals(intent.getAction())) {
a(this.a.d(), -1);
}
}
return 1;
}
}