public static interface SUtil.AndroidUtils
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apkPathFromUrl(java.net.URL url)
Retrieves the APK Path from a given URL, if its an Android APK URL.
|
java.util.Collection<? extends java.net.URL> |
collectDexPathUrls(java.lang.ClassLoader classloader)
Traverse the Hierarchy of the given classloader and collect all
DexPaths that are found as URLs.
|
java.lang.ClassLoader |
findJadexDexClassLoader(java.lang.ClassLoader cl)
Looks up the ClassLoader Hierarchy and tries to find a JadexDexClassLoader in it.
|
int |
getAndroidVersion()
Get Android API version.
|
java.util.Enumeration<java.lang.String> |
getDexEntries(java.io.File dexFile)
Get all Classes in a dex file as Enumeration.
|
boolean |
hasXmlSupport()
Checks whether the Platform has the necessary classes to provide XML
encoding and decoding support.
|
boolean |
runningOnUiThread()
Check whether the current Thread is the android UI thread.
|
java.net.URL |
urlFromApkPath(java.lang.String apkPath)
Creates an URL object from a given Path to an android APK file
|
int getAndroidVersion()
java.util.Collection<? extends java.net.URL> collectDexPathUrls(java.lang.ClassLoader classloader)
classloader
- boolean hasXmlSupport()
java.lang.ClassLoader findJadexDexClassLoader(java.lang.ClassLoader cl)
cl
- ClassLoader
or null
, if none found.java.net.URL urlFromApkPath(java.lang.String apkPath) throws java.net.MalformedURLException
apkPath
- URL
java.net.MalformedURLException
java.lang.String apkPathFromUrl(java.net.URL url)
url
- String
java.util.Enumeration<java.lang.String> getDexEntries(java.io.File dexFile) throws java.io.IOException
dexFile
- the dex filejava.io.IOException
boolean runningOnUiThread()