OverlayFsUtils

public class OverlayFsUtils
extends TestWatcher

java.lang.Object
org.junit.rules.TestWatcher
com.android.sts.common.OverlayFsUtils


読み取り専用パーティションへの書き込みを有効にし、完了時にデバイスを再起動する TestWatcher。

概要

田畑

static final Pattern PERM_PATTERN

パブリック コンストラクター

OverlayFsUtils (BaseHostJUnit4Test test)

公開メソッド

boolean anyOverlayFsMounted ()
void finished (Description d)
void makeWritable (String dir, int megabytes)

リストの一番上にある最も一般的なディレクトリに OverlayFS ディレクトリをマウントします。

田畑

PERM_PATTERN

static final Pattern PERM_PATTERN

パブリック コンストラクター

OverlayFsUtils

public OverlayFsUtils (BaseHostJUnit4Test test)

パラメーター
test BaseHostJUnit4Test

公開メソッド

anyOverlayFsMounted

public boolean anyOverlayFsMounted ()

戻り値
boolean

スロー
DeviceNotAvailableException

終了した

public void finished (Description d)

パラメーター
d Description

makeWritable

public void makeWritable (String dir, 
                int megabytes)

リストの一番上にある最も一般的なディレクトリに OverlayFS ディレクトリをマウントします。

これが正常に返された後、ディレクトリは書き込み可能になるはずです。残念ながらoverlayfsのアンマウントは複雑なため、クリーンアップするにはデバイスを再起動してください。

パラメーター
dir String : 書き込み可能にするディレクトリ。単一引用符を含むディレクトリはサポートされていません。

megabytes int

スロー
DeviceNotAvailableException
IOException
IllegalStateException