I have a large project with lots of features that require permissions. The problem is that the developer who started this project a year ago, just added ALL possible permissions to the manifest. Now the problem is that i need to remove all permissions that are never used. Is there a nice way or tool to do that?
The way i thought about was to remove all permissions, then test, and add one by one after seeing a crash with SECURITY EXCEPTION. Also the stack trace contains a hint for which permission is missing. I do not think it is a nice or safe way to do it...
I tried the method explained here: How to check if Android Permission is actually being used? but it did only partial work. I removed all permissions and run inspection, but not all permissions were found. I use bluetooth in my code, and there were no notice of this permission missing...