Files
rr3-apk/smali_classes3/com/google/firebase/components/RestrictedComponentContainer.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

535 lines
16 KiB
Smali

.class public final Lcom/google/firebase/components/RestrictedComponentContainer;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/firebase/components/ComponentContainer;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
}
.end annotation
# instance fields
.field public final allowedDeferredInterfaces:Ljava/util/Set;
.field public final allowedDirectInterfaces:Ljava/util/Set;
.field public final allowedProviderInterfaces:Ljava/util/Set;
.field public final allowedPublishedEvents:Ljava/util/Set;
.field public final allowedSetDirectInterfaces:Ljava/util/Set;
.field public final allowedSetProviderInterfaces:Ljava/util/Set;
.field public final delegateContainer:Lcom/google/firebase/components/ComponentContainer;
# direct methods
.method public constructor <init>(Lcom/google/firebase/components/Component;Lcom/google/firebase/components/ComponentContainer;)V
.locals 8
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 39
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
.line 40
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
.line 41
new-instance v2, Ljava/util/HashSet;
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
.line 42
new-instance v3, Ljava/util/HashSet;
invoke-direct {v3}, Ljava/util/HashSet;-><init>()V
.line 43
new-instance v4, Ljava/util/HashSet;
invoke-direct {v4}, Ljava/util/HashSet;-><init>()V
.line 44
invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getDependencies()Ljava/util/Set;
move-result-object v5
invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v5
:goto_0
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v6
if-eqz v6, :cond_4
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v6
check-cast v6, Lcom/google/firebase/components/Dependency;
.line 45
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isDirectInjection()Z
move-result v7
if-eqz v7, :cond_1
.line 46
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v7
if-eqz v7, :cond_0
.line 47
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v3, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 49
:cond_0
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v0, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 51
:cond_1
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isDeferred()Z
move-result v7
if-eqz v7, :cond_2
.line 52
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v2, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 54
:cond_2
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->isSet()Z
move-result v7
if-eqz v7, :cond_3
.line 55
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v4, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 57
:cond_3
invoke-virtual {v6}, Lcom/google/firebase/components/Dependency;->getInterface()Lcom/google/firebase/components/Qualified;
move-result-object v6
invoke-interface {v1, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 61
:cond_4
invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getPublishedEvents()Ljava/util/Set;
move-result-object v5
invoke-interface {v5}, Ljava/util/Set;->isEmpty()Z
move-result v5
if-nez v5, :cond_5
const-class v5, Lcom/google/firebase/events/Publisher;
.line 62
invoke-static {v5}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object v5
invoke-interface {v0, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 64
:cond_5
invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
.line 65
invoke-static {v1}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedProviderInterfaces:Ljava/util/Set;
.line 66
invoke-static {v2}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDeferredInterfaces:Ljava/util/Set;
.line 67
invoke-static {v3}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetDirectInterfaces:Ljava/util/Set;
.line 68
invoke-static {v4}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetProviderInterfaces:Ljava/util/Set;
.line 69
invoke-virtual {p1}, Lcom/google/firebase/components/Component;->getPublishedEvents()Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedPublishedEvents:Ljava/util/Set;
iput-object p2, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
return-void
.end method
# virtual methods
.method public get(Lcom/google/firebase/components/Qualified;)Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
.line 101
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 105
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->get(Lcom/google/firebase/components/Qualified;)Ljava/lang/Object;
move-result-object p1
return-object p1
.line 102
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency %s."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 103
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public get(Ljava/lang/Class;)Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDirectInterfaces:Ljava/util/Set;
.line 80
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 89
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
const-class v1, Lcom/google/firebase/events/Publisher;
.line 90
invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_0
return-object v0
.line 95
:cond_0
new-instance p1, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;
iget-object v1, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedPublishedEvents:Ljava/util/Set;
check-cast v0, Lcom/google/firebase/events/Publisher;
invoke-direct {p1, v1, v0}, Lcom/google/firebase/components/RestrictedComponentContainer$RestrictedPublisher;-><init>(Ljava/util/Set;Lcom/google/firebase/events/Publisher;)V
return-object p1
.line 81
:cond_1
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency %s."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 82
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedDeferredInterfaces:Ljava/util/Set;
.line 145
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 150
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
move-result-object p1
return-object p1
.line 146
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Deferred<%s>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 147
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
.locals 0
.line 120
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/firebase/components/RestrictedComponentContainer;->getDeferred(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Deferred;
move-result-object p1
return-object p1
.end method
.method public getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedProviderInterfaces:Ljava/util/Set;
.line 135
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 140
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.line 136
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Provider<%s>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 137
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public getProvider(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;
.locals 0
.line 115
invoke-static {p1}, Lcom/google/firebase/components/Qualified;->unqualified(Ljava/lang/Class;)Lcom/google/firebase/components/Qualified;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/firebase/components/RestrictedComponentContainer;->getProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.end method
.method public setOf(Lcom/google/firebase/components/Qualified;)Ljava/util/Set;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetDirectInterfaces:Ljava/util/Set;
.line 170
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 174
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOf(Lcom/google/firebase/components/Qualified;)Ljava/util/Set;
move-result-object p1
return-object p1
.line 171
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Set<%s>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 172
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public setOfProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
.locals 2
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->allowedSetProviderInterfaces:Ljava/util/Set;
.line 155
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/components/RestrictedComponentContainer;->delegateContainer:Lcom/google/firebase/components/ComponentContainer;
.line 160
invoke-interface {v0, p1}, Lcom/google/firebase/components/ComponentContainer;->setOfProvider(Lcom/google/firebase/components/Qualified;)Lcom/google/firebase/inject/Provider;
move-result-object p1
return-object p1
.line 156
:cond_0
new-instance v0, Lcom/google/firebase/components/DependencyException;
const-string v1, "Attempting to request an undeclared dependency Provider<Set<%s>>."
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
.line 157
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/components/DependencyException;-><init>(Ljava/lang/String;)V
throw v0
.end method