Exploit database

GH-e6e5922ef9ac5cc7d4897803cb452516

zero2005x/rokid-rv101-research

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

168 sources

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

Repository files9

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

research/shizuku/shizuku-src/manager/src/main/java/moe/shizuku/manager/utils/CustomTabsHelper.java

Java · 3,056 bytes
package moe.shizuku.manager.utils;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.net.Uri;

import androidx.browser.customtabs.CustomTabsIntent;

import com.google.android.material.dialog.MaterialAlertDialogBuilder;

import moe.shizuku.manager.R;
import rikka.core.util.ClipboardUtils;
import rikka.html.text.HtmlCompat;

/**
 * Created by fytho on 2017/12/15.
 */

public class CustomTabsHelper {

    public interface OnCreateIntentBuilderListener {
        void onCreateHelpIntentBuilder(Context context, CustomTabsIntent.Builder builder);
    }

    private static OnCreateIntentBuilderListener sOnCreateIntentBuilderListener;

    public static void setOnCreateIntentBuilderListener(OnCreateIntentBuilderListener onCreateIntentBuilderListener) {
        sOnCreateIntentBuilderListener = onCreateIntentBuilderListener;
    }

    public static CustomTabsIntent.Builder createBuilder() {
        CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
        builder.setShowTitle(true);
        return builder;
    }

    public static boolean launchHelp(Context context, Uri uri) {
        CustomTabsIntent.Builder builder = createBuilder();

        if (sOnCreateIntentBuilderListener != null) {
            sOnCreateIntentBuilderListener.onCreateHelpIntentBuilder(context, builder);
        }

        Uri.Builder uriBuilder = uri.buildUpon();
        if ((context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_YES) > 0) {
            uriBuilder.appendQueryParameter("night", "1");
        }

        return launchUrl(context, builder.build(), uriBuilder.build());
    }

    public static boolean launchUrl(Context context, Uri uri) {
        return launchUrl(context, createBuilder().build(), uri);
    }

    private static boolean launchUrl(Context context, CustomTabsIntent customTabsIntent, Uri uri) {
        try {
            customTabsIntent.launchUrl(context, uri);
            return true;
        } catch (ActivityNotFoundException e) {
            return false;
        }
    }

    public static void launchUrlOrCopy(Context context, String url) {
        Uri uri = Uri.parse(url);
        if (!launchHelp(context, uri)) {
            Intent intent = new Intent(Intent.ACTION_VIEW);
            intent.setData(uri);

            try {
                context.startActivity(intent);
            } catch (Throwable tr) {
                try {
                    ClipboardUtils.put(context, url);

                    new MaterialAlertDialogBuilder(context)
                            .setTitle(R.string.dialog_cannot_open_browser_title)
                            .setMessage(HtmlCompat.fromHtml(context.getString(R.string.toast_copied_to_clipboard_with_text, url)))
                            .setPositiveButton(android.R.string.ok, null)
                            .show();
                } catch (Throwable ignored) {
                }
            }
        }
    }
}