Skip to content

Apply icon pack ^1.1.0

Icon pack developers may request the ADB Remote to apply their icon packs.

Icon pack application request

  1. Add queries with ADB Remote package name in AndroidManifest.xml.

    xml
    <manifest ...>
        <queries>
            <package android:name="com.jcapps.adbremote" />
        </queries>
    </manifest>
  2. Apply icon pack.

    kotlin
    try {
        val iconPackIntent = packageManager.getLaunchIntentForPackage("com.jcapps.adbremote")?.apply {
            action = "com.jcapps.adbremote.ACTION_APPLY_ICON_PACK"
            putExtra("package_name", packageName)
            addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        }
        startActivity(iconPackIntent)
    } catch (_: Exception) {
        Toast.makeText(this, "ADB Remote is not installed.", Toast.LENGTH_SHORT).show()
    }
    java
    try {
        Intent iconPackIntent = Objects.requireNonNull(getPackageManager().getLaunchIntentForPackage("com.jcapps.adbremote"));
        iconPackIntent.setAction("com.jcapps.adbremote.ACTION_APPLY_ICON_PACK");
        iconPackIntent.putExtra("package_name", getPackageName());
        iconPackIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(iconPackIntent);
    } catch (Exception ignored) {
        Toast.makeText(this, "ADB Remote is not installed.", Toast.LENGTH_SHORT).show();
    }