adelphes / android-dev-ext

Android debugging support for VS Code
https://marketplace.visualstudio.com/items?itemName=adelphes.android-dev-ext
MIT License
211 stars 29 forks source link

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

Open diskree opened 3 months ago

diskree commented 3 months ago

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.

jamesikanos commented 1 month ago

Hi @diskree,

I've raised a PR to fix your issue.