Skip to content

Instantly share code, notes, and snippets.

@t4kemyh4nd
Last active October 15, 2023 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t4kemyh4nd/a2450048f99688c22362eef95226deaf to your computer and use it in GitHub Desktop.
Save t4kemyh4nd/a2450048f99688c22362eef95226deaf to your computer and use it in GitHub Desktop.
public final void installWebApk(String packageName, int version, String title, String token, Callback callback, boolean z) {
boolean z2;
Object obj = ThreadUtils.a;
Bundle bundle = new Bundle();
bundle.putInt("version_number", version);
bundle.putString("title", title);
bundle.putParcelable("notification_intent", new Intent());
bundle.putString("wam_token", token);
processor processorVar = new processor(new token_process(this, packageName, bundle), new callback_func(this, packageName, callback), packageName, z);
this.hashmap.put(packageName, processorVar);
y71 y71Var = this.f16589b;
if (y71Var == null) {
z2 = true;
if (y71Var == null && !this.bool) {
Intent intent = new Intent("com.google.android.finsky.BIND_PLAY_INSTALL_SERVICE");
intent.setPackage("com.android.vending");
try {
z2 = this.context.bindService(intent, this.serviceConnection, 1);
this.bool = z2;
} catch (SecurityException e) {
Log.w("cr_PlayInstall", "Failed to connect to play install service.", e);
}
}
if (z2) {
m5100d(-20, 0, packageName);
return;
}
return;
}
processorVar.f1293a.c(dj.e);
return;
z2 = false;
if (z2) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment