Skip to content

Instantly share code, notes, and snippets.

View aiae.java
package p000;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Parcel;
import android.os.RemoteException;
import android.os.StrictMode;
import android.util.Log;
View qfp.java
public final Bundle mo10213a(ury uryVar) {
if (((amnn) lcr.f119362bx).mo44601a().booleanValue()) {
Object obj = uryVar.f150338c;
String[] strArr = f136215d;
for (int i = 0; i < 5; i++) {
if (!strArr[i].equals(obj)) {
}
}
return null;
}
View playInstallService.java
package com.google.android.finsky.installapi;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
public class PlayInstallService extends Service {
public jav f83281a;
View w71.java
public final class w71 implements y71 {
/* renamed from: u */
public final IBinder f26939u;
public w71(IBinder iBinder) {
this.f26939u = iBinder;
}
@Override // android.os.IInterface
View playServiceConnection.java
public final class playServiceConnection implements ServiceConnection {
/* renamed from: u */
public final /* synthetic */ GooglePlayWebApkInstallDelegate f16160u;
public playServiceConnection(GooglePlayWebApkInstallDelegate googlePlayWebApkInstallDelegate) {
this.f16160u = googlePlayWebApkInstallDelegate;
}
@Override // android.content.ServiceConnection
View GooglePlayWebApkInstallDelegate.java
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);
View WebApkInstaller.java
@CalledByNative
private void installWebApkAsync(final String packageName, int version, final String title,
String token, final int source, final Bitmap icon) {
// Check whether the WebAPK package is already installed. The WebAPK may have been installed
// by another Chrome version (e.g. Chrome Dev). We have to do this check because the Play
// install API fails silently if the package is already installed.
if (isWebApkInstalled(packageName)) {
notify(WebApkInstallResult.SUCCESS);
return;
}
View webapk_installer.cc
void WebApkInstaller::OnURLLoaderComplete(
std::unique_ptr<std::string> response_body) {
timer_.Stop();
int response_code = -1;
if (loader_->ResponseInfo() && loader_->ResponseInfo()->headers)
response_code = loader_->ResponseInfo()->headers->response_code();
if (!response_body || response_code != net::HTTP_OK) {
LOG(WARNING) << base::StringPrintf(
View webapk_installer.cc
void WebApkInstaller::InstallOrUpdateWebApk(const std::string& package_name,
const std::string& token) {
webapk_package_ = package_name;
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jstring> java_webapk_package =
base::android::ConvertUTF8ToJavaString(env, webapk_package_);
base::android::ScopedJavaLocalRef<jstring> java_title =
base::android::ConvertUTF16ToJavaString(env, short_name_);
base::android::ScopedJavaLocalRef<jstring> java_token =
@t4kemyh4nd
t4kemyh4nd / webapk_installer.cc
Last active October 15, 2023 06:48
webapk_installer.cc
View webapk_installer.cc
void WebApkInstaller::SendRequest(
const net::NetworkTrafficAnnotationTag& traffic_annotation,
const std::string& serialized_proto) {
DCHECK(server_url_.is_valid());
timer_.Start(
FROM_HERE, base::Milliseconds(webapk_server_timeout_ms_),
base::BindOnce(&WebApkInstaller::OnResult, weak_ptr_factory_.GetWeakPtr(),
webapps::WebApkInstallResult::REQUEST_TIMEOUT));