michaelskyf / OpenFaker

Free as in Freedom Android Faker
GNU General Public License v3.0
2 stars 1 forks source link

Allow specifying which hooked methods are to be reloaded dynamically #1

Closed michaelskyf closed 1 year ago

michaelskyf commented 1 year ago

At the moment every hooked method checks if FakerData was changed and reloads ALL hooked methods if it was. This is really slow (especially for enforcing SELinux) and should be replaced with a smarter approach which reloads the current executing hooked method.

TLDR; Hooked method must only reload itself if it is dynamically-reloadable and FakerData for that method has changed

michaelskyf commented 1 year ago

In the 8ae88ad we can now control which method is dynamic or not. Now we just need to pass the flag from the UI to the module.

michaelskyf commented 1 year ago

However it only works for the first dynamic method after an update of the FakerData. I think it might be solved by storing FakerData "versionID" and comparing it with the saved one? Anyway, the project is now on hold for about 3 weeks due to personal reasons.

michaelskyf commented 1 year ago

However it only works for the first dynamic method after an update of the FakerData. I think it might be solved by storing FakerData "versionID" and comparing it with the saved one? Anyway, the project is now on hold for about 3 weeks due to personal reasons.

A fix should be a String -> Boolean,Json map in FakerData

michaelskyf commented 1 year ago

Change of plans: All methods are updated dynamically from now on