jeudi 21 novembre 2019

How to read methods and its annotations from APK or DEX files using C#?

I'm trying to get APK classes and methods from C# to be able to read my plugins information

public class 3DGallery extends ViewPlugin{
    private int[] imageResIDs;

    public 3DGallery(Context context) {
        super(context);
        init(null, 0);
    }


    @Override
    @MethodInfo(DisplayName = "StartPlaying", Category = CATEGORIES.Operation,
            Editor = EDITORBEHAVIOR.BehaviorAction,
            Events={
                    @EventInfo(DisplayName = "OnPlaybackStarted", Description = "OnPlaybackStarted"),
                    @EventInfo(DisplayName = "OnPlaybackStopped", Description = "OnPlaybackStopped")
            }
    )
    public void StartPlaying() {
        final String x="hello world";
        OnPlaybackStarted(true);
    }

I want to read the definitions above along with annotations from my C# applications to use them as reflection





Aucun commentaire:

Enregistrer un commentaire