MartinStyk / AndroidApkAnalyzer

Android application for analyzing installed apps
GNU General Public License v3.0
270 stars 55 forks source link

Bug: Properties for Android components of an app changes while browsing the list of them #54

Open balazsgerlei opened 2 years ago

balazsgerlei commented 2 years ago

On the Application details screen, the Android components' (e.g. Services, Content Providers...) properties can change and be displayed incorrectly while browsing the list and expanding/collapsing the corresponding item in the list.

E.g. if you check Chrome (which is pre-installed on most Android devices) and scroll down in the list of Services to the bottom and expand "UsageStatsBrowserServiceProvider" you can see that it is exported (it says "Yes" for the line "Exported", and it can be verified without the app that it is indeed exported). If you then collapse/close that entry and keep expanding/opening others above it ("GooglePlayDataCallbackService", "ScheduledTaskService", etc.) and after expading a bunch, get back to "UsageStatsBrowserServiceProvider" and expand it again, you will see the value for "Exported" displayed as "No".

I think the problem is somewhere in how tha Adapter for this particular RecyclerView is handled, maybe diffing is not working somehow, or items get confused and it caches a value from another item.