正在查看: 密秀 v1.0 应用的 AbstractServiceC0971q.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 密秀 v1.0 应用的 AbstractServiceC0971q.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package w;
import android.app.Service;
import android.app.job.JobInfo;
import android.app.job.JobParameters;
import android.app.job.JobScheduler;
import android.app.job.JobServiceEngine;
import android.app.job.JobWorkItem;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import android.os.IBinder;
import android.os.PowerManager;
import e.InterfaceC0606P;
import java.util.ArrayList;
import java.util.HashMap;
@Deprecated
public abstract class AbstractServiceC0971q extends Service {
public static final String Queig1oK2deemolu = "JobIntentService";
public static final boolean aBomi9thoodupaik = false;
public static final Object ma1aej6cohmutahY = new Object();
public static final HashMap<ComponentName, h> yithei7eiPhau7sh = new HashMap<>();
public boolean NieGhae7ciej4eis = false;
public boolean So5Iifei8bahgeth = false;
public boolean beNga4uimu4icair = false;
public b chaiv0eodohJaig0;
public a koo6ahlohTh1Eiph;
public final ArrayList<d> taim3fie8aecho4I;
public h zie5kei7aiJe1iek;
public final class a extends AsyncTask<Void, Void, Void> {
public a() {
}
@Override
public void onCancelled(Void r12) {
AbstractServiceC0971q.this.aBomi9thoodupaik();
}
@Override
public Void doInBackground(Void... voidArr) {
while (true) {
e eiNaiXooTicou8Va = AbstractServiceC0971q.this.eiNaiXooTicou8Va();
if (eiNaiXooTicou8Va == null) {
return null;
}
AbstractServiceC0971q.this.taim3fie8aecho4I(eiNaiXooTicou8Va.getIntent());
eiNaiXooTicou8Va.chaiv0eodohJaig0();
}
}
@Override
public void onPostExecute(Void r12) {
AbstractServiceC0971q.this.aBomi9thoodupaik();
}
}
public interface b {
IBinder chaiv0eodohJaig0();
e eiNaiXooTicou8Va();
}
public static final class c extends h {
public final PowerManager.WakeLock NieGhae7ciej4eis;
public final PowerManager.WakeLock So5Iifei8bahgeth;
public boolean beNga4uimu4icair;
public final Context koo6ahlohTh1Eiph;
public boolean taim3fie8aecho4I;
public c(Context context, ComponentName componentName) {
super(componentName);
this.koo6ahlohTh1Eiph = context.getApplicationContext();
PowerManager powerManager = (PowerManager) context.getSystemService("power");
PowerManager.WakeLock newWakeLock = powerManager.newWakeLock(1, componentName.getClassName() + ":launch");
this.NieGhae7ciej4eis = newWakeLock;
newWakeLock.setReferenceCounted(false);
PowerManager.WakeLock newWakeLock2 = powerManager.newWakeLock(1, componentName.getClassName() + ":run");
this.So5Iifei8bahgeth = newWakeLock2;
newWakeLock2.setReferenceCounted(false);
}
@Override
public void NieGhae7ciej4eis() {
synchronized (this) {
this.beNga4uimu4icair = false;
}
}
@Override
public void eiNaiXooTicou8Va(Intent intent) {
Intent intent2 = new Intent(intent);
intent2.setComponent(this.eiNaiXooTicou8Va);
if (this.koo6ahlohTh1Eiph.startService(intent2) != null) {
synchronized (this) {
try {
if (!this.beNga4uimu4icair) {
this.beNga4uimu4icair = true;
if (!this.taim3fie8aecho4I) {
this.NieGhae7ciej4eis.acquire(60000L);
}
}
} finally {
}
}
}
}
@Override
public void koo6ahlohTh1Eiph() {
synchronized (this) {
try {
if (!this.taim3fie8aecho4I) {
this.taim3fie8aecho4I = true;
this.So5Iifei8bahgeth.acquire(600000L);
this.NieGhae7ciej4eis.release();
}
} catch (Throwable th) {
throw th;
}
}
}
@Override
public void zie5kei7aiJe1iek() {
synchronized (this) {
try {
if (this.taim3fie8aecho4I) {
if (this.beNga4uimu4icair) {
this.NieGhae7ciej4eis.acquire(60000L);
}
this.taim3fie8aecho4I = false;
this.So5Iifei8bahgeth.release();
}
} catch (Throwable th) {
throw th;
}
}
}
}
public final class d implements e {
public final int chaiv0eodohJaig0;
public final Intent eiNaiXooTicou8Va;
public d(Intent intent, int i2) {
this.eiNaiXooTicou8Va = intent;
this.chaiv0eodohJaig0 = i2;
}
@Override
public void chaiv0eodohJaig0() {
AbstractServiceC0971q.this.stopSelf(this.chaiv0eodohJaig0);
}
@Override
public Intent getIntent() {
return this.eiNaiXooTicou8Va;
}
}
public interface e {
void chaiv0eodohJaig0();
Intent getIntent();
}
@e.Y(26)
public static final class f extends JobServiceEngine implements b {
public static final boolean NieGhae7ciej4eis = false;
public static final String koo6ahlohTh1Eiph = "JobServiceEngineImpl";
public final Object chaiv0eodohJaig0;
public final AbstractServiceC0971q eiNaiXooTicou8Va;
public JobParameters zie5kei7aiJe1iek;
public final class a implements e {
public final JobWorkItem eiNaiXooTicou8Va;
public a(JobWorkItem jobWorkItem) {
this.eiNaiXooTicou8Va = jobWorkItem;
}
@Override
public void chaiv0eodohJaig0() {
synchronized (f.this.chaiv0eodohJaig0) {
try {
JobParameters jobParameters = f.this.zie5kei7aiJe1iek;
if (jobParameters != null) {
jobParameters.completeWork(this.eiNaiXooTicou8Va);
}
} catch (Throwable th) {
throw th;
}
}
}
@Override
public Intent getIntent() {
Intent intent;
intent = this.eiNaiXooTicou8Va.getIntent();
return intent;
}
}
public f(AbstractServiceC0971q abstractServiceC0971q) {
super(abstractServiceC0971q);
this.chaiv0eodohJaig0 = new Object();
this.eiNaiXooTicou8Va = abstractServiceC0971q;
}
@Override
public IBinder chaiv0eodohJaig0() {
IBinder binder;
binder = getBinder();
return binder;
}
@Override
public e eiNaiXooTicou8Va() {
JobWorkItem dequeueWork;
Intent intent;
synchronized (this.chaiv0eodohJaig0) {
try {
JobParameters jobParameters = this.zie5kei7aiJe1iek;
if (jobParameters == null) {
return null;
}
dequeueWork = jobParameters.dequeueWork();
if (dequeueWork == null) {
return null;
}
intent = dequeueWork.getIntent();
intent.setExtrasClassLoader(this.eiNaiXooTicou8Va.getClassLoader());
return new a(dequeueWork);
} catch (Throwable th) {
throw th;
}
}
}
@Override
public boolean onStartJob(JobParameters jobParameters) {
this.zie5kei7aiJe1iek = jobParameters;
this.eiNaiXooTicou8Va.NieGhae7ciej4eis(false);
return true;
}
@Override
public boolean onStopJob(JobParameters jobParameters) {
boolean chaiv0eodohJaig0 = this.eiNaiXooTicou8Va.chaiv0eodohJaig0();
synchronized (this.chaiv0eodohJaig0) {
this.zie5kei7aiJe1iek = null;
}
return chaiv0eodohJaig0;
}
}
@e.Y(26)
public static final class g extends h {
public final JobScheduler NieGhae7ciej4eis;
public final JobInfo koo6ahlohTh1Eiph;
public g(Context context, ComponentName componentName, int i2) {
super(componentName);
chaiv0eodohJaig0(i2);
this.koo6ahlohTh1Eiph = new JobInfo.Builder(i2, this.eiNaiXooTicou8Va).setOverrideDeadline(0L).build();
this.NieGhae7ciej4eis = (JobScheduler) context.getApplicationContext().getSystemService("jobscheduler");
}
@Override
public void eiNaiXooTicou8Va(Intent intent) {
this.NieGhae7ciej4eis.enqueue(this.koo6ahlohTh1Eiph, C0977w.eiNaiXooTicou8Va(intent));
}
}
public AbstractServiceC0971q() {
this.taim3fie8aecho4I = Build.VERSION.SDK_INT >= 26 ? null : new ArrayList<>();
}
public static h So5Iifei8bahgeth(Context context, ComponentName componentName, boolean z2, int i2) {
h cVar;
HashMap<ComponentName, h> hashMap = yithei7eiPhau7sh;
h hVar = hashMap.get(componentName);
if (hVar == null) {
if (Build.VERSION.SDK_INT < 26) {
cVar = new c(context, componentName);
} else {
if (!z2) {
throw new IllegalArgumentException("Can't be here without a job id");
}
cVar = new g(context, componentName, i2);
}
hVar = cVar;
hashMap.put(componentName, hVar);
}
return hVar;
}
public static void koo6ahlohTh1Eiph(@InterfaceC0606P Context context, @InterfaceC0606P Class<?> cls, int i2, @InterfaceC0606P Intent intent) {
zie5kei7aiJe1iek(context, new ComponentName(context, cls), i2, intent);
}
public static void zie5kei7aiJe1iek(@InterfaceC0606P Context context, @InterfaceC0606P ComponentName componentName, int i2, @InterfaceC0606P Intent intent) {
if (intent == null) {
throw new IllegalArgumentException("work must not be null");
}
synchronized (ma1aej6cohmutahY) {
h So5Iifei8bahgeth = So5Iifei8bahgeth(context, componentName, true, i2);
So5Iifei8bahgeth.chaiv0eodohJaig0(i2);
So5Iifei8bahgeth.eiNaiXooTicou8Va(intent);
}
}
public void NieGhae7ciej4eis(boolean z2) {
if (this.koo6ahlohTh1Eiph == null) {
this.koo6ahlohTh1Eiph = new a();
h hVar = this.zie5kei7aiJe1iek;
if (hVar != null && z2) {
hVar.koo6ahlohTh1Eiph();
}
this.koo6ahlohTh1Eiph.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]);
}
}
public boolean Queig1oK2deemolu() {
return true;
}
public void aBomi9thoodupaik() {
ArrayList<d> arrayList = this.taim3fie8aecho4I;
if (arrayList != null) {
synchronized (arrayList) {
try {
this.koo6ahlohTh1Eiph = null;
ArrayList<d> arrayList2 = this.taim3fie8aecho4I;
if (arrayList2 != null && arrayList2.size() > 0) {
NieGhae7ciej4eis(false);
} else if (!this.beNga4uimu4icair) {
this.zie5kei7aiJe1iek.zie5kei7aiJe1iek();
}
} finally {
}
}
}
}
public boolean beNga4uimu4icair() {
return this.So5Iifei8bahgeth;
}
public boolean chaiv0eodohJaig0() {
a aVar = this.koo6ahlohTh1Eiph;
if (aVar != null) {
aVar.cancel(this.NieGhae7ciej4eis);
}
this.So5Iifei8bahgeth = true;
return Queig1oK2deemolu();
}
public e eiNaiXooTicou8Va() {
b bVar = this.chaiv0eodohJaig0;
if (bVar != null) {
return bVar.eiNaiXooTicou8Va();
}
synchronized (this.taim3fie8aecho4I) {
try {
if (this.taim3fie8aecho4I.size() <= 0) {
return null;
}
return this.taim3fie8aecho4I.remove(0);
} catch (Throwable th) {
throw th;
}
}
}
public void ma1aej6cohmutahY(boolean z2) {
this.NieGhae7ciej4eis = z2;
}
@Override
public IBinder onBind(@InterfaceC0606P Intent intent) {
b bVar = this.chaiv0eodohJaig0;
if (bVar != null) {
return bVar.chaiv0eodohJaig0();
}
return null;
}
@Override
public void onCreate() {
super.onCreate();
if (Build.VERSION.SDK_INT >= 26) {
this.chaiv0eodohJaig0 = new f(this);
this.zie5kei7aiJe1iek = null;
} else {
this.chaiv0eodohJaig0 = null;
this.zie5kei7aiJe1iek = So5Iifei8bahgeth(this, new ComponentName(this, getClass()), false, 0);
}
}
@Override
public void onDestroy() {
super.onDestroy();
ArrayList<d> arrayList = this.taim3fie8aecho4I;
if (arrayList != null) {
synchronized (arrayList) {
this.beNga4uimu4icair = true;
this.zie5kei7aiJe1iek.zie5kei7aiJe1iek();
}
}
}
@Override
public int onStartCommand(@e.S Intent intent, int i2, int i3) {
if (this.taim3fie8aecho4I == null) {
return 2;
}
this.zie5kei7aiJe1iek.NieGhae7ciej4eis();
synchronized (this.taim3fie8aecho4I) {
ArrayList<d> arrayList = this.taim3fie8aecho4I;
if (intent == null) {
intent = new Intent();
}
arrayList.add(new d(intent, i3));
NieGhae7ciej4eis(true);
}
return 3;
}
public abstract void taim3fie8aecho4I(@InterfaceC0606P Intent intent);
public static abstract class h {
public boolean chaiv0eodohJaig0;
public final ComponentName eiNaiXooTicou8Va;
public int zie5kei7aiJe1iek;
public h(ComponentName componentName) {
this.eiNaiXooTicou8Va = componentName;
}
public void chaiv0eodohJaig0(int i2) {
if (!this.chaiv0eodohJaig0) {
this.chaiv0eodohJaig0 = true;
this.zie5kei7aiJe1iek = i2;
} else {
if (this.zie5kei7aiJe1iek == i2) {
return;
}
throw new IllegalArgumentException("Given job ID " + i2 + " is different than previous " + this.zie5kei7aiJe1iek);
}
}
public abstract void eiNaiXooTicou8Va(Intent intent);
public void NieGhae7ciej4eis() {
}
public void koo6ahlohTh1Eiph() {
}
public void zie5kei7aiJe1iek() {
}
}
}