Changing the Android App Icon Programmatically

Ryan W
5 min readAug 2, 2023

Recently, it was announced that 𝕏 Blue users could change their app icon. This feature is not new, as the Reddit app also provides a similar function.

The app icon selection screen, exclusively available to 𝕏 Blue users.

Searching for a solution online is relatively easy. However, what intrigued me was the reaction on StackOverflow whenever someone asked for a way to implement this. Respondents often insist that it’s impossible, despite the existence of workarounds.

If there are workarounds, then it is not impossible

Sometimes, the answers on StackOverflow can be contradicting.

This solution has been circulating for years. Although some users have reported issues on certain phones, the method works for me. Therefore, I’d like to share it here, as it’s not particularly difficult to implement.

The Underlying Working Principle

We can create multiple launcher icons by declaring activity-alias elements in AndroidManifest.xml. The effect of changing the app icon is achieved by disabling the current one and enabling a new one.

Defining the App Icons in AndroidManifest.xml

--

--

Ryan W

Android | Kotlin Multiplatform | Jetpack Compose 📱Releasing Android Apps since 2010 - dealing with the ecosystem not just coding