{"id":262875,"date":"2015-08-04T14:33:02","date_gmt":"2015-08-04T10:33:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262875"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262875","title":{"rendered":"\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0442\u0441\u0432\u0438\u0435 Java \u0438 Shell-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0432 Android"},"content":{"rendered":"<p>             \u0422\u0430\u043a \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432 \u043c\u043e\u0451\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 shell-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u0438\u0437 \u043a\u043e\u0434\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0439\u0442\u0438 \u0432 \u043a\u0443\u0440\u0441 \u0434\u0435\u043b\u0430, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u0430\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e: <a href=\"https:\/\/xakep.ru\/2014\/10\/24\/android-shell-script\/\">Shell-\u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433 \u0432 \u0441\u0440\u0435\u0434\u0435 Android<\/a><\/p>\n<p>  \u0412 \u043d\u0435\u0439 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 Shell, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u043d\u0435 \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u0430\u043c\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b Java.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043e\u0431\u0440\u0430\u0437 Android_x86. \u041e\u0434\u043d\u0430\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0442\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d (\u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0440\u0430\u0432 \u0441\u0443\u043f\u0435\u0440\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e). <\/p>\n<p>  \u0421\u0430\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438\u0437 Java \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e:  <\/p>\n<pre><code class=\"java\">    \/**      * \u041c\u0435\u0442\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u044b shell \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435.      *      * @param command shell \u0441\u043a\u0440\u0438\u043f\u0442.      *\/     public void runCommand(final String command) {          \/\/ \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0438\u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435         new Thread(new Runnable() {             public void run() {                 OutputStream out = null;                 InputStream in = null;                 try {                    \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441                     Process child = Runtime.getRuntime().exec(command);                     \/\/ \u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0438 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u043a\u0438                     out = child.getOutputStream();                     in = child.getInputStream();                      \/\/\u0412\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u0435\u0440\u043d\u0443\u0442\u044c                     BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(in));                     String line;                     String result = &quot;&quot;;                     while ((line = bufferedReader.readLine()) != null)                         result += line;                      \/\/\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d \u0432\u0435\u0440\u043d\u0443\u043b                     handleBashCommandsResult(result);                  } catch (IOException e) {                                  e.printStackTrace();                 } finally {                     if (in != null) {                         try {                             in.close();                         } catch (IOException e) {                             e.printStackTrace();                         }                     }                     if (out != null) {                         try {                             out.flush();                             out.close();                         } catch (IOException e) {                             e.printStackTrace();                         }                     }                 }             }         }).start();     } <\/code><\/pre>\n<p>  \u0412 Android_x86 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0441\u0440\u0430\u0437\u0443 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d, \u0442\u043e \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443:  <\/p>\n<pre><code class=\"java\">Process child = Runtime.getRuntime().exec(command); <\/code><\/pre>\n<p>  \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u0442 \u044d\u0442\u0438:  <\/p>\n<pre><code class=\"java\">Process child = Runtime.getRuntime().exec(new String[] { &quot;su&quot;, &quot;-c&quot;, &quot;system\/bin\/sh&quot; }); DataOutputStream stdin = new DataOutputStream(child.getOutputStream()); \/\/\u0421\u043a\u0440\u0438\u043f\u0442 stdin.writeBytes(command); <\/code><\/pre>\n<p>  \u042f \u043d\u0435 \u0437\u043d\u0430\u044e, \u0447\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u044d\u0442\u043e, \u043d\u043e \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435 \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443. \u0412 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0441\u0451 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e shell-\u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u044b:  <\/p>\n<pre><code class=\"java\">  \/**      * \u041f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438      *      * @param i \u0441\u0435\u043a\u0443\u043d\u0434      * @return \u043a\u043e\u043c\u0430\u043d\u0434\u0430      *\/     public static String doSleep(int i) {         return &quot;adb shell 'sleep &quot; + i + &quot;' ;&quot;;     }     \/**      * \u0416\u0435\u0441\u0442 \u0441\u0432\u0430\u0439\u043f      *      * @param x1 \u043e\u0442\u043a\u0443\u0434\u0430      * @param y1 \u043e\u0442\u043a\u0443\u0434\u0430      * @param x2 \u043a\u0443\u0434\u0430      * @param y2 \u043a\u0443\u0434\u0430      * @return \u043a\u043e\u043c\u0430\u043d\u0434\u0430      *\/     public static String doSwipe(int x1, int y1, int x2, int y2) {         return &quot;adb shell input swipe &quot; + x1 + &quot; &quot; + y1 + &quot; &quot; + x2 + &quot; &quot; + y2 + &quot; ;&quot;;     }      \/**      * \u0416\u0435\u0441\u0442 \u0442\u0430\u043f      *      * @param x      * @param y      * @return \u043a\u043e\u043c\u0430\u043d\u0434\u0430      *\/     public static String doTap(int x, int y) {         return &quot;adb shell input tap &quot; + x + &quot; &quot; + y + &quot; ;&quot;;     }      \/**      * \u0412\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043f\u043e\u043b\u0435 \u0432\u0432\u043e\u0434\u0430      *      * @param text \u0442\u0435\u043a\u0441\u0442      * @return \u043a\u043e\u043c\u0430\u043d\u0434\u0430      *\/     public static String doInputText(String text) {         return &quot;adb shell input text &quot; + text + &quot; ;&quot;;     }      \/**      * \u041d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438      *      * @param keycode \u043a\u043e\u0434 \u043a\u043d\u043e\u043f\u043a\u0438      * @return \u043a\u043e\u043c\u0430\u043d\u0434\u0430      *\/     public static String doInputKeyevent(int keycode) {         return &quot;adb shell input keyevent &quot; + keycode + &quot; ;&quot;;     }      \/**      * \u0412\u044b\u0432\u043e\u0434 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0442\u043e\u043c \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u043b\u043e\u0432\u0438\u0442\u0441\u044f)      *      * @param message \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435      * @return \u043a\u043e\u043c\u0430\u043d\u0434\u0430      *\/     public static String echo(String message) {         return &quot;echo '&quot; + message + &quot;' ;&quot;;     }  <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b:  <\/p>\n<pre><code class=\"java\">    \/**      * \u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430      *      * @return \u0441\u043a\u0440\u0438\u043f\u0442      *\/     public static String sampleScript(){         String command = &quot;&quot;;          command = command                 .concat(doSwipe(100, 200, 100, 500))                 .concat(doSleep(1))                 .concat(doTap(100, 150))                 .concat(doSleep(1))                 .concat(doInputText(&quot;\u042f \u0441\u043a\u0440\u0438\u043f\u0442&quot;))                 .concat(doSleep(1))                 .concat(doInputKeyevent(KeyEvent.KEYCODE_ENTER))                 .concat(doSleep(1))                 .concat(echo(&quot;SCRIPT_FINISHED&quot;));         return command;     } <\/code><\/pre>\n<p>  \u0412\u044b\u0437\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e:  <\/p>\n<pre><code class=\"java\">runCommand(sampleScript()); <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0432\u0430\u0439\u043f\u0430\u0435\u0442, \u0437\u0430\u0442\u0435\u043c \u0442\u0430\u043f\u0430\u0435\u0442, \u0437\u0430\u0442\u0435\u043c \u0432\u0432\u043e\u0434\u0438\u0442 \u0442\u0435\u043a\u0441\u0442, \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 Enter \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c \u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0414\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u0444\u043e\u043d\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u043d\u0451\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438. \u041f\u043e \u0435\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0412 \u043c\u043e\u0451\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u044e \u0435\u0433\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0443, \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u044e \u043c\u0435\u0442\u043e\u0434 handleBashCommandsResult(result), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443. \u0412 \u044d\u0442\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c  <\/p>\n<pre><code class=\"java\"> \/**      * \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0435\u0440\u043d\u0443\u043b \u0441\u043a\u0440\u0438\u043f\u0442 (\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u043d \u043e\u0431\u044b\u0447\u043d\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 echo)      *      * @param result \u043e\u0442\u0432\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.      *\/     private void handleBashCommandsResult(String result) {          if (result.contains(&quot;SCRIPT_FINISHED&quot;)) {             \/\/\u0417\u0434\u0435\u0441\u044c \u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u0451 \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430         } else if (.....){            \/\/\u0410 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u0441\u043b\u0435 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430         } else {           \/\/\u0410 \u0432\u043e\u0442 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435         } <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432 \u043e\u0431\u0449\u0435\u043c \u0442\u043e \u0438 \u0432\u0441\u0451. \u0412 \u043c\u0435\u0442\u043e\u0434\u0435 handleBashCommandsResult \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a\u0438\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438. \u0422\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435, \u044f \u043a\u0440\u0430\u0442\u043a\u043e \u043e\u043f\u0438\u0441\u0430\u043b, \u043a\u0430\u043a \u043d\u0430\u043b\u0430\u0434\u0438\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0442\u0432\u0438\u0435 shell-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438 Java \u043a\u043e\u0434\u0430, \u0447\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u0438 \u0445\u043e\u0442\u0435\u043b.<\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f. \u0415\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0432\u0430\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c.             <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/264135\/\"> http:\/\/habrahabr.ru\/post\/264135\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u0422\u0430\u043a \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432 \u043c\u043e\u0451\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 shell-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u0440\u044f\u043c\u0438\u043a\u043e\u043c \u0438\u0437 \u043a\u043e\u0434\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0439\u0442\u0438 \u0432 \u043a\u0443\u0440\u0441 \u0434\u0435\u043b\u0430, \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0432\u0430\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e: <a href=\"https:\/\/xakep.ru\/2014\/10\/24\/android-shell-script\/\">Shell-\u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433 \u0432 \u0441\u0440\u0435\u0434\u0435 Android<\/a><\/p>\n<p>  \u0412 \u043d\u0435\u0439 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 Shell, \u043e\u0434\u043d\u0430\u043a\u043e \u043c\u043d\u0435 \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u0430\u043c\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b Java.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-262875","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262875"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262875\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}