Javadoc
Loads a dex entry from a container format (zip/oat)
This has two modes of operation, depending on the exactMatch parameter. When exactMatch is true, it will only
load an entry whose name exactly matches that provided by the dexEntry parameter.
When exactMatch is false, then it will search for any entry that dexEntry is a path suffix of. "path suffix"
meaning all the path components in dexEntry must fully match the corresponding path components in the entry name,
but some path components at the beginning of entry name can be missing.
For example, if an oat file contains a "/system/framework/framework.jar:classes2.dex" entry, then the following
will match (not an exhaustive list):
"/system/framework/framework.jar:classes2.dex"
"system/framework/framework.jar:classes2.dex"
"framework/framework.jar:classes2.dex"
"framework.jar:classes2.dex"
"classes2.dex"
Note that partial path components specifically don't match. So something like "work/framework.jar:classes2.dex"
would not match.
If dexEntry contains an initial slash, it will be ignored for purposes of this suffix match -- but not when
performing an exact match.
If multiple entries match the given dexEntry, a MultipleMatchingDexEntriesException will be thrown