analysis: full official-app reverse artifacts (jadx sources, ghidra libcxsdk decomp, authoritative protocol conclusions) + docs

This commit is contained in:
ZXCLI
2026-09-10 02:51:37 +08:00
parent 623d62b641
commit 4ba98f62cd
68 changed files with 69493 additions and 5 deletions
@@ -0,0 +1,35 @@
package cn.com.magnity.magnitycx.sdk;
import java.util.ArrayList;
/* loaded from: classes.dex */
public abstract class Observable<T> {
protected final ArrayList<T> observers_ = new ArrayList<>();
public void registerObserver(T observer) {
if (observer != null) {
synchronized (this.observers_) {
if (!this.observers_.contains(observer)) {
this.observers_.add(observer);
}
}
}
}
public void unregisterObserver(T observer) {
if (observer != null) {
synchronized (this.observers_) {
int index = this.observers_.indexOf(observer);
if (index != -1) {
this.observers_.remove(index);
}
}
}
}
public void unregisterAll() {
synchronized (this.observers_) {
this.observers_.clear();
}
}
}