How does one Obtain the Source Code of an .aix Extension in MIT App Inventor?

How to Obtain the Source Code of an .aix Extension in MIT App Inventor?

Hello App Inventor Community,

I hope you're all doing well!

I have been working with MIT App Inventor and have come across various extensions (.aix files) that greatly enhance the capabilities of my projects. However, for educational purposes and to better understand how these extensions work, I am interested in viewing the source code of these .aix extensions. Additionally, I would like to enhance the code of some .aix files by adding useful functions to their older versions.

Could anyone guide me on how to obtain or view the source code of an .aix extension? Specifically, I would like to know:

  1. Is it legally and ethically permissible to decompile or view the source code of .aix extensions?

  2. What tools or methods are available to decompile or extract the source code from an .aix file?

  3. Are there any specific steps or precautions to take while attempting to decompile these files?

  4. Are there any resources or tutorials available that can assist in understanding the structure and creation of .aix extensions?

I appreciate any advice, tools, or resources you can share. Understanding the source code will not only help me learn but also enable me to enhance existing extensions by adding new functionalities.

Thank you in advance for your help and guidance!

Best regards,
Mr_Koder

1 Like

Not legal, unless you obtain permission from the developer.

2 Likes

The forum is not supposed to provide legal advice. But, if the closed-source extension comes with a license/agreement that prohibits obtaining the source code of the extension, or if the source code is copyrighted, it's illegal. Even if decompiling the extension is legal, the license may prohibit you from publishing the source code.

As for the morality of decompiling extensions, I'd say there are probably reasons why developers don't publish the source code of their extensions. Maybe they've worked very hard to find new methods/workarounds, and don't want the whole world to see their findings. As a developer myself I respect that. In some countries it may be legal to decompile software but by doing so you've probably made someone sad.

Yes.

Not that I'm aware of.

2 Likes

Note that all of the extensions published by the MIT team are open source and you can see them on GitHub.

To learn more about extensions, including how to build extensions, please see:

2 Likes

ok thanks @gordonlu310 ,now I am using rush tool to create extensions and I want to know how to secure it against decompilations

1 Like
1 Like

This seems a bit upside down :wink: (topic title)

1 Like

Exactly, you got it :sweat_smile:

1 Like

I got this errors :

1 Like

Add -dontwarn to proguard rules.

1 Like

You need to enable desugar feature from rush.yml. See below :arrow_down:

  # If enabled, you will be able to use Java 8 language features in your extension.
  desugar:
    enable: true
    desugar_deps: true # Enable it when your dependencies uses Java 8.
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.