From 03a42f6c6afc69919544c6dbe0fce49637ec17df Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 8 Aug 2014 11:03:51 -0500 Subject: Add command line capabilities Allows sending openrecoveryscript commands to TWRP via shell. This may be handy for visually impaired users, for various one click utilities to drive TWRP commands from a computer, for using TWRP when a catastrophic hardware failure like a shattered screen prevents you from being able to use touch, or even on devices like a TV stick where touch and USB mouse input is unavailable. This patch also includes a few minor changes to openrecoveryscript including proper support for rebooting via the script and for decrypting the device via the command line. Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc --- orscmd/orscmd.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 orscmd/orscmd.h (limited to 'orscmd/orscmd.h') diff --git a/orscmd/orscmd.h b/orscmd/orscmd.h new file mode 100644 index 000000000..f186add82 --- /dev/null +++ b/orscmd/orscmd.h @@ -0,0 +1,22 @@ +/* + TWRP is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + TWRP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with TWRP. If not, see . +*/ + +#ifndef __ORSCMD_H +#define __ORSCMD_H + +#define ORS_INPUT_FILE "/sbin/orsin" +#define ORS_OUTPUT_FILE "/sbin/orsout" + +#endif //__ORSCMD_H -- cgit v1.2.3