正在查看: 远离手机 v4.9.11 应用的 lIII11II1l1lI.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 远离手机 v4.9.11 应用的 lIII11II1l1lI.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.lijianqiang12.silent;
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 java.util.ArrayList;
import java.util.HashMap;
@Deprecated
public abstract class lIII11II1l1lI extends Service {
static final String Ill1l11ll11l = "JobIntentService";
static final boolean IllII1lIII = false;
lI111l1I1llIl I1II1ll1lI1;
IlllIll1I1I Il11lIlllll1;
IIllIl1llII l11l1l11I1;
final ArrayList<lIIl1I1I> l11llI1Ill1;
static final Object IlIII1l1l111 = new Object();
static final HashMap<ComponentName, lI111l1I1llIl> llll11l11l1 = new HashMap<>();
boolean lI11lI1llIl11 = false;
boolean l1I11II1llI1I = false;
boolean IIl1ll1ll1l = false;
final class IIllIl1llII extends AsyncTask<Void, Void, Void> {
IIllIl1llII() {
}
@Override
public Void doInBackground(Void... voidArr) {
while (true) {
Il1IlII1 IIllIl1llII = lIII11II1l1lI.this.IIllIl1llII();
if (IIllIl1llII == null) {
return null;
}
lIII11II1l1lI.this.lI111l1I1llIl(IIllIl1llII.getIntent());
IIllIl1llII.IIllIl1llII();
}
}
@Override
public void onPostExecute(Void r1) {
lIII11II1l1lI.this.IIll11IllI1l();
}
@Override
public void onCancelled(Void r1) {
lIII11II1l1lI.this.IIll11IllI1l();
}
}
static final class Il11lI1III1 extends lI111l1I1llIl {
private final PowerManager.WakeLock Il1IlII1;
private final PowerManager.WakeLock lI11111lI1;
boolean lI111l1I1llIl;
boolean lII1lI1Illl;
private final Context lIIl1I1I;
Il11lI1III1(Context context, ComponentName componentName) {
super(componentName);
this.lIIl1I1I = context.getApplicationContext();
PowerManager powerManager = (PowerManager) context.getSystemService("power");
PowerManager.WakeLock newWakeLock = powerManager.newWakeLock(1, componentName.getClassName() + ":launch");
this.Il1IlII1 = newWakeLock;
newWakeLock.setReferenceCounted(false);
PowerManager.WakeLock newWakeLock2 = powerManager.newWakeLock(1, componentName.getClassName() + ":run");
this.lI11111lI1 = newWakeLock2;
newWakeLock2.setReferenceCounted(false);
}
@Override
void IIllIl1llII(Intent intent) {
Intent intent2 = new Intent(intent);
intent2.setComponent(this.IIllIl1llII);
if (this.lIIl1I1I.startService(intent2) != null) {
synchronized (this) {
try {
if (!this.lII1lI1Illl) {
this.lII1lI1Illl = true;
if (!this.lI111l1I1llIl) {
this.Il1IlII1.acquire(60000L);
}
}
} finally {
}
}
}
}
@Override
public void Il11lI1III1() {
synchronized (this) {
try {
if (this.lI111l1I1llIl) {
if (this.lII1lI1Illl) {
this.Il1IlII1.acquire(60000L);
}
this.lI111l1I1llIl = false;
this.lI11111lI1.release();
}
} catch (Throwable th) {
throw th;
}
}
}
@Override
public void Il1IlII1() {
synchronized (this) {
this.lII1lI1Illl = false;
}
}
@Override
public void lIIl1I1I() {
synchronized (this) {
try {
if (!this.lI111l1I1llIl) {
this.lI111l1I1llIl = true;
this.lI11111lI1.acquire(600000L);
this.Il1IlII1.release();
}
} catch (Throwable th) {
throw th;
}
}
}
}
interface Il1IlII1 {
void IIllIl1llII();
Intent getIntent();
}
interface IlllIll1I1I {
IBinder IIllIl1llII();
Il1IlII1 IlllIll1I1I();
}
@l1l1lI1IIl1I(26)
static final class lI11111lI1 extends JobServiceEngine implements IlllIll1I1I {
static final boolean Il1IlII1 = false;
static final String lIIl1I1I = "JobServiceEngineImpl";
final lIII11II1l1lI IIllIl1llII;
JobParameters Il11lI1III1;
final Object IlllIll1I1I;
final class IIllIl1llII implements Il1IlII1 {
final JobWorkItem IIllIl1llII;
IIllIl1llII(JobWorkItem jobWorkItem) {
this.IIllIl1llII = jobWorkItem;
}
@Override
public void IIllIl1llII() {
synchronized (lI11111lI1.this.IlllIll1I1I) {
try {
JobParameters jobParameters = lI11111lI1.this.Il11lI1III1;
if (jobParameters != null) {
jobParameters.completeWork(this.IIllIl1llII);
}
} catch (Throwable th) {
throw th;
}
}
}
@Override
public Intent getIntent() {
Intent intent;
intent = this.IIllIl1llII.getIntent();
return intent;
}
}
lI11111lI1(lIII11II1l1lI liii11ii1l1li) {
super(liii11ii1l1li);
this.IlllIll1I1I = new Object();
this.IIllIl1llII = liii11ii1l1li;
}
@Override
public IBinder IIllIl1llII() {
IBinder binder;
binder = getBinder();
return binder;
}
@Override
public Il1IlII1 IlllIll1I1I() {
JobWorkItem dequeueWork;
Intent intent;
synchronized (this.IlllIll1I1I) {
try {
JobParameters jobParameters = this.Il11lI1III1;
if (jobParameters == null) {
return null;
}
dequeueWork = jobParameters.dequeueWork();
if (dequeueWork == null) {
return null;
}
intent = dequeueWork.getIntent();
intent.setExtrasClassLoader(this.IIllIl1llII.getClassLoader());
return new IIllIl1llII(dequeueWork);
} catch (Throwable th) {
throw th;
}
}
}
public boolean onStartJob(JobParameters jobParameters) {
this.Il11lI1III1 = jobParameters;
this.IIllIl1llII.Il1IlII1(false);
return true;
}
public boolean onStopJob(JobParameters jobParameters) {
boolean IlllIll1I1I = this.IIllIl1llII.IlllIll1I1I();
synchronized (this.IlllIll1I1I) {
this.Il11lI1III1 = null;
}
return IlllIll1I1I;
}
}
static abstract class lI111l1I1llIl {
final ComponentName IIllIl1llII;
int Il11lI1III1;
boolean IlllIll1I1I;
lI111l1I1llIl(ComponentName componentName) {
this.IIllIl1llII = componentName;
}
abstract void IIllIl1llII(Intent intent);
public void Il11lI1III1() {
}
public void Il1IlII1() {
}
void IlllIll1I1I(int i) {
if (!this.IlllIll1I1I) {
this.IlllIll1I1I = true;
this.Il11lI1III1 = i;
} else {
if (this.Il11lI1III1 == i) {
return;
}
throw new IllegalArgumentException("Given job ID " + i + " is different than previous " + this.Il11lI1III1);
}
}
public void lIIl1I1I() {
}
}
@l1l1lI1IIl1I(26)
static final class lII1lI1Illl extends lI111l1I1llIl {
private final JobScheduler Il1IlII1;
private final JobInfo lIIl1I1I;
lII1lI1Illl(Context context, ComponentName componentName, int i) {
super(componentName);
IlllIll1I1I(i);
this.lIIl1I1I = new JobInfo.Builder(i, this.IIllIl1llII).setOverrideDeadline(0L).build();
this.Il1IlII1 = (JobScheduler) context.getApplicationContext().getSystemService("jobscheduler");
}
@Override
void IIllIl1llII(Intent intent) {
this.Il1IlII1.enqueue(this.lIIl1I1I, I1Illl1IlI1I.IIllIl1llII(intent));
}
}
final class lIIl1I1I implements Il1IlII1 {
final Intent IIllIl1llII;
final int IlllIll1I1I;
lIIl1I1I(Intent intent, int i) {
this.IIllIl1llII = intent;
this.IlllIll1I1I = i;
}
@Override
public void IIllIl1llII() {
lIII11II1l1lI.this.stopSelf(this.IlllIll1I1I);
}
@Override
public Intent getIntent() {
return this.IIllIl1llII;
}
}
public lIII11II1l1lI() {
if (Build.VERSION.SDK_INT >= 26) {
this.l11llI1Ill1 = null;
} else {
this.l11llI1Ill1 = new ArrayList<>();
}
}
public static void Il11lI1III1(@IlI1111llI11I Context context, @IlI1111llI11I ComponentName componentName, int i, @IlI1111llI11I Intent intent) {
if (intent == null) {
throw new IllegalArgumentException("work must not be null");
}
synchronized (IlIII1l1l111) {
lI111l1I1llIl lI11111lI12 = lI11111lI1(context, componentName, true, i);
lI11111lI12.IlllIll1I1I(i);
lI11111lI12.IIllIl1llII(intent);
}
}
static lI111l1I1llIl lI11111lI1(Context context, ComponentName componentName, boolean z, int i) {
lI111l1I1llIl il11lI1III1;
HashMap<ComponentName, lI111l1I1llIl> hashMap = llll11l11l1;
lI111l1I1llIl li111l1i1llil = hashMap.get(componentName);
if (li111l1i1llil == null) {
if (Build.VERSION.SDK_INT < 26) {
il11lI1III1 = new Il11lI1III1(context, componentName);
} else {
if (!z) {
throw new IllegalArgumentException("Can't be here without a job id");
}
il11lI1III1 = new lII1lI1Illl(context, componentName, i);
}
li111l1i1llil = il11lI1III1;
hashMap.put(componentName, li111l1i1llil);
}
return li111l1i1llil;
}
public static void lIIl1I1I(@IlI1111llI11I Context context, @IlI1111llI11I Class<?> cls, int i, @IlI1111llI11I Intent intent) {
Il11lI1III1(context, new ComponentName(context, cls), i, intent);
}
public void I1Il11llllIl(boolean z) {
this.lI11lI1llIl11 = z;
}
void IIll11IllI1l() {
ArrayList<lIIl1I1I> arrayList = this.l11llI1Ill1;
if (arrayList != null) {
synchronized (arrayList) {
try {
this.l11l1l11I1 = null;
ArrayList<lIIl1I1I> arrayList2 = this.l11llI1Ill1;
if (arrayList2 != null && arrayList2.size() > 0) {
Il1IlII1(false);
} else if (!this.IIl1ll1ll1l) {
this.I1II1ll1lI1.Il11lI1III1();
}
} finally {
}
}
}
}
Il1IlII1 IIllIl1llII() {
IlllIll1I1I illlIll1I1I = this.Il11lIlllll1;
if (illlIll1I1I != null) {
return illlIll1I1I.IlllIll1I1I();
}
synchronized (this.l11llI1Ill1) {
try {
if (this.l11llI1Ill1.size() <= 0) {
return null;
}
return this.l11llI1Ill1.remove(0);
} catch (Throwable th) {
throw th;
}
}
}
void Il1IlII1(boolean z) {
if (this.l11l1l11I1 == null) {
this.l11l1l11I1 = new IIllIl1llII();
lI111l1I1llIl li111l1i1llil = this.I1II1ll1lI1;
if (li111l1i1llil != null && z) {
li111l1i1llil.lIIl1I1I();
}
this.l11l1l11I1.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]);
}
}
public boolean Ill1llIIlIlll() {
return true;
}
boolean IlllIll1I1I() {
IIllIl1llII iIllIl1llII = this.l11l1l11I1;
if (iIllIl1llII != null) {
iIllIl1llII.cancel(this.lI11lI1llIl11);
}
this.l1I11II1llI1I = true;
return Ill1llIIlIlll();
}
protected abstract void lI111l1I1llIl(@IlI1111llI11I Intent intent);
public boolean lII1lI1Illl() {
return this.l1I11II1llI1I;
}
@Override
public IBinder onBind(@IlI1111llI11I Intent intent) {
IlllIll1I1I illlIll1I1I = this.Il11lIlllll1;
if (illlIll1I1I != null) {
return illlIll1I1I.IIllIl1llII();
}
return null;
}
@Override
public void onCreate() {
super.onCreate();
if (Build.VERSION.SDK_INT >= 26) {
this.Il11lIlllll1 = new lI11111lI1(this);
this.I1II1ll1lI1 = null;
} else {
this.Il11lIlllll1 = null;
this.I1II1ll1lI1 = lI11111lI1(this, new ComponentName(this, getClass()), false, 0);
}
}
@Override
public void onDestroy() {
super.onDestroy();
ArrayList<lIIl1I1I> arrayList = this.l11llI1Ill1;
if (arrayList != null) {
synchronized (arrayList) {
this.IIl1ll1ll1l = true;
this.I1II1ll1lI1.Il11lI1III1();
}
}
}
@Override
public int onStartCommand(@II1lll1lIlIl1 Intent intent, int i, int i2) {
if (this.l11llI1Ill1 == null) {
return 2;
}
this.I1II1ll1lI1.Il1IlII1();
synchronized (this.l11llI1Ill1) {
ArrayList<lIIl1I1I> arrayList = this.l11llI1Ill1;
if (intent == null) {
intent = new Intent();
}
arrayList.add(new lIIl1I1I(intent, i2));
Il1IlII1(true);
}
return 3;
}
}