{"id":220309,"date":"2014-04-22T11:03:03","date_gmt":"2014-04-22T07:03:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=220309"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=220309","title":{"rendered":"<span class=\"post_title\">\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Windows \u0448\u0430\u0440 \u0432 Android<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041a\u0443\u043f\u0438\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0435\u0431\u0435 \u043f\u043b\u0430\u043d\u0448\u0435\u0442 Samsung Galaxy Tab Pro 10.1 LTE SM-T525 \u0438 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u043e\u043c\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043d\u0451\u043c \u0444\u0438\u043b\u044c\u043c\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u0440\u0435\u0437 samba. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u044f\u0434\u0440\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 CIFS \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e\u2026 \u0432 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439.<\/p>\n<p>  <b>1. \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438<\/b><\/p>\n<p>  \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u0432 Adnroid \u0432\u0432\u0435\u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043d\u0438\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a Slave, \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u043d\u0435 \u0432\u0438\u0434\u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c.<br \/>  \u0412 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 Dalvik \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u0432 \u0444\u0430\u0439\u043b\u0435 vm\/Init.cpp \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"cpp\">if (mount(&quot;rootfs&quot;, &quot;\/&quot;, NULL, (MS_SLAVE | MS_REC), NULL) == -1) { \t        SLOGE(&quot;Failed to mount() rootfs as MS_SLAVE: %s&quot;, strerror(errno)); \t        return -1; } <\/code><\/pre>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0440\u0443\u0442\u043e\u0432\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0444\u043b\u0430\u0433\u0430\u043c\u0438 MS_SLAVE \u0438 MS_REC, \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0447\u0442\u043e \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \/ \u0431\u0443\u0434\u0443\u0442 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441 \u0444\u043b\u0430\u0433\u043e\u043c MS_SLAVE \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0438\u0445 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u043c \u0438 \u0438\u0445 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <b>mkasick<\/b> \u0441 xda-developers \u0431\u044b\u043b \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0430\u0442\u0447 \u0434\u043b\u044f \u044f\u0434\u0440\u0430 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 do_mount:  <\/p>\n<pre><code class=\"diff\">--- kernel_orig\/fs\/namespace.c  2014-01-23 15:34:18.000000000 +1100 +++ kernel\/fs\/namespace.c       2014-04-11 15:18:22.258114000 +1100 @@ -2141,6 +2141,21 @@         if (data_page)                 ((char *)data_page)[PAGE_SIZE - 1] = 0;  +#ifdef CONFIG_RESTRICT_ROOTFS_SLAVE +       \/* Check if this is an attempt to mark &quot;\/&quot; as recursive-slave. *\/ +       if (strcmp(dir_name, &quot;\/&quot;) == 0 && flags == (MS_SLAVE | MS_REC)) { +               static const char storage[] = &quot;\/storage&quot;; +               long res; +               \/* Mark \/storage as recursive-slave instead. *\/ +               if ((res = do_mount(NULL, (char *)storage, NULL, (MS_SLAVE | MS_REC), NULL)) == 0) { +                       return 0;        +               } else { +                       pr_warn(&quot;Failed to mount %s as MS_SLAVE: %ld\\n&quot;, storage, res); +               } +               \/* Fallback: Mark rootfs as recursive-slave as requested. *\/ +       } +#endif +         \/* ... and get the mountpoint *\/         retval = kern_path(dir_name, LOOKUP_FOLLOW, &path);         if (retval) <\/code><\/pre>\n<p>  \u0421\u0443\u0442\u044c \u043f\u0430\u0442\u0447\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0437\u043e\u0432 do_mount \u0434\u043b\u044f \/ \u0441 \u0444\u043b\u0430\u0433\u0430\u043c\u0438 MS_SVALE \u0438 MS_REC \u0438 \u043d\u0435 \u0434\u0430\u0451\u043c \u0438\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c. \u041d\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u044d\u0442\u0438 \u0444\u043b\u0430\u0433\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0432 \/storage, \u0438\u043d\u0430\u0447\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c do_mount(NULL, (char *)storage, NULL, (MS_SLAVE | MS_REC), NULL)) == 0). \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0432\u044b\u0437\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \/storage \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043a\u043e\u0439 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0444\u0430\u0439\u043b\u0435 init.rc \u0432 \u0440\u0430\u043c\u0434\u0438\u0441\u043a\u0435, \u0433\u0434\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \/storage \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u0443\u0434\u0430 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c tmpfs  <\/p>\n<pre><code class=\"bash\">mkdir \/storage 0050 root sdcard_r mount tmpfs tmpfs \/storage mode=0050,uid=0,gid=1028 <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439, \u0442\u043e\u0447\u043a\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \/storage \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u043d\u044b \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c.<\/p>\n<p>  <b>2. \u0421\u0431\u043e\u0440\u043a\u0430 \u044f\u0434\u0440\u0430<\/b> <\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 CIFS \u0432 Linux \u044f\u0434\u0440\u043e. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u044f\u0434\u0440\u0430 cifs, \u043b\u0438\u0431\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 cifs \u0432 \u0441\u0430\u043c\u043e \u044f\u0434\u0440\u043e. \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043b\u0443\u0447\u0448\u0435, \u0442.\u043a. \u043d\u0435 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u044f\u0434\u0440\u043e \u0438 \u0442\u0435\u0440\u044f\u0442\u044c \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044e \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0430\u0445. <br \/>  \u042f\u0434\u0440\u043e \u043c\u043e\u0435\u0433\u043e \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0440\u0430\u043d\u043e \u0431\u0435\u0437 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u044f\u0434\u0440\u043e:<br \/>  \u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u044f\u0434\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:<br \/>   \u0430) \u041c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430 Linux<br \/>   \u0431) \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u044f\u0434\u0440\u0430 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0434\u0435\u0432\u0430\u0439\u0441\u0430, \u0434\u043b\u044f \u0421\u0430\u043c\u0441\u0443\u043d\u0433\u0430 \u0431\u0435\u0440\u0451\u043c \u0437\u0434\u0435\u0441\u044c <a href=\"http:\/\/opensource.samsung.com\/\">opensource.samsung.com\/<\/a><br \/>   \u0432) Toolchain \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438, \u0431\u0435\u0440\u0451\u043c \u0442\u0443\u0442 <a href=\"https:\/\/developer.android.com\/tools\/sdk\/ndk\/index.html\">developer.android.com\/tools\/sdk\/ndk\/index.html<\/a><br \/>  \u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u044f\u0434\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e ~\/android, \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0451 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u044f\u0434\u0440\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e kernel, android-ndk \u0432 android-ndk-r9  <\/p>\n<pre><code class=\"bash\">mkdir ~\/android cd ~\/android tar xjf android-ndk-r9d-linux-x86_64.tar.bz2 unzip SM-T525_SEA_KK_Opensource.zip mkdir kernel cd kernel tar xzf ..\/Kernel.tar.gz <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u0442\u0447 \u0434\u043b\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043f\u0443\u0441\u0442\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">shared_rootfs.patch<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"diff\">--- kernel_orig\/fs\/namespace.c\t2014-01-23 15:34:18.000000000 +1100 +++ kernel\/fs\/namespace.c\t2014-04-11 15:18:22.258114000 +1100 @@ -2141,6 +2141,21 @@  \tif (data_page)  \t\t((char *)data_page)[PAGE_SIZE - 1] = 0;   +#ifdef CONFIG_RESTRICT_ROOTFS_SLAVE +\t\/* Check if this is an attempt to mark &quot;\/&quot; as recursive-slave. *\/ +\tif (strcmp(dir_name, &quot;\/&quot;) == 0 && flags == (MS_SLAVE | MS_REC)) { +\t\tstatic const char storage[] = &quot;\/storage&quot;; +\t\tlong res; +\t\t\/* Mark \/storage as recursive-slave instead. *\/ +\t\tif ((res = do_mount(NULL, (char *)storage, NULL, (MS_SLAVE | MS_REC), NULL)) == 0) { +\t\t\treturn 0;\t +\t\t} else { +\t\t\tpr_warn(&quot;Failed to mount %s as MS_SLAVE: %ld\\n&quot;, storage, res); +\t\t} +\t\t\/* Fallback: Mark rootfs as recursive-slave as requested. *\/ +\t} +#endif +  \t\/* ... and get the mountpoint *\/  \tretval = kern_path(dir_name, LOOKUP_FOLLOW, &path);  \tif (retval) --- kernel_orig\/fs\/Kconfig\t2014-01-23 15:34:17.000000000 +1100 +++ kernel\/fs\/Kconfig\t2014-04-10 19:29:30.990114000 +1100 @@ -292,4 +292,29 @@  source &quot;fs\/nls\/Kconfig&quot;  source &quot;fs\/dlm\/Kconfig&quot;   +config RESTRICT_ROOTFS_SLAVE + \tbool &quot;Android: Restrict rootfs slave mountspace to \/storage&quot; + \thelp + \t  Restrict slave mountspace so Dalvik apps can mount system-wide volumes +  + \t  Android 4.2 implements multi-user storage using per-process mount + \t  namespaces.  Everything under &quot;\/&quot; (the entire filesystem hierarchy) is + \t  marked as a recursive-slave mountspace for all zygote instances.  This is + \t  done so that user-storage sandbox mounts under \/storage\/emulated are hidden + \t  from other apps and users.  Unfortunately this means that any Dalvik app + \t  (actually, any program whose clone\/fork ancestry includes a Dalvik zygote, + \t  which is everything except services spawned directly from init) cannot + \t  mount system-wide volumes. +  + \t  This option restricts rootfs-slave calls to \/storage (and + \t  \/mnt\/shell\/emulated) so that Dalvik apps can mount system-wide volumes + \t  elsewhere (with appropriate permission, as in earlier versions of Android), + \t  while retaining full multi-user storage compatibility.  It is made + \t  available as a kernel-based workaround for instances where libdvm can not + \t  be modified. +  + \t  This option requires that a tmpfs volume is mounted as \/storage in + \t  Android init.rc.  If this volume is unavailable, then we fall back to the + \t  previous behavior of marking the entire filesystem hierarchy as slave. +  endmenu <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">patch -p1 &lt; shared_rootfs.patch <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u044f\u0434\u0440\u0430, \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u0441\u0430\u043c\u0441\u0443\u043d\u0433\u0430 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">export CROSS_COMPILE=&quot;~\/android\/android-ndk-r9d\/toolchains\/arm-linux-androideabi-4.6\/prebuilt\/linux-x86_64\/bin\/arm-linux-androideabi-&quot; export ARCH=&quot;arm&quot;  make mrproper make VARIANT_DEFCONFIG=msm8974_sec_picassoeur_defconfig msm8974_sec_defconfig SELINUX_DEFCONFIG=selinux_defconfig <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b .config, \u0434\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <b>make menuconfig<\/b> \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b File Systems -&gt; Network File Systems \u0438 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 CIFS support (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u043e\u0434\u0443\u043b\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0431\u0443\u043a\u0432\u043e\u0439 M) \u0438 \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u043c RESTRICT_ROOTFS_SLAVE \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 File Systems<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/0b7\/34c\/e95\/0b734ce95e7f46d9e580918d3fdb35da.png\"\/><br \/>  \u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u043a\u043b\u0430\u0432\u0438\u0448\u0435\u0439 Esc \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u044f\u0434\u0440\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <b>make -j3<\/b> (\u0432\u043c\u0435\u0441\u0442\u043e \u0446\u0438\u0444\u0440\u044b 3 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044f\u0434\u0435\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430+1) <br \/>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0441\u0431\u043e\u0440\u043a\u0430 \u044f\u0434\u0440\u0430 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430.<\/p>\n<p>  <b>3. \u0421\u0431\u043e\u0440\u043a\u0430 boot.img \u0434\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438<\/b><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u044f\u0434\u0440\u043e \u0432 \u043f\u043b\u0430\u043d\u0448\u0435\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 boot.img \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u044f\u0434\u0440\u043e, ramdisk \u0438 device tree \u0434\u043b\u044f \u0447\u0438\u043f\u043e\u0432 Qualcomm.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u043e\u0434\u043d\u043e\u0439 ramdisk, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 (\u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 tar) \u0438 \u0434\u043e\u0441\u0442\u0430\u0451\u043c \u043e\u0442\u0442\u0443\u0434\u0430 \u0444\u0430\u0439\u043b boot.img  <\/p>\n<pre><code class=\"bash\">tar xf T525XXUANB2_T525SERANA6_T525XXUANA7_HOME.tar.md5 boot.img <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438 boot.img \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442 <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?t=2319018\">bootimg_tools<\/a><br \/>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 ~\/android, \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 split_boot \u0444\u0430\u0439\u043b boot.img   <\/p>\n<pre><code class=\"bash\">mkdir ~\/adndroid\/bootimg_tools cd ~\/adnroid\/bootimg_tools unzip ..\/bootimg_tools_7.8.13.zip .\/split_boot ..\/boot.img <\/code><\/pre>\n<p>  \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0439 ramdisk \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 boot\/ramdisk<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0440\u0430\u043c\u0434\u0438\u0441\u043a\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 Selinux \u0432 permissive mode \u0438 \u0434\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \/storage \u043a\u0430\u043a tmpfs<br \/>  \u0412 \u0444\u0430\u0439\u043b\u0435 init.rc \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <b>setsebool debugfs 1<\/b> \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0451 \u043d\u0430  <\/p>\n<pre><code class=\"bash\">setsebool debugfs 0 setenforce 0 <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 setprop <b>selinux.reload_policy 1<\/b> \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0451 \u043d\u0430 <b>setprop selinux.reload_policy 0<\/b><br \/>  \u0414\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \/storage \u043a\u0430\u043a tmpfs \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <b>mkdir \/storage 0751 root sdcard_r<\/b> \u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0451 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c   <\/p>\n<pre><code class=\"bash\">mount tmpfs tmpfs \/storage mode=0050,uid=0,gid=1028 <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0432 \u0444\u0430\u0439\u043b\u0435 defaul.prop \u043c\u0435\u043d\u044f\u0435\u043c <b>ro.secure=1<\/b> \u043d\u0430<b> ro.secure=0<\/b> \u0438 <b>ro.adb.secure=1<\/b> \u043d\u0430 <b>ro.adb.secure=0<\/b><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c ramdisk \u043d\u0430\u0437\u0430\u0434  <\/p>\n<pre><code class=\"bash\">.\/repack_ramdisk boot\/ramdisk ramdisk.cpio.gz cp boot\/ramdisk.cpio.gz ~\/android\/kernel <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430\u043c \u0435\u0449\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b dt.img, \u043e\u043d \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 dtbTool \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0434\u0451\u0442 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u044f\u0434\u0440\u043e\u043c  <\/p>\n<pre><code class=\"bash\">cd ~\/android\/kernel .\/tools\/dtbTool -o dt.img -s 2048 -p .\/scripts\/dtc\/ .\/arch\/arm\/boot\/ <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 boot.img, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0430\u043c\u0443 \u0441\u0431\u043e\u0440\u043a\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b mkbootimg (\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435 \u0441 \u044f\u0434\u0440\u043e\u043c)  <\/p>\n<pre><code class=\"bash\">.\/tools\/mkbootimg --kernel .\/arch\/arm\/boot\/zImage --ramdisk ramdisk.cpio.gz --cmdline 'console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3' --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --dt dt.img -o boot.img <\/code><\/pre>\n<p>  \u0412\u0441\u0451, \u0444\u0430\u0439\u043b boot.img \u0433\u043e\u0442\u043e\u0432. \u0414\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 Odin, \u0434\u0435\u043b\u0430\u0435\u043c \u0438\u0437 \u043d\u0435\u0433\u043e boot.tar.md5  <\/p>\n<pre><code class=\"bash\">tar -H ustar -c boot.img &gt; boot.tar md5sum -t boot.tar &gt;&gt; boot.tar mv boot.tar boot.tar.md5 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 Odin<br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/010\/356\/c40\/010356c40b634604983a3d7e67adfa43.png\"\/><\/p>\n<p>  \u041d\u0430 Samsung \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0447\u0442\u043e \u0441 \u043a\u0430\u0442\u043e\u043c\u043d\u044b\u043c \u044f\u0434\u0440\u043e\u043c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c wifi, \u043b\u0435\u0447\u0438\u0442\u0441\u044f \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u0444\u0430\u0439\u043b\u0430 build.prop \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 <b>ro.securestorage.support=true<\/b> \u043d\u0430 <b>ro.securestorage.support=false <\/b><\/p>\n<p>  <b>4. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u041f\u041e \u0434\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/b><\/p>\n<p>  \u0414\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0448\u0430\u0440 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=ws.plattner.cifsmanager&amp;hl=ru\">CifsManager<\/a><\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/c99\/91b\/ecb\/c9991becb24d43819d727b88f81129ea.jpg\"\/><\/p>\n<p>  \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435:<br \/>  \u0430) \u0412 cifs \u043d\u0430 \u044f\u0434\u0440\u0435 3.4 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043b\u043e\u043c\u0430\u043b\u0438, \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 device \u043a\u043e\u043c\u0430\u043d\u0434\u044b mount, \u0442.\u0435. \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0432\u0438\u0434\u0430<br \/>  <code>mount -t cifs \/\/pc\/share \/mnt<\/code> \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c\u0443\u044e \u0448\u0430\u0440\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 unc, \u0442.\u0435. \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">mount -t cifs -o unc=\\\\\\\\pc\\\\share none \/mnt <\/code><\/pre>\n<p>  \u0431) \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e \u0442\u043e\u0447\u043a\u0443 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u0430\u043a \u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0448\u0435, \u0435\u0441\u043b\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \/storage, \u0442\u043e \u0442\u0430\u043a\u0430\u044f \u0448\u0430\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442\u0430\u044f \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0435\u0441\u043b\u0438 \u0436\u0435 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0443\u0434\u0430-\u0442\u043e \u0432\u043d\u0435 \/storage, \u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0435\u0451 \u043d\u0435 \u0441\u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044c, \u0442.\u043a. \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u043c\u044f\u0442\u0438. \u0412\u044b\u0445\u043e\u0434 \u0435\u0441\u0442\u044c. \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043f\u0430\u043c\u044f\u0442\u044c \/storage\/emulated\/0 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043b\u0435\u0436\u0438\u0442 \u0432 \/data\/media\/0, \u0430 \/storage\/emulated\/0 \u2014 \u044d\u0442\u043e \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044f fat32 \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. \u0422\u0430\u043a \u0447\u0442\u043e \u043c\u044b \u0441\u043c\u0435\u043b\u043e \u043c\u043e\u0436\u0435\u043c \u043c\u043e\u0436\u0435\u043c \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \/data\/media\/0\/cifs \u0438 \u0443\u0432\u0438\u0434\u0438\u043c \u043d\u0430\u0448\u0443 \u0448\u0430\u0440\u0443 \u0432 \u0444\u0439\u043b\u043e\u0432\u043e\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0435 \u0432 internal storage.<br \/>  \u0432) \u0415\u0441\u0442\u044c \u0435\u0449\u0451 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 mount -t cifs \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0438\u0434\u0443\u0449\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 password, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435  <\/p>\n<pre><code class=\"bash\">mount -t cifs -o unc=\\\\\\\\pc\\\\share,username=user,password=123,sec=ntlmssp none \/data\/media\/0\/cifs <\/code><\/pre>\n<p>  \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 sec=ntlmssp \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0448\u0430\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043f\u0430\u0440\u043e\u043b\u044c, \u0442\u043e \u0432 CifsManager \u043f\u043e\u043b\u0435 Password \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u0441\u0442\u044b\u043c, \u0430 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u0438\u0448\u0435\u043c \u0432 \u043f\u043e\u043b\u0435 Options \u0432 \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u043d\u0435\u0446, \u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u0432\u044b\u0448\u0435.<br \/>  \u0433) \u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0443\u0441\u0441\u043a\u0438\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 \u0432 \u0438\u043c\u0435\u043d\u0430\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u043f\u0446\u0438\u044e iocharset=utf8<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0448\u0430\u0440\u0443 \u0432 CifsManager \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f!<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432:<br \/>  <a href=\"http:\/\/www.ibm.com\/developerworks\/ru\/library\/l-mount-namespaces\/\">www.ibm.com\/developerworks\/ru\/library\/l-mount-namespaces\/<\/a><br \/>  <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?p=36889027\">forum.xda-developers.com\/showthread.php?p=36889027<\/a><br \/>  <a href=\"http:\/\/www.netzgewitter.com\/2013\/10\/troubleshoot-cifs-on-android\/\">www.netzgewitter.com\/2013\/10\/troubleshoot-cifs-on-android\/<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/220309\/\"> http:\/\/habrahabr.ru\/post\/220309\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041a\u0443\u043f\u0438\u043b \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0435\u0431\u0435 \u043f\u043b\u0430\u043d\u0448\u0435\u0442 Samsung Galaxy Tab Pro 10.1 LTE SM-T525 \u0438 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u043e\u043c\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043d\u0451\u043c \u0444\u0438\u043b\u044c\u043c\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u0440\u0430\u0441\u0448\u0430\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0435\u0440\u0435\u0437 samba. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u044f\u0434\u0440\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 CIFS \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e\u2026 \u0432 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439.<\/p>\n<p>  <b>1. \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438<\/b><\/p>\n<p>  \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u0432 Adnroid \u0432\u0432\u0435\u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043d\u0438\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a Slave, \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u043d\u0435 \u0432\u0438\u0434\u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c.<br \/>  \u0412 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 Dalvik \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 4.2 \u0432 \u0444\u0430\u0439\u043b\u0435 vm\/Init.cpp \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"cpp\">if (mount(&quot;rootfs&quot;, &quot;\/&quot;, NULL, (MS_SLAVE | MS_REC), NULL) == -1) { \t        SLOGE(&quot;Failed to mount() rootfs as MS_SLAVE: %s&quot;, strerror(errno)); \t        return -1; } <\/code><\/pre>\n<p>  <\/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-220309","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/220309","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=220309"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/220309\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}