Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

workspace/decomp/HeyOTA/sources/com/heytap/accessory/stream/StreamInitializer.java

Java · 2,451 bytes
package com.heytap.accessory.stream;

import android.content.Context;
import android.content.pm.PackageManager;
import com.heytap.accessory.Config;
import com.heytap.accessory.Initializer;
import com.heytap.accessory.api.ManagerConfig;
import com.heytap.accessory.bean.SdkUnsupportedException;
import com.heytap.accessory.logging.SdkLog;

/* loaded from: classes.dex */
public class StreamInitializer {
    public static final String STREAM_TRANSFER_SERVICE_INTENT = "com.heytap.accessory.IStreamAction";
    public static final String TAG = "StreamInitializer";
    private static boolean sInitialized;

    private StreamInitializer() {
    }

    public static String getStreamMsgPackageName(Context context) {
        return Initializer.useOAFApp() ? ManagerConfig.ACCESSORY_FRAMEWORK_PACKAGE : context.getPackageName();
    }

    public static void initialize(Context context) throws SdkUnsupportedException {
        if (context != null) {
            if (sInitialized) {
                return;
            }
            PackageManager packageManager = context.getPackageManager();
            try {
                if (Initializer.useOAFApp()) {
                    if (packageManager.getPackageInfo(ManagerConfig.ACCESSORY_FRAMEWORK_PACKAGE, 0) == null) {
                        throw new SdkUnsupportedException("Device not supported", 1);
                    }
                } else {
                    SdkLog.w(TAG, "is not AppMode,ignore");
                }
                String streamMsgPackageName = getStreamMsgPackageName(context);
                if (streamMsgPackageName != null) {
                    if (packageManager.getPackageInfo(streamMsgPackageName, 0) != null) {
                        SdkLog.d(TAG, "Accessory Stream Transfer SDK version: " + Config.getSdkVersionName());
                        sInitialized = true;
                        return;
                    }
                    throw new SdkUnsupportedException("Accessory Framework not installed", 2);
                }
                throw new SdkUnsupportedException("Accessory Framework not installed", 2);
            } catch (PackageManager.NameNotFoundException unused) {
                SdkLog.e(TAG, "Accessory Framework not installed");
                throw new SdkUnsupportedException("Accessory Framework not installed", 2);
            }
        }
        throw new IllegalArgumentException("Illegal argument input: context");
    }
}