Interface IEmulatedAndroid
public interface IEmulatedAndroid
Interface for a simple Android OS environment.
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieve the emulated Android SDK API level.Retrieve the emulated Android architecture.int
Retrieve the emulated Android version.getApk()
Convenience method.Retrieve the APK path on the emulated device.Retrieve the app's data folder for the current user on the emulated device.Retrieve the application folder on the emulated device.Convenience method.getDex()
Convenience method.Internal routine.Retrieve the Java properties object of the emulated app.Convenience method to retrieve the path to the local APK file (in the JEB project).Convenience method.Convenience method.getState()
Retrieve thedexdec
emulator state attached to this object.Retrieve the system properties of the emulated process.invokeMethod
(DInvokeType invoketype, String msig, List<IDExpression> args) Convenience method wrapping around thedex emulator
to emulate a method.
-
Method Details
-
getAndroidVersion
int getAndroidVersion()Retrieve the emulated Android version.- Returns:
- the standard implementation currently returns 13
-
getAndroidApiLevel
int getAndroidApiLevel()Retrieve the emulated Android SDK API level.- Returns:
- the standard implementation currently returns 33
-
getAndroidPlatformABI
AndroidPlatformABI getAndroidPlatformABI()Retrieve the emulated Android architecture.- Returns:
- the standard implementation currently returns
aarch64
-
getState
IDState getState()Retrieve thedexdec
emulator state attached to this object. The emulator state is an entry-point into dex emulation facility as well as native code emulation.- Returns:
-
getApk
IApkUnit getApk()Convenience method.- Returns:
-
getDex
IDexUnit getDex()Convenience method.- Returns:
-
getDecompiler
IDexDecompilerUnit getDecompiler()Convenience method.- Returns:
-
getPackageName
String getPackageName()Convenience method.- Returns:
- the app's package name (e.g.
com.myapp
)
-
getMainActivity
String getMainActivity()Convenience method.- Returns:
- the app's main activity class internal signature (e.g.
Lcom/myapp/MainActivity;
, or null if there is no main activity
-
getAppFolder
String getAppFolder()Retrieve the application folder on the emulated device.- Returns:
-
getApkPath
String getApkPath()Retrieve the APK path on the emulated device.- Returns:
-
getAppDataFolder
String getAppDataFolder()Retrieve the app's data folder for the current user on the emulated device.- Returns:
-
getLocalApkFile
File getLocalApkFile()Convenience method to retrieve the path to the local APK file (in the JEB project).- Returns:
-
getDropboxFolder
File getDropboxFolder()- Returns:
-
invokeMethod
IDImm invokeMethod(DInvokeType invoketype, String msig, List<IDExpression> args) throws DexDecEvaluationException Convenience method wrapping around thedex emulator
to emulate a method.- Parameters:
invoketype
- method typemsig
- full method signatureargs
- method arguments (the first one must be the object if the method is non-static)- Returns:
- the returned value
- Throws:
DexDecEvaluationException
-
getJavaProperties
Properties getJavaProperties()Retrieve the Java properties object of the emulated app.- Returns:
-
getSystemProperties
Retrieve the system properties of the emulated process.- Returns:
-
getInternalInfo
Object getInternalInfo()Internal routine. Do not use.- Returns:
- an opaque object
-