So I'm Working on an Xposed module that should fit multiple apps, The purpose of the module is to create Automate the creation of A group of modules for different apps, What I need to know is, Is there a way to know All the methods that are called by a certain app during it's runTime like If I could make an Xposed module that would save the names of all the called methods in A database that would be a great help or If you have anything in mind regarding the automation of the Xposed modules please point me into that direction. Finally the app's purpose is to show the user the power consumption of each method in an app and show which use more power than others that's why I need to automate the process so I can create multiple modules for different apps without having to go through all the codes of the other apps.
What you want to do is theoretically possible:
You can for example load the dex files of an app at run-time and examine every class and method and hook them. However this will have several significant drawbacks:
When hooking many functions in an app the execution is significantly slowed-down. Even on high-end device the users will not accept this. This will also increase the Android error messages about apps that are non-responsive because your Xposed module slows them down.
From my perspective the even worse problem is that the slow-down means of course that the CPU has much more work to do so that in the end you will drastically decrease the battery life by your Xposed module. So in the end your battery usage monitor app which uses the data governed by the Xposed module would have to show that more than 50% of the battery is consumed by Xposed and your module (just a raw estimation, can be up to 80%) because of the large number of hooked methods.
Method hooking is a technology that only works good if you just a few methods that are executed not very frequently.
Alternatively you can use it on special test devices for evaluating something (so it is not used on a regular device used every day). In this environment increased battery usage and slowed down apps are not very problematic.