Android4.2 後解決掛載cifs檔案系統後不顯示

來源:互聯網
上載者:User

標籤:

介紹

手機es管理器裡的顯示的檔案是我電腦上 win7的共用資料夾.只要手機和電腦在同一區域網路就能實現圖中的效果. 
不僅能讀取電腦的檔案,所有的寫操作也會儲存回電腦的檔案中.當然有了cifs模組 samba檔案系統也是支援的 
有興趣的請自行百度win7共用和cifs模組~

要求
  僅cm11和cm11s!且手機已root
使用方法
  1. 下載 ak_kernel_modify.zip (8.26 MB, 下載次數: 8) 
    這個核心是使用至昨晚為止(20150201)最新的akkernel代碼編譯的.有可能維護者正在調試什麼功能..但是我用到現在沒發現任何異常.使用 [一加萬能工具包] 刷寫boot核心刷入即可

  2. 掛載 
    兩種方法: 
    一 推薦 
    樣本 
    在adb shell 或者別的終端下:

<code class="language-shell hljs lasso has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: ‘Source Code Pro‘, monospace;font-size:undefined; white-space: pre; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; word-wrap: normal; background: transparent;">su insmod /system/lib/modules/cifs<span class="hljs-built_in" style="color: rgb(102, 0, 102); box-sizing: border-box;">.</span>ko /system/xbin/mount <span class="hljs-attribute" style="box-sizing: border-box;">-t</span> cifs <span class="hljs-attribute" style="box-sizing: border-box;">-o</span> username<span class="hljs-subst" style="color: rgb(0, 0, 0); box-sizing: border-box;">=</span>administrator,password<span class="hljs-subst" style="color: rgb(0, 0, 0); box-sizing: border-box;">=</span><span class="hljs-string" style="color: rgb(0, 136, 0); box-sizing: border-box;">"#password"</span> <span class="hljs-attribute" style="box-sizing: border-box;">-o</span> iocharset<span class="hljs-subst" style="color: rgb(0, 0, 0); box-sizing: border-box;">=</span>utf8 <span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;">//10.0.136.102/win_share /mnt/cifs/</span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right; "><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li></ul>
幾個注意
  • 一定要使用/system/xbin/mount 沒有的請安裝busybox
  • 掛載點 /mnt/cifs/是我建立的.可以是別的地方 但是一定注意不能是 /mnt/storage/以下的目錄!或者.使用cifsmanager .自行百度.
原理

cifs模組玩手機多的應該都不陌生了.但是android4.2之後在有些手機上很蛋疼.具體表現是 例如你在adb shell上掛載了共用,但是在檔案管理工具上找不到!? 
這時候正義的xda大神就站出來了.link 
好像是說4.2後 android引入了個muti-user機智,但是xda大神不服認為這個機智可以只用在 /mnt/storage/目錄下 ,於是給核心添加了一段代碼.

我也就按照大神的指引把他的patch也打到自己正在用的這個ak核心,和改了下init.rc

提問

說起一加 kernel ,我編譯了 這個kernel ,用 cyanogenmod_bacon_defconfig 這個配置. 燒進去後能用,但是時不時會死機..水平不夠不會調試核心.. 
(:з」∠) 求高手教教

更新

核心補丁提交成功了 發不了連結.下一版的ak核心可以看到這個功能.

Android4.2 後解決掛載cifs檔案系統後不顯示

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.