フリーダユーティリティ

public class FridaUtils
extends Object implements AutoCloseable

java.lang.オブジェクト
com.android.sts.common.FridaUtils


frida とスクリプトをダウンロードしてデバイスにプッシュし、完了時にクリーンアップする AutoCloseable

まとめ

パブリックメソッド

void close ()
static FridaUtils withFrida (ITestDevice device, IBuildInfo buildInfo)

必要な Frida バイナリを見つけて、必要に応じてダウンロードします。

ByteArrayOutputStream withFridaScript (String fridaJsScriptContent, int pid)

指定されたプロセスで frida スクリプトをアップロードして実行します。

パブリックメソッド

近い

public void close ()

投げる
DeviceNotAvailableException
TimeoutException

フリーダと

public static FridaUtils withFrida (ITestDevice device, 
                IBuildInfo buildInfo)

必要な Frida バイナリを見つけて、必要に応じてダウンロードします。

パラメーター
device ITestDevice : Frida を使用するデバイス

buildInfo IBuildInfo : テストデバイスのビルド情報 (test.getBuild() から)

戻り値
FridaUtils Frida スクリプトを実行するために使用できる AutoCloseable FridaUtils オブジェクト

投げる
DeviceNotAvailableException
UnsupportedOperationException
IOException

withFridaScript

public ByteArrayOutputStream withFridaScript (String fridaJsScriptContent, 
                int pid)

指定されたプロセスで frida スクリプトをアップロードして実行します。

パラメーター
fridaJsScriptContent String : Frida JS スクリプトの内容。注: これはファイル名ではありません

pid int : Frida を接続するプロセスの PID

戻り値
ByteArrayOutputStream frida コマンドの stdout と stderr を含む ByteArrayOutputStream

投げる
DeviceNotAvailableException
FileNotFoundException
IOException
TimeoutException
InterruptedException