{"id":352150,"date":"2024-05-20T22:03:04","date_gmt":"2024-05-20T22:03:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=352150"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-20T22:03:04","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=352150","title":{"rendered":"<span>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b Android \u0432 web \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e \u0437\u043d\u0430\u044e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432 \u044d\u0442\u043e \u043e\u0434\u043d\u043e, \u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043b\u043e\u0445\u043e \u0437\u043d\u0430\u044f \u0441\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0441 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b Android \u0432 web \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f javascript. \u041a\u043b\u0430\u0441\u0441\u0438\u043a\u0430, \u0441\u0430\u043c \u043d\u0435 \u0443\u043c\u0435\u044e \u043d\u0430\u0443\u0447\u0443 \u0434\u0440\u0443\u0433\u0438\u0445. \u0414\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441, \u0442\u043e \u0432\u044b \u044f\u0432\u043d\u043e \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0432\u043e \u0432\u0441\u0435\u0445 &#171;\u044d\u0442\u0438\u0445 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f&#187;, \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442\u0432\u0435\u0442\u0430: \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043f\u0441\u0438\u0445\u043e\u043c\u043e\u0442\u043e\u0440\u0438\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u0430\u043b\u044c\u0448\u0435 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u044f \u0432 \u043f\u043e\u043c\u043e\u0449\u044c. \u0418\u0433\u0440\u043e\u0432\u0430\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0430 &#8212; <a href=\"http:\/\/xn--90aci8aadpej1e.com\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e.com<\/a>, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0431\u0435\u0437 \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c, \u043c\u043e\u0439, \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0439 \u0441\u0431\u043e\u0440\u043d\u0438\u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f web \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0411\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b \u0437\u0430\u0445\u043e\u0434\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0435\u0441\u0443\u0440\u0441, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0441\u0442\u0430\u0440\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b http, \u0445\u0430\u043a\u0435\u0440\u044b \u0438\u0437 \u041c\u0430\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u043b \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e \u0442\u043e \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 web \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0435\u0439 \u043c\u044b\u0441\u043b\u0438 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c:<\/h4>\n<ol>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u0410\u0416\u041d\u041e!<\/strong> \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u043b\u0430\u0432\u0438\u0448 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u044f\u0445 \u043d\u0430\u0431\u043e\u0440\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 HTML, \u0432\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043c\u0435\u043d\u044f \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442, \u0432 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>\u041e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0432\u0438\u0434 \u0434\u0430\u043d\u043d\u044b\u0445: \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u0437 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435.<\/p>\n<pre><code class=\"json\">[{\"key_name\": \"\u0432\", \"time_keyup\": 1687158386.862, \"time_press\": 0.127000093460083, \"time_keydown\": 1687158386.735}, ... ]<\/code><\/pre>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u0446\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u043d\u0430, \u043f\u043b\u0430\u043d \u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u044e \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u0432\u0435\u043b\u0438\u043a\u043e\u043b\u0435\u043f\u043d\u044b\u0439 <s>\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c<\/s> \u043f\u043b\u0430\u0433\u0438\u0430\u0442\u043e\u0440 javascript, \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0441\u044c \u0437\u0430 \u0441\u043e\u0432\u0435\u0442\u043e\u043c \u043a \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0443. \u041d\u0430\u0445\u043e\u0436\u0443 \u043d\u0443\u0436\u043d\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"javascript\">var arr_keystroke = []; var arr_bad_keystroke = []; var idx_arr_keystroke = 0; var tKey = {} var list_exept = [\"CapsLock\", \"Alt\", \"Control\", \"Shift\", \"Insert\"]  function static_handle(e, charCode) {     if (list_exept.indexOf(e.key) == -1) {         if (e.type == \"keydown\") {             if (e.key==\"Backspace\") {                 if (arr_keystroke.length!=0 &amp;&amp; idx_arr_keystroke!=0) {                     idx_arr_keystroke--;                     arr_keystroke.splice(idx_arr_keystroke, 1);                 }             } else if (e.key == \"ArrowRight\") {                } else if (e.key == \"ArrowLeft\") {               } else if (e.key == \"ArrowUp\") {               } else if (e.key == \"ArrowDown\") {                } else {                 var keyTimes = {};                 let K;                 if (e.key ==\"Enter\") {                      K = String.fromCharCode(charCode); \/\/String.fromCodePoint                     console.log(\".....\", K);                 } else { K = e.key };                 keyTimes[\"key_name\"] = K;                 keyTimes[\"time_keydown\"] = new Date().getTime()\/1000.0;                 keyTimes[\"time_keyup\"] = new Date().getTime()\/1000.0;                 arr_keystroke.splice(idx_arr_keystroke, 0, keyTimes);                 if (!tKey[e.key]) {                     tKey[e.key] = [idx_arr_keystroke];                 } else {                     tKey[e.key].push(idx_arr_keystroke);                 }             }         }         if (e.type == \"keyup\") {             if (arr_keystroke.length>0) {                 let time_up = new Date().getTime()\/1000.0;                 if (tKey[e.key]) {                     for (var i = 0; i &lt; tKey[e.key].length; i++) {                         let rev_idx = (tKey[e.key].length-1)-i;                         arr_keystroke[tKey[e.key][i]][\"time_keyup\"] = time_up;                         arr_keystroke[tKey[e.key][i]][\"time_press\"] = time_up - arr_keystroke[tKey[e.key][rev_idx]][\"time_keydown\"];                     }                     delete tKey[e.key];                 }             }         }     } else {         if (e.type == \"keydown\") {             arr_bad_keystroke.push([e.key, idx_arr_keystroke]);         }     }  }<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u0431\u043e\u0440\u043d\u0438\u043a \u0447\u0443\u0436\u0438\u0445 \u0438\u0434\u0435\u0439, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0432 Chromium, Firefox, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Ubuntu, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c. \u0410 \u043a\u0430\u043a \u0434\u0435\u043b\u0430 \u0432 android? \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u044f\u0441\u043d\u044f\u044e \u0447\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0414\u0430\u043b\u044c\u0448\u0435 \u0443\u0437\u043d\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u0432\u0437\u044f\u0442\u044c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 log \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0435 \u043c\u043e\u0433\u0443, \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u0441\u043b\u043e\u0432\u0443 \u043d\u0435 \u043f\u0440\u0438\u043d\u0435\u0441\u0443\u0442 \u0434\u043e\u043b\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u0430, \u0438\u0442\u043e\u0433: \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c, \u043c\u043d\u0435, \u0432 \u043c\u0438\u0440 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430. \u0423\u043c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u043d\u0430\u043f\u0438\u0448\u0443\u0442 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u0432\u0441\u044f\u043a\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432, \u044d\u0442\u0438\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0434\u0430\u0447\u0438. \u0410 \u044f \u043d\u0435 \u0443\u043c\u043d\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0440\u0430\u0447\u0443 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Android SDK \u0432 Ubuntu. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u0434\u043e\u043b\u0433\u043e? \u0416\u0438\u0432\u0443 \u0432 \u043d\u043e\u0432\u043e\u043c \u0414\u043e\u043d\u0435\u0446\u043a\u0435, \u043e\u0448\u0438\u0431\u043a\u0430 403, \u043b\u0443\u0447\u0448\u0435\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043e\u0442 github:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1dc\/bdc\/ddc\/1dcbdcddc291a63bbadc721fad8da30f.png\" alt=\"\u0442\u0430\u043a \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043b\u0435\u0442\" title=\"\u0442\u0430\u043a \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043b\u0435\u0442\" width=\"626\" height=\"867\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1dc\/bdc\/ddc\/1dcbdcddc291a63bbadc721fad8da30f.png\"\/><\/p>\n<div><figcaption>\u0442\u0430\u043a \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043b\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u0434\u0430 \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 vpn \u0438 104 \u043a\u0431\/\u0441. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c prox, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u044e SDK \u043f\u043e\u0434 \u0441\u0432\u043e\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0441 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c vpn \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u044e \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u044e \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c<\/p>\n<\/li>\n<li>\n<p>\u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 Windows \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c vpn, \u0440\u0430\u0437\u0434\u0430\u044e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 Ubuntu <\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u043a \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f. <em>\u0412\u043e\u043f\u0440\u043e\u0441 \u0436\u0438\u0432\u0443\u0449\u0438\u043c \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043a\u0435: \u0434\u043e\u0441\u0442\u0443\u043f \u043a unreal engine \u043e\u0442\u043a\u0440\u044b\u0442?<\/em><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a9f\/585\/a5d\/a9f585a5d8a2eec5d958a19aba1b2fae.png\" alt=\"\u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\" title=\"\u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430\" width=\"971\" height=\"1344\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a9f\/585\/a5d\/a9f585a5d8a2eec5d958a19aba1b2fae.png\"\/><\/p>\n<div><figcaption>\u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<h4>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0438 \u0441\u043e\u0432\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 android SDK<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/android.tutorials24x7.com\/blog\/how-to-install-android-sdk-tools-on-ubuntu\" rel=\"noopener noreferrer nofollow\">https:\/\/android.tutorials24x7.com\/blog\/how-to-install-android-sdk-tools-on-ubuntu<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/41311344\/installing-android-emulator-in-android-studio-with-zip-files\" rel=\"noopener noreferrer nofollow\">https:\/\/stackoverflow.com\/questions\/41311344\/installing-android-emulator-in-android-studio-with-zip-files<\/a><\/p>\n<\/li>\n<\/ul>\n<h4>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b android SDK<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/androidsdkoffline.blogspot.com\/p\/android-sdk-9-api-28-pie-direct-download.html\" rel=\"noopener noreferrer nofollow\">https:\/\/androidsdkoffline.blogspot.com\/p\/android-sdk-9-api-28-pie-direct-download.html<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432 terminal:<\/p>\n<pre><code class=\"bash\">avdmanager list avd sdkmanager --list avdmanager create avd -n android_temp -k \"system-images;android-28;android-automotive-playstore;x86\" sudo \/usr\/lib\/android-sdk\/emulator\/emulator_original\/emulator -avd Pixel_2_API_27<\/code><\/pre>\n<p><strong>\u0412\u0410\u0416\u041d\u041e! <\/strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 Chrome \u0438\u043b\u0438 Chromium<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d4e\/2b1\/4de\/d4e2b14de3a15e1158f33ffc1c545e54.png\" alt=\"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043e\u0442\u043b\u0430\u0434\u043a\u0435 chrome:\/\/inspect\/#devices\" title=\"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043e\u0442\u043b\u0430\u0434\u043a\u0435 chrome:\/\/inspect\/#devices\" width=\"623\" height=\"445\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d4e\/2b1\/4de\/d4e2b14de3a15e1158f33ffc1c545e54.png\"\/><\/p>\n<div><figcaption>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043e\u0442\u043b\u0430\u0434\u043a\u0435 chrome:\/\/inspect\/#devices<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bc4\/4c7\/321\/bc44c7321e7daa82b636133cc80b6fa1.png\" alt=\"\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b\" title=\"\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b\" width=\"2010\" height=\"610\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bc4\/4c7\/321\/bc44c7321e7daa82b636133cc80b6fa1.png\"\/><\/p>\n<div><figcaption>\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u042d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e&#8230; \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0441\u044c \u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443, \u0432\u0438\u0436\u0443 <strong>\u043e\u0448\u0438\u0431\u043a\u0443 229 <\/strong>\u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u0421\u043d\u043e\u0432\u0430 \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0441\u044c \u0437\u0430 \u0441\u043e\u0432\u0435\u0442\u043e\u043c \u043a \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u043c \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c \u0437\u043d\u0430\u043d\u0438\u044f\u043c. \u0412\u044b\u044f\u0441\u043d\u044f\u044e \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0442\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e(<a href=\"https:\/\/www.w3.org\/TR\/uievents\/#determine-keydown-keyup-keyCode\" rel=\"noopener noreferrer nofollow\">https:\/\/www.w3.org\/TR\/uievents\/#determine-keydown-keyup-keyCode<\/a>, <a href=\"https:\/\/www.w3.org\/TR\/uievents\/#keys-IME\" rel=\"noopener noreferrer nofollow\">https:\/\/www.w3.org\/TR\/uievents\/#keys-IME<\/a>), \u0432 \u0441\u0438\u043b\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432 :<\/p>\n<ul>\n<li>\n<p>\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u043a\u0441\u0442\u0430\u0442\u0438 \u0432 ios \u043a\u043e\u0434 \u041f\u041a \u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/p>\n<\/li>\n<li>\n<p>\u043c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0431\u0445\u043e\u0434\u043d\u044b\u0445 API \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e, \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u043f\u043e\u043b\u044f\u0445 \u043d\u0430\u0431\u043e\u0440\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 HTML. \u0414\u043b\u044f \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f &#171;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u043b\u0430\u0432\u0438\u0448 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f&#8230;&#187; , \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f android, \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/jonTrent\/PatienceDiff\" rel=\"noopener noreferrer nofollow\">Patience Diff<\/a> \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0430 \u0437\u0430\u0447\u0435\u043c \u0434\u0430\u0439\u0442\u0435 \u043e\u0442\u0432\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e (\u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435), \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e android \u0432\u0435\u0440\u0441\u0438\u044f:<\/p>\n<pre><code class=\"javascript\">function android_keydown(keyTimes) {     prev_idx = idx_arr_keystroke;     keyTimes[\"key_name\"] = idx_arr_keystroke;     keyTimes[\"time_keydown\"] = new Date().getTime()\/1000.0;     keyTimes[\"time_keyup\"] = new Date().getTime()\/1000.0;     arr_keystroke.splice(idx_arr_keystroke, 0, keyTimes);     if (!tKey[idx_arr_keystroke]) {         tKey[idx_arr_keystroke] = [idx_arr_keystroke];     } else {         tKey[idx_arr_keystroke].push(idx_arr_keystroke);     }    }  Array.prototype.max = function() {     return Math.max.apply(null, this); };  Array.prototype.min = function() {     return Math.min.apply(null, this); };  function android_keyup(e, keyTimes) {     let strrr = \"\";     let time_up = new Date().getTime()\/1000.0;     if (tKey[prev_idx] &amp;&amp; typeof e.target.value[prev_idx] != \"undefined\") {         arr_keystroke[prev_idx][\"time_keyup\"] = time_up;     }     for (var i = 0; i&lt;e.target.value.length; i++) {         let T = arr_keystroke[i];         if (typeof T != \"undefined\") {             let G = {\"key_name\":e.target.value[i],              \"time_keydown\":T[\"time_keydown\"],              \"time_keyup\":T[\"time_keyup\"],              \"time_press\":T[\"time_keyup\"]-T[\"time_keydown\"]             }             arr_keystroke.splice(i, 1, G);              strrr += e.target.value[i];         }      }       for (var i = 0; i&lt;arr_keystroke.length; i++) {         if (typeof arr_keystroke[i][\"time_press\"] == \"undefined\") {             arr_keystroke.splice(i, 1);             arr_keystroke.splice(prev_idx, 1);             arr_keystroke.splice(idx_arr_keystroke, 1);         }     }        const diff = patienceDiff(e.target.value, strrr)     let toUpdate = []     diff.lines.forEach((line) => {         if (line.aIndex &lt; 0 || line.bIndex &lt; 0) {             toUpdate.push(line.aIndex + line.bIndex + 1)         }     });     console.log(diff.lines, toUpdate)         let toFin = [];     if (toUpdate.length != 0) {         let temp_data = arr_keystroke[prev_idx];           for (var i=0; i&lt;diff.lines.length; i++) {             if (diff.lines[i].bIndex == -1) {                 toFin.push({\"key_name\":diff.lines[i].line,                             \"time_keydown\":temp_data[\"time_keydown\"],                             \"time_keyup\":temp_data[\"time_keyup\"],                             \"time_press\":temp_data[\"time_keyup\"]-temp_data[\"time_keydown\"]                             })             }         }         arr_keystroke.splice.apply(arr_keystroke, [toUpdate.min(), toUpdate.max()].concat(toFin));              } else {         for (var i=0; i&lt;diff.lines.length; i++) {             let temp_data = arr_keystroke[i];             toFin.push({\"key_name\":diff.lines[i].line,                         \"time_keydown\":temp_data[\"time_keydown\"],                         \"time_keyup\":temp_data[\"time_keyup\"],                         \"time_press\":temp_data[\"time_keyup\"]-temp_data[\"time_keydown\"]                         })         }         arr_keystroke = toFin;     }            console.log(`\u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0435: ${e.target.value.length},                   \u0440\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430: ${arr_keystroke.length},                   \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u0430\u0440\u0435\u0442\u043a\u0438: ${idx_arr_keystroke},                   \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441: ${prev_idx},                   \u0441\u043b\u043e\u0432\u043e \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430: \"${strrr}\",                   \u0441\u043b\u043e\u0432\u043e \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438: \"${e.target.value}\"`,                   arr_keystroke)  } \/\/ \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043a\u0430\u0440\u0435\u0442\u043a\u0438 function getCaret(node) {   if (node.selectionStart) {     return node.selectionStart;   } else if (!document.selection) {     return 0;   }   var c = \"\\001\",       sel = document.selection.createRange(),       dul = sel.duplicate(),       len = 0;   dul.moveToElementText(node);   sel.text = c;   len = dul.text.indexOf(c);   sel.moveStart('character',-1);   sel.text = \"\";   return len; }  var prev_idx = 0; var prev_char = \"\"; function handle(e) {     idx_arr_keystroke = getCaret(e.target);     var charCode = e.which || e.keyCode;     if (charCode == 229) {         var keyTimes = {};         let K;         if (e.type == \"keydown\") {             android_keydown(keyTimes);         } else if (e.type == \"keyup\") {              android_keyup(e, keyTimes);         }                 } else {         static_handle(e, charCode);     } }  document.addEventListener('click', function (e) {     if (e.target.id==\"id_body\") {         e.target.onkeydown = e.target.onkeyup = e.target.onkeypress = e.target.onclick = handle;      } }); <\/code><\/pre>\n<p>\u041a\u043e\u0434 \u0443\u0440\u043e\u0434\u043b\u0438\u0432, \u043d\u043e \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u0435\u043d \u0431\u0435\u0437 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0421 \u043d\u044b\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u0442. \u0425\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0441\u0435\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u0432\u0430\u0448\u0435\u043c web \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438. \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0445 \u0441 android \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/naturalkind\/social-network\/blob\/v0.5\/static\/js\/keystroke.js\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/naturalkind\/social-network\/blob\/v0.5\/static\/js\/keystroke.js<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/754590\/\"> https:\/\/habr.com\/ru\/articles\/754590\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e \u0437\u043d\u0430\u044e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432 \u044d\u0442\u043e \u043e\u0434\u043d\u043e, \u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043b\u043e\u0445\u043e \u0437\u043d\u0430\u044f \u0441\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0441 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f, \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b Android \u0432 web \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f javascript. \u041a\u043b\u0430\u0441\u0441\u0438\u043a\u0430, \u0441\u0430\u043c \u043d\u0435 \u0443\u043c\u0435\u044e \u043d\u0430\u0443\u0447\u0443 \u0434\u0440\u0443\u0433\u0438\u0445. \u0414\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441, \u0442\u043e \u0432\u044b \u044f\u0432\u043d\u043e \u043d\u043e\u0432\u0438\u0447\u043e\u043a \u0432\u043e \u0432\u0441\u0435\u0445 &#171;\u044d\u0442\u0438\u0445 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f&#187;, \u043c\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u0442\u0432\u0435\u0442\u0430: \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043f\u0441\u0438\u0445\u043e\u043c\u043e\u0442\u043e\u0440\u0438\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u0430\u043b\u044c\u0448\u0435 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u044f \u0432 \u043f\u043e\u043c\u043e\u0449\u044c. \u0418\u0433\u0440\u043e\u0432\u0430\u044f \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0430 &#8212; <a href=\"http:\/\/xn--90aci8aadpej1e.com\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e.com<\/a>, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0431\u0435\u0437 \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c, \u043c\u043e\u0439, \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0439 \u0441\u0431\u043e\u0440\u043d\u0438\u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f web \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0411\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b \u0437\u0430\u0445\u043e\u0434\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0435\u0441\u0443\u0440\u0441, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0441\u0442\u0430\u0440\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b http, \u0445\u0430\u043a\u0435\u0440\u044b \u0438\u0437 \u041c\u0430\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0432\u0430\u0448\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0434\u0438\u043b \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e \u0442\u043e \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 web \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0435\u0439 \u043c\u044b\u0441\u043b\u0438 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c:<\/h4>\n<ol>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0438<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<\/li>\n<\/ol>\n<p><strong>\u0412\u0410\u0416\u041d\u041e!<\/strong> \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u043b\u0430\u0432\u0438\u0448 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u044f\u0445 \u043d\u0430\u0431\u043e\u0440\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 HTML, \u0432\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043c\u0435\u043d\u044f \u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442, \u0432 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>\u041e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0432\u0438\u0434 \u0434\u0430\u043d\u043d\u044b\u0445: \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438\u0437 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435.<\/p>\n<pre><code class=\"json\">[{\"key_name\": \"\u0432\", \"time_keyup\": 1687158386.862, \"time_press\": 0.127000093460083, \"time_keydown\": 1687158386.735}, ... ]<\/code><\/pre>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u0446\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u043d\u0430, \u043f\u043b\u0430\u043d \u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u044e \u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u0432\u0435\u043b\u0438\u043a\u043e\u043b\u0435\u043f\u043d\u044b\u0439 <s>\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c<\/s> \u043f\u043b\u0430\u0433\u0438\u0430\u0442\u043e\u0440 javascript, \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0441\u044c \u0437\u0430 \u0441\u043e\u0432\u0435\u0442\u043e\u043c \u043a \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0443. \u041d\u0430\u0445\u043e\u0436\u0443 \u043d\u0443\u0436\u043d\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u0434\u0430 \u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"javascript\">var arr_keystroke = []; var arr_bad_keystroke = []; var idx_arr_keystroke = 0; var tKey = {} var list_exept = [\"CapsLock\", \"Alt\", \"Control\", \"Shift\", \"Insert\"]  function static_handle(e, charCode) {     if (list_exept.indexOf(e.key) == -1) {         if (e.type == \"keydown\") {             if (e.key==\"Backspace\") {                 if (arr_keystroke.length!=0 &amp;&amp; idx_arr_keystroke!=0) {                     idx_arr_keystroke--;                     arr_keystroke.splice(idx_arr_keystroke, 1);                 }             } else if (e.key == \"ArrowRight\") {                } else if (e.key == \"ArrowLeft\") {               } else if (e.key == \"ArrowUp\") {               } else if (e.key == \"ArrowDown\") {                } else {                 var keyTimes = {};                 let K;                 if (e.key ==\"Enter\") {                      K = String.fromCharCode(charCode); \/\/String.fromCodePoint                     console.log(\".....\", K);                 } else { K = e.key };                 keyTimes[\"key_name\"] = K;                 keyTimes[\"time_keydown\"] = new Date().getTime()\/1000.0;                 keyTimes[\"time_keyup\"] = new Date().getTime()\/1000.0;                 arr_keystroke.splice(idx_arr_keystroke, 0, keyTimes);                 if (!tKey[e.key]) {                     tKey[e.key] = [idx_arr_keystroke];                 } else {                     tKey[e.key].push(idx_arr_keystroke);                 }             }         }         if (e.type == \"keyup\") {             if (arr_keystroke.length>0) {                 let time_up = new Date().getTime()\/1000.0;                 if (tKey[e.key]) {                     for (var i = 0; i &lt; tKey[e.key].length; i++) {                         let rev_idx = (tKey[e.key].length-1)-i;                         arr_keystroke[tKey[e.key][i]][\"time_keyup\"] = time_up;                         arr_keystroke[tKey[e.key][i]][\"time_press\"] = time_up - arr_keystroke[tKey[e.key][rev_idx]][\"time_keydown\"];                     }                     delete tKey[e.key];                 }             }         }     } else {         if (e.type == \"keydown\") {             arr_bad_keystroke.push([e.key, idx_arr_keystroke]);         }     }  }<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u0431\u043e\u0440\u043d\u0438\u043a \u0447\u0443\u0436\u0438\u0445 \u0438\u0434\u0435\u0439, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0432 Chromium, Firefox, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Ubuntu, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c. \u0410 \u043a\u0430\u043a \u0434\u0435\u043b\u0430 \u0432 android? \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u044f\u0441\u043d\u044f\u044e \u0447\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0414\u0430\u043b\u044c\u0448\u0435 \u0443\u0437\u043d\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u0432\u0437\u044f\u0442\u044c \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 log \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0435 \u043c\u043e\u0433\u0443, \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u0441\u043b\u043e\u0432\u0443 \u043d\u0435 \u043f\u0440\u0438\u043d\u0435\u0441\u0443\u0442 \u0434\u043e\u043b\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u0430, \u0438\u0442\u043e\u0433: \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c, \u043c\u043d\u0435, \u0432 \u043c\u0438\u0440 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430. \u0423\u043c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u043d\u0430\u043f\u0438\u0448\u0443\u0442 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u0432\u0441\u044f\u043a\u0438\u0435 \u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0431\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432, \u044d\u0442\u0438\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0434\u0430\u0447\u0438. \u0410 \u044f \u043d\u0435 \u0443\u043c\u043d\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0440\u0430\u0447\u0443 \u0441\u0443\u0442\u043a\u0438 \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Android SDK \u0432 Ubuntu. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a \u0434\u043e\u043b\u0433\u043e? \u0416\u0438\u0432\u0443 \u0432 \u043d\u043e\u0432\u043e\u043c \u0414\u043e\u043d\u0435\u0446\u043a\u0435, \u043e\u0448\u0438\u0431\u043a\u0430 403, \u043b\u0443\u0447\u0448\u0435\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043e\u0442 github:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0442\u0430\u043a \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043b\u0435\u0442<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0430\u043a \u0447\u0442\u043e \u0434\u0430 \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 vpn \u0438 104 \u043a\u0431\/\u0441. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c prox, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u044e SDK \u043f\u043e\u0434 \u0441\u0432\u043e\u044e \u0437\u0430\u0434\u0430\u0447\u0443, \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0441 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c vpn \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u044e \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u044e \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c<\/p>\n<\/li>\n<li>\n<p>\u043d\u043e\u0443\u0442\u0431\u0443\u043a \u0441 Windows \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u044b\u043c vpn, \u0440\u0430\u0437\u0434\u0430\u044e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 Ubuntu <\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u043f\u043a \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f. <em>\u0412\u043e\u043f\u0440\u043e\u0441 \u0436\u0438\u0432\u0443\u0449\u0438\u043c \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043a\u0435: \u0434\u043e\u0441\u0442\u0443\u043f \u043a unreal engine \u043e\u0442\u043a\u0440\u044b\u0442?<\/em><\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430<\/figcaption><\/div>\n<\/figure>\n<h4>\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0438 \u0441\u043e\u0432\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 android SDK<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/android.tutorials24x7.com\/blog\/how-to-install-android-sdk-tools-on-ubuntu\" rel=\"noopener noreferrer nofollow\">https:\/\/android.tutorials24x7.com\/blog\/how-to-install-android-sdk-tools-on-ubuntu<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/41311344\/installing-android-emulator-in-android-studio-with-zip-files\" rel=\"noopener noreferrer nofollow\">https:\/\/stackoverflow.com\/questions\/41311344\/installing-android-emulator-in-android-studio-with-zip-files<\/a><\/p>\n<\/li>\n<\/ul>\n<h4>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b android SDK<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/androidsdkoffline.blogspot.com\/p\/android-sdk-9-api-28-pie-direct-download.html\" rel=\"noopener noreferrer nofollow\">https:\/\/androidsdkoffline.blogspot.com\/p\/android-sdk-9-api-28-pie-direct-download.html<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0432 terminal:<\/p>\n<pre><code class=\"bash\">avdmanager list avd sdkmanager --list avdmanager create avd -n android_temp -k \"system-images;android-28;android-automotive-playstore;x86\" sudo \/usr\/lib\/android-sdk\/emulator\/emulator_original\/emulator -avd Pixel_2_API_27<\/code><\/pre>\n<p><strong>\u0412\u0410\u0416\u041d\u041e! <\/strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 Chrome \u0438\u043b\u0438 Chromium<\/p>\n<figure class=\"bordered full-width\">\n<div><figcaption>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043e\u0442\u043b\u0430\u0434\u043a\u0435 chrome:\/\/inspect\/#devices<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u042d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e&#8230; \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0441\u044c \u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443, \u0432\u0438\u0436\u0443 <strong>\u043e\u0448\u0438\u0431\u043a\u0443 229 <\/strong>\u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b. \u0421\u043d\u043e\u0432\u0430 \u043a\u0430\u043a \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0441\u044c \u0437\u0430 \u0441\u043e\u0432\u0435\u0442\u043e\u043c \u043a \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u043c \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c \u0437\u043d\u0430\u043d\u0438\u044f\u043c. \u0412\u044b\u044f\u0441\u043d\u044f\u044e \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0442\u0430\u043a \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e(<a href=\"https:\/\/www.w3.org\/TR\/uievents\/#determine-keydown-keyup-keyCode\" rel=\"noopener noreferrer nofollow\">https:\/\/www.w3.org\/TR\/uievents\/#determine-keydown-keyup-keyCode<\/a>, <a href=\"https:\/\/www.w3.org\/TR\/uievents\/#keys-IME\" rel=\"noopener noreferrer nofollow\">https:\/\/www.w3.org\/TR\/uievents\/#keys-IME<\/a>), \u0432 \u0441\u0438\u043b\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432 :<\/p>\n<ul>\n<li>\n<p>\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c, \u043a\u0441\u0442\u0430\u0442\u0438 \u0432 ios \u043a\u043e\u0434 \u041f\u041a \u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/p>\n<\/li>\n<li>\n<p>\u043c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0431\u0445\u043e\u0434\u043d\u044b\u0445 API \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e, \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u0432 \u043f\u043e\u043b\u044f\u0445 \u043d\u0430\u0431\u043e\u0440\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 HTML. \u0414\u043b\u044f \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f &#171;\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u043b\u0430\u0432\u0438\u0448 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f&#8230;&#187; , \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f android, \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/jonTrent\/PatienceDiff\" rel=\"noopener noreferrer nofollow\">Patience Diff<\/a> \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0430 \u0437\u0430\u0447\u0435\u043c \u0434\u0430\u0439\u0442\u0435 \u043e\u0442\u0432\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e (\u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435), \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e android \u0432\u0435\u0440\u0441\u0438\u044f:<\/p>\n<pre><code class=\"javascript\">function android_keydown(keyTimes) {     prev_idx = idx_arr_keystroke;     keyTimes[\"key_name\"] = idx_arr_keystroke;     keyTimes[\"time_keydown\"] = new Date().getTime()\/1000.0;     keyTimes[\"time_keyup\"] = new Date().getTime()\/1000.0;     arr_keystroke.splice(idx_arr_keystroke, 0, keyTimes);     if (!tKey[idx_arr_keystroke]) {         tKey[idx_arr_keystroke] = [idx_arr_keystroke];     } else {         tKey[idx_arr_keystroke].push(idx_arr_keystroke);     }    }  Array.prototype.max = function() {     return Math.max.apply(null, this); };  Array.prototype.min = function() {     return Math.min.apply(null, this); };  function android_keyup(e, keyTimes) {     let strrr = \"\";     let time_up = new Date().getTime()\/1000.0;     if (tKey[prev_idx] &amp;&amp; typeof e.target.value[prev_idx] != \"undefined\") {         arr_keystroke[prev_idx][\"time_keyup\"] = time_up;     }     for (var i = 0; i&lt;e.target.value.length; i++) {         let T = arr_keystroke[i];         if (typeof T != \"undefined\") {             let G = {\"key_name\":e.target.value[i],              \"time_keydown\":T[\"time_keydown\"],              \"time_keyup\":T[\"time_keyup\"],              \"time_press\":T[\"time_keyup\"]-T[\"time_keydown\"]             }             arr_keystroke.splice(i, 1, G);              strrr += e.target.value[i];         }      }       for (var i = 0; i&lt;arr_keystroke.length; i++) {         if (typeof arr_keystroke[i][\"time_press\"] == \"undefined\") {             arr_keystroke.splice(i, 1);             arr_keystroke.splice(prev_idx, 1);             arr_keystroke.splice(idx_arr_keystroke, 1);         }     }        const diff = patienceDiff(e.target.value, strrr)     let toUpdate = []     diff.lines.forEach((line) => {         if (line.aIndex &lt; 0 || line.bIndex &lt; 0) {             toUpdate.push(line.aIndex + line.bIndex + 1)         }     });     console.log(diff.lines, toUpdate)         let toFin = [];     if (toUpdate.length != 0) {         let temp_data = arr_keystroke[prev_idx];           for (var i=0; i&lt;diff.lines.length; i++) {             if (diff.lines[i].bIndex == -1) {                 toFin.push({\"key_name\":diff.lines[i].line,                             \"time_keydown\":temp_data[\"time_keydown\"],                             \"time_keyup\":temp_data[\"time_keyup\"],                             \"time_press\":temp_data[\"time_keyup\"]-temp_data[\"time_keydown\"]                             })             }         }         arr_keystroke.splice.apply(arr_keystroke, [toUpdate.min(), toUpdate.max()].concat(toFin));              } else {         for (var i=0; i&lt;diff.lines.length; i++) {             let temp_data = arr_keystroke[i];             toFin.push({\"key_name\":diff.lines[i].line,                         \"time_keydown\":temp_data[\"time_keydown\"],                         \"time_keyup\":temp_data[\"time_keyup\"],                         \"time_press\":temp_data[\"time_keyup\"]-temp_data[\"time_keydown\"]                         })         }         arr_keystroke = toFin;     }            console.log(`\u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0435: ${e.target.value.length},<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-352150","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352150","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=352150"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352150\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}