Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does an APK file include DLL files? Can Android run DLL files?

I decompiled an Android game .apk file which was developed with Unity Engine for educational purposes.

I was very surprised when I encountered DLL files.

How is this possible?

like image 200
Çağatay KAYA Avatar asked Apr 21 '18 11:04

Çağatay KAYA


1 Answers

It can include dll files since it also includes a run-time that can execute these dll files.

Unity3D and Xamarin both include mono which launches when the app launches.

When the mono world needs to call something from the Java world it uses Java Native Interface (JNI) to do so.

As for reverse-engineering dll files, you can usually open these up with a .NET decompiler, such as ildasm, dotPeek, .NET Reflector and many more.

like image 173
Cheesebaron Avatar answered Oct 09 '22 21:10

Cheesebaron