[android] Adds a virtual method for loading native libraries.