.class public final Lcom/facebook/internal/NativeProtocol; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/facebook/internal/NativeProtocol$NativeAppInfo;, Lcom/facebook/internal/NativeProtocol$KatanaAppInfo;, Lcom/facebook/internal/NativeProtocol$MessengerAppInfo;, Lcom/facebook/internal/NativeProtocol$WakizashiAppInfo;, Lcom/facebook/internal/NativeProtocol$InstagramAppInfo;, Lcom/facebook/internal/NativeProtocol$EffectTestAppInfo;, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; } .end annotation # static fields .field public static final ACTION_APPINVITE_DIALOG:Ljava/lang/String; = "com.facebook.platform.action.request.APPINVITES_DIALOG" .field public static final ACTION_CAMERA_EFFECT:Ljava/lang/String; = "com.facebook.platform.action.request.CAMERA_EFFECT" .field public static final ACTION_FEED_DIALOG:Ljava/lang/String; = "com.facebook.platform.action.request.FEED_DIALOG" .field public static final ACTION_LIKE_DIALOG:Ljava/lang/String; = "com.facebook.platform.action.request.LIKE_DIALOG" .field public static final ACTION_MESSAGE_DIALOG:Ljava/lang/String; = "com.facebook.platform.action.request.MESSAGE_DIALOG" .field public static final ACTION_OGACTIONPUBLISH_DIALOG:Ljava/lang/String; = "com.facebook.platform.action.request.OGACTIONPUBLISH_DIALOG" .field public static final ACTION_OGMESSAGEPUBLISH_DIALOG:Ljava/lang/String; = "com.facebook.platform.action.request.OGMESSAGEPUBLISH_DIALOG" .field public static final ACTION_SHARE_STORY:Ljava/lang/String; = "com.facebook.platform.action.request.SHARE_STORY" .field public static final AUDIENCE_EVERYONE:Ljava/lang/String; = "everyone" .field public static final AUDIENCE_FRIENDS:Ljava/lang/String; = "friends" .field public static final AUDIENCE_ME:Ljava/lang/String; = "only_me" .field public static final BRIDGE_ARG_ACTION_ID_STRING:Ljava/lang/String; = "action_id" .field public static final BRIDGE_ARG_APP_NAME_STRING:Ljava/lang/String; = "app_name" .field public static final BRIDGE_ARG_ERROR_BUNDLE:Ljava/lang/String; = "error" .field public static final BRIDGE_ARG_ERROR_CODE:Ljava/lang/String; = "error_code" .field public static final BRIDGE_ARG_ERROR_DESCRIPTION:Ljava/lang/String; = "error_description" .field public static final BRIDGE_ARG_ERROR_JSON:Ljava/lang/String; = "error_json" .field public static final BRIDGE_ARG_ERROR_SUBCODE:Ljava/lang/String; = "error_subcode" .field public static final BRIDGE_ARG_ERROR_TYPE:Ljava/lang/String; = "error_type" .field private static final CONTENT_SCHEME:Ljava/lang/String; = "content://" .field public static final ERROR_APPLICATION_ERROR:Ljava/lang/String; = "ApplicationError" .field public static final ERROR_NETWORK_ERROR:Ljava/lang/String; = "NetworkError" .field public static final ERROR_PERMISSION_DENIED:Ljava/lang/String; = "PermissionDenied" .field public static final ERROR_PROTOCOL_ERROR:Ljava/lang/String; = "ProtocolError" .field public static final ERROR_SERVICE_DISABLED:Ljava/lang/String; = "ServiceDisabled" .field public static final ERROR_UNKNOWN_ERROR:Ljava/lang/String; = "UnknownError" .field public static final ERROR_USER_CANCELED:Ljava/lang/String; = "UserCanceled" .field public static final EXTRA_ACCESS_TOKEN:Ljava/lang/String; = "com.facebook.platform.extra.ACCESS_TOKEN" .field public static final EXTRA_APPLICATION_ID:Ljava/lang/String; = "com.facebook.platform.extra.APPLICATION_ID" .field public static final EXTRA_APPLICATION_NAME:Ljava/lang/String; = "com.facebook.platform.extra.APPLICATION_NAME" .field public static final EXTRA_AUTHENTICATION_TOKEN:Ljava/lang/String; = "com.facebook.platform.extra.ID_TOKEN" .field public static final EXTRA_DATA_ACCESS_EXPIRATION_TIME:Ljava/lang/String; = "com.facebook.platform.extra.EXTRA_DATA_ACCESS_EXPIRATION_TIME" .field public static final EXTRA_DIALOG_COMPLETE_KEY:Ljava/lang/String; = "com.facebook.platform.extra.DID_COMPLETE" .field public static final EXTRA_DIALOG_COMPLETION_GESTURE_KEY:Ljava/lang/String; = "com.facebook.platform.extra.COMPLETION_GESTURE" .field public static final EXTRA_EXPIRES_SECONDS_SINCE_EPOCH:Ljava/lang/String; = "com.facebook.platform.extra.EXPIRES_SECONDS_SINCE_EPOCH" .field public static final EXTRA_GET_INSTALL_DATA_PACKAGE:Ljava/lang/String; = "com.facebook.platform.extra.INSTALLDATA_PACKAGE" .field public static final EXTRA_GRAPH_API_VERSION:Ljava/lang/String; = "com.facebook.platform.extra.GRAPH_API_VERSION" .field public static final EXTRA_LOGGER_REF:Ljava/lang/String; = "com.facebook.platform.extra.LOGGER_REF" .field public static final EXTRA_NONCE:Ljava/lang/String; = "com.facebook.platform.extra.NONCE" .field public static final EXTRA_PERMISSIONS:Ljava/lang/String; = "com.facebook.platform.extra.PERMISSIONS" .field public static final EXTRA_PROTOCOL_ACTION:Ljava/lang/String; = "com.facebook.platform.protocol.PROTOCOL_ACTION" .field public static final EXTRA_PROTOCOL_BRIDGE_ARGS:Ljava/lang/String; = "com.facebook.platform.protocol.BRIDGE_ARGS" .field public static final EXTRA_PROTOCOL_CALL_ID:Ljava/lang/String; = "com.facebook.platform.protocol.CALL_ID" .field public static final EXTRA_PROTOCOL_METHOD_ARGS:Ljava/lang/String; = "com.facebook.platform.protocol.METHOD_ARGS" .field public static final EXTRA_PROTOCOL_METHOD_RESULTS:Ljava/lang/String; = "com.facebook.platform.protocol.RESULT_ARGS" .field public static final EXTRA_PROTOCOL_VERSION:Ljava/lang/String; = "com.facebook.platform.protocol.PROTOCOL_VERSION" .field public static final EXTRA_PROTOCOL_VERSIONS:Ljava/lang/String; = "com.facebook.platform.extra.PROTOCOL_VERSIONS" .field public static final EXTRA_TOAST_DURATION_MS:Ljava/lang/String; = "com.facebook.platform.extra.EXTRA_TOAST_DURATION_MS" .field public static final EXTRA_USER_ID:Ljava/lang/String; = "com.facebook.platform.extra.USER_ID" .field private static final FACEBOOK_PROXY_AUTH_ACTIVITY:Ljava/lang/String; = "com.facebook.katana.ProxyAuth" .field public static final FACEBOOK_PROXY_AUTH_APP_ID_KEY:Ljava/lang/String; = "client_id" .field public static final FACEBOOK_PROXY_AUTH_E2E_KEY:Ljava/lang/String; = "e2e" .field public static final FACEBOOK_PROXY_AUTH_PERMISSIONS_KEY:Ljava/lang/String; = "scope" .field public static final FACEBOOK_SDK_VERSION_KEY:Ljava/lang/String; = "facebook_sdk_version" .field private static final FACEBOOK_TOKEN_REFRESH_ACTIVITY:Ljava/lang/String; = "com.facebook.katana.platform.TokenRefreshService" .field public static final IMAGE_URL_KEY:Ljava/lang/String; = "url" .field public static final IMAGE_USER_GENERATED_KEY:Ljava/lang/String; = "user_generated" .field public static final INSTANCE:Lcom/facebook/internal/NativeProtocol; .field public static final INTENT_ACTION_PLATFORM_ACTIVITY:Ljava/lang/String; = "com.facebook.platform.PLATFORM_ACTIVITY" .field public static final INTENT_ACTION_PLATFORM_SERVICE:Ljava/lang/String; = "com.facebook.platform.PLATFORM_SERVICE" .field private static final KNOWN_PROTOCOL_VERSIONS:[Ljava/lang/Integer; .field public static final MESSAGE_GET_ACCESS_TOKEN_REPLY:I = 0x10001 .field public static final MESSAGE_GET_ACCESS_TOKEN_REQUEST:I = 0x10000 .field public static final MESSAGE_GET_AK_SEAMLESS_TOKEN_REPLY:I = 0x10009 .field public static final MESSAGE_GET_AK_SEAMLESS_TOKEN_REQUEST:I = 0x10008 .field public static final MESSAGE_GET_INSTALL_DATA_REPLY:I = 0x10005 .field public static final MESSAGE_GET_INSTALL_DATA_REQUEST:I = 0x10004 .field public static final MESSAGE_GET_LIKE_STATUS_REPLY:I = 0x10007 .field public static final MESSAGE_GET_LIKE_STATUS_REQUEST:I = 0x10006 .field public static final MESSAGE_GET_LOGIN_STATUS_REPLY:I = 0x1000b .field public static final MESSAGE_GET_LOGIN_STATUS_REQUEST:I = 0x1000a .field public static final MESSAGE_GET_PROTOCOL_VERSIONS_REPLY:I = 0x10003 .field public static final MESSAGE_GET_PROTOCOL_VERSIONS_REQUEST:I = 0x10002 .field public static final NO_PROTOCOL_AVAILABLE:I = -0x1 .field public static final OPEN_GRAPH_CREATE_OBJECT_KEY:Ljava/lang/String; = "fbsdk:create_object" .field private static final PLATFORM_PROVIDER:Ljava/lang/String; = ".provider.PlatformProvider" .field private static final PLATFORM_PROVIDER_VERSIONS:Ljava/lang/String; = ".provider.PlatformProvider/versions" .field private static final PLATFORM_PROVIDER_VERSION_COLUMN:Ljava/lang/String; = "version" .field public static final PROTOCOL_VERSION_20121101:I = 0x133060d .field public static final PROTOCOL_VERSION_20130502:I = 0x1332ac6 .field public static final PROTOCOL_VERSION_20130618:I = 0x1332b3a .field public static final PROTOCOL_VERSION_20131024:I = 0x1332cd0 .field public static final PROTOCOL_VERSION_20131107:I = 0x1332d23 .field public static final PROTOCOL_VERSION_20140204:I = 0x13350ac .field public static final PROTOCOL_VERSION_20140313:I = 0x1335119 .field public static final PROTOCOL_VERSION_20140324:I = 0x1335124 .field public static final PROTOCOL_VERSION_20140701:I = 0x133529d .field public static final PROTOCOL_VERSION_20141001:I = 0x13353c9 .field public static final PROTOCOL_VERSION_20141028:I = 0x13353e4 .field public static final PROTOCOL_VERSION_20141107:I = 0x1335433 .field public static final PROTOCOL_VERSION_20141218:I = 0x13354a2 .field public static final PROTOCOL_VERSION_20150401:I = 0x1337881 .field public static final PROTOCOL_VERSION_20150702:I = 0x13379ae .field public static final PROTOCOL_VERSION_20160327:I = 0x1339f47 .field public static final PROTOCOL_VERSION_20161017:I = 0x133a1f9 .field public static final PROTOCOL_VERSION_20170213:I = 0x133c5e5 .field public static final PROTOCOL_VERSION_20170411:I = 0x133c6ab .field public static final PROTOCOL_VERSION_20170417:I = 0x133c6b1 .field public static final PROTOCOL_VERSION_20171115:I = 0x133c96b .field public static final PROTOCOL_VERSION_20210906:I = 0x13464da .field public static final RESULT_ARGS_ACCESS_TOKEN:Ljava/lang/String; = "access_token" .field public static final RESULT_ARGS_DIALOG_COMPLETE_KEY:Ljava/lang/String; = "didComplete" .field public static final RESULT_ARGS_DIALOG_COMPLETION_GESTURE_KEY:Ljava/lang/String; = "completionGesture" .field public static final RESULT_ARGS_EXPIRES_SECONDS_SINCE_EPOCH:Ljava/lang/String; = "expires_seconds_since_epoch" .field public static final RESULT_ARGS_GRAPH_DOMAIN:Ljava/lang/String; = "graph_domain" .field public static final RESULT_ARGS_PERMISSIONS:Ljava/lang/String; = "permissions" .field public static final RESULT_ARGS_SIGNED_REQUEST:Ljava/lang/String; = "signed request" .field public static final STATUS_ERROR_CODE:Ljava/lang/String; = "com.facebook.platform.status.ERROR_CODE" .field public static final STATUS_ERROR_DESCRIPTION:Ljava/lang/String; = "com.facebook.platform.status.ERROR_DESCRIPTION" .field public static final STATUS_ERROR_JSON:Ljava/lang/String; = "com.facebook.platform.status.ERROR_JSON" .field public static final STATUS_ERROR_SUBCODE:Ljava/lang/String; = "com.facebook.platform.status.ERROR_SUBCODE" .field public static final STATUS_ERROR_TYPE:Ljava/lang/String; = "com.facebook.platform.status.ERROR_TYPE" .field private static final TAG:Ljava/lang/String; .field public static final WEB_DIALOG_ACTION:Ljava/lang/String; = "action" .field public static final WEB_DIALOG_IS_FALLBACK:Ljava/lang/String; = "is_fallback" .field public static final WEB_DIALOG_PARAMS:Ljava/lang/String; = "params" .field public static final WEB_DIALOG_URL:Ljava/lang/String; = "url" .field private static final actionToAppInfoMap:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/util/List<", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;>;" } .end annotation .end field .field private static final effectCameraAppInfoList:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;" } .end annotation .end field .field private static final facebookAppInfoList:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;" } .end annotation .end field .field private static final protocolVersionsAsyncUpdating:Ljava/util/concurrent/atomic/AtomicBoolean; # direct methods .method public static synthetic $r8$lambda$Ax-eyn5osCilPVVYuqogKhVFhL0()V .locals 0 .line 0 invoke-static {}, Lcom/facebook/internal/NativeProtocol;->updateAllAvailableProtocolVersionsAsync$lambda-1()V return-void .end method .method static constructor ()V .locals 3 new-instance v0, Lcom/facebook/internal/NativeProtocol; invoke-direct {v0}, Lcom/facebook/internal/NativeProtocol;->()V sput-object v0, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol; const-class v1, Lcom/facebook/internal/NativeProtocol; .line 42 invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object v1 sput-object v1, Lcom/facebook/internal/NativeProtocol;->TAG:Ljava/lang/String; .line 211 invoke-direct {v0}, Lcom/facebook/internal/NativeProtocol;->buildFacebookAppList()Ljava/util/List; move-result-object v1 sput-object v1, Lcom/facebook/internal/NativeProtocol;->facebookAppInfoList:Ljava/util/List; .line 212 invoke-direct {v0}, Lcom/facebook/internal/NativeProtocol;->buildEffectCameraAppInfoList()Ljava/util/List; move-result-object v1 sput-object v1, Lcom/facebook/internal/NativeProtocol;->effectCameraAppInfoList:Ljava/util/List; .line 213 invoke-direct {v0}, Lcom/facebook/internal/NativeProtocol;->buildActionToAppInfoMap()Ljava/util/Map; move-result-object v0 sput-object v0, Lcom/facebook/internal/NativeProtocol;->actionToAppInfoMap:Ljava/util/Map; .line 214 new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x0 invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->(Z)V sput-object v0, Lcom/facebook/internal/NativeProtocol;->protocolVersionsAsyncUpdating:Ljava/util/concurrent/atomic/AtomicBoolean; const/16 v0, 0x16 new-array v0, v0, [Ljava/lang/Integer; const v2, 0x13464da .line 423 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 aput-object v2, v0, v1 const v1, 0x133c96b .line 424 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x1 aput-object v1, v0, v2 const v1, 0x133c6b1 .line 425 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x2 aput-object v1, v0, v2 const v1, 0x133c6ab .line 426 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x3 aput-object v1, v0, v2 const v1, 0x133c5e5 .line 427 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x4 aput-object v1, v0, v2 const v1, 0x133a1f9 .line 428 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x5 aput-object v1, v0, v2 const v1, 0x1339f47 .line 429 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x6 aput-object v1, v0, v2 const v1, 0x13379ae .line 430 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/4 v2, 0x7 aput-object v1, v0, v2 const v1, 0x1337881 .line 431 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x8 aput-object v1, v0, v2 const v1, 0x13354a2 .line 432 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x9 aput-object v1, v0, v2 const v1, 0x1335433 .line 433 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0xa aput-object v1, v0, v2 const v1, 0x13353e4 .line 434 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0xb aput-object v1, v0, v2 const v1, 0x13353c9 .line 435 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0xc aput-object v1, v0, v2 const v1, 0x133529d .line 436 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0xd aput-object v1, v0, v2 const v1, 0x1335124 .line 437 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0xe aput-object v1, v0, v2 const v1, 0x1335119 .line 438 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0xf aput-object v1, v0, v2 const v1, 0x13350ac .line 439 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x10 aput-object v1, v0, v2 const v1, 0x1332d23 .line 440 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x11 aput-object v1, v0, v2 const v1, 0x1332cd0 .line 441 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x12 aput-object v1, v0, v2 const v1, 0x1332b3a .line 442 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x13 aput-object v1, v0, v2 const v1, 0x1332ac6 .line 443 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x14 aput-object v1, v0, v2 const v1, 0x133060d .line 444 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 const/16 v2, 0x15 aput-object v1, v0, v2 sput-object v0, Lcom/facebook/internal/NativeProtocol;->KNOWN_PROTOCOL_VERSIONS:[Ljava/lang/Integer; return-void .end method .method private constructor ()V .locals 0 .line 39 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static final synthetic access$fetchAllAvailableProtocolVersionsForAppInfo(Lcom/facebook/internal/NativeProtocol;Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Ljava/util/TreeSet; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 .line 39 :cond_0 :try_start_0 invoke-direct {p0, p1}, Lcom/facebook/internal/NativeProtocol;->fetchAllAvailableProtocolVersionsForAppInfo(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Ljava/util/TreeSet; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p0 :catchall_0 move-exception p0 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final synthetic access$getTAG$p()Ljava/lang/String; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 sget-object v0, Lcom/facebook/internal/NativeProtocol;->TAG:Ljava/lang/String; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 :catchall_0 move-exception v1 .line 39 invoke-static {v1, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method private final buildActionToAppInfoMap()Ljava/util/Map; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/util/List<", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;>;" } .end annotation invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 .line 229 :cond_0 :try_start_0 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V .line 230 new-instance v2, Ljava/util/ArrayList; invoke-direct {v2}, Ljava/util/ArrayList;->()V .line 231 new-instance v3, Lcom/facebook/internal/NativeProtocol$MessengerAppInfo; invoke-direct {v3}, Lcom/facebook/internal/NativeProtocol$MessengerAppInfo;->()V invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z const-string v3, "com.facebook.platform.action.request.OGACTIONPUBLISH_DIALOG" sget-object v4, Lcom/facebook/internal/NativeProtocol;->facebookAppInfoList:Ljava/util/List; .line 234 invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v3, "com.facebook.platform.action.request.FEED_DIALOG" .line 235 invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v3, "com.facebook.platform.action.request.LIKE_DIALOG" .line 236 invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v3, "com.facebook.platform.action.request.APPINVITES_DIALOG" .line 237 invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v3, "com.facebook.platform.action.request.MESSAGE_DIALOG" .line 238 invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v3, "com.facebook.platform.action.request.OGMESSAGEPUBLISH_DIALOG" .line 239 invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v2, "com.facebook.platform.action.request.CAMERA_EFFECT" sget-object v3, Lcom/facebook/internal/NativeProtocol;->effectCameraAppInfoList:Ljava/util/List; .line 240 invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const-string v2, "com.facebook.platform.action.request.SHARE_STORY" .line 241 invoke-interface {v0, v2, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 :catchall_0 move-exception v0 .line 242 invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method private final buildEffectCameraAppInfoList()Ljava/util/List; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;" } .end annotation invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 :cond_0 const/4 v0, 0x1 :try_start_0 new-array v0, v0, [Lcom/facebook/internal/NativeProtocol$NativeAppInfo; .line 223 new-instance v2, Lcom/facebook/internal/NativeProtocol$EffectTestAppInfo; invoke-direct {v2}, Lcom/facebook/internal/NativeProtocol$EffectTestAppInfo;->()V const/4 v3, 0x0 aput-object v2, v0, v3 invoke-static {v0}, Lkotlin/collections/CollectionsKt;->arrayListOf([Ljava/lang/Object;)Ljava/util/ArrayList; move-result-object v0 .line 224 invoke-direct {p0}, Lcom/facebook/internal/NativeProtocol;->buildFacebookAppList()Ljava/util/List; move-result-object v2 check-cast v2, Ljava/util/Collection; invoke-virtual {v0, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 :catchall_0 move-exception v0 .line 225 invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method private final buildFacebookAppList()Ljava/util/List; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;" } .end annotation invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 :cond_0 const/4 v0, 0x2 :try_start_0 new-array v0, v0, [Lcom/facebook/internal/NativeProtocol$NativeAppInfo; .line 218 new-instance v2, Lcom/facebook/internal/NativeProtocol$KatanaAppInfo; invoke-direct {v2}, Lcom/facebook/internal/NativeProtocol$KatanaAppInfo;->()V const/4 v3, 0x0 aput-object v2, v0, v3 new-instance v2, Lcom/facebook/internal/NativeProtocol$WakizashiAppInfo; invoke-direct {v2}, Lcom/facebook/internal/NativeProtocol$WakizashiAppInfo;->()V const/4 v3, 0x1 aput-object v2, v0, v3 invoke-static {v0}, Lkotlin/collections/CollectionsKt;->arrayListOf([Ljava/lang/Object;)Ljava/util/ArrayList; move-result-object v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 :catchall_0 move-exception v0 invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method private final buildPlatformProviderVersionURI(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/net/Uri; .locals 3 invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 .line 815 :cond_0 :try_start_0 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v2, "content://" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getPackage()Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p1, ".provider.PlatformProvider/versions" invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; move-result-object p1 const-string v0, "parse(CONTENT_SCHEME + appInfo.getPackage() + PLATFORM_PROVIDER_VERSIONS)" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p1 :catchall_0 move-exception p1 invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method public static final computeLatestAvailableVersionFromVersionSpec(Ljava/util/TreeSet;I[I)I .locals 8 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/TreeSet<", "Ljava/lang/Integer;", ">;I[I)I" } .end annotation const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return v2 :cond_0 :try_start_0 const-string v1, "versionSpec" invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v1, -0x1 if-nez p0, :cond_1 return v1 .line 784 :cond_1 array-length v3, p2 add-int/lit8 v3, v3, -0x1 .line 785 invoke-virtual {p0}, Ljava/util/TreeSet;->descendingIterator()Ljava/util/Iterator; move-result-object p0 move v4, v1 .line 787 :cond_2 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v5 if-eqz v5, :cond_5 .line 788 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v5 check-cast v5, Ljava/lang/Integer; const-string v6, "fbAppVersion" .line 791 invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I move-result v6 invoke-static {v4, v6}, Ljava/lang/Math;->max(II)I move-result v4 :goto_0 if-ltz v3, :cond_3 .line 794 aget v6, p2, v3 invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I move-result v7 if-le v6, v7, :cond_3 add-int/lit8 v3, v3, -0x1 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_3 if-gez v3, :cond_4 return v1 .line 805 :cond_4 aget v6, p2, v3 invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I move-result v5 if-ne v6, v5, :cond_2 .line 807 rem-int/lit8 v3, v3, 0x2 if-nez v3, :cond_5 invoke-static {v4, p1}, Ljava/lang/Math;->min(II)I move-result v1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :cond_5 return v1 .line 811 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return v2 .end method .method public static final createBundleForException(Lcom/facebook/FacebookException;)Landroid/os/Bundle; .locals 5 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 if-nez p0, :cond_1 return-object v2 .line 652 :cond_1 :try_start_0 new-instance v1, Landroid/os/Bundle; invoke-direct {v1}, Landroid/os/Bundle;->()V const-string v3, "error_description" .line 653 invoke-virtual {p0}, Lcom/facebook/FacebookException;->toString()Ljava/lang/String; move-result-object v4 invoke-virtual {v1, v3, v4}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V .line 654 instance-of p0, p0, Lcom/facebook/FacebookOperationCanceledException; if-eqz p0, :cond_2 const-string p0, "error_type" const-string v3, "UserCanceled" .line 655 invoke-virtual {v1, p0, v3}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_2 :goto_0 return-object v1 .line 657 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final createInstagramIntent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZ)Landroid/content/Intent; .locals 22 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Ljava/lang/String;", "Ljava/util/Collection<", "Ljava/lang/String;", ">;", "Ljava/lang/String;", "ZZ", "Lcom/facebook/login/DefaultAudience;", "Ljava/lang/String;", "Ljava/lang/String;", "Ljava/lang/String;", "ZZZ)", "Landroid/content/Intent;" } .end annotation move-object/from16 v0, p0 const-class v1, Lcom/facebook/internal/NativeProtocol; invoke-static {v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v2 const/4 v3, 0x0 if-eqz v2, :cond_0 return-object v3 :cond_0 :try_start_0 const-string v2, "context" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "applicationId" move-object/from16 v6, p1 invoke-static {v6, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "permissions" move-object/from16 v7, p2 invoke-static {v7, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "e2e" move-object/from16 v8, p3 invoke-static {v8, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "defaultAudience" move-object/from16 v10, p6 invoke-static {v10, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "clientState" move-object/from16 v11, p7 invoke-static {v11, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "authType" move-object/from16 v12, p8 invoke-static {v12, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 283 new-instance v2, Lcom/facebook/internal/NativeProtocol$InstagramAppInfo; invoke-direct {v2}, Lcom/facebook/internal/NativeProtocol$InstagramAppInfo;->()V sget-object v4, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol; const/4 v13, 0x0 .line 297 sget-object v16, Lcom/facebook/login/LoginTargetApp;->INSTAGRAM:Lcom/facebook/login/LoginTargetApp; const-string v19, "" const/16 v20, 0x0 const/16 v21, 0x0 move-object v5, v2 move-object/from16 v6, p1 move-object/from16 v7, p2 move-object/from16 v8, p3 move/from16 v9, p5 move-object/from16 v10, p6 move-object/from16 v11, p7 move-object/from16 v12, p8 move-object/from16 v14, p9 move/from16 v15, p10 move/from16 v17, p11 move/from16 v18, p12 .line 285 invoke-direct/range {v4 .. v21}, Lcom/facebook/internal/NativeProtocol;->createNativeAppIntent(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ZLcom/facebook/login/LoginTargetApp;ZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; move-result-object v4 .line 303 invoke-static {v0, v4, v2}, Lcom/facebook/internal/NativeProtocol;->validateActivityIntent(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/content/Intent; move-result-object v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 :catchall_0 move-exception v0 .line 304 invoke-static {v0, v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v3 .end method .method private final createNativeAppIntent(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ZLcom/facebook/login/LoginTargetApp;ZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", "Ljava/lang/String;", "Ljava/util/Collection<", "Ljava/lang/String;", ">;", "Ljava/lang/String;", "Z", "Lcom/facebook/login/DefaultAudience;", "Ljava/lang/String;", "Ljava/lang/String;", "Z", "Ljava/lang/String;", "Z", "Lcom/facebook/login/LoginTargetApp;", "ZZ", "Ljava/lang/String;", "Ljava/lang/String;", "Ljava/lang/String;", ")", "Landroid/content/Intent;" } .end annotation invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 .line 326 :cond_0 :try_start_0 invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getLoginActivity()Ljava/lang/String; move-result-object v0 if-nez v0, :cond_1 return-object v1 .line 329 :cond_1 new-instance v2, Landroid/content/Intent; invoke-direct {v2}, Landroid/content/Intent;->()V .line 330 invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getPackage()Ljava/lang/String; move-result-object v3 invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; move-result-object v0 const-string v2, "client_id" move-object v3, p2 .line 331 invoke-virtual {v0, v2, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; move-result-object v0 const-string v2, "Intent()\n .setClassName(appInfo.getPackage(), activityName)\n .putExtra(FACEBOOK_PROXY_AUTH_APP_ID_KEY, applicationId)" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "facebook_sdk_version" .line 332 invoke-static {}, Lcom/facebook/FacebookSdk;->getSdkVersion()Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 333 invoke-static {p3}, Lcom/facebook/internal/Utility;->isNullOrEmpty(Ljava/util/Collection;)Z move-result v2 if-nez v2, :cond_2 const-string v2, "scope" const-string v3, "," .line 334 move-object v4, p3 check-cast v4, Ljava/lang/Iterable; invoke-static {v3, v4}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; goto :goto_0 :catchall_0 move-exception v0 move-object v2, p0 goto :goto_1 .line 336 :cond_2 :goto_0 invoke-static {p4}, Lcom/facebook/internal/Utility;->isNullOrEmpty(Ljava/lang/String;)Z move-result v2 if-nez v2, :cond_3 const-string v2, "e2e" move-object v3, p4 .line 337 invoke-virtual {v0, v2, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_3 const-string v2, "state" move-object v3, p7 .line 339 invoke-virtual {v0, v2, p7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string v2, "response_type" .line 340 invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getResponseType()Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string v2, "nonce" move-object/from16 v3, p15 .line 341 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string v2, "return_scopes" const-string v3, "true" .line 351 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; if-eqz p5, :cond_4 const-string v2, "default_audience" .line 355 invoke-virtual {p6}, Lcom/facebook/login/DefaultAudience;->getNativeProtocolAudience()Ljava/lang/String; move-result-object v3 .line 354 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_4 const-string v2, "legacy_override" .line 359 invoke-static {}, Lcom/facebook/FacebookSdk;->getGraphApiVersion()Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string v2, "auth_type" move-object v3, p8 .line 360 invoke-virtual {v0, v2, p8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const/4 v2, 0x1 if-eqz p9, :cond_5 const-string v3, "fail_on_logged_out" .line 362 invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; :cond_5 const-string v3, "messenger_page_id" move-object v4, p10 .line 365 invoke-virtual {v0, v3, p10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string v3, "reset_messenger_state" move/from16 v4, p11 .line 366 invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; if-eqz p13, :cond_6 const-string v3, "fx_app" .line 368 invoke-virtual/range {p12 .. p12}, Lcom/facebook/login/LoginTargetApp;->toString()Ljava/lang/String; move-result-object v4 invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_6 if-eqz p14, :cond_7 const-string v3, "skip_dedupe" .line 371 invoke-virtual {v0, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :cond_7 return-object v0 .line 373 :goto_1 invoke-static {v0, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method public static final createPlatformActivityIntent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;Landroid/os/Bundle;)Landroid/content/Intent; .locals 5 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "context" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V if-nez p3, :cond_1 return-object v2 .line 466 :cond_1 invoke-virtual {p3}, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;->getAppInfo()Lcom/facebook/internal/NativeProtocol$NativeAppInfo; move-result-object v1 if-nez v1, :cond_2 return-object v2 .line 468 :cond_2 new-instance v3, Landroid/content/Intent; invoke-direct {v3}, Landroid/content/Intent;->()V const-string v4, "com.facebook.platform.PLATFORM_ACTIVITY" .line 469 invoke-virtual {v3, v4}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent; move-result-object v3 .line 470 invoke-virtual {v1}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getPackage()Ljava/lang/String; move-result-object v4 invoke-virtual {v3, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; move-result-object v3 const-string v4, "android.intent.category.DEFAULT" .line 471 invoke-virtual {v3, v4}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent; move-result-object v3 .line 472 invoke-static {p0, v3, v1}, Lcom/facebook/internal/NativeProtocol;->validateActivityIntent(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/content/Intent; move-result-object p0 if-nez p0, :cond_3 return-object v2 .line 476 :cond_3 invoke-virtual {p3}, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;->getProtocolVersion()I move-result p3 invoke-static {p0, p1, p2, p3, p4}, Lcom/facebook/internal/NativeProtocol;->setupProtocolRequestIntent(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;ILandroid/os/Bundle;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p0 :catchall_0 move-exception p0 .line 477 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final createPlatformServiceIntent(Landroid/content/Context;)Landroid/content/Intent; .locals 6 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "context" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V sget-object v1, Lcom/facebook/internal/NativeProtocol;->facebookAppInfoList:Ljava/util/List; .line 542 invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v1 :cond_1 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_2 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/facebook/internal/NativeProtocol$NativeAppInfo; .line 544 new-instance v4, Landroid/content/Intent; const-string v5, "com.facebook.platform.PLATFORM_SERVICE" invoke-direct {v4, v5}, Landroid/content/Intent;->(Ljava/lang/String;)V .line 545 invoke-virtual {v3}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getPackage()Ljava/lang/String; move-result-object v5 invoke-virtual {v4, v5}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; move-result-object v4 const-string v5, "android.intent.category.DEFAULT" .line 546 invoke-virtual {v4, v5}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent; move-result-object v4 .line 547 invoke-static {p0, v4, v3}, Lcom/facebook/internal/NativeProtocol;->validateServiceIntent(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/content/Intent; move-result-object v3 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v3, :cond_1 return-object v3 :catchall_0 move-exception p0 goto :goto_0 :cond_2 return-object v2 .line 552 :goto_0 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final createProtocolResultIntent(Landroid/content/Intent;Landroid/os/Bundle;Lcom/facebook/FacebookException;)Landroid/content/Intent; .locals 5 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "requestIntent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 525 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getCallIdFromIntent(Landroid/content/Intent;)Ljava/util/UUID; move-result-object v1 if-nez v1, :cond_1 return-object v2 .line 526 :cond_1 new-instance v3, Landroid/content/Intent; invoke-direct {v3}, Landroid/content/Intent;->()V const-string v4, "com.facebook.platform.protocol.PROTOCOL_VERSION" .line 527 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getProtocolVersionFromIntent(Landroid/content/Intent;)I move-result p0 invoke-virtual {v3, v4, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; .line 528 new-instance p0, Landroid/os/Bundle; invoke-direct {p0}, Landroid/os/Bundle;->()V const-string v4, "action_id" .line 529 invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String; move-result-object v1 invoke-virtual {p0, v4, v1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V if-eqz p2, :cond_2 const-string v1, "error" .line 531 invoke-static {p2}, Lcom/facebook/internal/NativeProtocol;->createBundleForException(Lcom/facebook/FacebookException;)Landroid/os/Bundle; move-result-object p2 invoke-virtual {p0, v1, p2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_2 :goto_0 const-string p2, "com.facebook.platform.protocol.BRIDGE_ARGS" .line 533 invoke-virtual {v3, p2, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; if-eqz p1, :cond_3 const-string p0, "com.facebook.platform.protocol.RESULT_ARGS" .line 535 invoke-virtual {v3, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :cond_3 return-object v3 .line 537 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final createProxyAuthIntents(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List; .locals 21 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/content/Context;", "Ljava/lang/String;", "Ljava/util/Collection<", "Ljava/lang/String;", ">;", "Ljava/lang/String;", "ZZ", "Lcom/facebook/login/DefaultAudience;", "Ljava/lang/String;", "Ljava/lang/String;", "Z", "Ljava/lang/String;", "ZZZ", "Ljava/lang/String;", "Ljava/lang/String;", "Ljava/lang/String;", ")", "Ljava/util/List<", "Landroid/content/Intent;", ">;" } .end annotation const-class v1, Lcom/facebook/internal/NativeProtocol; invoke-static {v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v2, 0x0 if-eqz v0, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v0, "applicationId" move-object/from16 v15, p1 invoke-static {v15, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "permissions" move-object/from16 v14, p2 invoke-static {v14, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "e2e" move-object/from16 v13, p3 invoke-static {v13, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "defaultAudience" move-object/from16 v12, p6 invoke-static {v12, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "clientState" move-object/from16 v11, p7 invoke-static {v11, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "authType" move-object/from16 v10, p8 invoke-static {v10, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V sget-object v0, Lcom/facebook/internal/NativeProtocol;->facebookAppInfoList:Ljava/util/List; .line 396 check-cast v0, Ljava/lang/Iterable; .line 909 new-instance v9, Ljava/util/ArrayList; invoke-direct {v9}, Ljava/util/ArrayList;->()V .line 918 invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v0 :goto_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_2 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 .line 917 move-object v4, v3 check-cast v4, Lcom/facebook/internal/NativeProtocol$NativeAppInfo; sget-object v3, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol; .line 409 sget-object v16, Lcom/facebook/login/LoginTargetApp;->FACEBOOK:Lcom/facebook/login/LoginTargetApp; move-object/from16 v5, p1 move-object/from16 v6, p2 move-object/from16 v7, p3 move/from16 v8, p5 move-object v2, v9 move-object/from16 v9, p6 move-object/from16 v10, p7 move-object/from16 v11, p8 move/from16 v12, p9 move-object/from16 v13, p10 move/from16 v14, p11 move-object/from16 v15, v16 move/from16 v16, p12 move/from16 v17, p13 move-object/from16 v18, p14 move-object/from16 v19, p15 move-object/from16 v20, p16 .line 397 invoke-direct/range {v3 .. v20}, Lcom/facebook/internal/NativeProtocol;->createNativeAppIntent(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ZLcom/facebook/login/LoginTargetApp;ZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; move-result-object v3 if-eqz v3, :cond_1 .line 917 invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_1 :catchall_0 move-exception v0 goto :goto_2 :cond_1 :goto_1 move-object/from16 v15, p1 move-object/from16 v14, p2 move-object/from16 v13, p3 move-object/from16 v12, p6 move-object/from16 v11, p7 move-object/from16 v10, p8 move-object v9, v2 const/4 v2, 0x0 goto :goto_0 :cond_2 move-object v2, v9 return-object v2 .line 396 :goto_2 invoke-static {v0, v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V const/4 v1, 0x0 return-object v1 .end method .method public static synthetic createProxyAuthIntents$default(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/util/List; .locals 20 const-class v1, Lcom/facebook/internal/NativeProtocol; invoke-static {v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v2, 0x0 if-eqz v0, :cond_0 return-object v2 :cond_0 const/high16 v0, 0x10000 and-int v0, p17, v0 if-eqz v0, :cond_1 :try_start_0 const-string v0, "S256" move-object/from16 v19, v0 goto :goto_0 :catchall_0 move-exception v0 goto :goto_1 :cond_1 move-object/from16 v19, p16 :goto_0 move-object/from16 v3, p0 move-object/from16 v4, p1 move-object/from16 v5, p2 move-object/from16 v6, p3 move/from16 v7, p4 move/from16 v8, p5 move-object/from16 v9, p6 move-object/from16 v10, p7 move-object/from16 v11, p8 move/from16 v12, p9 move-object/from16 v13, p10 move/from16 v14, p11 move/from16 v15, p12 move/from16 v16, p13 move-object/from16 v17, p14 move-object/from16 v18, p15 .line 377 invoke-static/range {v3 .. v19}, Lcom/facebook/internal/NativeProtocol;->createProxyAuthIntents(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;ZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List; move-result-object v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object v0 :goto_1 invoke-static {v0, v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method private final fetchAllAvailableProtocolVersionsForAppInfo(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Ljava/util/TreeSet; .locals 12 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ")", "Ljava/util/TreeSet<", "Ljava/lang/Integer;", ">;" } .end annotation const-string v0, "version" const-string v1, "Failed to query content resolver." invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v2 const/4 v3, 0x0 if-eqz v2, :cond_0 return-object v3 .line 716 :cond_0 :try_start_0 new-instance v2, Ljava/util/TreeSet; invoke-direct {v2}, Ljava/util/TreeSet;->()V .line 717 invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationContext()Landroid/content/Context; move-result-object v4 .line 718 invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; move-result-object v5 const/4 v4, 0x1 new-array v7, v4, [Ljava/lang/String; const/4 v4, 0x0 aput-object v0, v7, v4 .line 720 invoke-direct {p0, p1}, Lcom/facebook/internal/NativeProtocol;->buildPlatformProviderVersionURI(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/net/Uri; move-result-object v6 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_2 .line 726 :try_start_1 invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationContext()Landroid/content/Context; move-result-object v8 invoke-virtual {v8}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v8 .line 727 invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getPackage()Ljava/lang/String; move-result-object p1 const-string v9, ".provider.PlatformProvider" invoke-static {p1, v9}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 730 :try_start_2 invoke-virtual {v8, p1, v4}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo; move-result-object p1 :try_end_2 .catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_0 .catchall {:try_start_2 .. :try_end_2} :catchall_0 goto :goto_0 :catchall_0 move-exception p1 move-object v0, v3 goto :goto_5 :catch_0 move-exception p1 :try_start_3 sget-object v4, Lcom/facebook/internal/NativeProtocol;->TAG:Ljava/lang/String; .line 736 invoke-static {v4, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 move-object p1, v3 :goto_0 if-eqz p1, :cond_1 const/4 v8, 0x0 const/4 v9, 0x0 const/4 v10, 0x0 .line 741 :try_start_4 invoke-virtual/range {v5 .. v10}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor; move-result-object p1 :try_end_4 .catch Ljava/lang/NullPointerException; {:try_start_4 .. :try_end_4} :catch_3 .catch Ljava/lang/SecurityException; {:try_start_4 .. :try_end_4} :catch_2 .catch Ljava/lang/IllegalArgumentException; {:try_start_4 .. :try_end_4} :catch_1 .catchall {:try_start_4 .. :try_end_4} :catchall_0 goto :goto_2 :catch_1 :try_start_5 sget-object p1, Lcom/facebook/internal/NativeProtocol;->TAG:Ljava/lang/String; .line 756 invoke-static {p1, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I :goto_1 move-object p1, v3 goto :goto_2 :catch_2 sget-object p1, Lcom/facebook/internal/NativeProtocol;->TAG:Ljava/lang/String; .line 753 invoke-static {p1, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I goto :goto_1 :catch_3 sget-object p1, Lcom/facebook/internal/NativeProtocol;->TAG:Ljava/lang/String; .line 743 invoke-static {p1, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_0 goto :goto_1 :goto_2 if-eqz p1, :cond_2 .line 760 :goto_3 :try_start_6 invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z move-result v1 if-eqz v1, :cond_2 .line 761 invoke-interface {p1, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I move-result v1 invoke-interface {p1, v1}, Landroid/database/Cursor;->getInt(I)I move-result v1 .line 762 invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 invoke-virtual {v2, v1}, Ljava/util/TreeSet;->add(Ljava/lang/Object;)Z :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_1 goto :goto_3 :catchall_1 move-exception v0 move-object v11, v0 move-object v0, p1 move-object p1, v11 goto :goto_5 :cond_1 move-object p1, v3 :cond_2 if-nez p1, :cond_3 goto :goto_4 .line 767 :cond_3 :try_start_7 invoke-interface {p1}, Landroid/database/Cursor;->close()V :goto_4 return-object v2 :catchall_2 move-exception p1 goto :goto_7 :goto_5 if-nez v0, :cond_4 goto :goto_6 :cond_4 invoke-interface {v0}, Landroid/database/Cursor;->close()V :goto_6 throw p1 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_2 .line 769 :goto_7 invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v3 .end method .method public static final getBridgeArgumentsFromIntent(Landroid/content/Intent;)Landroid/os/Bundle; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "intent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 586 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getProtocolVersionFromIntent(Landroid/content/Intent;)I move-result v1 .line 587 invoke-static {v1}, Lcom/facebook/internal/NativeProtocol;->isVersionCompatibleWithBucketedIntent(I)Z move-result v1 if-nez v1, :cond_1 goto :goto_0 :cond_1 const-string v1, "com.facebook.platform.protocol.BRIDGE_ARGS" .line 589 invoke-virtual {p0, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle; move-result-object v2 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_0 return-object v2 :catchall_0 move-exception p0 .line 587 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final getCallIdFromIntent(Landroid/content/Intent;)Ljava/util/UUID; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 if-nez p0, :cond_1 return-object v2 .line 565 :cond_1 :try_start_0 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getProtocolVersionFromIntent(Landroid/content/Intent;)I move-result v1 .line 567 invoke-static {v1}, Lcom/facebook/internal/NativeProtocol;->isVersionCompatibleWithBucketedIntent(I)Z move-result v1 if-eqz v1, :cond_3 const-string v1, "com.facebook.platform.protocol.BRIDGE_ARGS" .line 568 invoke-virtual {p0, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle; move-result-object p0 if-eqz p0, :cond_2 const-string v1, "action_id" .line 570 invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_2 move-object p0, v2 goto :goto_0 :cond_3 const-string v1, "com.facebook.platform.protocol.CALL_ID" .line 573 invoke-virtual {p0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_0 if-eqz p0, :cond_4 .line 578 :try_start_1 invoke-static {p0}, Ljava/util/UUID;->fromString(Ljava/lang/String;)Ljava/util/UUID; move-result-object v2 :try_end_1 .catch Ljava/lang/IllegalArgumentException; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :catch_0 :cond_4 return-object v2 .line 581 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final getErrorDataFromResultIntent(Landroid/content/Intent;)Landroid/os/Bundle; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "resultIntent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 618 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->isErrorResult(Landroid/content/Intent;)Z move-result v1 if-nez v1, :cond_1 return-object v2 .line 621 :cond_1 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getBridgeArgumentsFromIntent(Landroid/content/Intent;)Landroid/os/Bundle; move-result-object v1 if-eqz v1, :cond_2 const-string p0, "error" .line 623 invoke-virtual {v1, p0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle; move-result-object p0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 .line 624 :cond_2 invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_0 return-object p0 .line 622 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final getExceptionFromErrorData(Landroid/os/Bundle;)Lcom/facebook/FacebookException; .locals 5 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 if-nez p0, :cond_1 return-object v2 :cond_1 :try_start_0 const-string v1, "error_type" .line 632 invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 if-nez v1, :cond_2 const-string v1, "com.facebook.platform.status.ERROR_TYPE" .line 634 invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 goto :goto_0 :catchall_0 move-exception p0 goto :goto_2 :cond_2 :goto_0 const-string v3, "error_description" .line 636 invoke-virtual {p0, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v3 if-nez v3, :cond_3 const-string v3, "com.facebook.platform.status.ERROR_DESCRIPTION" .line 638 invoke-virtual {p0, v3}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v3 :cond_3 if-eqz v1, :cond_4 const-string p0, "UserCanceled" const/4 v4, 0x1 .line 640 invoke-static {v1, p0, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z move-result p0 if-eqz p0, :cond_4 .line 641 new-instance p0, Lcom/facebook/FacebookOperationCanceledException; invoke-direct {p0, v3}, Lcom/facebook/FacebookOperationCanceledException;->(Ljava/lang/String;)V goto :goto_1 .line 642 :cond_4 new-instance p0, Lcom/facebook/FacebookException; invoke-direct {p0, v3}, Lcom/facebook/FacebookException;->(Ljava/lang/String;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_1 return-object p0 .line 640 :goto_2 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final getLatestAvailableProtocolVersionForAction(Ljava/lang/String;[I)Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "action" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v1, "versionSpec" invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V sget-object v1, Lcom/facebook/internal/NativeProtocol;->actionToAppInfoMap:Ljava/util/Map; .line 673 invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Ljava/util/List; if-nez p0, :cond_1 invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List; move-result-object p0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_1 :goto_0 sget-object v1, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol; .line 674 invoke-direct {v1, p0, p1}, Lcom/facebook/internal/NativeProtocol;->getLatestAvailableProtocolVersionForAppInfoList(Ljava/util/List;[I)Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p0 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method private final getLatestAvailableProtocolVersionForAppInfoList(Ljava/util/List;[I)Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "+", "Lcom/facebook/internal/NativeProtocol$NativeAppInfo;", ">;[I)", "Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;" } .end annotation invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 .line 682 :cond_0 :try_start_0 invoke-static {}, Lcom/facebook/internal/NativeProtocol;->updateAllAvailableProtocolVersionsAsync()V if-nez p1, :cond_1 .line 684 sget-object p1, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;->Companion:Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult$Companion; invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult$Companion;->createEmpty()Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; move-result-object p1 return-object p1 :catchall_0 move-exception p1 goto :goto_0 .line 688 :cond_1 invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p1 :cond_2 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_3 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/facebook/internal/NativeProtocol$NativeAppInfo; .line 691 invoke-virtual {v0}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->getAvailableVersions()Ljava/util/TreeSet; move-result-object v2 invoke-static {}, Lcom/facebook/internal/NativeProtocol;->getLatestKnownVersion()I move-result v3 .line 690 invoke-static {v2, v3, p2}, Lcom/facebook/internal/NativeProtocol;->computeLatestAvailableVersionFromVersionSpec(Ljava/util/TreeSet;I[I)I move-result v2 const/4 v3, -0x1 if-eq v2, v3, :cond_2 .line 693 sget-object p1, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;->Companion:Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult$Companion; invoke-virtual {p1, v0, v2}, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult$Companion;->create(Lcom/facebook/internal/NativeProtocol$NativeAppInfo;I)Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; move-result-object p1 return-object p1 .line 696 :cond_3 sget-object p1, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;->Companion:Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult$Companion; invoke-virtual {p1}, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult$Companion;->createEmpty()Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; move-result-object p1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p1 :goto_0 invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method public static final getLatestAvailableProtocolVersionForService(I)I .locals 4 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return v2 :cond_0 :try_start_0 sget-object v1, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol; sget-object v3, Lcom/facebook/internal/NativeProtocol;->facebookAppInfoList:Ljava/util/List; filled-new-array {p0}, [I move-result-object p0 .line 663 invoke-direct {v1, v3, p0}, Lcom/facebook/internal/NativeProtocol;->getLatestAvailableProtocolVersionForAppInfoList(Ljava/util/List;[I)Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult; move-result-object p0 .line 665 invoke-virtual {p0}, Lcom/facebook/internal/NativeProtocol$ProtocolVersionQueryResult;->getProtocolVersion()I move-result p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return p0 :catchall_0 move-exception p0 .line 663 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return v2 .end method .method public static final getLatestKnownVersion()I .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return v2 :cond_0 :try_start_0 sget-object v1, Lcom/facebook/internal/NativeProtocol;->KNOWN_PROTOCOL_VERSIONS:[Ljava/lang/Integer; .line 418 aget-object v1, v1, v2 invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I move-result v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return v0 :catchall_0 move-exception v1 invoke-static {v1, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return v2 .end method .method public static final getMethodArgumentsFromIntent(Landroid/content/Intent;)Landroid/os/Bundle; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "intent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 594 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getProtocolVersionFromIntent(Landroid/content/Intent;)I move-result v1 .line 595 invoke-static {v1}, Lcom/facebook/internal/NativeProtocol;->isVersionCompatibleWithBucketedIntent(I)Z move-result v1 if-nez v1, :cond_1 .line 596 invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; move-result-object p0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_1 const-string v1, "com.facebook.platform.protocol.METHOD_ARGS" .line 597 invoke-virtual {p0, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_0 return-object p0 .line 595 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final getProtocolVersionFromIntent(Landroid/content/Intent;)I .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return v2 :cond_0 :try_start_0 const-string v1, "intent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v1, "com.facebook.platform.protocol.PROTOCOL_VERSION" .line 557 invoke-virtual {p0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I move-result p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return p0 :catchall_0 move-exception p0 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return v2 .end method .method public static final getSuccessResultsFromIntent(Landroid/content/Intent;)Landroid/os/Bundle; .locals 3 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return-object v2 :cond_0 :try_start_0 const-string v1, "resultIntent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 602 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getProtocolVersionFromIntent(Landroid/content/Intent;)I move-result v1 .line 603 invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; move-result-object p0 .line 604 invoke-static {v1}, Lcom/facebook/internal/NativeProtocol;->isVersionCompatibleWithBucketedIntent(I)Z move-result v1 if-eqz v1, :cond_2 if-nez p0, :cond_1 goto :goto_0 :cond_1 const-string v1, "com.facebook.platform.protocol.RESULT_ARGS" .line 606 invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception p0 goto :goto_1 :cond_2 :goto_0 return-object p0 .line 604 :goto_1 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v2 .end method .method public static final isErrorResult(Landroid/content/Intent;)Z .locals 4 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return v2 :cond_0 :try_start_0 const-string v1, "resultIntent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 611 invoke-static {p0}, Lcom/facebook/internal/NativeProtocol;->getBridgeArgumentsFromIntent(Landroid/content/Intent;)Landroid/os/Bundle; move-result-object v1 if-nez v1, :cond_1 const/4 v1, 0x0 goto :goto_0 :cond_1 const-string v3, "error" .line 612 invoke-virtual {v1, v3}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z move-result v1 invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object v1 :goto_0 if-nez v1, :cond_2 const-string v1, "com.facebook.platform.status.ERROR_TYPE" .line 613 invoke-virtual {p0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z move-result p0 goto :goto_1 :catchall_0 move-exception p0 goto :goto_2 .line 612 :cond_2 invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z move-result p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_1 return p0 :goto_2 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return v2 .end method .method public static final isVersionCompatibleWithBucketedIntent(I)Z .locals 4 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 return v2 :cond_0 :try_start_0 sget-object v1, Lcom/facebook/internal/NativeProtocol;->KNOWN_PROTOCOL_VERSIONS:[Ljava/lang/Integer; .line 448 invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v3 invoke-static {v1, v3}, Lkotlin/collections/ArraysKt;->contains([Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v0, :cond_1 const v0, 0x133529d if-lt p0, v0, :cond_1 const/4 v2, 0x1 :cond_1 return v2 :catchall_0 move-exception p0 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return v2 .end method .method public static final setupProtocolRequestIntent(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;ILandroid/os/Bundle;)V .locals 5 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 return-void :cond_0 :try_start_0 const-string v1, "intent" invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 489 invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationId()Ljava/lang/String; move-result-object v1 .line 490 invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationName()Ljava/lang/String; move-result-object v2 const-string v3, "com.facebook.platform.protocol.PROTOCOL_VERSION" .line 492 invoke-virtual {p0, v3, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent; move-result-object v3 const-string v4, "com.facebook.platform.protocol.PROTOCOL_ACTION" .line 493 invoke-virtual {v3, v4, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; move-result-object p2 const-string v3, "com.facebook.platform.extra.APPLICATION_ID" .line 494 invoke-virtual {p2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 495 invoke-static {p3}, Lcom/facebook/internal/NativeProtocol;->isVersionCompatibleWithBucketedIntent(I)Z move-result p2 if-eqz p2, :cond_2 .line 497 new-instance p2, Landroid/os/Bundle; invoke-direct {p2}, Landroid/os/Bundle;->()V const-string p3, "action_id" .line 498 invoke-virtual {p2, p3, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V const-string p1, "app_name" .line 499 invoke-static {p2, p1, v2}, Lcom/facebook/internal/Utility;->putNonEmptyString(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/String;)V const-string p1, "com.facebook.platform.protocol.BRIDGE_ARGS" .line 500 invoke-virtual {p0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; if-nez p4, :cond_1 .line 501 new-instance p4, Landroid/os/Bundle; invoke-direct {p4}, Landroid/os/Bundle;->()V goto :goto_0 :catchall_0 move-exception p0 goto :goto_2 :cond_1 :goto_0 const-string p1, "com.facebook.platform.protocol.METHOD_ARGS" .line 502 invoke-virtual {p0, p1, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent; goto :goto_1 :cond_2 const-string p2, "com.facebook.platform.protocol.CALL_ID" .line 505 invoke-virtual {p0, p2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 506 invoke-static {v2}, Lcom/facebook/internal/Utility;->isNullOrEmpty(Ljava/lang/String;)Z move-result p1 if-nez p1, :cond_3 const-string p1, "com.facebook.platform.extra.APPLICATION_NAME" .line 507 invoke-virtual {p0, p1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; :cond_3 if-eqz p4, :cond_4 .line 510 invoke-virtual {p0, p4}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :cond_4 :goto_1 return-void .line 513 :goto_2 invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-void .end method .method public static final updateAllAvailableProtocolVersionsAsync()V .locals 4 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 return-void :cond_0 :try_start_0 sget-object v1, Lcom/facebook/internal/NativeProtocol;->protocolVersionsAsyncUpdating:Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v2, 0x0 const/4 v3, 0x1 .line 701 invoke-virtual {v1, v2, v3}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z move-result v1 if-nez v1, :cond_1 return-void .line 704 :cond_1 invoke-static {}, Lcom/facebook/FacebookSdk;->getExecutor()Ljava/util/concurrent/Executor; move-result-object v1 new-instance v2, Lcom/facebook/internal/NativeProtocol$$ExternalSyntheticLambda0; invoke-direct {v2}, Lcom/facebook/internal/NativeProtocol$$ExternalSyntheticLambda0;->()V invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-void :catchall_0 move-exception v1 .line 713 invoke-static {v1, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-void .end method .method private static final updateAllAvailableProtocolVersionsAsync$lambda-1()V .locals 5 const-class v0, Lcom/facebook/internal/NativeProtocol; invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 return-void :cond_0 const/4 v1, 0x0 :try_start_0 sget-object v2, Lcom/facebook/internal/NativeProtocol;->facebookAppInfoList:Ljava/util/List; .line 706 invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v2 :goto_0 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_1 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/facebook/internal/NativeProtocol$NativeAppInfo; const/4 v4, 0x1 .line 707 invoke-virtual {v3, v4}, Lcom/facebook/internal/NativeProtocol$NativeAppInfo;->fetchAvailableVersions(Z)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v2 goto :goto_1 :cond_1 :try_start_1 sget-object v2, Lcom/facebook/internal/NativeProtocol;->protocolVersionsAsyncUpdating:Ljava/util/concurrent/atomic/AtomicBoolean; .line 710 invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V return-void :catchall_1 move-exception v1 goto :goto_2 :goto_1 sget-object v3, Lcom/facebook/internal/NativeProtocol;->protocolVersionsAsyncUpdating:Ljava/util/concurrent/atomic/AtomicBoolean; invoke-virtual {v3, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V throw v2 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 .line 712 :goto_2 invoke-static {v1, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-void .end method .method public static final validateActivityIntent(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/content/Intent; .locals 3 const-class p2, Lcom/facebook/internal/NativeProtocol; invoke-static {p2}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 :cond_0 :try_start_0 const-string v0, "context" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V if-nez p1, :cond_1 return-object v1 .line 250 :cond_1 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v0 const/4 v2, 0x0 invoke-virtual {v0, p1, v2}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo; move-result-object v0 if-nez v0, :cond_2 return-object v1 .line 251 :cond_2 sget-object v2, Lcom/facebook/internal/FacebookSignatureValidator;->INSTANCE:Lcom/facebook/internal/FacebookSignatureValidator; iget-object v0, v0, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v0, v0, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; const-string v2, "resolveInfo.activityInfo.packageName" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p0, v0}, Lcom/facebook/internal/FacebookSignatureValidator;->validateSignature(Landroid/content/Context;Ljava/lang/String;)Z move-result p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-nez p0, :cond_3 move-object p1, v1 :cond_3 return-object p1 :catchall_0 move-exception p0 invoke-static {p0, p2}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method .method public static final validateServiceIntent(Landroid/content/Context;Landroid/content/Intent;Lcom/facebook/internal/NativeProtocol$NativeAppInfo;)Landroid/content/Intent; .locals 3 const-class p2, Lcom/facebook/internal/NativeProtocol; invoke-static {p2}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-eqz v0, :cond_0 return-object v1 :cond_0 :try_start_0 const-string v0, "context" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V if-nez p1, :cond_1 return-object v1 .line 261 :cond_1 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v0 const/4 v2, 0x0 invoke-virtual {v0, p1, v2}, Landroid/content/pm/PackageManager;->resolveService(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo; move-result-object v0 if-nez v0, :cond_2 return-object v1 .line 262 :cond_2 sget-object v2, Lcom/facebook/internal/FacebookSignatureValidator;->INSTANCE:Lcom/facebook/internal/FacebookSignatureValidator; iget-object v0, v0, Landroid/content/pm/ResolveInfo;->serviceInfo:Landroid/content/pm/ServiceInfo; iget-object v0, v0, Landroid/content/pm/ServiceInfo;->packageName:Ljava/lang/String; const-string v2, "resolveInfo.serviceInfo.packageName" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p0, v0}, Lcom/facebook/internal/FacebookSignatureValidator;->validateSignature(Landroid/content/Context;Ljava/lang/String;)Z move-result p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-nez p0, :cond_3 move-object p1, v1 :cond_3 return-object p1 :catchall_0 move-exception p0 invoke-static {p0, p2}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V return-object v1 .end method