Apply icon pack ^1.1.0
Icon pack developers may request the ADB Remote to apply their icon packs.
Add
queries
with ADB Remote package name inAndroidManifest.xml
.xml<manifest ...> <queries> <package android:name="com.jcapps.adbremote" /> </queries> </manifest>
Apply icon pack.
kotlintry { 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() }
javatry { 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(); }