Manifest parser doesn't work with activity-alias #13

Open
opened 2025-08-09 17:12:55 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @diskria on 5/26/2024

I'm trying to debug Telegram for Android app but parsing the manifest fails with an error. Here is manifest.

I found that the extension tries to find an activity tag with action MAIN and category LAUNCHER, but the problem is that this logic will not work with applications that implement changing the application icon using activity-alias. In this case, action MAIN is still set to the main activity, but category LAUNCHER is not set, since it needs to be set to every activity-alias that the developer creates for each application icon.

*Originally created by @diskria on 5/26/2024* I'm trying to debug [Telegram](https://github.com/DrKLO/Telegram) for Android app but parsing the manifest fails with an error. Here is [manifest](https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/AndroidManifest.xml). I found that the extension [tries to find an activity tag](https://github.com/adelphes/android-dev-ext/blob/cb6c78070cf7fd9c431a9999518fac312ff26b5c/src/manifest.js#L85) with `action MAIN` and `category LAUNCHER`, but the problem is that this logic will not work with applications that implement changing the application icon using `activity-alias`. In this case, `action MAIN` is still set to the main activity, but `category LAUNCHER` is not set, since it needs to be set to every `activity-alias` that the developer creates for each application icon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#13
No description provided.