TWRP OpenRecoveryScript

(cherry picked from commit cbfc41430faddfc3d6f26b85e0c8c96e36f1b3d0)
TWRP OpenRecoveryScript_2

(cherry picked from commit a16653e7cc854b337a6d9a77984df555d2ebd90d)
(cherry picked from commit cbbde59f4c12ce5445477bd4372eb8859b7a4462)