CrackMe.apk
Download file
package com.facebook.imagepipeline.core;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
public class DefaultExecutorSupplier implements ExecutorSupplier {
private static final int NUM_IO_BOUND_THREADS = 2;
private static final int NUM_LIGHTWEIGHT_BACKGROUND_THREADS = 1;
private final Executor mBackgroundExecutor;
private final ScheduledExecutorService mBackgroundScheduledExecutorService;
private final Executor mDecodeExecutor;
private final Executor mIoBoundExecutor = Executors.newFixedThreadPool(2, new PriorityThreadFactory(10, "FrescoIoBoundExecutor", true));
private final Executor mLightWeightBackgroundExecutor;
public DefaultExecutorSupplier(int i) {
this.mDecodeExecutor = Executors.newFixedThreadPool(i, new PriorityThreadFactory(10, "FrescoDecodeExecutor", true));
this.mBackgroundExecutor = Executors.newFixedThreadPool(i, new PriorityThreadFactory(10, "FrescoBackgroundExecutor", true));
this.mBackgroundScheduledExecutorService = Executors.newScheduledThreadPool(i, new PriorityThreadFactory(10, "FrescoBackgroundExecutor", true));
this.mLightWeightBackgroundExecutor = Executors.newFixedThreadPool(1, new PriorityThreadFactory(10, "FrescoLightWeightBackgroundExecutor", true));
}
public Executor forLocalStorageRead() {
return this.mIoBoundExecutor;
}
public Executor forLocalStorageWrite() {
return this.mIoBoundExecutor;
}
public Executor forDecode() {
return this.mDecodeExecutor;
}
public Executor forBackgroundTasks() {
return this.mBackgroundExecutor;
}
public ScheduledExecutorService scheduledExecutorServiceForBackgroundTasks() {
return this.mBackgroundScheduledExecutorService;
}
public Executor forLightweightBackgroundTasks() {
return this.mLightWeightBackgroundExecutor;
}
public Executor forThumbnailProducer() {
return this.mIoBoundExecutor;
}
}
Download file