正在查看: Tasker v6.6.3 应用的 IntentHandler.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tasker v6.6.3 应用的 IntentHandler.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package net.dinglisch.android.taskerm;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Pair;
import java.io.File;
public class IntentHandler extends Activity implements xf.a, ze.e {
private SharedPreferences i;
private com.joaomgcd.taskerm.helper.h<IntentHandler> q = new com.joaomgcd.taskerm.helper.h<>(this);
private boolean e(String str) {
File file;
File file2 = null;
if (str == null) {
o7.k("IntentHandler", "null ssp");
file = null;
} else {
file = new File(str.substring(2));
}
if (file == null) {
o7.k("IntentHandler", "null target file");
} else if (file.exists()) {
if (file.getName().endsWith(".prf.xml")) {
file2 = io.A0(this.i);
} else if (file.getName().endsWith(".tsk.xml")) {
file2 = fn.L0();
} else if (file.getName().endsWith(".scn.xml")) {
file2 = mj.i1();
} else if (file.getName().endsWith(".prj.xml")) {
file2 = pi.k(this.i);
}
if (file2 != null) {
if (pp.o2(file2)) {
l(file, file2);
} else {
pp.c0(this, 2131887835, file2.toString());
}
return true;
}
} else {
o7.k("IntentHandler", "file not exist: " + file);
}
return false;
}
private boolean f(android.net.Uri r10, java.lang.String r11) {
throw new UnsupportedOperationException("Method not decompiled: net.dinglisch.android.taskerm.IntentHandler.f(android.net.Uri, java.lang.String):boolean");
}
private Pair<Boolean, Boolean> h(final Resources resources, Intent intent) {
o7.f("IntentHandler", "shortcut click: " + intent.toString());
com.joaomgcd.taskerm.util.t2.e(intent);
final Bundle extras = intent.getExtras();
o7.v("BOO", extras);
if (extras == null) {
o7.G("IntentHandler", "shortcut intent has no extras");
finish();
return new Pair<>(Boolean.FALSE, Boolean.TRUE);
}
if (extras.containsKey("shortcutID")) {
gm.g(this, extras.getString("shortcutID"));
}
final String string = extras.getString("mcro");
if (string == null) {
o7.G("IntentHandler", "shortcut click intent has no task extra");
finish();
return new Pair<>(Boolean.FALSE, Boolean.TRUE);
}
final Runnable runnable = new Runnable() {
@Override
public final void run() {
IntentHandler.this.i(string, resources, extras);
}
};
if (d() || com.joaomgcd.taskerm.settings.d1.e(this)) {
runnable.run();
Boolean bool = Boolean.TRUE;
return new Pair<>(bool, bool);
}
ph.b bVar = new ph.b(this);
if (!bVar.m(extras)) {
this.q.q0(com.joaomgcd.taskerm.dialog.a.c3(this), new yi.d() {
@Override
public final void accept(Object obj) {
IntentHandler.this.j((df.p1) obj);
}
});
return new Pair<>(Boolean.TRUE, Boolean.FALSE);
}
if (!bVar.n(extras)) {
this.q.q0(com.joaomgcd.taskerm.dialog.a.Z2(this), new yi.d() {
@Override
public final void accept(Object obj) {
IntentHandler.this.k(runnable, (Boolean) obj);
}
});
return new Pair<>(Boolean.TRUE, Boolean.FALSE);
}
runnable.run();
Boolean bool2 = Boolean.TRUE;
return new Pair<>(bool2, bool2);
}
public void i(String str, Resources resources, Bundle bundle) {
int i = pp.R0(this).getInt("wtp", 7);
fn fnVar = new fn(new ii(str));
o7.f("IntentHandler", "shortcut task: " + fnVar.u1(resources));
o7.f("IntentHandler", "update shortcut task pri, " + fnVar.m1() + "->" + i);
fnVar.D2(i);
Bundle bundle2 = null;
if (bundle.containsKey("source")) {
Bundle bundle3 = new Bundle();
wp.d(bundle.getString("source"), null, bundle3);
bundle2 = bundle3;
}
ExecuteService.n7(this, fnVar, bundle2);
}
public void j(df.p1 p1Var) throws Exception {
finish();
}
public void k(Runnable runnable, Boolean bool) throws Exception {
if (bool.booleanValue()) {
runnable.run();
}
finish();
}
private void l(File file, File file2) {
if (pp.q2(file, file2) == null) {
pp.e0(this, 2131887490, 2131887196, 1);
} else {
pp.e0(this, 2131887490, 2131887237, 1);
}
}
protected boolean d() {
return Kid.a();
}
@Override
public void g(com.joaomgcd.taskerm.util.ac acVar, com.joaomgcd.taskerm.util.se seVar) {
}
public uk.n0 getCoroutineScope() {
return super.getCoroutineScope();
}
@Override
public com.joaomgcd.taskerm.helper.j getHelper() {
return this.q;
}
@Override
public void onCreate(android.os.Bundle r10) {
throw new UnsupportedOperationException("Method not decompiled: net.dinglisch.android.taskerm.IntentHandler.onCreate(android.os.Bundle):void");
}
@Override
public void onDestroy() {
super.onDestroy();
this.q.h0();
this.i = null;
}
}