正在查看: Share Any v2.1.7 应用的 TransferService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Share Any v2.1.7 应用的 TransferService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.shareany.app.service;
import a6.d;
import a6.o;
import a6.p;
import android.content.Intent;
import android.net.nsd.NsdManager;
import android.net.nsd.NsdServiceInfo;
import android.net.wifi.WifiManager;
import android.os.IBinder;
import m5.h;
import net.shareany.app.service.WorkerService;
import rd.b;
import x5.c;
import x5.g;
public class TransferService extends p5.a implements WorkerService.b {
public static final String p = h.a(new byte[]{6, -108, 8, -43, 2, -98, 11, -108, 11, -103, 0, -113, 4, -43, 49, -119, 0, -103, 9, -98, 54, -109, 10, -113, 75, -102, 6, -113, 12, -108, 11, -43, 55, -66, 52, -82, 32, -88, 49, -92, 49, -87, 36, -75, 54, -67, 32, -87}, new byte[]{101, -5});
public static final String q;
public static c r;
public static c.a s;
public p k;
public WifiManager.WifiLock l;
public final rd.a m = new rd.a(this);
public final b n = new b(this);
public g o;
static {
h.a(new byte[]{69, 75, 75, 10, 65, 65, 72, 75, 72, 70, 67, 80, 71, 10, 114, 86, 67, 70, 74, 65, 117, 76, 73, 80, 8, 69, 69, 80, 79, 75, 72, 10, 99, 106, 98, 123, 117, 97, 117, 119, 111, 107, 104}, new byte[]{38, 36});
h.a(new byte[]{-29, -119, -19, -56, -25, -125, -18, -119, -18, -124, -27, -110, -31, -56, -44, -108, -27, -124, -20, -125, -45, -114, -17, -110, -82, -110, -14, -121, -18, -107, -31, -123, -12, -113, -17, -120, -82, -121, -29, -110, -23, -119, -18, -56, -61, -89, -50, -91, -59, -86, -33, -84, -49, -92}, new byte[]{Byte.MIN_VALUE, -26});
q = h.a(new byte[]{-101, -63, -118, -53, -97, -19, -116, -40, -112, -54, -104, -36, -116, -2, -116, -42, -117, -55, -73, -35}, new byte[]{-2, -71});
}
public void g(c cVar, c.a aVar) {
h.a(new byte[]{74, 110, 74, 54, 86, 121, 113, 121, 95, 123, 71, 120, 91, 117, 83, 98, 87, 54}, new byte[]{50, 22});
String str = cVar.d;
td.a aVar2 = new td.a(this.o, cVar, aVar);
getString(2131820870);
aVar2.d = this;
aVar2.f(this);
}
public IBinder onBind(Intent intent) {
return null;
}
public void onCreate() {
super.onCreate();
h.a(new byte[]{-17, -13, -17, -85, -8, -27, -44, -7, -14, -22, -29, -18, -65, -94}, new byte[]{-105, -117});
p pVar = new p(getApplicationContext(), d.c(this));
this.k = pVar;
if (pVar.b()) {
NsdServiceInfo nsdServiceInfo = new NsdServiceInfo();
nsdServiceInfo.setServiceName(h.a(new byte[]{-63, -19, -42, -47, -8, -45, -54}, new byte[]{-107, -66}) + d.k());
nsdServiceInfo.setServiceType(h.a(new byte[]{-100, 3, -80, 20, -84, 26, -82, 89, -100, 3, -96, 7, -19}, new byte[]{-61, 119}));
nsdServiceInfo.setPort(1122);
try {
NsdManager a = pVar.a();
if (pVar.b() && pVar.b == null) {
pVar.b = new o(pVar);
}
a.registerService(nsdServiceInfo, 1, pVar.b);
} catch (Exception e) {
e.printStackTrace();
}
}
WifiManager.WifiLock createWifiLock = ((WifiManager) getApplicationContext().getSystemService(h.a(new byte[]{-75, -85, -92, -85}, new byte[]{-62, -62}))).createWifiLock(((p5.a) this).b);
this.l = createWifiLock;
if (createWifiLock != null) {
createWifiLock.acquire();
}
if (d.b(this) && this.m.start() && this.n.start()) {
return;
}
h.a(new byte[]{89, 102, 82}, new byte[]{10, 39});
h.a(new byte[]{94, 92, 55, 65, 120, 91, 55, 93, 114, 78, 115, 86, 55, 1, 57, 1, 55, 3, 100, 64, 55, 94, 98, 70, 99}, new byte[]{23, 47});
stopSelf();
}
public void onDestroy() {
h.a(new byte[]{85, 88, 85, 0, 66, 78, 105, 69, 94, 84, 95, 79, 84, 8, 4}, new byte[]{45, 32});
this.m.stop();
this.n.stop();
WifiManager.WifiLock wifiLock = this.l;
if (wifiLock != null && wifiLock.isHeld()) {
this.l.release();
h.a(new byte[]{11, 27, 32, 16, 23, 1, 22, 26, 29, 93, 77, 79, 68, 39, 1, 25, 1, 20, 23, 28, 10, 18, 68, 34, 13, 88, 34, 28, 68, 25, 11, 22, 15}, new byte[]{100, 117});
}
p pVar = this.k;
if (pVar.b()) {
try {
NsdManager a = pVar.a();
if (pVar.b() && pVar.b == null) {
pVar.b = new o(pVar);
}
a.unregisterService(pVar.b);
} catch (Exception unused) {
}
}
super.onDestroy();
}
public int onStartCommand(Intent intent, int i, int i2) {
super/*android.app.Service*/.onStartCommand(intent, i, i2);
if (intent != null) {
h.a(new byte[]{-86, -35, -86, -123, -67, -53, -127, -47, -77, -41, -90, -115, -5, -123, -24, -123, -77, -58, -90, -52, -67, -53, -14, -104, -14}, new byte[]{-46, -91});
intent.getAction();
}
if (intent == null || !d.b(this)) {
h.a(new byte[]{99, 114, 99, 42, -3, -105, -104, -29, -126, -102, -1, -78, -106, -30, -83, -71, 53, 36}, new byte[]{27, 10});
return 1;
}
if (!p.equals(intent.getAction())) {
return 1;
}
h.a(new byte[]{49, -118, 49, -46, 40, -111, 61, -101, 38, -100, 105}, new byte[]{73, -14});
intent.getAction();
try {
this.o = new g(intent.getLongExtra(q, -1L));
d.c(this).reconstruct(this.o);
g(r, s);
return 1;
} catch (Exception e) {
h.a(new byte[]{-92, 92, -92, 4, -88, 86, -67, 74, -81, 66, -71, 86, -4, 67, -82, 75, -87, 84, -4, 74, -77, 80, -4, 66, -77, 81, -78, 64, -4, 65, -82, 86, -77, 86, -16, 4, -65, 69, -78, 3, -88, 4, -82, 65, -83, 81, -71, 87, -88, 4, -88, 86, -67, 74, -81, 66, -71, 86, -4}, new byte[]{-36, 36});
e.getMessage();
return 1;
}
}
}