Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications Class Reference

Public Member Functions

boolean rebootTWRP ()
 
boolean isTwrpInstalled ()
 
boolean isTwrpRunning ()
 
void exitRecovery ()
 
void waitForDevice ()
 
void runTwrpScript (OpenRecoveryScript script) throws IOException
 
void runTwrpScript (String script) throws IOException
 
void restartTWRP ()
 
boolean rebootTWRP ()
 
boolean isTwrpInstalled ()
 
boolean isTwrpRunning ()
 
void exitRecovery ()
 
void waitForDevice ()
 
void runTwrpScript (OpenRecoveryScript script) throws IOException
 
void runTwrpScript (String script) throws IOException
 
void restartTWRP ()
 

Detailed Description

Author
adamoutler

Member Function Documentation

void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.exitRecovery ( )

exits from TWRP.

void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.exitRecovery ( )

exits from TWRP.

boolean CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.isTwrpInstalled ( )

verifies TWRP is installed by checking for "\nStarting TWRP " in /cache/recovery/last_log.

Returns
true if TWRP logs are detected in cache
boolean CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.isTwrpInstalled ( )

verifies TWRP is installed by checking for "\nStarting TWRP " in /cache/recovery/last_log.

Returns
true if TWRP logs are detected in cache
boolean CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.isTwrpRunning ( )

verifies TWRP is running by checking for for "\nStarting TWRP " in /tmp/recovery.log.

Returns
true if TWRP is detected
boolean CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.isTwrpRunning ( )

verifies TWRP is running by checking for for "\nStarting TWRP " in /tmp/recovery.log.

Returns
true if TWRP is detected
boolean CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.rebootTWRP ( )

Puts the device into TWRP recovery mode.

Returns
true if TWRP is detected and device is in recovery.
boolean CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.rebootTWRP ( )

Puts the device into TWRP recovery mode.

Returns
true if TWRP is detected and device is in recovery.
void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.restartTWRP ( )

killall the "recovery" process on the device. This forces TWRP to reboot and run the openrecoveryscript

void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.restartTWRP ( )

killall the "recovery" process on the device. This forces TWRP to reboot and run the openrecoveryscript

void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.runTwrpScript ( OpenRecoveryScript  script) throws IOException

deposits the script file in /cache/recovery/openrecoveryscript and runs. Running is performed by killing the recovery binary, running in memory then letting TWRP perform the actions in the script.

Parameters
scriptscript to run
Exceptions
java.io.IOException
void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.runTwrpScript ( OpenRecoveryScript  script) throws IOException

deposits the script file in /cache/recovery/openrecoveryscript and runs. Running is performed by killing the recovery binary, running in memory then letting TWRP perform the actions in the script.

Parameters
scriptscript to run
Exceptions
java.io.IOException
void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.runTwrpScript ( String  script) throws IOException

deposits the script file in /cache/recovery/openrecoveryscript and runs. Running is performed by killing the recovery binary, running in memory then letting TWRP perform the actions in the script.

Parameters
scriptscript to run
Exceptions
java.io.IOException
void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.runTwrpScript ( String  script) throws IOException

deposits the script file in /cache/recovery/openrecoveryscript and runs. Running is performed by killing the recovery binary, running in memory then letting TWRP perform the actions in the script.

Parameters
scriptscript to run
Exceptions
java.io.IOException
void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.waitForDevice ( )

Waits for the device to be ready.

void CASUAL.communicationstools.adb.twrprecovery.TwrpCommunications.waitForDevice ( )

Waits for the device to be ready.


The documentation for this class was generated from the following file: