In normal Java, a programmer is able to inquire with String tmpPath = aClass.getProtectionDomain().getCodeSource().getLocation().getPath();
to determine the source jar for a class.
In Android's version of Java, this has been disabled, as indicated in getClass().getProtectionDomain().getCodeSource().getLocation().getPath() Throw a null pointer exception, which indicates, and I've confirmed aClass.getProtectionDomain()
always returns null.
Although traditional jar files are not a part of the Android build process, information as to what packages and what versions are being used can often be helpful to the programmer.
How can the programmer learn the equivalent information (about the sources and versions of dependencies) in Android as they can in other Java environments?