I am creating a program that needs to download additional code and resources from external server. (Of course that code is safe).
Is it illegal on Google Play?
These additional assemblies will not be tested by Google. Could be my account or program banned? Will Google think, that I want to harm my users, or I am creating a virus?
This program is created in Xamarin (C#) and I uses System.Reflection to load assemblies from downloaded DLL files.
Thanks for help!
The law itself wouldn't specify what origin of code can be retrieved and then executed.
The terms of service of Google would be what would restrict you from doing this or not, including what consequences you would have if Google discovered this.
I can say that as a developer, I have created assemblies in C#, sent them to a server and my application downloaded them and executed them. In my case the assemblies were compiled from script code that the user created themselves and so they knew this was happening.
There is no law that dictates that a particular block of code must go through a vetting process by Google prior to running.
A quick check of Google's terms of service say that they do not allow this kind of updates. Here is a quote: